[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:55]recv_with_timeout no data received [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:41]recv_with_timeout no data received [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:00]recv_with_timeout no data received [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:26]recv_with_timeout no data received [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:00]recv_with_timeout no data received [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]recv_with_timeout no data received [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:55]OFD Sender: No OFD packet to send [03:05:00]OFD Sender: No OFD packet to send [03:05:05]OFD Sender: No OFD packet to send [03:05:10]OFD Sender: No OFD packet to send [03:05:15]OFD Sender: No OFD packet to send [03:05:20]OFD Sender: No OFD packet to send [03:05:25]OFD Sender: No OFD packet to send [03:05:30]OFD Sender: No OFD packet to send [03:05:35]OFD Sender: No OFD packet to send [03:05:40]OFD Sender: No OFD packet to send [03:05:45]OFD Sender: No OFD packet to send [03:05:50]OFD Sender: No OFD packet to send [03:05:55]OFD Sender: No OFD packet to send [03:06:00]OFD Sender: No OFD packet to send [03:06:05]OFD Sender: No OFD packet to send [03:06:10]OFD Sender: No OFD packet to send [03:06:15]OFD Sender: No OFD packet to send [03:06:20]OFD Sender: No OFD packet to send [03:06:25]OFD Sender: No OFD packet to send [03:06:30]OFD Sender: No OFD packet to send [03:06:35]OFD Sender: No OFD packet to send [03:06:40]OFD Sender: No OFD packet to send [03:06:45]OFD Sender: No OFD packet to send [03:06:50]OFD Sender: No OFD packet to send [03:06:55]OFD Sender: No OFD packet to send [03:07:00]OFD Sender: No OFD packet to send [03:07:05]OFD Sender: No OFD packet to send [03:07:10]OFD Sender: No OFD packet to send [03:07:12]recv_with_timeout no data received [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:35]recv_with_timeout no data received [03:09:40]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:09:56]recv_with_timeout no data received [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:31]recv_with_timeout no data received [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:49]recv_with_timeout no data received [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:13]recv_with_timeout no data received [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]recv_with_timeout no data received [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:35]OFD Sender: No OFD packet to send [03:21:40]OFD Sender: No OFD packet to send [03:21:45]OFD Sender: No OFD packet to send [03:21:50]OFD Sender: No OFD packet to send [03:21:55]OFD Sender: No OFD packet to send [03:22:00]OFD Sender: No OFD packet to send [03:22:02]recv_with_timeout no data received [03:22:05]OFD Sender: No OFD packet to send [03:22:10]OFD Sender: No OFD packet to send [03:22:15]OFD Sender: No OFD packet to send [03:22:20]OFD Sender: No OFD packet to send [03:22:25]OFD Sender: No OFD packet to send [03:22:30]OFD Sender: No OFD packet to send [03:22:35]OFD Sender: No OFD packet to send [03:22:40]OFD Sender: No OFD packet to send [03:22:45]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:28]recv_with_timeout no data received [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:10]recv_with_timeout no data received [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:13]recv_with_timeout no data received [03:27:16]OFD Sender: No OFD packet to send [03:27:21]OFD Sender: No OFD packet to send [03:27:23]recv_with_timeout no data received [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:55]recv_with_timeout no data received [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:24]recv_with_timeout no data received [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:00]recv_with_timeout no data received [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:11]recv_with_timeout no data received [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:31]OFD Sender: No OFD packet to send [03:37:36]OFD Sender: No OFD packet to send [03:37:41]OFD Sender: No OFD packet to send [03:37:46]OFD Sender: No OFD packet to send [03:37:51]OFD Sender: No OFD packet to send [03:37:56]OFD Sender: No OFD packet to send [03:38:01]OFD Sender: No OFD packet to send [03:38:05]recv_with_timeout no data received [03:38:06]OFD Sender: No OFD packet to send [03:38:11]OFD Sender: No OFD packet to send [03:38:16]OFD Sender: No OFD packet to send [03:38:21]OFD Sender: No OFD packet to send [03:38:26]OFD Sender: No OFD packet to send [03:38:31]OFD Sender: No OFD packet to send [03:38:31]recv_with_timeout no data received [03:38:36]OFD Sender: No OFD packet to send [03:38:41]OFD Sender: No OFD packet to send [03:38:46]OFD Sender: No OFD packet to send [03:38:51]OFD Sender: No OFD packet to send [03:38:56]OFD Sender: No OFD packet to send [03:39:00]recv_with_timeout no data received [03:39:01]OFD Sender: No OFD packet to send [03:39:06]OFD Sender: No OFD packet to send [03:39:11]OFD Sender: No OFD packet to send [03:39:16]OFD Sender: No OFD packet to send [03:39:21]OFD Sender: No OFD packet to send [03:39:26]OFD Sender: No OFD packet to send [03:39:31]OFD Sender: No OFD packet to send [03:39:36]OFD Sender: No OFD packet to send [03:39:41]OFD Sender: No OFD packet to send [03:39:46]OFD Sender: No OFD packet to send [03:39:51]OFD Sender: No OFD packet to send [03:39:56]OFD Sender: No OFD packet to send [03:40:01]OFD Sender: No OFD packet to send [03:40:06]OFD Sender: No OFD packet to send [03:40:11]OFD Sender: No OFD packet to send [03:40:16]OFD Sender: No OFD packet to send [03:40:21]OFD Sender: No OFD packet to send [03:40:26]OFD Sender: No OFD packet to send [03:40:31]OFD Sender: No OFD packet to send [03:40:34]recv_with_timeout no data received [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:50]recv_with_timeout no data received [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:13]recv_with_timeout no data received [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:22]recv_with_timeout no data received [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:05]recv_with_timeout no data received [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:39]recv_with_timeout no data received [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:15]recv_with_timeout no data received [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:51:58]recv_with_timeout no data received [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:09]recv_with_timeout no data received [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:27]OFD Sender: No OFD packet to send [03:53:32]OFD Sender: No OFD packet to send [03:53:37]OFD Sender: No OFD packet to send [03:53:42]OFD Sender: No OFD packet to send [03:53:47]OFD Sender: No OFD packet to send [03:53:52]OFD Sender: No OFD packet to send [03:53:57]OFD Sender: No OFD packet to send [03:54:02]OFD Sender: No OFD packet to send [03:54:05]recv_with_timeout no data received [03:54:07]OFD Sender: No OFD packet to send [03:54:12]OFD Sender: No OFD packet to send [03:54:17]OFD Sender: No OFD packet to send [03:54:22]OFD Sender: No OFD packet to send [03:54:27]OFD Sender: No OFD packet to send [03:54:32]OFD Sender: No OFD packet to send [03:54:37]OFD Sender: No OFD packet to send [03:54:42]OFD Sender: No OFD packet to send [03:54:47]OFD Sender: No OFD packet to send [03:54:52]OFD Sender: No OFD packet to send [03:54:57]OFD Sender: No OFD packet to send [03:55:02]OFD Sender: No OFD packet to send [03:55:07]OFD Sender: No OFD packet to send [03:55:12]OFD Sender: No OFD packet to send [03:55:17]OFD Sender: No OFD packet to send [03:55:22]OFD Sender: No OFD packet to send [03:55:27]OFD Sender: No OFD packet to send [03:55:32]OFD Sender: No OFD packet to send [03:55:37]OFD Sender: No OFD packet to send [03:55:42]OFD Sender: No OFD packet to send [03:55:47]OFD Sender: No OFD packet to send [03:55:52]OFD Sender: No OFD packet to send [03:55:57]OFD Sender: No OFD packet to send [03:56:02]OFD Sender: No OFD packet to send [03:56:07]OFD Sender: No OFD packet to send [03:56:12]OFD Sender: No OFD packet to send [03:56:17]OFD Sender: No OFD packet to send [03:56:22]OFD Sender: No OFD packet to send [03:56:27]OFD Sender: No OFD packet to send [03:56:32]OFD Sender: No OFD packet to send [03:56:37]OFD Sender: No OFD packet to send [03:56:42]OFD Sender: No OFD packet to send [03:56:47]OFD Sender: No OFD packet to send [03:56:52]OFD Sender: No OFD packet to send [03:56:57]OFD Sender: No OFD packet to send [03:57:02]OFD Sender: No OFD packet to send [03:57:07]OFD Sender: No OFD packet to send [03:57:12]OFD Sender: No OFD packet to send [03:57:17]OFD Sender: No OFD packet to send [03:57:22]OFD Sender: No OFD packet to send [03:57:27]OFD Sender: No OFD packet to send [03:57:32]OFD Sender: No OFD packet to send [03:57:37]OFD Sender: No OFD packet to send [03:57:42]OFD Sender: No OFD packet to send [03:57:47]OFD Sender: No OFD packet to send [03:57:52]OFD Sender: No OFD packet to send [03:57:57]OFD Sender: No OFD packet to send [03:58:01]recv_with_timeout no data received [03:58:02]OFD Sender: No OFD packet to send [03:58:07]OFD Sender: No OFD packet to send [03:58:12]OFD Sender: No OFD packet to send [03:58:17]OFD Sender: No OFD packet to send [03:58:22]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:03]recv_with_timeout no data received [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:21]recv_with_timeout no data received [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:53]OFD Sender: No OFD packet to send [03:59:58]OFD Sender: No OFD packet to send [04:00:03]OFD Sender: No OFD packet to send [04:00:08]OFD Sender: No OFD packet to send [04:00:13]OFD Sender: No OFD packet to send [04:00:18]OFD Sender: No OFD packet to send [04:00:23]OFD Sender: No OFD packet to send [04:00:28]OFD Sender: No OFD packet to send [04:00:31]recv_with_timeout no data received [04:00:33]OFD Sender: No OFD packet to send [04:00:38]OFD Sender: No OFD packet to send [04:00:43]OFD Sender: No OFD packet to send [04:00:48]OFD Sender: No OFD packet to send [04:00:53]OFD Sender: No OFD packet to send [04:00:56]recv_with_timeout no data received [04:00:58]OFD Sender: No OFD packet to send [04:01:03]OFD Sender: No OFD packet to send [04:01:08]OFD Sender: No OFD packet to send [04:01:13]OFD Sender: No OFD packet to send [04:01:18]OFD Sender: No OFD packet to send [04:01:23]OFD Sender: No OFD packet to send [04:01:28]OFD Sender: No OFD packet to send [04:01:33]OFD Sender: No OFD packet to send [04:01:38]OFD Sender: No OFD packet to send [04:01:43]OFD Sender: No OFD packet to send [04:01:48]OFD Sender: No OFD packet to send [04:01:53]OFD Sender: No OFD packet to send [04:01:55]recv_with_timeout no data received [04:01:58]OFD Sender: No OFD packet to send [04:02:03]OFD Sender: No OFD packet to send [04:02:08]OFD Sender: No OFD packet to send [04:02:13]OFD Sender: No OFD packet to send [04:02:18]OFD Sender: No OFD packet to send [04:02:23]OFD Sender: No OFD packet to send [04:02:28]OFD Sender: No OFD packet to send [04:02:33]OFD Sender: No OFD packet to send [04:02:38]OFD Sender: No OFD packet to send [04:02:43]OFD Sender: No OFD packet to send [04:02:48]OFD Sender: No OFD packet to send [04:02:53]OFD Sender: No OFD packet to send [04:02:58]OFD Sender: No OFD packet to send [04:03:01]recv_with_timeout no data received [04:03:03]OFD Sender: No OFD packet to send [04:03:08]OFD Sender: No OFD packet to send [04:03:13]OFD Sender: No OFD packet to send [04:03:18]OFD Sender: No OFD packet to send [04:03:23]OFD Sender: No OFD packet to send [04:03:28]OFD Sender: No OFD packet to send [04:03:33]OFD Sender: No OFD packet to send [04:03:38]OFD Sender: No OFD packet to send [04:03:43]OFD Sender: No OFD packet to send [04:03:48]OFD Sender: No OFD packet to send [04:03:53]OFD Sender: No OFD packet to send [04:03:58]OFD Sender: No OFD packet to send [04:04:03]OFD Sender: No OFD packet to send [04:04:08]OFD Sender: No OFD packet to send [04:04:13]OFD Sender: No OFD packet to send [04:04:18]OFD Sender: No OFD packet to send [04:04:23]OFD Sender: No OFD packet to send [04:04:28]OFD Sender: No OFD packet to send [04:04:33]OFD Sender: No OFD packet to send [04:04:38]OFD Sender: No OFD packet to send [04:04:43]OFD Sender: No OFD packet to send [04:04:48]OFD Sender: No OFD packet to send [04:04:53]OFD Sender: No OFD packet to send [04:04:58]OFD Sender: No OFD packet to send [04:05:03]OFD Sender: No OFD packet to send [04:05:08]OFD Sender: No OFD packet to send [04:05:13]OFD Sender: No OFD packet to send [04:05:18]OFD Sender: No OFD packet to send [04:05:23]OFD Sender: No OFD packet to send [04:05:28]OFD Sender: No OFD packet to send [04:05:33]OFD Sender: No OFD packet to send [04:05:38]OFD Sender: No OFD packet to send [04:05:43]OFD Sender: No OFD packet to send [04:05:48]OFD Sender: No OFD packet to send [04:05:53]OFD Sender: No OFD packet to send [04:05:58]OFD Sender: No OFD packet to send [04:06:03]OFD Sender: No OFD packet to send [04:06:08]OFD Sender: No OFD packet to send [04:06:13]OFD Sender: No OFD packet to send [04:06:18]OFD Sender: No OFD packet to send [04:06:23]OFD Sender: No OFD packet to send [04:06:28]OFD Sender: No OFD packet to send [04:06:33]OFD Sender: No OFD packet to send [04:06:38]OFD Sender: No OFD packet to send [04:06:43]OFD Sender: No OFD packet to send [04:06:48]OFD Sender: No OFD packet to send [04:06:53]OFD Sender: No OFD packet to send [04:06:58]OFD Sender: No OFD packet to send [04:07:03]OFD Sender: No OFD packet to send [04:07:08]OFD Sender: No OFD packet to send [04:07:13]OFD Sender: No OFD packet to send [04:07:18]OFD Sender: No OFD packet to send [04:07:23]OFD Sender: No OFD packet to send [04:07:28]OFD Sender: No OFD packet to send [04:07:33]OFD Sender: No OFD packet to send [04:07:38]recv_with_timeout no data received [04:07:38]OFD Sender: No OFD packet to send [04:07:43]OFD Sender: No OFD packet to send [04:07:48]OFD Sender: No OFD packet to send [04:07:53]OFD Sender: No OFD packet to send [04:07:58]OFD Sender: No OFD packet to send [04:08:03]OFD Sender: No OFD packet to send [04:08:08]OFD Sender: No OFD packet to send [04:08:13]OFD Sender: No OFD packet to send [04:08:18]OFD Sender: No OFD packet to send [04:08:23]OFD Sender: No OFD packet to send [04:08:28]OFD Sender: No OFD packet to send [04:08:33]OFD Sender: No OFD packet to send [04:08:38]OFD Sender: No OFD packet to send [04:08:43]OFD Sender: No OFD packet to send [04:08:48]OFD Sender: No OFD packet to send [04:08:53]OFD Sender: No OFD packet to send [04:08:58]OFD Sender: No OFD packet to send [04:09:03]OFD Sender: No OFD packet to send [04:09:08]OFD Sender: No OFD packet to send [04:09:13]OFD Sender: No OFD packet to send [04:09:18]OFD Sender: No OFD packet to send [04:09:21]recv_with_timeout no data received [04:09:23]OFD Sender: No OFD packet to send [04:09:28]OFD Sender: No OFD packet to send [04:09:33]OFD Sender: No OFD packet to send [04:09:38]OFD Sender: No OFD packet to send [04:09:43]OFD Sender: No OFD packet to send [04:09:48]OFD Sender: No OFD packet to send [04:09:53]OFD Sender: No OFD packet to send [04:09:58]OFD Sender: No OFD packet to send [04:10:03]OFD Sender: No OFD packet to send [04:10:08]OFD Sender: No OFD packet to send [04:10:13]OFD Sender: No OFD packet to send [04:10:18]OFD Sender: No OFD packet to send [04:10:23]OFD Sender: No OFD packet to send [04:10:28]OFD Sender: No OFD packet to send [04:10:33]OFD Sender: No OFD packet to send [04:10:38]OFD Sender: No OFD packet to send [04:10:43]OFD Sender: No OFD packet to send [04:10:48]OFD Sender: No OFD packet to send [04:10:53]OFD Sender: No OFD packet to send [04:10:58]OFD Sender: No OFD packet to send [04:11:03]OFD Sender: No OFD packet to send [04:11:08]OFD Sender: No OFD packet to send [04:11:13]OFD Sender: No OFD packet to send [04:11:18]OFD Sender: No OFD packet to send [04:11:23]OFD Sender: No OFD packet to send [04:11:28]OFD Sender: No OFD packet to send [04:11:33]OFD Sender: No OFD packet to send [04:11:38]OFD Sender: No OFD packet to send [04:11:43]OFD Sender: No OFD packet to send [04:11:48]OFD Sender: No OFD packet to send [04:11:53]OFD Sender: No OFD packet to send [04:11:58]OFD Sender: No OFD packet to send [04:12:03]OFD Sender: No OFD packet to send [04:12:08]OFD Sender: No OFD packet to send [04:12:13]OFD Sender: No OFD packet to send [04:12:18]OFD Sender: No OFD packet to send [04:12:23]OFD Sender: No OFD packet to send [04:12:28]OFD Sender: No OFD packet to send [04:12:33]OFD Sender: No OFD packet to send [04:12:38]OFD Sender: No OFD packet to send [04:12:43]OFD Sender: No OFD packet to send [04:12:48]OFD Sender: No OFD packet to send [04:12:53]OFD Sender: No OFD packet to send [04:12:58]OFD Sender: No OFD packet to send [04:13:03]OFD Sender: No OFD packet to send [04:13:08]OFD Sender: No OFD packet to send [04:13:13]OFD Sender: No OFD packet to send [04:13:18]OFD Sender: No OFD packet to send [04:13:23]OFD Sender: No OFD packet to send [04:13:28]OFD Sender: No OFD packet to send [04:13:33]OFD Sender: No OFD packet to send [04:13:38]OFD Sender: No OFD packet to send [04:13:43]OFD Sender: No OFD packet to send [04:13:48]OFD Sender: No OFD packet to send [04:13:53]OFD Sender: No OFD packet to send [04:13:58]OFD Sender: No OFD packet to send [04:14:03]OFD Sender: No OFD packet to send [04:14:08]OFD Sender: No OFD packet to send [04:14:13]OFD Sender: No OFD packet to send [04:14:18]OFD Sender: No OFD packet to send [04:14:23]OFD Sender: No OFD packet to send [04:14:28]OFD Sender: No OFD packet to send [04:14:33]OFD Sender: No OFD packet to send [04:14:38]OFD Sender: No OFD packet to send [04:14:43]OFD Sender: No OFD packet to send [04:14:48]OFD Sender: No OFD packet to send [04:14:53]OFD Sender: No OFD packet to send [04:14:58]OFD Sender: No OFD packet to send [04:15:03]OFD Sender: No OFD packet to send [04:15:08]OFD Sender: No OFD packet to send [04:15:13]OFD Sender: No OFD packet to send [04:15:18]OFD Sender: No OFD packet to send [04:15:23]OFD Sender: No OFD packet to send [04:15:28]OFD Sender: No OFD packet to send [04:15:32]recv_with_timeout no data received [04:15:33]OFD Sender: No OFD packet to send [04:15:38]OFD Sender: No OFD packet to send [04:15:43]OFD Sender: No OFD packet to send [04:15:48]OFD Sender: No OFD packet to send [04:15:53]OFD Sender: No OFD packet to send [04:15:58]OFD Sender: No OFD packet to send [04:16:03]OFD Sender: No OFD packet to send [04:16:08]OFD Sender: No OFD packet to send [04:16:13]OFD Sender: No OFD packet to send [04:16:19]OFD Sender: No OFD packet to send [04:16:24]OFD Sender: No OFD packet to send [04:16:29]OFD Sender: No OFD packet to send [04:16:34]OFD Sender: No OFD packet to send [04:16:39]OFD Sender: No OFD packet to send [04:16:44]OFD Sender: No OFD packet to send [04:16:49]OFD Sender: No OFD packet to send [04:16:54]OFD Sender: No OFD packet to send [04:16:59]OFD Sender: No OFD packet to send [04:17:04]OFD Sender: No OFD packet to send [04:17:09]OFD Sender: No OFD packet to send [04:17:14]OFD Sender: No OFD packet to send [04:17:19]OFD Sender: No OFD packet to send [04:17:24]OFD Sender: No OFD packet to send [04:17:29]OFD Sender: No OFD packet to send [04:17:34]OFD Sender: No OFD packet to send [04:17:39]OFD Sender: No OFD packet to send [04:17:44]OFD Sender: No OFD packet to send [04:17:49]OFD Sender: No OFD packet to send [04:17:54]OFD Sender: No OFD packet to send [04:17:59]OFD Sender: No OFD packet to send [04:18:04]OFD Sender: No OFD packet to send [04:18:09]OFD Sender: No OFD packet to send [04:18:14]OFD Sender: No OFD packet to send [04:18:19]OFD Sender: No OFD packet to send [04:18:24]OFD Sender: No OFD packet to send [04:18:29]OFD Sender: No OFD packet to send [04:18:34]OFD Sender: No OFD packet to send [04:18:39]OFD Sender: No OFD packet to send [04:18:44]OFD Sender: No OFD packet to send [04:18:49]OFD Sender: No OFD packet to send [04:18:54]OFD Sender: No OFD packet to send [04:18:59]OFD Sender: No OFD packet to send [04:19:04]OFD Sender: No OFD packet to send [04:19:09]OFD Sender: No OFD packet to send [04:19:14]OFD Sender: No OFD packet to send [04:19:19]OFD Sender: No OFD packet to send [04:19:20]recv_with_timeout no data received [04:19:24]OFD Sender: No OFD packet to send [04:19:29]OFD Sender: No OFD packet to send [04:19:34]OFD Sender: No OFD packet to send [04:19:39]OFD Sender: No OFD packet to send [04:19:44]OFD Sender: No OFD packet to send [04:19:49]OFD Sender: No OFD packet to send [04:19:54]OFD Sender: No OFD packet to send [04:19:59]OFD Sender: No OFD packet to send [04:20:04]OFD Sender: No OFD packet to send [04:20:09]OFD Sender: No OFD packet to send [04:20:14]OFD Sender: No OFD packet to send [04:20:19]OFD Sender: No OFD packet to send [04:20:24]OFD Sender: No OFD packet to send [04:20:29]OFD Sender: No OFD packet to send [04:20:34]OFD Sender: No OFD packet to send [04:20:39]OFD Sender: No OFD packet to send [04:20:44]OFD Sender: No OFD packet to send [04:20:49]OFD Sender: No OFD packet to send [04:20:54]OFD Sender: No OFD packet to send [04:20:59]OFD Sender: No OFD packet to send [04:21:04]OFD Sender: No OFD packet to send [04:21:09]OFD Sender: No OFD packet to send [04:21:14]OFD Sender: No OFD packet to send [04:21:19]OFD Sender: No OFD packet to send [04:21:24]OFD Sender: No OFD packet to send [04:21:29]OFD Sender: No OFD packet to send [04:21:34]OFD Sender: No OFD packet to send [04:21:39]OFD Sender: No OFD packet to send [04:21:44]OFD Sender: No OFD packet to send [04:21:49]OFD Sender: No OFD packet to send [04:21:54]OFD Sender: No OFD packet to send [04:21:59]OFD Sender: No OFD packet to send [04:22:04]OFD Sender: No OFD packet to send [04:22:09]OFD Sender: No OFD packet to send [04:22:14]OFD Sender: No OFD packet to send [04:22:19]OFD Sender: No OFD packet to send [04:22:24]OFD Sender: No OFD packet to send [04:22:29]OFD Sender: No OFD packet to send [04:22:34]recv_with_timeout no data received [04:22:34]OFD Sender: No OFD packet to send [04:22:39]OFD Sender: No OFD packet to send [04:22:44]OFD Sender: No OFD packet to send [04:22:49]OFD Sender: No OFD packet to send [04:22:54]OFD Sender: No OFD packet to send [04:22:59]OFD Sender: No OFD packet to send [04:23:04]OFD Sender: No OFD packet to send [04:23:09]OFD Sender: No OFD packet to send [04:23:14]OFD Sender: No OFD packet to send [04:23:19]OFD Sender: No OFD packet to send [04:23:24]OFD Sender: No OFD packet to send [04:23:29]OFD Sender: No OFD packet to send [04:23:34]OFD Sender: No OFD packet to send [04:23:39]OFD Sender: No OFD packet to send [04:23:44]OFD Sender: No OFD packet to send [04:23:49]OFD Sender: No OFD packet to send [04:23:54]OFD Sender: No OFD packet to send [04:23:59]OFD Sender: No OFD packet to send [04:24:00]recv_with_timeout no data received [04:24:04]OFD Sender: No OFD packet to send [04:24:09]OFD Sender: No OFD packet to send [04:24:14]OFD Sender: No OFD packet to send [04:24:19]OFD Sender: No OFD packet to send [04:24:24]OFD Sender: No OFD packet to send [04:24:29]OFD Sender: No OFD packet to send [04:24:34]OFD Sender: No OFD packet to send [04:24:36]accept exits with 10 [04:24:36]New connection [04:24:36]New thread 3066887524 created [04:24:36]Thread 3067030884 joined [04:24:36]Waiting for new connection... [04:24:36] Sock 10.Parse request [04:24:36]Sock 10.Check first char [04:24:36]Sock 10.First char is OK [04:24:36]request: POST /json_proto HTTP/1.0 [04:24:36]Method: POST [04:24:36]URL: /json_proto [04:24:36]Method is POST - this is cgi request [04:24:36]url: /json_proto [04:24:36]query_string will be loaded in cgi processing [04:24:36]execute_cgi json_proto POST (null) [04:24:36]execute_cgi path=json_proto method=POST [04:24:36]POST find Content-Length [04:24:36]Host: 172.17.43.132:8080 [04:24:36]Content-Length: 623 [04:24:36]Content-Type: application/json [04:24:36] [04:24:36]POST finish read [04:24:36]Found Content-Length = 623 [04:24:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183849", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 3.000, "sum" : 420.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 420.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:24:36]execute_script... [04:24: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 : (3)183849", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 3.000, "sum" : 420.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 420.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:24:36]POST & json_proto [04:24:36]process_json_proto [04:24:36]json parsed OK: [04:24:36]protocol is kg_v1.0 [04:24:36]action value=close_receipt [04:24:36]process_action close_receipt [04:24:36]cmd_close_receipt [04:24:36]MH_GetDate [04:24:36]Write to MH i2c: F0 00 00 04 04 F7 [04:24:36]Write i2c OK [04:24:36]MH_I2C_Read... [04:24:36]Read from MH i2c: F0 [04:24:36]MH_I2C_Read... [04:24:36]Read from MH i2c: F0 09 00 [04:24:36]MH_I2C_Read... [04:24:36]Read from MH i2c: F0 09 00 04 04 00 86 19 A7 66 AA D0 A5 66 31 [04:24:36]GetLastDocTimeStamp 1722220150 [04:24:36]current date 1722227078 [04:24:36]FM_GetShiftState [04:24:36]SAM_PROTO_GetShiftState [04:24:36]wFMCommunicate request_size=4 [04:24:36]MH_SAM_APDU [04:24:36]CAPDU: 80 13 01 00 [04:24:36]Write to MH i2c: E2 08 00 05 04 80 13 01 00 00 00 00 00 86 [04:24:36]Write i2c OK [04:24:36]MH_I2C_Read... [04:24:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:24:36]Read from MH i2c: E2 [04:24:36]MH_I2C_Read... [04:24:36]Read from MH i2c: E2 0E 00 [04:24:36]MH_I2C_Read... [04:24:36]Read from MH i2c: E2 0E 00 05 04 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 22 [04:24:36]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [04:24:36]wFMCommunicate OK [04:24:36]SAM_PROTO_GetShiftState done [04:24:36]FM_GetShiftState done [04:24:36]opened in 1722211496 [04:24:36]opened+sec_in_day 1722297896 [04:24:36]quantity*price = 42000 [04:24:36]sum+1 = 42001 [04:24:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 420.00 НСП 1% : 3.72 НДС 12% : 44.60 Наличными: 420.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 9 29.07.2024 04:24 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41820 ФПД: 113605865106346 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T042438&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41820&fm=113605865106346&tin=02508201610067®Number=0000000000092626&sum=42000 0 [04:24:37]StoreToDocumentArchive [04:24:37]shift 427 fd 41820 [04:24:37]save to /storage/0427/doc_00041820 [04:24:37]save last doc name /storage/0427/doc_00041820 to /storage/kkm_last_doc_name [04:24:37]save OK [04:24:37]Clear old archive folders... [04:24:37]ProcessDocumentItem done err = 0, tmpTLVsize=275 [04:24:37]tlvbuf is 013DB280 [04:24:37]SAM_PROTO_ClearQueue [04:24:37]wFMCommunicate request_size=4 [04:24:37]MH_SAM_APDU [04:24:37]CAPDU: 80 09 00 00 [04:24:37]Write to MH i2c: E2 08 00 12 04 80 09 00 00 00 00 00 00 88 [04:24:37]Write i2c OK [04:24:37]MH_I2C_Read... [04:24:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:24:37]Read from MH i2c: E2 [04:24:37]MH_I2C_Read... [04:24:37]Read from MH i2c: E2 03 00 [04:24:37]MH_I2C_Read... [04:24:37]Read from MH i2c: E2 03 00 12 04 00 90 00 8A [04:24:37]RAPDU: 90 00 [04:24:37]wFMCommunicate OK [04:24:37]SAM_PROTO_ClearQueue done [04:24:37]KKMCreateOFDPacket [04:24:37]OFDProtocolAddRootSTLVToBuf [04:24:37]FM_MakeSignedData [04:24:37]FM_MakeSignedData [04:24:37]SAM_PROTO_SignData [04:24:37]wFMCommunicate request_size=4 [04:24:37]MH_SAM_APDU [04:24:37]CAPDU: 80 0D 01 02 [04:24:37]Write to MH i2c: E2 08 00 13 04 80 0D 01 02 00 00 00 00 90 [04:24:37]Write i2c OK [04:24:37]MH_I2C_Read... [04:24:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:24:37]Read from MH i2c: E2 [04:24:37]MH_I2C_Read... [04:24:37]Read from MH i2c: E2 03 00 [04:24:37]MH_I2C_Read... [04:24:37]Read from MH i2c: E2 03 00 13 04 00 90 00 8B [04:24:37]RAPDU: 90 00 [04:24:37]wFMCommunicate OK [04:24:37]wFMCommunicate request_size=255 [04:24:37]MH_SAM_APDU [04:24:37]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 10 A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 86 19 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 [04:24:37]Write to MH i2c: E2 02 01 14 04 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 10 A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 86 19 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 00 00 65 [04:24:37]Write i2c OK [04:24:37]MH_I2C_Read... [04:24:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:24:37]Read from MH i2c: E2 [04:24:37]MH_I2C_Read... [04:24:37]Read from MH i2c: E2 03 00 [04:24:37]MH_I2C_Read... [04:24:37]Read from MH i2c: E2 03 00 14 04 00 90 00 8C [04:24:37]RAPDU: 90 00 [04:24:37]wFMCommunicate OK [04:24:37]wFMCommunicate request_size=34 [04:24:37]MH_SAM_APDU [04:24:37]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 5C A3 00 00 35 04 06 00 67 52 ED 3B EB AA [04:24:37]Write to MH i2c: E2 25 00 15 04 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 5C A3 00 00 35 04 06 00 67 52 ED 3B EB AA 00 00 D2 [04:24:37]Write i2c OK [04:24:37]MH_I2C_Read... [04:24:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:24:37]Read from MH i2c: E2 [04:24:37]MH_I2C_Read... [04:24:37]Read from MH i2c: E2 03 00 [04:24:37]MH_I2C_Read... [04:24:37]Read from MH i2c: E2 03 00 15 04 00 90 00 8D [04:24:37]RAPDU: 90 00 [04:24:37]wFMCommunicate OK [04:24:37]wFMCommunicate request_size=4 [04:24:37]MH_SAM_APDU [04:24:37]CAPDU: 80 0D 03 02 [04:24:37]Write to MH i2c: E2 08 00 16 04 80 0D 03 02 00 00 00 00 95 [04:24:37]Write i2c OK [04:24:37]MH_I2C_Read... [04:24:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:24:37]Read from MH i2c: E2 [04:24:37]MH_I2C_Read... [04:24:37]Read from MH i2c: E2 0B 00 [04:24:37]MH_I2C_Read... [04:24:37]Read from MH i2c: E2 0B 00 16 04 00 A9 DC DE 6C 4A 8C D1 46 90 00 52 [04:24:37]RAPDU: A9 DC DE 6C 4A 8C D1 46 90 00 [04:24:37]wFMCommunicate OK [04:24:37]SAM_PROTO_SignData done [04:24:37]FM_MakeSignedData done [04:24:37]CreateOFDProtocolMessage [04:24:37]wFMCommunicate request_size=4 [04:24:37]MH_SAM_APDU [04:24:37]CAPDU: 80 11 00 00 [04:24:37]Write to MH i2c: E2 08 00 17 04 80 11 00 00 00 00 00 00 95 [04:24:37]Write i2c OK [04:24:37]MH_I2C_Read... [04:24:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:24:37]Read from MH i2c: E2 [04:24:37]MH_I2C_Read... [04:24:37]Read from MH i2c: E2 17 00 [04:24:37]MH_I2C_Read... [04:24:37]Read from MH i2c: E2 17 00 17 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 F1 [04:24:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [04:24:38]wFMCommunicate OK [04:24:38]CreateOFDProtocolMessage done [04:24:38]OFDSenderStorePacket 41820 [04:24:38]StoreOFDPacket docnum=41820 [04:24:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 27 01 00 00 8F 02 1F 01 AF 01 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 10 A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 86 19 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 5C A3 00 00 35 04 06 00 67 52 ED 3B EB AA A9 DC DE 6C 4A 8C D1 46 [04:24:38]CheckFolder [04:24:38]dirname=/storage/ofd_packets [04:24:38]CheckFolder done [04:24:38]ProducePacketName [04:24:38]name=ofd_packets/00041820 [04:24:38]NVStorageSaveData ofd_packets/00041820 [04:24:38]File name is /storage/ofd_packets/00041820 [04:24:38]Write 325 bytes [04:24:38]NVStorageSaveData done [04:24:38]OFDSenderStorePacket done [04:24:38]KKMCreateOFDPacket done [04:24:38]NVStorageSaveData kkm_last_timestamp [04:24:38]File name is /storage/kkm_last_timestamp [04:24:38]Write 4 bytes [04:24:38]NVStorageSaveData done [04:24:38]ExternCall_PrintAddStr [04:24:38]wPrintStart [04:24:38]Write to MH i2c: 01 00 00 18 04 1C [04:24:38]Write i2c OK [04:24:38]MH_I2C_Read... [04:24:38]Read from MH i2c: 01 [04:24:38]MH_I2C_Read... [04:24:38]Read from MH i2c: 01 07 00 [04:24:38]MH_I2C_Read... [04:24:38]Read from MH i2c: 01 07 00 18 04 00 00 00 00 00 FF 0F 31 [04:24:38]RasterBufferAndPrint [04:24:38]line Счет N : (3)183849 [04:24:38]line ИНН: 02508201610067 [04:24:38]line Контрольно-Кассовый Чек [04:24:38]line ПРОДАЖА [04:24:38]line Товар: 48743587 [04:24:38]line Сигареты Winston XStyle Silver [04:24:38]line 3.000 * 140.00 [04:24:38]line = 420.00 [04:24:38]line НДС 12% НСП 1% [04:24:38]line > о реализуемом товаре [04:24:38]line ИТОГО: 420.00 [04:24:38]line НСП 1% : 3.72 [04:24:38]line НДС 12% : 44.60 [04:24:38]line Наличными: 420.00 [04:24:38]line Безнал.: 0.00 [04:24:38]line Место: АЗС № 97 "Партнер Нефть" [04:24:38]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [04:24:38]line СНО: Общий режим [04:24:38]line Чек 9 29.07.2024 04:24 [04:24:38]line Смена: 427 ФФД: 1.0 [04:24:38]line ЗНМ: 0300000053 [04:24:38]line РНМ: 0000000000092626 [04:24:38]line Версия ККМ: 001 [04:24:38]line ФМ: 0000000000874958 [04:24:38]line ФД: 41820 [04:24:38]line ФПД: 113605865106346 [04:24:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T042438&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41820&fm=113605865106346&tin=02508201610067®Number=0000000000092626&sum=42000 [04:24:38]line 0 [04:24:38]OFD Sender: Processing packet 41820 [packets to send 57, broken 56] [04:24:38]ProducePacketName [04:24:38]name=ofd_packets/00041820 [04:24:38]OFD Sender: To server: pG, [04:24:38]CommunicateWithHost lk.salyk.kg:30040 [04:24:38]ConnectInit lk.salyk.kg [04:24:38]written 0, free lines is 4095 [04:24:38]Write to MH i2c: 01 00 00 41 04 45 [04:24:38]Write i2c OK [04:24:38]MH_I2C_Read... [04:24:38]Read from MH i2c: 01 [04:24:38]MH_I2C_Read... [04:24:38]Read from MH i2c: 01 07 00 [04:24:38]MH_I2C_Read... [04:24:38]Read from MH i2c: 01 07 00 41 04 00 00 00 00 00 01 0D 5A [04:24:38]RasterBufferAndPrint [04:24:38]line [04:24:38]line [04:24:38]line [04:24:38]line [04:24:38]line [04:24:38]written 0, free lines is 3335 [04:24:38]MH_Cut [04:24:38]Write to MH i2c: D1 01 00 48 04 01 1E [04:24:38]Write i2c OK [04:24:38]MH_I2C_Read... [04:24:38]Read from MH i2c: D1 [04:24:38]MH_I2C_Read... [04:24:38]Read from MH i2c: D1 01 00 [04:24:38]MH_I2C_Read... [04:24:38]Read from MH i2c: D1 01 00 48 04 00 1D [04:24:38]Write to MH i2c: 01 00 00 49 04 4D [04:24:38]Write i2c OK [04:24:38]MH_I2C_Read... [04:24:39]Connected sock=9 [04:24:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 27 01 00 00 8F 02 1F 01 AF 01 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 10 A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 86 19 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 5C A3 00 00 35 04 06 00 67 52 ED 3B EB AA A9 DC DE 6C 4A 8C D1 46 [04:24:39]*** Cut start [04:24:39]*** Partial cut [04:24:39]*** CUTSNS_PIN = 1 [04:24:39]*** CUTSNS_PIN = 0 [04:24:39]*** Brake cut motor [04:24:40]Read from MH i2c: 01 [04:24:40]MH_I2C_Read... [04:24:40]*** Stop cut motor [04:24:40]*** Cut end [04:24:40]Read from MH i2c: 01 07 00 [04:24:40]MH_I2C_Read... [04:24:40]Read from MH i2c: 01 07 00 49 04 00 00 00 00 00 FF 0F 62 [04:24:40]process_action close_receipt done [04:24:40]requested_data is exist [04:24:40]produce_requested_data [04:24:40]requested_item fm.sn is exist - process it [04:24:40]wFMCommunicate request_size=4 [04:24:40]MH_SAM_APDU [04:24:40]CAPDU: 80 11 00 00 [04:24:40]Write to MH i2c: E2 08 00 4A 04 80 11 00 00 00 00 00 00 C8 [04:24:40]Write i2c OK [04:24:40]MH_I2C_Read... [04:24:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:24:40]Read from MH i2c: E2 [04:24:40]MH_I2C_Read... [04:24:40]Read from MH i2c: E2 17 00 [04:24:40]MH_I2C_Read... [04:24:40]Read from MH i2c: E2 17 00 4A 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 24 [04:24:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [04:24:40]wFMCommunicate OK [04:24:40]requested_item fd.num is exist - process it [04:24:40]SAM_PROTO_GetFieldsCounters [04:24:40]wFMCommunicate request_size=4 [04:24:40]MH_SAM_APDU [04:24:40]CAPDU: 80 13 00 00 [04:24:40]Write to MH i2c: E2 08 00 4B 04 80 13 00 00 00 00 00 00 CB [04:24:40]Write i2c OK [04:24:40]MH_I2C_Read... [04:24:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:24:40]Read from MH i2c: E2 [04:24:40]MH_I2C_Read... [04:24:40]Read from MH i2c: E2 62 00 [04:24:40]MH_I2C_Read... [04:24:40]Read from MH i2c: E2 62 00 4B 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 5C A3 00 00 0E 04 04 00 AB 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 BB [04:24:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 5C A3 00 00 0E 04 04 00 AB 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:24:40]wFMCommunicate OK [04:24:40]SAM_PROTO_GetFieldsCounters done [04:24:40]requested_item shift.num is exist - process it [04:24:40]requested_item shift.opened is exist - process it [04:24:40]req_shift_opened [04:24:40]FM_GetShiftState [04:24:40]SAM_PROTO_GetShiftState [04:24:40]wFMCommunicate request_size=4 [04:24:40]MH_SAM_APDU [04:24:40]CAPDU: 80 13 01 00 [04:24:40]Write to MH i2c: E2 08 00 4C 04 80 13 01 00 00 00 00 00 CD [04:24:40]Write i2c OK [04:24:40]MH_I2C_Read... [04:24:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:24:40]Read from MH i2c: E2 [04:24:40]MH_I2C_Read... [04:24:40]Read from MH i2c: E2 0E 00 [04:24:40]MH_I2C_Read... [04:24:40]Read from MH i2c: E2 0E 00 4C 04 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 69 [04:24:40]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [04:24:40]wFMCommunicate OK [04:24:40]SAM_PROTO_GetShiftState done [04:24:40]FM_GetShiftState done [04:24:40]req_shift_opened done [04:24:40]requested_item shift.open_date is exist - process it [04:24:40]req_shift_open_date [04:24:40]req_shift_open_date done [04:24:40]produce_requested_data done [04:24:40]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41820,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [04:24:40]process_action_free close_receipt [04:24:40]json_value_free [04:24:40]json_value_free done [04:24:40]process_json_proto returns [04:24:40]Send response to host [04:24:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41820,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [04:24:40]free response buf [04:24:40]execute_script done [04:24:40]execute_script returns [04:24:40]free content buf [04:24:40]Sock 10.Close socket [04:24:40]Sock 10.Thread stoped [04:24:44]recv_with_timeout no data received [04:24:44]CommunicateWithHost answer receiving error [04:24:44]CommunicateWithHost err = -3 [04:24:44]OFD Sender: Server communicate error [04:24:44]recv_with_timeout no data received [04:24:49]OFD Sender: Processing packet 41820 [packets to send 57, broken 56] [04:24:49]ProducePacketName [04:24:49]name=ofd_packets/00041820 [04:24:49]OFD Sender: To server: pG, [04:24:49]CommunicateWithHost lk.salyk.kg:30040 [04:24:49]ConnectInit lk.salyk.kg [04:24:54]Connected sock=10 [04:24:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 27 01 00 00 8F 02 1F 01 AF 01 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 10 A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 86 19 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 5C A3 00 00 35 04 06 00 67 52 ED 3B EB AA A9 DC DE 6C 4A 8C D1 46 [04:24: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 35 38 4F 00 00 00 04 6B 47 00 C7 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 5C A3 00 00 F4 03 04 00 A8 C5 A6 66 B6 04 01 00 00 CA 00 B8 38 12 5F 1F D6 [04:24:54]CommunicateWithHost err = 0 [04:24:54]CheckOFDResponse [04:24:54]1017 (14) - 77093643461234 [04:24:54]1041 (16) - 0000000000874958 [04:24:54]1040 (4) - 41820 [04:24:54]1012 (4) - 28.07.2024 22:26 [04:24:54]1206 (1) - 0 [04:24:54]OFD Sender: Remove packet 41820 [04:24:54]ProducePacketName [04:24:54]name=ofd_packets/00041820 [04:24:54]NVStorageDeleteData [04:24:55]OFD Sender: No OFD packet to send [04:25:00]OFD Sender: No OFD packet to send [04:25:05]OFD Sender: No OFD packet to send [04:25:10]OFD Sender: No OFD packet to send [04:25:15]OFD Sender: No OFD packet to send [04:25:20]OFD Sender: No OFD packet to send [04:25:25]OFD Sender: No OFD packet to send [04:25:30]OFD Sender: No OFD packet to send [04:25:35]OFD Sender: No OFD packet to send [04:25:40]OFD Sender: No OFD packet to send [04:25:45]OFD Sender: No OFD packet to send [04:25:50]OFD Sender: No OFD packet to send [04:25:55]OFD Sender: No OFD packet to send [04:26:00]OFD Sender: No OFD packet to send [04:26:05]OFD Sender: No OFD packet to send [04:26:10]OFD Sender: No OFD packet to send [04:26:15]OFD Sender: No OFD packet to send [04:26:15]recv_with_timeout no data received [04:26:20]OFD Sender: No OFD packet to send [04:26:25]OFD Sender: No OFD packet to send [04:26:30]OFD Sender: No OFD packet to send [04:26:35]OFD Sender: No OFD packet to send [04:26:40]OFD Sender: No OFD packet to send [04:26:45]OFD Sender: No OFD packet to send [04:26:50]OFD Sender: No OFD packet to send [04:26:55]OFD Sender: No OFD packet to send [04:27:00]OFD Sender: No OFD packet to send [04:27:05]OFD Sender: No OFD packet to send [04:27:10]OFD Sender: No OFD packet to send [04:27:15]OFD Sender: No OFD packet to send [04:27:20]OFD Sender: No OFD packet to send [04:27:20]accept exits with 8 [04:27:20]New connection [04:27:20]New thread 3067030884 created [04:27:20]Thread 3066887524 joined [04:27:20]Waiting for new connection... [04:27:20] Sock 8.Parse request [04:27:20]Sock 8.Check first char [04:27:20]Sock 8.First char is OK [04:27:20]request: POST /json_proto HTTP/1.0 [04:27:20]Method: POST [04:27:20]URL: /json_proto [04:27:20]Method is POST - this is cgi request [04:27:20]url: /json_proto [04:27:20]query_string will be loaded in cgi processing [04:27:20]execute_cgi json_proto POST (null) [04:27:20]execute_cgi path=json_proto method=POST [04:27:20]POST find Content-Length [04:27:20]Host: 172.17.43.132:8080 [04:27:20]Content-Length: 1398 [04:27:20]Content-Type: application/json [04:27:20] [04:27:20]POST finish read [04:27:20]Found Content-Length = 1398 [04:27:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183850", "tax_sys" : 0, "items" : [ { "code": "48744683", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster+", "price" : 143.00, "quantity" : 1.000, "sum" : 143.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 478.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:27:20]execute_script... [04:27:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183850", "tax_sys" : 0, "items" : [ { "code": "48744683", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster+", "price" : 143.00, "quantity" : 1.000, "sum" : 143.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 478.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:27:20]POST & json_proto [04:27:20]process_json_proto [04:27:20]json parsed OK: [04:27:20]protocol is kg_v1.0 [04:27:20]action value=close_receipt [04:27:20]process_action close_receipt [04:27:20]cmd_close_receipt [04:27:20]MH_GetDate [04:27:20]Write to MH i2c: F0 00 00 4D 04 40 [04:27:20]Write i2c OK [04:27:20]MH_I2C_Read... [04:27:20]Read from MH i2c: F0 [04:27:20]MH_I2C_Read... [04:27:20]Read from MH i2c: F0 09 00 [04:27:20]MH_I2C_Read... [04:27:20]Read from MH i2c: F0 09 00 4D 04 00 2A 1A A7 66 AA D0 A5 66 1F [04:27:20]GetLastDocTimeStamp 1722227078 [04:27:20]current date 1722227242 [04:27:20]FM_GetShiftState [04:27:20]SAM_PROTO_GetShiftState [04:27:20]wFMCommunicate request_size=4 [04:27:20]MH_SAM_APDU [04:27:20]CAPDU: 80 13 01 00 [04:27:20]Write to MH i2c: E2 08 00 4E 04 80 13 01 00 00 00 00 00 CF [04:27:20]Write i2c OK [04:27:21]MH_I2C_Read... [04:27:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:27:21]Read from MH i2c: E2 [04:27:21]MH_I2C_Read... [04:27:21]Read from MH i2c: E2 0E 00 [04:27:21]MH_I2C_Read... [04:27:21]Read from MH i2c: E2 0E 00 4E 04 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 6B [04:27:21]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [04:27:21]wFMCommunicate OK [04:27:21]SAM_PROTO_GetShiftState done [04:27:21]FM_GetShiftState done [04:27:21]opened in 1722211496 [04:27:21]opened+sec_in_day 1722297896 [04:27:21]quantity*price = 14300 [04:27:21]sum+1 = 14301 [04:27:21]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4640030091645 Сигареты ESSE Exchange M 1.000 * 150.00 = 150.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000054227 Напиток Кока-Кола 1л 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000310043 Вода Жалалабат 27 1л 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 478.00 НСП 1% : 4.23 НДС 12% : 50.76 Наличными: 478.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 10 29.07.2024 04:27 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41821 ФПД: 40977561595943 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T042723&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41821&fm=40977561595943&tin=02508201610067®Number=0000000000092626&sum=47800 0 [04:27:22]StoreToDocumentArchive [04:27:22]shift 427 fd 41821 [04:27:22]save to /storage/0427/doc_00041821 [04:27:22]save last doc name /storage/0427/doc_00041821 to /storage/kkm_last_doc_name [04:27:22]save OK [04:27:22]Clear old archive folders... [04:27:22]ProcessDocumentItem done err = 0, tmpTLVsize=594 [04:27:22]tlvbuf is 013C9460 [04:27:22]SAM_PROTO_ClearQueue [04:27:22]wFMCommunicate request_size=4 [04:27:22]MH_SAM_APDU [04:27:22]CAPDU: 80 09 00 00 [04:27:22]Write to MH i2c: E2 08 00 5B 04 80 09 00 00 00 00 00 00 D1 [04:27:22]Write i2c OK [04:27:22]MH_I2C_Read... [04:27:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:27:22]Read from MH i2c: E2 [04:27:22]MH_I2C_Read... [04:27:22]Read from MH i2c: E2 03 00 [04:27:22]MH_I2C_Read... [04:27:22]Read from MH i2c: E2 03 00 5B 04 00 90 00 D3 [04:27:22]RAPDU: 90 00 [04:27:22]wFMCommunicate OK [04:27:22]SAM_PROTO_ClearQueue done [04:27:22]KKMCreateOFDPacket [04:27:22]OFDProtocolAddRootSTLVToBuf [04:27:22]FM_MakeSignedData [04:27:22]FM_MakeSignedData [04:27:22]SAM_PROTO_SignData [04:27:22]wFMCommunicate request_size=4 [04:27:22]MH_SAM_APDU [04:27:22]CAPDU: 80 0D 01 02 [04:27:22]Write to MH i2c: E2 08 00 5C 04 80 0D 01 02 00 00 00 00 D9 [04:27:22]Write i2c OK [04:27:22]MH_I2C_Read... [04:27:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:27:22]Read from MH i2c: E2 [04:27:22]MH_I2C_Read... [04:27:22]Read from MH i2c: E2 03 00 [04:27:22]MH_I2C_Read... [04:27:22]Read from MH i2c: E2 03 00 5C 04 00 90 00 D4 [04:27:22]RAPDU: 90 00 [04:27:22]wFMCommunicate OK [04:27:22]wFMCommunicate request_size=255 [04:27:22]MH_SAM_APDU [04:27:22]CAPDU: 80 0D 02 02 FA 03 00 52 02 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF [04:27:22]Write to MH i2c: E2 02 01 5D 04 80 0D 02 02 FA 00 03 00 52 02 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF 00 00 CB [04:27:22]Write i2c OK [04:27:22]MH_I2C_Read... [04:27:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:27:22]Read from MH i2c: E2 [04:27:22]MH_I2C_Read... [04:27:22]Read from MH i2c: E2 03 00 [04:27:22]MH_I2C_Read... [04:27:22]Read from MH i2c: E2 03 00 5D 04 00 90 00 D5 [04:27:22]RAPDU: 90 00 [04:27:22]wFMCommunicate OK [04:27:22]wFMCommunicate request_size=255 [04:27:22]MH_SAM_APDU [04:27:22]CAPDU: 80 0D 02 02 FA D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 BA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 13 00 00 00 00 07 04 06 00 B8 BA 00 00 00 00 39 04 06 00 00 [04:27:22]Write to MH i2c: E2 02 01 5E 04 80 0D 02 02 FA 00 D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 BA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 13 00 00 00 00 07 04 06 00 B8 BA 00 00 00 00 39 04 06 00 00 00 00 8E [04:27:22]Write i2c OK [04:27:22]MH_I2C_Read... [04:27:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:27:23]Read from MH i2c: E2 [04:27:23]MH_I2C_Read... [04:27:23]Read from MH i2c: E2 03 00 [04:27:23]MH_I2C_Read... [04:27:23]Read from MH i2c: E2 03 00 5E 04 00 90 00 D6 [04:27:23]RAPDU: 90 00 [04:27:23]wFMCommunicate OK [04:27:23]wFMCommunicate request_size=103 [04:27:23]MH_SAM_APDU [04:27:23]CAPDU: 80 0D 02 02 62 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 2B 1A A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 5D A3 00 00 35 04 06 00 25 44 D5 00 B0 27 [04:27:23]Write to MH i2c: E2 6A 00 5F 04 80 0D 02 02 62 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 2B 1A A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 5D A3 00 00 35 04 06 00 25 44 D5 00 B0 27 00 00 AD [04:27:23]Write i2c OK [04:27:23]MH_I2C_Read... [04:27:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:27:23]Read from MH i2c: E2 [04:27:23]MH_I2C_Read... [04:27:23]Read from MH i2c: E2 03 00 [04:27:23]MH_I2C_Read... [04:27:23]Read from MH i2c: E2 03 00 5F 04 00 90 00 D7 [04:27:23]RAPDU: 90 00 [04:27:23]wFMCommunicate OK [04:27:23]wFMCommunicate request_size=4 [04:27:23]MH_SAM_APDU [04:27:23]CAPDU: 80 0D 03 02 [04:27:23]Write to MH i2c: E2 08 00 60 04 80 0D 03 02 00 00 00 00 DF [04:27:23]Write i2c OK [04:27:23]MH_I2C_Read... [04:27:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:27:23]Read from MH i2c: E2 [04:27:23]MH_I2C_Read... [04:27:23]Read from MH i2c: E2 0B 00 [04:27:23]MH_I2C_Read... [04:27:23]Read from MH i2c: E2 0B 00 60 04 00 73 4F 53 D8 E2 2D 8C AA 90 00 12 [04:27:23]RAPDU: 73 4F 53 D8 E2 2D 8C AA 90 00 [04:27:23]wFMCommunicate OK [04:27:23]SAM_PROTO_SignData done [04:27:23]FM_MakeSignedData done [04:27:23]CreateOFDProtocolMessage [04:27:23]wFMCommunicate request_size=4 [04:27:23]MH_SAM_APDU [04:27:23]CAPDU: 80 11 00 00 [04:27:23]Write to MH i2c: E2 08 00 61 04 80 11 00 00 00 00 00 00 DF [04:27:23]Write i2c OK [04:27:23]MH_I2C_Read... [04:27:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:27:23]Read from MH i2c: E2 [04:27:23]MH_I2C_Read... [04:27:23]Read from MH i2c: E2 17 00 [04:27:23]MH_I2C_Read... [04:27:23]Read from MH i2c: E2 17 00 61 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 3B [04:27:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [04:27:23]wFMCommunicate OK [04:27:23]CreateOFDProtocolMessage done [04:27:23]OFDSenderStorePacket 41821 [04:27:23]StoreOFDPacket docnum=41821 [04:27:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 66 02 00 00 E5 B9 5E 02 28 09 5A 03 01 00 03 00 52 02 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 BA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 13 00 00 00 00 07 04 06 00 B8 BA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 2B 1A A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 5D A3 00 00 35 04 06 00 25 44 D5 00 B0 27 73 4F 53 D8 E2 2D 8C AA [04:27:23]CheckFolder [04:27:23]dirname=/storage/ofd_packets [04:27:23]CheckFolder done [04:27:23]ProducePacketName [04:27:23]name=ofd_packets/00041821 [04:27:23]NVStorageSaveData ofd_packets/00041821 [04:27:23]File name is /storage/ofd_packets/00041821 [04:27:23]Write 644 bytes [04:27:23]NVStorageSaveData done [04:27:23]OFDSenderStorePacket done [04:27:23]KKMCreateOFDPacket done [04:27:23]NVStorageSaveData kkm_last_timestamp [04:27:23]File name is /storage/kkm_last_timestamp [04:27:23]Write 4 bytes [04:27:23]NVStorageSaveData done [04:27:23]ExternCall_PrintAddStr [04:27:23]wPrintStart [04:27:23]Write to MH i2c: 01 00 00 62 04 66 [04:27:23]Write i2c OK [04:27:23]MH_I2C_Read... [04:27:23]Read from MH i2c: 01 [04:27:23]MH_I2C_Read... [04:27:23]Read from MH i2c: 01 07 00 [04:27:23]MH_I2C_Read... [04:27:23]Read from MH i2c: 01 07 00 62 04 00 00 00 00 00 FF 0F 7B [04:27:23]RasterBufferAndPrint [04:27:23]line Счет N : (3)183850 [04:27:23]line ИНН: 02508201610067 [04:27:23]line Контрольно-Кассовый Чек [04:27:23]line ПРОДАЖА [04:27:23]line Товар: 48744683 [04:27:23]line Сигареты Winston XStyle Caster+ [04:27:23]line 1.000 * 143.00 [04:27:23]line = 143.00 [04:27:23]line НДС 12% НСП 1% [04:27:23]line > о реализуемом товаре [04:27:23]line Товар: 4640030091645 [04:27:23]line Сигареты ESSE Exchange M [04:27:23]line 1.000 * 150.00 [04:27:23]line = 150.00 [04:27:23]line НДС 12% НСП 1% [04:27:23]line > о реализуемом товаре [04:27:23]line Товар: 5449000054227 [04:27:23]line Напиток Кока-Кола 1л [04:27:23]line 1.000 * 125.00 [04:27:23]line = 125.00 [04:27:23]line НДС 12% НСП 1% [04:27:23]line > о реализуемом товаре [04:27:23]line Товар: 4700000310043 [04:27:23]line Вода Жалалабат 27 1л [04:27:23]line 1.000 * 60.00 [04:27:23]line = 60.00 [04:27:23]line НДС 12% НСП 1% [04:27:23]line > о реализуемом товаре [04:27:23]line ИТОГО: 478.00 [04:27:23]line НСП 1% : 4.23 [04:27:23]line НДС 12% : 50.76 [04:27:23]line Наличными: 478.00 [04:27:23]line Безнал.: 0.00 [04:27:23]line Место: АЗС № 97 "Партнер Нефть" [04:27:23]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [04:27:23]line СНО: Общий режим [04:27:23]line Чек 10 29.07.2024 04:27 [04:27:23]line Смена: 427 ФФД: 1.0 [04:27:23]line ЗНМ: 0300000053 [04:27:23]line РНМ: 0000000000092626 [04:27:23]line Версия ККМ: 001 [04:27:23]line ФМ: 0000000000874958 [04:27:23]line ФД: 41821 [04:27:23]line ФПД: 40977561595943 [04:27:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T042723&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41821&fm=40977561595943&tin=02508201610067®Number=0000000000092626&sum=47800 [04:27:23]OFD Sender: Processing packet 41821 [packets to send 57, broken 56] [04:27:23]ProducePacketName [04:27:23]name=ofd_packets/00041821 [04:27:23]OFD Sender: To server: pG, [04:27:23]CommunicateWithHost lk.salyk.kg:30040 [04:27:23]ConnectInit lk.salyk.kg [04:27:23]line 0 [04:27:23]written 0, free lines is 4095 [04:27:24]Connected sock=9 [04: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 35 38 66 02 00 00 E5 B9 5E 02 28 09 5A 03 01 00 03 00 52 02 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 BA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 13 00 00 00 00 07 04 06 00 B8 BA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 2B 1A A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 5D A3 00 00 35 04 06 00 25 44 D5 00 B0 27 73 4F 53 D8 E2 2D 8C AA [04:27:24]Write to MH i2c: 01 00 00 9D 04 A1 [04:27:24]Write i2c OK [04:27:24]MH_I2C_Read... [04:27:24]Read from MH i2c: 01 [04:27:24]MH_I2C_Read... [04:27:24]Read from MH i2c: 01 07 00 [04:27:24]MH_I2C_Read... [04:27:24]Read from MH i2c: 01 07 00 9D 04 00 00 00 00 00 23 0C D7 [04:27:24]RasterBufferAndPrint [04:27:24]line [04:27:24]line [04:27:24]line [04:27:24]line [04:27:24]line [04:27:24]written 0, free lines is 3117 [04:27:24]MH_Cut [04:27:24]Write to MH i2c: D1 01 00 A4 04 01 7A [04:27:24]Write i2c OK [04:27:24]MH_I2C_Read... [04:27:24]Read from MH i2c: D1 [04:27:24]MH_I2C_Read... [04:27:24]Read from MH i2c: D1 01 00 [04:27:24]MH_I2C_Read... [04:27:24]Read from MH i2c: D1 01 00 A4 04 00 79 [04:27:24]Write to MH i2c: 01 00 00 A5 04 A9 [04:27:24]Write i2c OK [04:27:24]MH_I2C_Read... [04:27:25]*** Cut start [04:27:25]*** Partial cut [04:27:25]*** CUTSNS_PIN = 1 [04:27:25]*** CUTSNS_PIN = 0 [04:27: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 35 38 4F 00 00 00 35 B1 47 00 BE 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 35 38 10 04 04 00 5D A3 00 00 F4 03 04 00 3E C6 A6 66 B6 04 01 00 00 C3 6F 00 1E FB 14 BF 62 [04:27:25]CommunicateWithHost err = 0 [04:27:25]CheckOFDResponse [04:27:25]1017 (14) - 77093643461234 [04:27:25]1041 (16) - 0000000000874958 [04:27:25]1040 (4) - 41821 [04:27:25]1012 (4) - 28.07.2024 22:29 [04:27:25]1206 (1) - 0 [04:27:25]OFD Sender: Remove packet 41821 [04:27:25]ProducePacketName [04:27:25]name=ofd_packets/00041821 [04:27:25]NVStorageDeleteData [04:27:25]*** Brake cut motor [04:27:25]OFD Sender: No OFD packet to send [04:27:25]Read from MH i2c: 01 [04:27:25]MH_I2C_Read... [04:27:25]*** Stop cut motor [04:27:25]*** Cut end [04:27:25]Read from MH i2c: 01 07 00 [04:27:25]MH_I2C_Read... [04:27:25]Read from MH i2c: 01 07 00 A5 04 00 00 00 00 00 FF 0F BE [04:27:25]process_action close_receipt done [04:27:25]requested_data is exist [04:27:25]produce_requested_data [04:27:25]requested_item fm.sn is exist - process it [04:27:25]wFMCommunicate request_size=4 [04:27:25]MH_SAM_APDU [04:27:25]CAPDU: 80 11 00 00 [04:27:25]Write to MH i2c: E2 08 00 A6 04 80 11 00 00 00 00 00 00 24 [04:27:25]Write i2c OK [04:27:25]MH_I2C_Read... [04:27:25]Read from MH i2c: E2 [04:27:25]MH_I2C_Read... [04:27:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:27:25]Read from MH i2c: E2 17 00 [04:27:25]MH_I2C_Read... [04:27:25]Read from MH i2c: E2 17 00 A6 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 80 [04:27:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [04:27:25]wFMCommunicate OK [04:27:25]requested_item fd.num is exist - process it [04:27:25]SAM_PROTO_GetFieldsCounters [04:27:25]wFMCommunicate request_size=4 [04:27:25]MH_SAM_APDU [04:27:25]CAPDU: 80 13 00 00 [04:27:25]Write to MH i2c: E2 08 00 A7 04 80 13 00 00 00 00 00 00 27 [04:27:25]Write i2c OK [04:27:25]MH_I2C_Read... [04:27:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:27:26]Read from MH i2c: E2 [04:27:26]MH_I2C_Read... [04:27:26]Read from MH i2c: E2 62 00 [04:27:26]MH_I2C_Read... [04:27:26]Read from MH i2c: E2 62 00 A7 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 5D A3 00 00 0E 04 04 00 AB 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 1B [04: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 5D A3 00 00 0E 04 04 00 AB 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:27:26]wFMCommunicate OK [04:27:26]SAM_PROTO_GetFieldsCounters done [04:27:26]requested_item shift.num is exist - process it [04:27:26]requested_item shift.opened is exist - process it [04:27:26]req_shift_opened [04:27:26]FM_GetShiftState [04:27:26]SAM_PROTO_GetShiftState [04:27:26]wFMCommunicate request_size=4 [04:27:26]MH_SAM_APDU [04:27:26]CAPDU: 80 13 01 00 [04:27:26]Write to MH i2c: E2 08 00 A8 04 80 13 01 00 00 00 00 00 29 [04:27:26]Write i2c OK [04:27:26]MH_I2C_Read... [04:27:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:27:26]Read from MH i2c: E2 [04:27:26]MH_I2C_Read... [04:27:26]Read from MH i2c: E2 0E 00 [04:27:26]MH_I2C_Read... [04:27:26]Read from MH i2c: E2 0E 00 A8 04 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 C5 [04:27:26]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [04:27:26]wFMCommunicate OK [04:27:26]SAM_PROTO_GetShiftState done [04:27:26]FM_GetShiftState done [04:27:26]req_shift_opened done [04:27:26]requested_item shift.open_date is exist - process it [04:27:26]req_shift_open_date [04:27:26]req_shift_open_date done [04:27:26]produce_requested_data done [04:27:26]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41821,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [04:27:26]process_action_free close_receipt [04:27:26]json_value_free [04:27:26]json_value_free done [04:27:26]process_json_proto returns [04:27:26]Send response to host [04:27:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41821,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [04:27:26]free response buf [04:27:26]execute_script done [04:27:26]execute_script returns [04:27:26]free content buf [04:27:26]Sock 8.Close socket [04:27:26]Sock 8.Thread stoped [04:27:30]OFD Sender: No OFD packet to send [04:27:35]OFD Sender: No OFD packet to send [04:27:40]OFD Sender: No OFD packet to send [04:27:45]OFD Sender: No OFD packet to send [04:27:50]OFD Sender: No OFD packet to send [04:27:55]OFD Sender: No OFD packet to send [04:28:00]OFD Sender: No OFD packet to send [04:28:05]OFD Sender: No OFD packet to send [04:28:06]recv_with_timeout no data received [04:28:10]OFD Sender: No OFD packet to send [04:28:15]OFD Sender: No OFD packet to send [04:28:20]recv_with_timeout no data received [04:28:20]OFD Sender: No OFD packet to send [04:28:25]OFD Sender: No OFD packet to send [04:28:30]OFD Sender: No OFD packet to send [04:28:35]OFD Sender: No OFD packet to send [04:28:40]OFD Sender: No OFD packet to send [04:28:45]OFD Sender: No OFD packet to send [04:28:50]OFD Sender: No OFD packet to send [04:28:55]OFD Sender: No OFD packet to send [04:29:00]OFD Sender: No OFD packet to send [04:29:05]OFD Sender: No OFD packet to send [04:29:10]OFD Sender: No OFD packet to send [04:29:15]OFD Sender: No OFD packet to send [04:29:20]OFD Sender: No OFD packet to send [04:29:25]OFD Sender: No OFD packet to send [04:29:30]OFD Sender: No OFD packet to send [04:29:35]OFD Sender: No OFD packet to send [04:29:40]OFD Sender: No OFD packet to send [04:29:44]recv_with_timeout no data received [04:29:45]OFD Sender: No OFD packet to send [04:29:50]OFD Sender: No OFD packet to send [04:29:55]OFD Sender: No OFD packet to send [04:30:00]OFD Sender: No OFD packet to send [04:30:05]OFD Sender: No OFD packet to send [04:30:10]OFD Sender: No OFD packet to send [04:30:15]OFD Sender: No OFD packet to send [04:30:20]OFD Sender: No OFD packet to send [04:30:25]OFD Sender: No OFD packet to send [04:30:30]OFD Sender: No OFD packet to send [04:30:35]OFD Sender: No OFD packet to send [04:30:40]OFD Sender: No OFD packet to send [04:30:44]recv_with_timeout no data received [04:30:45]OFD Sender: No OFD packet to send [04:30:50]OFD Sender: No OFD packet to send [04:30:55]OFD Sender: No OFD packet to send [04:31:00]OFD Sender: No OFD packet to send [04:31:05]OFD Sender: No OFD packet to send [04:31:10]OFD Sender: No OFD packet to send [04:31:15]OFD Sender: No OFD packet to send [04:31:20]OFD Sender: No OFD packet to send [04:31:25]OFD Sender: No OFD packet to send [04:31:30]OFD Sender: No OFD packet to send [04:31:35]OFD Sender: No OFD packet to send [04:31:40]OFD Sender: No OFD packet to send [04:31:45]OFD Sender: No OFD packet to send [04:31:50]recv_with_timeout no data received [04:31:50]OFD Sender: No OFD packet to send [04:31:55]OFD Sender: No OFD packet to send [04:32:00]OFD Sender: No OFD packet to send [04:32:05]OFD Sender: No OFD packet to send [04:32:10]OFD Sender: No OFD packet to send [04:32:15]OFD Sender: No OFD packet to send [04:32:20]OFD Sender: No OFD packet to send [04:32:25]OFD Sender: No OFD packet to send [04:32:30]OFD Sender: No OFD packet to send [04:32:35]OFD Sender: No OFD packet to send [04:32:40]OFD Sender: No OFD packet to send [04:32:45]OFD Sender: No OFD packet to send [04:32:50]OFD Sender: No OFD packet to send [04:32:55]OFD Sender: No OFD packet to send [04:33:00]OFD Sender: No OFD packet to send [04:33:05]OFD Sender: No OFD packet to send [04:33:10]OFD Sender: No OFD packet to send [04:33:11]recv_with_timeout no data received [04:33:15]OFD Sender: No OFD packet to send [04:33:20]OFD Sender: No OFD packet to send [04:33:25]OFD Sender: No OFD packet to send [04:33:31]OFD Sender: No OFD packet to send [04:33:35]recv_with_timeout no data received [04:33:36]OFD Sender: No OFD packet to send [04:33:41]OFD Sender: No OFD packet to send [04:33:46]OFD Sender: No OFD packet to send [04:33:49]recv_with_timeout no data received [04:33:51]OFD Sender: No OFD packet to send [04:33:56]OFD Sender: No OFD packet to send [04:34:01]OFD Sender: No OFD packet to send [04:34:06]OFD Sender: No OFD packet to send [04:34:11]OFD Sender: No OFD packet to send [04:34:16]OFD Sender: No OFD packet to send [04:34:21]OFD Sender: No OFD packet to send [04:34:26]OFD Sender: No OFD packet to send [04:34:31]OFD Sender: No OFD packet to send [04:34:36]OFD Sender: No OFD packet to send [04:34:41]OFD Sender: No OFD packet to send [04:34:46]OFD Sender: No OFD packet to send [04:34:51]OFD Sender: No OFD packet to send [04:34:56]OFD Sender: No OFD packet to send [04:35:01]OFD Sender: No OFD packet to send [04:35:06]OFD Sender: No OFD packet to send [04:35:11]OFD Sender: No OFD packet to send [04:35:16]OFD Sender: No OFD packet to send [04:35:21]OFD Sender: No OFD packet to send [04:35:26]OFD Sender: No OFD packet to send [04:35:31]OFD Sender: No OFD packet to send [04:35:36]OFD Sender: No OFD packet to send [04:35:41]OFD Sender: No OFD packet to send [04:35:46]OFD Sender: No OFD packet to send [04:35:51]OFD Sender: No OFD packet to send [04:35:56]OFD Sender: No OFD packet to send [04:36:01]OFD Sender: No OFD packet to send [04:36:02]recv_with_timeout no data received [04:36:06]OFD Sender: No OFD packet to send [04:36:11]OFD Sender: No OFD packet to send [04:36:16]OFD Sender: No OFD packet to send [04:36:21]OFD Sender: No OFD packet to send [04:36:26]OFD Sender: No OFD packet to send [04:36:31]OFD Sender: No OFD packet to send [04:36:36]OFD Sender: No OFD packet to send [04:36:41]OFD Sender: No OFD packet to send [04:36:46]OFD Sender: No OFD packet to send [04:36:51]OFD Sender: No OFD packet to send [04:36:56]OFD Sender: No OFD packet to send [04:37:01]OFD Sender: No OFD packet to send [04:37:03]recv_with_timeout no data received [04:37:06]OFD Sender: No OFD packet to send [04:37:11]OFD Sender: No OFD packet to send [04:37:16]OFD Sender: No OFD packet to send [04:37:21]OFD Sender: No OFD packet to send [04:37:26]OFD Sender: No OFD packet to send [04:37:31]OFD Sender: No OFD packet to send [04:37:36]OFD Sender: No OFD packet to send [04:37:41]OFD Sender: No OFD packet to send [04:37:46]OFD Sender: No OFD packet to send [04:37:51]OFD Sender: No OFD packet to send [04:37:56]OFD Sender: No OFD packet to send [04:38:01]OFD Sender: No OFD packet to send [04:38:06]OFD Sender: No OFD packet to send [04:38:11]OFD Sender: No OFD packet to send [04:38:16]OFD Sender: No OFD packet to send [04:38:21]OFD Sender: No OFD packet to send [04:38:26]OFD Sender: No OFD packet to send [04:38:31]OFD Sender: No OFD packet to send [04:38:33]recv_with_timeout no data received [04:38:36]OFD Sender: No OFD packet to send [04:38:41]OFD Sender: No OFD packet to send [04:38:46]OFD Sender: No OFD packet to send [04:38:51]OFD Sender: No OFD packet to send [04:38:56]OFD Sender: No OFD packet to send [04:39:01]OFD Sender: No OFD packet to send [04:39:06]OFD Sender: No OFD packet to send [04:39:11]OFD Sender: No OFD packet to send [04:39:16]OFD Sender: No OFD packet to send [04:39:21]OFD Sender: No OFD packet to send [04:39:26]OFD Sender: No OFD packet to send [04:39:31]OFD Sender: No OFD packet to send [04:39:36]OFD Sender: No OFD packet to send [04:39:41]OFD Sender: No OFD packet to send [04:39:46]OFD Sender: No OFD packet to send [04:39:51]OFD Sender: No OFD packet to send [04:39:56]OFD Sender: No OFD packet to send [04:40:01]OFD Sender: No OFD packet to send [04:40:06]OFD Sender: No OFD packet to send [04:40:11]OFD Sender: No OFD packet to send [04:40:16]OFD Sender: No OFD packet to send [04:40:21]OFD Sender: No OFD packet to send [04:40:26]OFD Sender: No OFD packet to send [04:40:31]OFD Sender: No OFD packet to send [04:40:36]OFD Sender: No OFD packet to send [04:40:41]OFD Sender: No OFD packet to send [04:40:46]OFD Sender: No OFD packet to send [04:40:51]OFD Sender: No OFD packet to send [04:40:56]OFD Sender: No OFD packet to send [04:41:01]OFD Sender: No OFD packet to send [04:41:06]OFD Sender: No OFD packet to send [04:41:11]OFD Sender: No OFD packet to send [04:41:16]OFD Sender: No OFD packet to send [04:41:21]OFD Sender: No OFD packet to send [04:41:26]OFD Sender: No OFD packet to send [04:41:31]OFD Sender: No OFD packet to send [04:41:36]OFD Sender: No OFD packet to send [04:41:41]OFD Sender: No OFD packet to send [04:41:46]OFD Sender: No OFD packet to send [04:41:51]OFD Sender: No OFD packet to send [04:41:56]OFD Sender: No OFD packet to send [04:42:01]OFD Sender: No OFD packet to send [04:42:06]OFD Sender: No OFD packet to send [04:42:11]OFD Sender: No OFD packet to send [04:42:16]OFD Sender: No OFD packet to send [04:42:21]OFD Sender: No OFD packet to send [04:42:26]OFD Sender: No OFD packet to send [04:42:31]OFD Sender: No OFD packet to send [04:42:36]OFD Sender: No OFD packet to send [04:42:41]OFD Sender: No OFD packet to send [04:42:46]OFD Sender: No OFD packet to send [04:42:51]OFD Sender: No OFD packet to send [04:42:56]OFD Sender: No OFD packet to send [04:43:01]OFD Sender: No OFD packet to send [04:43:06]OFD Sender: No OFD packet to send [04:43:11]OFD Sender: No OFD packet to send [04:43:16]OFD Sender: No OFD packet to send [04:43:21]OFD Sender: No OFD packet to send [04:43:26]OFD Sender: No OFD packet to send [04:43:31]OFD Sender: No OFD packet to send [04:43:36]OFD Sender: No OFD packet to send [04:43:41]OFD Sender: No OFD packet to send [04:43:46]OFD Sender: No OFD packet to send [04:43:51]OFD Sender: No OFD packet to send [04:43:56]OFD Sender: No OFD packet to send [04:44:01]OFD Sender: No OFD packet to send [04:44:06]OFD Sender: No OFD packet to send [04:44:11]OFD Sender: No OFD packet to send [04:44:16]OFD Sender: No OFD packet to send [04:44:21]OFD Sender: No OFD packet to send [04:44:24]accept exits with 10 [04:44:24]New connection [04:44:24]New thread 3066887524 created [04:44:24]Thread 3067030884 joined [04:44:24]Waiting for new connection... [04:44:24] Sock 10.Parse request [04:44:24]Sock 10.Check first char [04:44:24]Sock 10.First char is OK [04:44:24]request: POST /json_proto HTTP/1.0 [04:44:24]Method: POST [04:44:24]URL: /json_proto [04:44:24]Method is POST - this is cgi request [04:44:24]url: /json_proto [04:44:24]query_string will be loaded in cgi processing [04:44:24]execute_cgi json_proto POST (null) [04:44:24]execute_cgi path=json_proto method=POST [04:44:24]POST find Content-Length [04:44:24]Host: 172.17.43.132:8080 [04:44:24]Content-Length: 630 [04:44:24]Content-Type: application/json [04:44:24] [04:44:24]POST finish read [04:44:24]Found Content-Length = 630 [04:44:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183851", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:44:24]execute_script... [04:44: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 : (3)183851", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:44:24]POST & json_proto [04:44:24]process_json_proto [04:44:24]json parsed OK: [04:44:24]protocol is kg_v1.0 [04:44:24]action value=close_receipt [04:44:24]process_action close_receipt [04:44:24]cmd_close_receipt [04:44:24]MH_GetDate [04:44:24]Write to MH i2c: F0 00 00 A9 04 9C [04:44:24]Write i2c OK [04:44:24]MH_I2C_Read... [04:44:24]Read from MH i2c: F0 [04:44:24]MH_I2C_Read... [04:44:24]Read from MH i2c: F0 09 00 [04:44:24]MH_I2C_Read... [04:44:24]Read from MH i2c: F0 09 00 A9 04 00 2A 1E A7 66 AA D0 A5 66 7F [04:44:24]GetLastDocTimeStamp 1722227243 [04:44:24]current date 1722228266 [04:44:24]FM_GetShiftState [04:44:24]SAM_PROTO_GetShiftState [04:44:24]wFMCommunicate request_size=4 [04:44:24]MH_SAM_APDU [04:44:24]CAPDU: 80 13 01 00 [04:44:24]Write to MH i2c: E2 08 00 AA 04 80 13 01 00 00 00 00 00 2B [04:44:24]Write i2c OK [04:44:24]MH_I2C_Read... [04:44:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:44:24]Read from MH i2c: E2 [04:44:24]MH_I2C_Read... [04:44:24]Read from MH i2c: E2 0E 00 [04:44:24]MH_I2C_Read... [04:44:24]Read from MH i2c: E2 0E 00 AA 04 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 C7 [04:44:24]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [04:44:24]wFMCommunicate OK [04:44:24]SAM_PROTO_GetShiftState done [04:44:24]FM_GetShiftState done [04:44:24]opened in 1722211496 [04:44:24]opened+sec_in_day 1722297896 [04:44:24]quantity*price = 5000 [04:44:24]sum+1 = 5001 [04:44:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 11 29.07.2024 04:44 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41822 ФПД: 55302701333500 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T044426&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41822&fm=55302701333500&tin=02508201610067®Number=0000000000092626&sum=5000 0 [04:44:25]StoreToDocumentArchive [04:44:25]shift 427 fd 41822 [04:44:25]save to /storage/0427/doc_00041822 [04:44:25]save last doc name /storage/0427/doc_00041822 to /storage/kkm_last_doc_name [04:44:25]save OK [04:44:25]Clear old archive folders... [04:44:25]ProcessDocumentItem done err = 0, tmpTLVsize=269 [04:44:25]tlvbuf is 013FF300 [04:44:25]SAM_PROTO_ClearQueue [04:44:25]wFMCommunicate request_size=4 [04:44:25]MH_SAM_APDU [04:44:25]CAPDU: 80 09 00 00 [04:44:25]Write to MH i2c: E2 08 00 B7 04 80 09 00 00 00 00 00 00 2D [04:44:25]Write i2c OK [04:44:25]MH_I2C_Read... [04:44:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:44:25]Read from MH i2c: E2 [04:44:25]MH_I2C_Read... [04:44:25]Read from MH i2c: E2 03 00 [04:44:25]MH_I2C_Read... [04:44:25]Read from MH i2c: E2 03 00 B7 04 00 90 00 2F [04:44:25]RAPDU: 90 00 [04:44:25]wFMCommunicate OK [04:44:25]SAM_PROTO_ClearQueue done [04:44:25]KKMCreateOFDPacket [04:44:25]OFDProtocolAddRootSTLVToBuf [04:44:25]FM_MakeSignedData [04:44:25]FM_MakeSignedData [04:44:25]SAM_PROTO_SignData [04:44:25]wFMCommunicate request_size=4 [04:44:25]MH_SAM_APDU [04:44:25]CAPDU: 80 0D 01 02 [04:44:25]Write to MH i2c: E2 08 00 B8 04 80 0D 01 02 00 00 00 00 35 [04:44:25]Write i2c OK [04:44:25]MH_I2C_Read... [04:44:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:44:25]Read from MH i2c: E2 [04:44:25]MH_I2C_Read... [04:44:25]Read from MH i2c: E2 03 00 [04:44:25]MH_I2C_Read... [04:44:25]Read from MH i2c: E2 03 00 B8 04 00 90 00 30 [04:44:25]RAPDU: 90 00 [04:44:25]wFMCommunicate OK [04:44:25]wFMCommunicate request_size=255 [04:44:25]MH_SAM_APDU [04:44:25]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 2A 1E A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [04:44:25]Write to MH i2c: E2 02 01 B9 04 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 2A 1E A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 58 [04:44:25]Write i2c OK [04:44:25]MH_I2C_Read... [04:44:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:44:25]Read from MH i2c: E2 [04:44:25]MH_I2C_Read... [04:44:25]Read from MH i2c: E2 03 00 [04:44:25]MH_I2C_Read... [04:44:25]Read from MH i2c: E2 03 00 B9 04 00 90 00 31 [04:44:25]RAPDU: 90 00 [04:44:25]wFMCommunicate OK [04:44:25]wFMCommunicate request_size=28 [04:44:25]MH_SAM_APDU [04:44:25]CAPDU: 80 0D 02 02 17 37 34 39 35 38 10 04 04 00 5E A3 00 00 35 04 06 00 32 4C 29 DE 3B FC [04:44:25]Write to MH i2c: E2 1F 00 BA 04 80 0D 02 02 17 00 37 34 39 35 38 10 04 04 00 5E A3 00 00 35 04 06 00 32 4C 29 DE 3B FC 00 00 8B [04:44:25]Write i2c OK [04:44:25]MH_I2C_Read... [04:44:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:44:25]Read from MH i2c: E2 [04:44:25]MH_I2C_Read... [04:44:25]Read from MH i2c: E2 03 00 [04:44:25]MH_I2C_Read... [04:44:25]Read from MH i2c: E2 03 00 BA 04 00 90 00 32 [04:44:25]RAPDU: 90 00 [04:44:25]wFMCommunicate OK [04:44:25]wFMCommunicate request_size=4 [04:44:25]MH_SAM_APDU [04:44:25]CAPDU: 80 0D 03 02 [04:44:25]Write to MH i2c: E2 08 00 BB 04 80 0D 03 02 00 00 00 00 3A [04:44:25]Write i2c OK [04:44:25]MH_I2C_Read... [04:44:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:44:25]Read from MH i2c: E2 [04:44:25]MH_I2C_Read... [04:44:25]Read from MH i2c: E2 0B 00 [04:44:25]MH_I2C_Read... [04:44:25]Read from MH i2c: E2 0B 00 BB 04 00 40 CF C7 EE C6 BB 9B A3 90 00 BE [04:44:25]RAPDU: 40 CF C7 EE C6 BB 9B A3 90 00 [04:44:25]wFMCommunicate OK [04:44:25]SAM_PROTO_SignData done [04:44:25]FM_MakeSignedData done [04:44:25]CreateOFDProtocolMessage [04:44:25]wFMCommunicate request_size=4 [04:44:25]MH_SAM_APDU [04:44:25]CAPDU: 80 11 00 00 [04:44:25]Write to MH i2c: E2 08 00 BC 04 80 11 00 00 00 00 00 00 3A [04:44:25]Write i2c OK [04:44:25]MH_I2C_Read... [04:44:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:44:25]Read from MH i2c: E2 [04:44:25]MH_I2C_Read... [04:44:25]Read from MH i2c: E2 17 00 [04:44:25]MH_I2C_Read... [04:44:25]Read from MH i2c: E2 17 00 BC 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 96 [04:44:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [04:44:25]wFMCommunicate OK [04:44:25]CreateOFDProtocolMessage done [04:44:25]OFDSenderStorePacket 41822 [04:44:25]StoreOFDPacket docnum=41822 [04:44:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 21 01 00 00 9B 91 19 01 CD 93 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 2A 1E A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 5E A3 00 00 35 04 06 00 32 4C 29 DE 3B FC 40 CF C7 EE C6 BB 9B A3 [04:44:25]CheckFolder [04:44:25]dirname=/storage/ofd_packets [04:44:25]CheckFolder done [04:44:25]ProducePacketName [04:44:25]name=ofd_packets/00041822 [04:44:25]NVStorageSaveData ofd_packets/00041822 [04:44:25]File name is /storage/ofd_packets/00041822 [04:44:25]Write 319 bytes [04:44:25]NVStorageSaveData done [04:44:25]OFDSenderStorePacket done [04:44:25]KKMCreateOFDPacket done [04:44:25]NVStorageSaveData kkm_last_timestamp [04:44:25]File name is /storage/kkm_last_timestamp [04:44:25]Write 4 bytes [04:44:25]NVStorageSaveData done [04:44:25]ExternCall_PrintAddStr [04:44:25]wPrintStart [04:44:25]Write to MH i2c: 01 00 00 BD 04 C1 [04:44:25]Write i2c OK [04:44:25]MH_I2C_Read... [04:44:25]Read from MH i2c: 01 [04:44:25]MH_I2C_Read... [04:44:25]Read from MH i2c: 01 07 00 [04:44:25]MH_I2C_Read... [04:44:25]Read from MH i2c: 01 07 00 BD 04 00 00 00 00 00 FF 0F D6 [04:44:25]RasterBufferAndPrint [04:44:25]line Счет N : (3)183851 [04:44:25]line ИНН: 02508201610067 [04:44:25]line Контрольно-Кассовый Чек [04:44:25]line ПРОДАЖА [04:44:25]line Товар: 4700000160358 [04:44:25]line Вода Легенда 1л [04:44:25]line 1.000 * 50.00 [04:44:25]line = 50.00 [04:44:25]line НДС 12% НСП 1% [04:44:25]line > о реализуемом товаре [04:44:25]line ИТОГО: 50.00 [04:44:25]line НСП 1% : 0.44 [04:44:25]line НДС 12% : 5.31 [04:44:25]line Наличными: 50.00 [04:44:25]line Безнал.: 0.00 [04:44:25]line Место: АЗС № 97 "Партнер Нефть" [04:44:25]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [04:44:25]line СНО: Общий режим [04:44:25]line Чек 11 29.07.2024 04:44 [04:44:25]line Смена: 427 ФФД: 1.0 [04:44:25]line ЗНМ: 0300000053 [04:44:25]line РНМ: 0000000000092626 [04:44:25]line Версия ККМ: 001 [04:44:25]line ФМ: 0000000000874958 [04:44:25]line ФД: 41822 [04:44:25]line ФПД: 55302701333500 [04:44:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T044426&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41822&fm=55302701333500&tin=02508201610067®Number=0000000000092626&sum=5000 [04:44:25]line 0 [04:44:25]written 0, free lines is 4095 [04:44:25]OFD Sender: Processing packet 41822 [packets to send 57, broken 56] [04:44:25]ProducePacketName [04:44:25]name=ofd_packets/00041822 [04:44:25]OFD Sender: To server: pG, [04:44:25]CommunicateWithHost lk.salyk.kg:30040 [04:44:25]ConnectInit lk.salyk.kg [04:44:26]Write to MH i2c: 01 00 00 E5 04 E9 [04:44:26]Write i2c OK [04:44:26]MH_I2C_Read... [04:44:26]Read from MH i2c: 01 [04:44:26]MH_I2C_Read... [04:44:26]Read from MH i2c: 01 07 00 [04:44:26]MH_I2C_Read... [04:44:26]Read from MH i2c: 01 07 00 E5 04 00 00 00 00 00 0E 0D 0B [04:44:26]RasterBufferAndPrint [04:44:26]line [04:44:26]line [04:44:26]line [04:44:26]line [04:44:26]line [04:44:26]written 0, free lines is 3349 [04:44:26]MH_Cut [04:44:26]Write to MH i2c: D1 01 00 EC 04 01 C2 [04:44:26]Write i2c OK [04:44:26]MH_I2C_Read... [04:44:26]Read from MH i2c: D1 [04:44:26]MH_I2C_Read... [04:44:26]Read from MH i2c: D1 01 00 [04:44:26]MH_I2C_Read... [04:44:26]Read from MH i2c: D1 01 00 EC 04 00 C1 [04:44:26]Write to MH i2c: 01 00 00 ED 04 F1 [04:44:26]Write i2c OK [04:44:26]MH_I2C_Read... [04:44:26]Connected sock=9 [04:44: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 35 38 21 01 00 00 9B 91 19 01 CD 93 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 2A 1E A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 5E A3 00 00 35 04 06 00 32 4C 29 DE 3B FC 40 CF C7 EE C6 BB 9B A3 [04:44: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 35 38 4F 00 00 00 FA D4 47 00 17 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 35 38 10 04 04 00 5E A3 00 00 F4 03 04 00 3C CA A6 66 B6 04 01 00 00 71 75 F5 89 38 8B F7 7D [04:44:26]CommunicateWithHost err = 0 [04:44:26]CheckOFDResponse [04:44:26]1017 (14) - 77093643461234 [04:44:26]1041 (16) - 0000000000874958 [04:44:26]1040 (4) - 41822 [04:44:26]1012 (4) - 28.07.2024 22:46 [04:44:26]1206 (1) - 0 [04:44:26]OFD Sender: Remove packet 41822 [04:44:26]ProducePacketName [04:44:26]name=ofd_packets/00041822 [04:44:26]NVStorageDeleteData [04:44:26]*** Cut start [04:44:26]*** Partial cut [04:44:26]*** CUTSNS_PIN = 1 [04:44:27]*** CUTSNS_PIN = 0 [04:44:27]*** Brake cut motor [04:44:27]OFD Sender: No OFD packet to send [04:44:27]Read from MH i2c: 01 [04:44:27]MH_I2C_Read... [04:44:27]*** Stop cut motor [04:44:27]*** Cut end [04:44:27]Read from MH i2c: 01 07 00 [04:44:27]MH_I2C_Read... [04:44:27]Read from MH i2c: 01 07 00 ED 04 00 00 00 00 00 FF 0F 06 [04:44:27]process_action close_receipt done [04:44:27]requested_data is exist [04:44:27]produce_requested_data [04:44:27]requested_item fm.sn is exist - process it [04:44:27]wFMCommunicate request_size=4 [04:44:27]MH_SAM_APDU [04:44:27]CAPDU: 80 11 00 00 [04:44:27]Write to MH i2c: E2 08 00 EE 04 80 11 00 00 00 00 00 00 6C [04:44:27]Write i2c OK [04:44:27]MH_I2C_Read... [04:44:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:44:27]Read from MH i2c: E2 [04:44:27]MH_I2C_Read... [04:44:27]Read from MH i2c: E2 17 00 [04:44:27]MH_I2C_Read... [04:44:27]Read from MH i2c: E2 17 00 EE 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 C8 [04:44:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [04:44:27]wFMCommunicate OK [04:44:27]requested_item fd.num is exist - process it [04:44:27]SAM_PROTO_GetFieldsCounters [04:44:27]wFMCommunicate request_size=4 [04:44:27]MH_SAM_APDU [04:44:27]CAPDU: 80 13 00 00 [04:44:27]Write to MH i2c: E2 08 00 EF 04 80 13 00 00 00 00 00 00 6F [04:44:27]Write i2c OK [04:44:27]MH_I2C_Read... [04:44:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:44:27]Read from MH i2c: E2 [04:44:27]MH_I2C_Read... [04:44:27]Read from MH i2c: E2 62 00 [04:44:27]MH_I2C_Read... [04:44:27]Read from MH i2c: E2 62 00 EF 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 5E A3 00 00 0E 04 04 00 AB 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 67 [04:44: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 5E A3 00 00 0E 04 04 00 AB 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:44:27]wFMCommunicate OK [04:44:27]SAM_PROTO_GetFieldsCounters done [04:44:27]requested_item shift.num is exist - process it [04:44:27]requested_item shift.opened is exist - process it [04:44:27]req_shift_opened [04:44:27]FM_GetShiftState [04:44:27]SAM_PROTO_GetShiftState [04:44:27]wFMCommunicate request_size=4 [04:44:27]MH_SAM_APDU [04:44:27]CAPDU: 80 13 01 00 [04:44:27]Write to MH i2c: E2 08 00 F0 04 80 13 01 00 00 00 00 00 71 [04:44:27]Write i2c OK [04:44:27]MH_I2C_Read... [04:44:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:44:27]Read from MH i2c: E2 [04:44:27]MH_I2C_Read... [04:44:27]Read from MH i2c: E2 0E 00 [04:44:27]MH_I2C_Read... [04:44:27]Read from MH i2c: E2 0E 00 F0 04 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 0D [04:44:27]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [04:44:27]wFMCommunicate OK [04:44:27]SAM_PROTO_GetShiftState done [04:44:27]FM_GetShiftState done [04:44:27]req_shift_opened done [04:44:27]requested_item shift.open_date is exist - process it [04:44:27]req_shift_open_date [04:44:27]req_shift_open_date done [04:44:27]produce_requested_data done [04:44:27]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41822,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [04:44:27]process_action_free close_receipt [04:44:27]json_value_free [04:44:27]json_value_free done [04:44:27]process_json_proto returns [04:44:27]Send response to host [04:44:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41822,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [04:44:27]free response buf [04:44:27]execute_script done [04:44:27]execute_script returns [04:44:27]free content buf [04:44:27]Sock 10.Close socket [04:44:27]Sock 10.Thread stoped [04:44:32]OFD Sender: No OFD packet to send [04:44:37]OFD Sender: No OFD packet to send [04:44:42]OFD Sender: No OFD packet to send [04:44:47]OFD Sender: No OFD packet to send [04:44:52]OFD Sender: No OFD packet to send [04:44:53]recv_with_timeout no data received [04:44:57]OFD Sender: No OFD packet to send [04:45:02]OFD Sender: No OFD packet to send [04:45:07]OFD Sender: No OFD packet to send [04:45:12]OFD Sender: No OFD packet to send [04:45:17]OFD Sender: No OFD packet to send [04:45:22]OFD Sender: No OFD packet to send [04:45:27]OFD Sender: No OFD packet to send [04:45:32]OFD Sender: No OFD packet to send [04:45:37]OFD Sender: No OFD packet to send [04:45:42]OFD Sender: No OFD packet to send [04:45:47]OFD Sender: No OFD packet to send [04:45:52]OFD Sender: No OFD packet to send [04:45:57]OFD Sender: No OFD packet to send [04:46:02]OFD Sender: No OFD packet to send [04:46:07]OFD Sender: No OFD packet to send [04:46:12]OFD Sender: No OFD packet to send [04:46:17]OFD Sender: No OFD packet to send [04:46:22]OFD Sender: No OFD packet to send [04:46:27]OFD Sender: No OFD packet to send [04:46:32]OFD Sender: No OFD packet to send [04:46:37]OFD Sender: No OFD packet to send [04:46:42]OFD Sender: No OFD packet to send [04:46:47]OFD Sender: No OFD packet to send [04:46:52]OFD Sender: No OFD packet to send [04:46:57]OFD Sender: No OFD packet to send [04:47:02]OFD Sender: No OFD packet to send [04:47:02]recv_with_timeout no data received [04:47:07]OFD Sender: No OFD packet to send [04:47:12]OFD Sender: No OFD packet to send [04:47:17]OFD Sender: No OFD packet to send [04:47:22]OFD Sender: No OFD packet to send [04:47:27]OFD Sender: No OFD packet to send [04:47:32]OFD Sender: No OFD packet to send [04:47:37]OFD Sender: No OFD packet to send [04:47:42]OFD Sender: No OFD packet to send [04:47:42]recv_with_timeout no data received [04:47:47]OFD Sender: No OFD packet to send [04:47:52]OFD Sender: No OFD packet to send [04:47:57]OFD Sender: No OFD packet to send [04:48:02]OFD Sender: No OFD packet to send [04:48:07]OFD Sender: No OFD packet to send [04:48:12]OFD Sender: No OFD packet to send [04:48:17]OFD Sender: No OFD packet to send [04:48:22]OFD Sender: No OFD packet to send [04:48:23]recv_with_timeout no data received [04:48:27]OFD Sender: No OFD packet to send [04:48:32]OFD Sender: No OFD packet to send [04:48:37]OFD Sender: No OFD packet to send [04:48:42]OFD Sender: No OFD packet to send [04:48:47]OFD Sender: No OFD packet to send [04:48:52]OFD Sender: No OFD packet to send [04:48:57]OFD Sender: No OFD packet to send [04:49:02]OFD Sender: No OFD packet to send [04:49:07]OFD Sender: No OFD packet to send [04:49:12]OFD Sender: No OFD packet to send [04:49:17]OFD Sender: No OFD packet to send [04:49:22]OFD Sender: No OFD packet to send [04:49:27]OFD Sender: No OFD packet to send [04:49:32]OFD Sender: No OFD packet to send [04:49:37]OFD Sender: No OFD packet to send [04:49:42]OFD Sender: No OFD packet to send [04:49:47]OFD Sender: No OFD packet to send [04:49:48]recv_with_timeout no data received [04:49:52]OFD Sender: No OFD packet to send [04:49:57]OFD Sender: No OFD packet to send [04:50:02]OFD Sender: No OFD packet to send [04:50:07]OFD Sender: No OFD packet to send [04:50:12]OFD Sender: No OFD packet to send [04:50:17]OFD Sender: No OFD packet to send [04:50:22]OFD Sender: No OFD packet to send [04:50:23]recv_with_timeout no data received [04:50:27]OFD Sender: No OFD packet to send [04:50:32]OFD Sender: No OFD packet to send [04:50:37]OFD Sender: No OFD packet to send [04:50:42]OFD Sender: No OFD packet to send [04:50:47]OFD Sender: No OFD packet to send [04:50:52]OFD Sender: No OFD packet to send [04:50:57]OFD Sender: No OFD packet to send [04:51:02]OFD Sender: No OFD packet to send [04:51:07]OFD Sender: No OFD packet to send [04:51:22]OFD Sender: No OFD packet to send [04:51:27]OFD Sender: No OFD packet to send [04:51:31]recv_with_timeout no data received [04:51:32]OFD Sender: No OFD packet to send [04:51:37]OFD Sender: No OFD packet to send [04:51:42]OFD Sender: No OFD packet to send [04:51:47]OFD Sender: No OFD packet to send [04:51:49]recv_with_timeout no data received [04:51:52]OFD Sender: No OFD packet to send [04:51:57]OFD Sender: No OFD packet to send [04:52:02]OFD Sender: No OFD packet to send [04:52:07]OFD Sender: No OFD packet to send [04:52:12]OFD Sender: No OFD packet to send [04:52:17]OFD Sender: No OFD packet to send [04:52:22]OFD Sender: No OFD packet to send [04:52:27]OFD Sender: No OFD packet to send [04:52:32]OFD Sender: No OFD packet to send [04:52:37]OFD Sender: No OFD packet to send [04:52:42]OFD Sender: No OFD packet to send [04:52:47]OFD Sender: No OFD packet to send [04:52:52]OFD Sender: No OFD packet to send [04:52:57]OFD Sender: No OFD packet to send [04:53:02]OFD Sender: No OFD packet to send [04:53:07]OFD Sender: No OFD packet to send [04:53:12]OFD Sender: No OFD packet to send [04:53:17]OFD Sender: No OFD packet to send [04:53:22]OFD Sender: No OFD packet to send [04:53:27]OFD Sender: No OFD packet to send [04:53:32]OFD Sender: No OFD packet to send [04:53:37]OFD Sender: No OFD packet to send [04:53:42]OFD Sender: No OFD packet to send [04:53:47]OFD Sender: No OFD packet to send [04:53:52]OFD Sender: No OFD packet to send [04:53:57]OFD Sender: No OFD packet to send [04:53:59]recv_with_timeout no data received [04:54:02]OFD Sender: No OFD packet to send [04:54:07]OFD Sender: No OFD packet to send [04:54:12]OFD Sender: No OFD packet to send [04:54:17]OFD Sender: No OFD packet to send [04:54:22]OFD Sender: No OFD packet to send [04:54:27]OFD Sender: No OFD packet to send [04:54:32]OFD Sender: No OFD packet to send [04:54:37]OFD Sender: No OFD packet to send [04:54:42]OFD Sender: No OFD packet to send [04:54:47]OFD Sender: No OFD packet to send [04:54:52]OFD Sender: No OFD packet to send [04:54:57]OFD Sender: No OFD packet to send [04:55:02]OFD Sender: No OFD packet to send [04:55:07]OFD Sender: No OFD packet to send [04:55:12]OFD Sender: No OFD packet to send [04:55:17]OFD Sender: No OFD packet to send [04:55:22]OFD Sender: No OFD packet to send [04:55:27]OFD Sender: No OFD packet to send [04:55:32]OFD Sender: No OFD packet to send [04:55:37]OFD Sender: No OFD packet to send [04:55:42]OFD Sender: No OFD packet to send [04:55:47]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:18]recv_with_timeout no data received [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:16]accept exits with 8 [04:57:16]New connection [04:57:16]New thread 3067030884 created [04:57:16]Thread 3066887524 joined [04:57:16]Waiting for new connection... [04:57:16] Sock 8.Parse request [04:57:16]Sock 8.Check first char [04:57:16]Sock 8.First char is OK [04:57:16]request: POST /json_proto HTTP/1.0 [04:57:16]Method: POST [04:57:16]URL: /json_proto [04:57:16]Method is POST - this is cgi request [04:57:16]url: /json_proto [04:57:16]query_string will be loaded in cgi processing [04:57:16]execute_cgi json_proto POST (null) [04:57:16]execute_cgi path=json_proto method=POST [04:57:16]POST find Content-Length [04:57:16]Host: 172.17.43.132:8080 [04:57:16]Content-Length: 652 [04:57:16]Content-Type: application/json [04:57:16] [04:57:16]POST finish read [04:57:16]Found Content-Length = 652 [04:57:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183852", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:57:16]execute_script... [04:57:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183852", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:57:16]POST & json_proto [04:57:16]process_json_proto [04:57:16]json parsed OK: [04:57:16]protocol is kg_v1.0 [04:57:16]action value=close_receipt [04:57:16]process_action close_receipt [04:57:16]cmd_close_receipt [04:57:16]MH_GetDate [04:57:16]Write to MH i2c: F0 00 00 F1 04 E4 [04:57:16]Write i2c OK [04:57:16]MH_I2C_Read... [04:57:16]Read from MH i2c: F0 [04:57:16]MH_I2C_Read... [04:57:16]Read from MH i2c: F0 09 00 [04:57:16]MH_I2C_Read... [04:57:16]Read from MH i2c: F0 09 00 F1 04 00 2E 21 A7 66 AA D0 A5 66 CE [04:57:16]GetLastDocTimeStamp 1722228266 [04:57:16]current date 1722229038 [04:57:16]FM_GetShiftState [04:57:16]SAM_PROTO_GetShiftState [04:57:16]wFMCommunicate request_size=4 [04:57:16]MH_SAM_APDU [04:57:16]CAPDU: 80 13 01 00 [04:57:16]Write to MH i2c: E2 08 00 F2 04 80 13 01 00 00 00 00 00 73 [04:57:16]Write i2c OK [04:57:16]MH_I2C_Read... [04:57:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:57:16]Read from MH i2c: E2 [04:57:16]MH_I2C_Read... [04:57:16]Read from MH i2c: E2 0E 00 [04:57:16]MH_I2C_Read... [04:57:16]Read from MH i2c: E2 0E 00 F2 04 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 0F [04:57:16]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [04:57:16]wFMCommunicate OK [04:57:16]SAM_PROTO_GetShiftState done [04:57:16]FM_GetShiftState done [04:57:16]opened in 1722211496 [04:57:16]opened+sec_in_day 1722297896 [04:57:16]quantity*price = 12500 [04:57:16]sum+1 = 12501 [04:57:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 12 29.07.2024 04:57 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41823 ФПД: 1894708379581 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T045718&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41823&fm=1894708379581&tin=02508201610067®Number=0000000000092626&sum=12500 0 [04:57:17]StoreToDocumentArchive [04:57:17]shift 427 fd 41823 [04:57:17]save to /storage/0427/doc_00041823 [04:57:17]save last doc name /storage/0427/doc_00041823 to /storage/kkm_last_doc_name [04:57:17]save OK [04:57:17]Clear old archive folders... [04:57:17]ProcessDocumentItem done err = 0, tmpTLVsize=284 [04:57:17]tlvbuf is 013E33F0 [04:57:17]SAM_PROTO_ClearQueue [04:57:17]wFMCommunicate request_size=4 [04:57:17]MH_SAM_APDU [04:57:17]CAPDU: 80 09 00 00 [04:57:17]Write to MH i2c: E2 08 00 FF 04 80 09 00 00 00 00 00 00 75 [04:57:17]Write i2c OK [04:57:17]MH_I2C_Read... [04:57:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:57:17]Read from MH i2c: E2 [04:57:17]MH_I2C_Read... [04:57:17]Read from MH i2c: E2 03 00 [04:57:17]MH_I2C_Read... [04:57:17]Read from MH i2c: E2 03 00 FF 04 00 90 00 77 [04:57:17]RAPDU: 90 00 [04:57:17]wFMCommunicate OK [04:57:17]SAM_PROTO_ClearQueue done [04:57:17]KKMCreateOFDPacket [04:57:17]OFDProtocolAddRootSTLVToBuf [04:57:17]FM_MakeSignedData [04:57:17]FM_MakeSignedData [04:57:17]SAM_PROTO_SignData [04:57:17]wFMCommunicate request_size=4 [04:57:17]MH_SAM_APDU [04:57:17]CAPDU: 80 0D 01 02 [04:57:17]Write to MH i2c: E2 08 00 00 05 80 0D 01 02 00 00 00 00 7E [04:57:17]Write i2c OK [04:57:17]MH_I2C_Read... [04:57:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:57:17]Read from MH i2c: E2 [04:57:17]MH_I2C_Read... [04:57:17]Read from MH i2c: E2 03 00 [04:57:17]MH_I2C_Read... [04:57:17]Read from MH i2c: E2 03 00 00 05 00 90 00 79 [04:57:17]RAPDU: 90 00 [04:57:17]wFMCommunicate OK [04:57:17]wFMCommunicate request_size=255 [04:57:17]MH_SAM_APDU [04:57:17]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 2E 21 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 [04:57:17]Write to MH i2c: E2 02 01 01 05 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 2E 21 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 00 00 34 [04:57:17]Write i2c OK [04:57:17]MH_I2C_Read... [04:57:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:57:17]Read from MH i2c: E2 [04:57:17]MH_I2C_Read... [04:57:17]Read from MH i2c: E2 03 00 [04:57:17]MH_I2C_Read... [04:57:17]Read from MH i2c: E2 03 00 01 05 00 90 00 7A [04:57:17]RAPDU: 90 00 [04:57:17]wFMCommunicate OK [04:57:17]wFMCommunicate request_size=43 [04:57:17]MH_SAM_APDU [04:57:17]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 5F A3 00 00 35 04 06 00 01 B9 25 6B 7F BD [04:57:17]Write to MH i2c: E2 2E 00 02 05 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 5F A3 00 00 35 04 06 00 01 B9 25 6B 7F BD 00 00 FA [04:57:17]Write i2c OK [04:57:17]MH_I2C_Read... [04:57:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:57:17]Read from MH i2c: E2 [04:57:17]MH_I2C_Read... [04:57:17]Read from MH i2c: E2 03 00 [04:57:17]MH_I2C_Read... [04:57:17]Read from MH i2c: E2 03 00 02 05 00 90 00 7B [04:57:17]RAPDU: 90 00 [04:57:17]wFMCommunicate OK [04:57:17]wFMCommunicate request_size=4 [04:57:17]MH_SAM_APDU [04:57:17]CAPDU: 80 0D 03 02 [04:57:17]Write to MH i2c: E2 08 00 03 05 80 0D 03 02 00 00 00 00 83 [04:57:17]Write i2c OK [04:57:17]MH_I2C_Read... [04:57:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:57:17]Read from MH i2c: E2 [04:57:17]MH_I2C_Read... [04:57:17]Read from MH i2c: E2 0B 00 [04:57:17]MH_I2C_Read... [04:57:17]Read from MH i2c: E2 0B 00 03 05 00 72 6F 1C 25 EB 24 3D 73 90 00 65 [04:57:17]RAPDU: 72 6F 1C 25 EB 24 3D 73 90 00 [04:57:17]wFMCommunicate OK [04:57:17]SAM_PROTO_SignData done [04:57:17]FM_MakeSignedData done [04:57:17]CreateOFDProtocolMessage [04:57:17]wFMCommunicate request_size=4 [04:57:17]MH_SAM_APDU [04:57:17]CAPDU: 80 11 00 00 [04:57:17]Write to MH i2c: E2 08 00 04 05 80 11 00 00 00 00 00 00 83 [04:57:17]Write i2c OK [04:57:17]MH_I2C_Read... [04:57:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:57:17]Read from MH i2c: E2 [04:57:17]MH_I2C_Read... [04:57:17]Read from MH i2c: E2 17 00 [04:57:17]MH_I2C_Read... [04:57:17]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 35 38 90 00 DF [04:57:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [04:57:17]wFMCommunicate OK [04:57:17]CreateOFDProtocolMessage done [04:57:17]OFDSenderStorePacket 41823 [04:57:17]StoreOFDPacket docnum=41823 [04:57:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 30 01 00 00 51 68 28 01 3C B5 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 2E 21 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 5F A3 00 00 35 04 06 00 01 B9 25 6B 7F BD 72 6F 1C 25 EB 24 3D 73 [04:57:17]CheckFolder [04:57:17]dirname=/storage/ofd_packets [04:57:17]CheckFolder done [04:57:17]ProducePacketName [04:57:17]name=ofd_packets/00041823 [04:57:17]NVStorageSaveData ofd_packets/00041823 [04:57:17]File name is /storage/ofd_packets/00041823 [04:57:17]Write 334 bytes [04:57:17]NVStorageSaveData done [04:57:17]OFDSenderStorePacket done [04:57:17]KKMCreateOFDPacket done [04:57:17]NVStorageSaveData kkm_last_timestamp [04:57:17]File name is /storage/kkm_last_timestamp [04:57:17]Write 4 bytes [04:57:17]NVStorageSaveData done [04:57:17]ExternCall_PrintAddStr [04:57:17]wPrintStart [04:57:17]Write to MH i2c: 01 00 00 05 05 0A [04:57:17]Write i2c OK [04:57:17]MH_I2C_Read... [04:57:17]Read from MH i2c: 01 [04:57:17]MH_I2C_Read... [04:57:17]Read from MH i2c: 01 07 00 [04:57:17]MH_I2C_Read... [04:57:17]Read from MH i2c: 01 07 00 05 05 00 00 00 00 00 FF 0F 1F [04:57:17]RasterBufferAndPrint [04:57:17]line Счет N : (3)183852 [04:57:17]line ИНН: 02508201610067 [04:57:17]line Контрольно-Кассовый Чек [04:57:17]line ПРОДАЖА [04:57:17]line Товар: 2000036190018 [04:57:17]line Кофе Американо XL(GABB TRADE) [04:57:17]line 1.000 * 125.00 [04:57:17]line = 125.00 [04:57:17]line НДС 12% НСП 1% [04:57:17]line > о реализуемом товаре [04:57:17]line ИТОГО: 125.00 [04:57:17]line НСП 1% : 1.11 [04:57:17]line НДС 12% : 13.27 [04:57:17]line Наличными: 125.00 [04:57:17]line Безнал.: 0.00 [04:57:17]line Место: АЗС № 97 "Партнер Нефть" [04:57:17]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [04:57:17]line СНО: Общий режим [04:57:17]line Чек 12 29.07.2024 04:57 [04:57:17]line Смена: 427 ФФД: 1.0 [04:57:17]line ЗНМ: 0300000053 [04:57:17]line РНМ: 0000000000092626 [04:57:17]line Версия ККМ: 001 [04:57:17]line ФМ: 0000000000874958 [04:57:17]line ФД: 41823 [04:57:17]line ФПД: 1894708379581 [04:57:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T045718&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41823&fm=1894708379581&tin=02508201610067®Number=0000000000092626&sum=12500 [04:57:18]OFD Sender: Processing packet 41823 [packets to send 57, broken 56] [04:57:18]ProducePacketName [04:57:18]name=ofd_packets/00041823 [04:57:18]OFD Sender: To server: pG, [04:57:18]CommunicateWithHost lk.salyk.kg:30040 [04:57:18]ConnectInit lk.salyk.kg [04:57:18]line 0 [04:57:18]written 0, free lines is 4095 [04:57:18]Write to MH i2c: 01 00 00 2E 05 33 [04:57:18]Write i2c OK [04:57:18]MH_I2C_Read... [04:57:18]Read from MH i2c: 01 [04:57:18]MH_I2C_Read... [04:57:18]Read from MH i2c: 01 07 00 [04:57:18]MH_I2C_Read... [04:57:18]Read from MH i2c: 01 07 00 2E 05 00 00 00 00 00 09 0D 50 [04:57:18]RasterBufferAndPrint [04:57:18]line [04:57:18]line [04:57:18]line [04:57:18]line [04:57:18]line [04:57:18]written 0, free lines is 3343 [04:57:18]MH_Cut [04:57:18]Write to MH i2c: D1 01 00 35 05 01 0C [04:57:18]Write i2c OK [04:57:18]MH_I2C_Read... [04:57:18]Read from MH i2c: D1 [04:57:18]MH_I2C_Read... [04:57:18]Read from MH i2c: D1 01 00 [04:57:18]MH_I2C_Read... [04:57:18]Read from MH i2c: D1 01 00 35 05 00 0B [04:57:18]Write to MH i2c: 01 00 00 36 05 3B [04:57:18]Write i2c OK [04:57:18]MH_I2C_Read... [04:57:19]*** Cut start [04:57:19]*** Partial cut [04:57:19]*** CUTSNS_PIN = 1 [04:57:19]*** CUTSNS_PIN = 0 [04:57:19]*** Brake cut motor [04:57:20]Read from MH i2c: 01 [04:57:20]MH_I2C_Read... [04:57:20]*** Stop cut motor [04:57:20]*** Cut end [04:57:20]Read from MH i2c: 01 07 00 [04:57:20]MH_I2C_Read... [04:57:20]Read from MH i2c: 01 07 00 36 05 00 00 00 00 00 FF 0F 50 [04:57:20]process_action close_receipt done [04:57:20]requested_data is exist [04:57:20]produce_requested_data [04:57:20]requested_item fm.sn is exist - process it [04:57:20]wFMCommunicate request_size=4 [04:57:20]MH_SAM_APDU [04:57:20]CAPDU: 80 11 00 00 [04:57:20]Write to MH i2c: E2 08 00 37 05 80 11 00 00 00 00 00 00 B6 [04:57:20]Write i2c OK [04:57:20]MH_I2C_Read... [04:57:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:57:20]Read from MH i2c: E2 [04:57:20]MH_I2C_Read... [04:57:20]Read from MH i2c: E2 17 00 [04:57:20]MH_I2C_Read... [04:57:20]Read from MH i2c: E2 17 00 37 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 12 [04:57:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [04:57:20]wFMCommunicate OK [04:57:20]requested_item fd.num is exist - process it [04:57:20]SAM_PROTO_GetFieldsCounters [04:57:20]wFMCommunicate request_size=4 [04:57:20]MH_SAM_APDU [04:57:20]CAPDU: 80 13 00 00 [04:57:20]Write to MH i2c: E2 08 00 38 05 80 13 00 00 00 00 00 00 B9 [04:57:20]Write i2c OK [04:57:20]MH_I2C_Read... [04:57:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:57:20]Read from MH i2c: E2 [04:57:20]MH_I2C_Read... [04:57:20]Read from MH i2c: E2 62 00 [04:57:20]MH_I2C_Read... [04:57:20]Read from MH i2c: E2 62 00 38 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 5F A3 00 00 0E 04 04 00 AB 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 B5 [04:57: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 5F A3 00 00 0E 04 04 00 AB 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:57:20]wFMCommunicate OK [04:57:20]SAM_PROTO_GetFieldsCounters done [04:57:20]requested_item shift.num is exist - process it [04:57:20]requested_item shift.opened is exist - process it [04:57:20]req_shift_opened [04:57:20]FM_GetShiftState [04:57:20]SAM_PROTO_GetShiftState [04:57:20]wFMCommunicate request_size=4 [04:57:20]MH_SAM_APDU [04:57:20]CAPDU: 80 13 01 00 [04:57:20]Write to MH i2c: E2 08 00 39 05 80 13 01 00 00 00 00 00 BB [04:57:20]Write i2c OK [04:57:20]MH_I2C_Read... [04:57:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:57:20]Read from MH i2c: E2 [04:57:20]MH_I2C_Read... [04:57:20]Read from MH i2c: E2 0E 00 [04:57:20]MH_I2C_Read... [04:57:20]Read from MH i2c: E2 0E 00 39 05 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 57 [04:57:20]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [04:57:20]wFMCommunicate OK [04:57:20]SAM_PROTO_GetShiftState done [04:57:20]FM_GetShiftState done [04:57:20]req_shift_opened done [04:57:20]requested_item shift.open_date is exist - process it [04:57:20]req_shift_open_date [04:57:20]req_shift_open_date done [04:57:20]produce_requested_data done [04:57:20]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41823,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [04:57:20]process_action_free close_receipt [04:57:20]json_value_free [04:57:20]json_value_free done [04:57:20]process_json_proto returns [04:57:20]Send response to host [04:57:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41823,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [04:57:20]free response buf [04:57:20]execute_script done [04:57:20]execute_script returns [04:57:20]free content buf [04:57:20]Sock 8.Close socket [04:57:20]Sock 8.Thread stoped [04:57:40]recv_with_timeout no data received [04:57:59]accept exits with 9 [04:57:59]New connection [04:57:59]New thread 3066887524 created [04:57:59]Thread 3067030884 joined [04:57:59]Waiting for new connection... [04:57:59] Sock 9.Parse request [04:57:59]Sock 9.Check first char [04:57:59]Sock 9.First char is OK [04:57:59]request: POST /json_proto HTTP/1.0 [04:57:59]Method: POST [04:57:59]URL: /json_proto [04:57:59]Method is POST - this is cgi request [04:57:59]url: /json_proto [04:57:59]query_string will be loaded in cgi processing [04:57:59]execute_cgi json_proto POST (null) [04:57:59]execute_cgi path=json_proto method=POST [04:57:59]POST find Content-Length [04:57:59]Host: 172.17.43.132:8080 [04:57:59]Content-Length: 807 [04:57:59]Content-Type: application/json [04:57:59] [04:57:59]POST finish read [04:57:59]Found Content-Length = 807 [04:57:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183853", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:57:59]execute_script... [04: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 : (3)183853", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:57:59]POST & json_proto [04:57:59]process_json_proto [04:57:59]json parsed OK: [04:57:59]protocol is kg_v1.0 [04:57:59]action value=close_receipt [04:57:59]process_action close_receipt [04:57:59]cmd_close_receipt [04:57:59]MH_GetDate [04:57:59]Write to MH i2c: F0 00 00 3A 05 2E [04:57:59]Write i2c OK [04:57:59]MH_I2C_Read... [04:57:59]Read from MH i2c: F0 [04:57:59]MH_I2C_Read... [04:57:59]Read from MH i2c: F0 09 00 [04:57:59]MH_I2C_Read... [04:57:59]Read from MH i2c: F0 09 00 3A 05 00 59 21 A7 66 AA D0 A5 66 43 [04:57:59]GetLastDocTimeStamp 1722229038 [04:57:59]current date 1722229081 [04:57:59]FM_GetShiftState [04:57:59]SAM_PROTO_GetShiftState [04:57:59]wFMCommunicate request_size=4 [04:57:59]MH_SAM_APDU [04:57:59]CAPDU: 80 13 01 00 [04:57:59]Write to MH i2c: E2 08 00 3B 05 80 13 01 00 00 00 00 00 BD [04:57:59]Write i2c OK [04:57:59]MH_I2C_Read... [04:57:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:57:59]Read from MH i2c: E2 [04:57:59]MH_I2C_Read... [04:57:59]Read from MH i2c: E2 0E 00 [04:57:59]MH_I2C_Read... [04:57:59]Read from MH i2c: E2 0E 00 3B 05 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 59 [04:57:59]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [04:57:59]wFMCommunicate OK [04:57:59]SAM_PROTO_GetShiftState done [04:57:59]FM_GetShiftState done [04:57:59]opened in 1722211496 [04:57:59]opened+sec_in_day 1722297896 [04:57:59]quantity*price = 13000 [04:57:59]sum+1 = 13001 [04:57:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 0.00 Безнал.: 130.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 13 29.07.2024 04:58 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874958 ФД: 41824 ФПД: 106369364878241 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T045801&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41824&fm=106369364878241&tin=02508201610067®Number=0000000000092626&sum=13000 0 [04:58:00]StoreToDocumentArchive [04:58:00]shift 427 fd 41824 [04:58:00]save to /storage/0427/doc_00041824 [04:58:00]save last doc name /storage/0427/doc_00041824 to /storage/kkm_last_doc_name [04:58:00]save OK [04:58:00]Clear old archive folders... [04:58:00]ProcessDocumentItem done err = 0, tmpTLVsize=282 [04:58:00]tlvbuf is 013DF540 [04:58:00]SAM_PROTO_ClearQueue [04:58:00]wFMCommunicate request_size=4 [04:58:00]MH_SAM_APDU [04:58:00]CAPDU: 80 09 00 00 [04:58:00]Write to MH i2c: E2 08 00 48 05 80 09 00 00 00 00 00 00 BF [04:58:00]Write i2c OK [04:58:00]MH_I2C_Read... [04:58:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:58:00]Read from MH i2c: E2 [04:58:00]MH_I2C_Read... [04:58:00]Read from MH i2c: E2 03 00 [04:58:00]MH_I2C_Read... [04:58:00]Read from MH i2c: E2 03 00 48 05 00 90 00 C1 [04:58:00]RAPDU: 90 00 [04:58:00]wFMCommunicate OK [04:58:00]SAM_PROTO_ClearQueue done [04:58:00]KKMCreateOFDPacket [04:58:00]OFDProtocolAddRootSTLVToBuf [04:58:00]FM_MakeSignedData [04:58:00]FM_MakeSignedData [04:58:00]SAM_PROTO_SignData [04:58:00]wFMCommunicate request_size=4 [04:58:00]MH_SAM_APDU [04:58:00]CAPDU: 80 0D 01 02 [04:58:00]Write to MH i2c: E2 08 00 49 05 80 0D 01 02 00 00 00 00 C7 [04:58:00]Write i2c OK [04:58:00]MH_I2C_Read... [04:58:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:58:00]Read from MH i2c: E2 [04:58:00]MH_I2C_Read... [04:58:00]Read from MH i2c: E2 03 00 [04:58:00]MH_I2C_Read... [04:58:00]Read from MH i2c: E2 03 00 49 05 00 90 00 C2 [04:58:00]RAPDU: 90 00 [04:58:00]wFMCommunicate OK [04:58:00]wFMCommunicate request_size=255 [04:58:00]MH_SAM_APDU [04:58:00]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 59 21 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 [04:58:00]Write to MH i2c: E2 02 01 4A 05 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 59 21 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 00 00 16 [04:58:00]Write i2c OK [04:58:00]MH_I2C_Read... [04:58:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:58:00]Read from MH i2c: E2 [04:58:00]MH_I2C_Read... [04:58:00]Read from MH i2c: E2 03 00 [04:58:00]MH_I2C_Read... [04:58:00]Read from MH i2c: E2 03 00 4A 05 00 90 00 C3 [04:58:00]RAPDU: 90 00 [04:58:00]wFMCommunicate OK [04:58:00]wFMCommunicate request_size=41 [04:58:00]MH_SAM_APDU [04:58:00]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 60 A3 00 00 35 04 06 00 60 BE 0C 35 63 A1 [04:58:00]Write to MH i2c: E2 2C 00 4B 05 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 60 A3 00 00 35 04 06 00 60 BE 0C 35 63 A1 00 00 08 [04:58:00]Write i2c OK [04:58:00]MH_I2C_Read... [04:58:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:58:00]Read from MH i2c: E2 [04:58:00]MH_I2C_Read... [04:58:00]Read from MH i2c: E2 03 00 [04:58:00]MH_I2C_Read... [04:58:00]Read from MH i2c: E2 03 00 4B 05 00 90 00 C4 [04:58:00]RAPDU: 90 00 [04:58:00]wFMCommunicate OK [04:58:00]wFMCommunicate request_size=4 [04:58:00]MH_SAM_APDU [04:58:00]CAPDU: 80 0D 03 02 [04:58:00]Write to MH i2c: E2 08 00 4C 05 80 0D 03 02 00 00 00 00 CC [04:58:00]Write i2c OK [04:58:00]MH_I2C_Read... [04:58:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:58:00]Read from MH i2c: E2 [04:58:00]MH_I2C_Read... [04:58:00]Read from MH i2c: E2 0B 00 [04:58:00]MH_I2C_Read... [04:58:00]Read from MH i2c: E2 0B 00 4C 05 00 C0 F6 49 27 09 68 0B 84 90 00 F3 [04:58:00]RAPDU: C0 F6 49 27 09 68 0B 84 90 00 [04:58:00]wFMCommunicate OK [04:58:00]SAM_PROTO_SignData done [04:58:00]FM_MakeSignedData done [04:58:00]CreateOFDProtocolMessage [04:58:00]wFMCommunicate request_size=4 [04:58:00]MH_SAM_APDU [04:58:00]CAPDU: 80 11 00 00 [04:58:00]Write to MH i2c: E2 08 00 4D 05 80 11 00 00 00 00 00 00 CC [04:58:00]Write i2c OK [04:58:00]MH_I2C_Read... [04:58:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:58:00]Read from MH i2c: E2 [04:58:00]MH_I2C_Read... [04:58:00]Read from MH i2c: E2 17 00 [04:58:00]MH_I2C_Read... [04:58:00]Read from MH i2c: E2 17 00 4D 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 28 [04:58:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [04:58:00]wFMCommunicate OK [04:58:00]CreateOFDProtocolMessage done [04:58:00]OFDSenderStorePacket 41824 [04:58:00]StoreOFDPacket docnum=41824 [04:58:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 2E 01 00 00 36 72 26 01 06 E4 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 59 21 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 60 A3 00 00 35 04 06 00 60 BE 0C 35 63 A1 C0 F6 49 27 09 68 0B 84 [04:58:00]CheckFolder [04:58:00]dirname=/storage/ofd_packets [04:58:00]CheckFolder done [04:58:00]ProducePacketName [04:58:00]name=ofd_packets/00041824 [04:58:00]NVStorageSaveData ofd_packets/00041824 [04:58:00]File name is /storage/ofd_packets/00041824 [04:58:00]Write 332 bytes [04:58:00]NVStorageSaveData done [04:58:00]OFDSenderStorePacket done [04:58:00]KKMCreateOFDPacket done [04:58:00]NVStorageSaveData kkm_last_timestamp [04:58:00]File name is /storage/kkm_last_timestamp [04:58:00]Write 4 bytes [04:58:00]NVStorageSaveData done [04:58:00]ExternCall_PrintAddStr [04:58:00]wPrintStart [04:58:00]Write to MH i2c: 01 00 00 4E 05 53 [04:58:00]Write i2c OK [04:58:00]MH_I2C_Read... [04:58:00]Read from MH i2c: 01 [04:58:00]MH_I2C_Read... [04:58:00]Read from MH i2c: 01 07 00 [04:58:00]MH_I2C_Read... [04:58:00]Read from MH i2c: 01 07 00 4E 05 00 00 00 00 00 FF 0F 68 [04:58:00]RasterBufferAndPrint [04:58:00]line Счет N : (3)183853 [04:58:00]line ИНН: 02508201610067 [04:58:00]line Контрольно-Кассовый Чек [04:58:00]line ПРОДАЖА [04:58:00]line Товар: 2000036220012 [04:58:00]line Кофе Капучино XL(GABB TRADE) [04:58:00]line 1.000 * 130.00 [04:58:00]line = 130.00 [04:58:00]line НДС 12% НСП 1% [04:58:00]line > о реализуемом товаре [04:58:00]line ИТОГО: 130.00 [04:58:00]line НСП 1% : 1.15 [04:58:00]line НДС 12% : 13.80 [04:58:00]line Наличными: 0.00 [04:58:00]line Безнал.: 130.00 [04:58:00]line Место: АЗС № 97 "Партнер Нефть" [04:58:00]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [04:58:00]line СНО: Общий режим [04:58:00]line Чек 13 29.07.2024 04:58 [04:58:00]line Смена: 427 ФФД: 1.0 [04:58:00]line ЗНМ: 0300000053 [04:58:00]line РНМ: 0000000000092626 [04:58:00]line Версия ККМ: 001 [04:58:00]line Платежная система: O! деньги [04:58:00]line ФМ: 0000000000874958 [04:58:00]line ФД: 41824 [04:58:00]line ФПД: 106369364878241 [04:58:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T045801&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41824&fm=106369364878241&tin=02508201610067®Number=0000000000092626&sum=13000 [04:58:01]line 0 [04:58:01]written 0, free lines is 4095 [04:58:01]Write to MH i2c: 01 00 00 79 05 7E [04:58:01]Write i2c OK [04:58:01]MH_I2C_Read... [04:58:01]Read from MH i2c: 01 [04:58:01]MH_I2C_Read... [04:58:01]Read from MH i2c: 01 07 00 [04:58:01]MH_I2C_Read... [04:58:01]Read from MH i2c: 01 07 00 79 05 00 00 00 00 00 E7 0C 78 [04:58:01]RasterBufferAndPrint [04:58:01]line [04:58:01]line [04:58:01]line [04:58:01]line [04:58:01]line [04:58:01]written 0, free lines is 3309 [04:58:01]MH_Cut [04:58:01]Write to MH i2c: D1 01 00 80 05 01 57 [04:58:01]Write i2c OK [04:58:01]MH_I2C_Read... [04:58:01]Read from MH i2c: D1 [04:58:01]MH_I2C_Read... [04:58:01]Read from MH i2c: D1 01 00 [04:58:01]MH_I2C_Read... [04:58:01]Read from MH i2c: D1 01 00 80 05 00 56 [04:58:01]Write to MH i2c: 01 00 00 81 05 86 [04:58:01]Write i2c OK [04:58:01]MH_I2C_Read... [04:58:02]*** Cut start [04:58:02]*** Partial cut [04:58:02]*** CUTSNS_PIN = 1 [04:58:02]*** CUTSNS_PIN = 0 [04:58:02]*** Brake cut motor [04:58:02]Read from MH i2c: 01 [04:58:02]MH_I2C_Read... [04:58:02]*** Stop cut motor [04:58:02]*** Cut end [04:58:02]Read from MH i2c: 01 07 00 [04:58:02]MH_I2C_Read... [04:58:02]Read from MH i2c: 01 07 00 81 05 00 00 00 00 00 FF 0F 9B [04:58:02]process_action close_receipt done [04:58:02]requested_data is exist [04:58:02]produce_requested_data [04:58:02]requested_item fm.sn is exist - process it [04:58:02]wFMCommunicate request_size=4 [04:58:02]MH_SAM_APDU [04:58:02]CAPDU: 80 11 00 00 [04:58:02]Write to MH i2c: E2 08 00 82 05 80 11 00 00 00 00 00 00 01 [04:58:02]Write i2c OK [04:58:02]MH_I2C_Read... [04:58:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:58:03]Read from MH i2c: E2 [04:58:03]MH_I2C_Read... [04:58:03]Read from MH i2c: E2 17 00 [04:58:03]MH_I2C_Read... [04:58:03]Read from MH i2c: E2 17 00 82 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 5D [04:58:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [04:58:03]wFMCommunicate OK [04:58:03]requested_item fd.num is exist - process it [04:58:03]SAM_PROTO_GetFieldsCounters [04:58:03]wFMCommunicate request_size=4 [04:58:03]MH_SAM_APDU [04:58:03]CAPDU: 80 13 00 00 [04:58:03]Write to MH i2c: E2 08 00 83 05 80 13 00 00 00 00 00 00 04 [04:58:03]Write i2c OK [04:58:03]MH_I2C_Read... [04:58:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:58:03]Read from MH i2c: E2 [04:58:03]MH_I2C_Read... [04:58:03]Read from MH i2c: E2 62 00 [04:58:03]MH_I2C_Read... [04:58:03]Read from MH i2c: E2 62 00 83 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 60 A3 00 00 0E 04 04 00 AB 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 04 [04: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 60 A3 00 00 0E 04 04 00 AB 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:58:03]wFMCommunicate OK [04:58:03]SAM_PROTO_GetFieldsCounters done [04:58:03]requested_item shift.num is exist - process it [04:58:03]requested_item shift.opened is exist - process it [04:58:03]req_shift_opened [04:58:03]FM_GetShiftState [04:58:03]SAM_PROTO_GetShiftState [04:58:03]wFMCommunicate request_size=4 [04:58:03]MH_SAM_APDU [04:58:03]CAPDU: 80 13 01 00 [04:58:03]Write to MH i2c: E2 08 00 84 05 80 13 01 00 00 00 00 00 06 [04:58:03]Write i2c OK [04:58:03]MH_I2C_Read... [04:58:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:58:03]Read from MH i2c: E2 [04:58:03]MH_I2C_Read... [04:58:03]Read from MH i2c: E2 0E 00 [04:58:03]MH_I2C_Read... [04:58:03]Read from MH i2c: E2 0E 00 84 05 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 A2 [04:58:03]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [04:58:03]wFMCommunicate OK [04:58:03]SAM_PROTO_GetShiftState done [04:58:03]FM_GetShiftState done [04:58:03]req_shift_opened done [04:58:03]requested_item shift.open_date is exist - process it [04:58:03]req_shift_open_date [04:58:03]req_shift_open_date done [04:58:03]produce_requested_data done [04:58:03]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41824,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [04:58:03]process_action_free close_receipt [04:58:03]json_value_free [04:58:03]json_value_free done [04:58:03]process_json_proto returns [04:58:03]Send response to host [04:58:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41824,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [04:58:03]free response buf [04:58:03]execute_script done [04:58:03]execute_script returns [04:58:03]free content buf [04:58:03]Sock 9.Close socket [04:58:03]Sock 9.Thread stoped [04:58:09]recv_with_timeout no data received [04:58:20]recv_with_timeout no data received [04:58:26]accept exits with 8 [04:58:26]New connection [04:58:26]New thread 3067030884 created [04:58:26]Thread 3066887524 joined [04:58:26]Waiting for new connection... [04:58:26] Sock 8.Parse request [04:58:26]Sock 8.Check first char [04:58:26]Sock 8.First char is OK [04:58:26]request: POST /json_proto HTTP/1.0 [04:58:26]Method: POST [04:58:26]URL: /json_proto [04:58:26]Method is POST - this is cgi request [04:58:26]url: /json_proto [04:58:26]query_string will be loaded in cgi processing [04:58:26]execute_cgi json_proto POST (null) [04:58:26]execute_cgi path=json_proto method=POST [04:58:26]POST find Content-Length [04:58:26]Host: 172.17.43.132:8080 [04:58:26]Content-Length: 932 [04:58:26]Content-Type: application/json [04:58:26] [04:58:26]POST finish read [04:58:26]Found Content-Length = 932 [04:58:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 41816, "base_FM": "0000000000874958", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183845", "tax_sys" : 0, "items" : [ { "code": "4630002599859", "name": "\u041C\u0430\u0441\u043B\u043E Gazpromneft Standart 15w40 1\u043B", "price" : 405.00, "quantity" : 1.000, "sum" : 405.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 445.00 } ], "post_footer_text": "41816" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:58:26]execute_script... [04:58:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 41816, "base_FM": "0000000000874958", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183845", "tax_sys" : 0, "items" : [ { "code": "4630002599859", "name": "\u041C\u0430\u0441\u043B\u043E Gazpromneft Standart 15w40 1\u043B", "price" : 405.00, "quantity" : 1.000, "sum" : 405.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 445.00 } ], "post_footer_text": "41816" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:58:26]POST & json_proto [04:58:26]process_json_proto [04:58:26]json parsed OK: [04:58:26]protocol is kg_v1.0 [04:58:26]action value=close_receipt [04:58:26]process_action close_receipt [04:58:26]cmd_close_receipt [04:58:26]MH_GetDate [04:58:26]Write to MH i2c: F0 00 00 85 05 79 [04:58:26]Write i2c OK [04:58:26]MH_I2C_Read... [04:58:26]Read from MH i2c: F0 [04:58:26]MH_I2C_Read... [04:58:26]Read from MH i2c: F0 09 00 [04:58:26]MH_I2C_Read... [04:58:26]Read from MH i2c: F0 09 00 85 05 00 74 21 A7 66 AA D0 A5 66 A9 [04:58:26]GetLastDocTimeStamp 1722229081 [04:58:26]current date 1722229108 [04:58:26]FM_GetShiftState [04:58:26]SAM_PROTO_GetShiftState [04:58:26]wFMCommunicate request_size=4 [04:58:26]MH_SAM_APDU [04:58:26]CAPDU: 80 13 01 00 [04:58:26]Write to MH i2c: E2 08 00 86 05 80 13 01 00 00 00 00 00 08 [04:58:26]Write i2c OK [04:58:26]MH_I2C_Read... [04:58:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:58:26]Read from MH i2c: E2 [04:58:26]MH_I2C_Read... [04:58:26]Read from MH i2c: E2 0E 00 [04:58:26]MH_I2C_Read... [04:58:26]Read from MH i2c: E2 0E 00 86 05 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 A4 [04:58:26]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [04:58:26]wFMCommunicate OK [04:58:26]SAM_PROTO_GetShiftState done [04:58:26]FM_GetShiftState done [04:58:26]opened in 1722211496 [04:58:26]opened+sec_in_day 1722297896 [04:58:26]quantity*price = 40500 [04:58:26]sum+1 = 40501 [04:58:26]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160211 Вода Легенда 0,5л 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 445.00 НСП 1% : 3.93 НДС 12% : 47.26 Наличными: 445.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 14 29.07.2024 04:58 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФД осн.: 41816 ФМ осн.: 0000000000874958 ФМ: 0000000000874958 ФД: 41825 ФПД: 177806058574626 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T045828&type=2&operation_type=1&fn_number=0000000000874958&fd_number=41825&fm=177806058574626&tin=02508201610067®Number=0000000000092626&sum=44500 41816 [04:58:27]StoreToDocumentArchive [04:58:27]shift 427 fd 41825 [04:58:27]save to /storage/0427/doc_00041825 [04:58:27]save last doc name /storage/0427/doc_00041825 to /storage/kkm_last_doc_name [04:58:27]save OK [04:58:27]Clear old archive folders... [04:58:27]ProcessDocumentItem done err = 0, tmpTLVsize=412 [04:58:27]tlvbuf is 013DFF40 [04:58:27]SAM_PROTO_ClearQueue [04:58:27]wFMCommunicate request_size=4 [04:58:27]MH_SAM_APDU [04:58:27]CAPDU: 80 09 00 00 [04:58:27]Write to MH i2c: E2 08 00 95 05 80 09 00 00 00 00 00 00 0C [04:58:27]Write i2c OK [04:58:27]MH_I2C_Read... [04:58:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:58:27]Read from MH i2c: E2 [04:58:27]MH_I2C_Read... [04:58:27]Read from MH i2c: E2 03 00 [04:58:27]MH_I2C_Read... [04:58:27]Read from MH i2c: E2 03 00 95 05 00 90 00 0E [04:58:27]RAPDU: 90 00 [04:58:27]wFMCommunicate OK [04:58:27]SAM_PROTO_ClearQueue done [04:58:27]KKMCreateOFDPacket [04:58:27]OFDProtocolAddRootSTLVToBuf [04:58:27]FM_MakeSignedData [04:58:27]FM_MakeSignedData [04:58:27]SAM_PROTO_SignData [04:58:27]wFMCommunicate request_size=4 [04:58:27]MH_SAM_APDU [04:58:27]CAPDU: 80 0D 01 02 [04:58:27]Write to MH i2c: E2 08 00 96 05 80 0D 01 02 00 00 00 00 14 [04:58:27]Write i2c OK [04:58:27]MH_I2C_Read... [04:58:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:58:27]Read from MH i2c: E2 [04:58:27]MH_I2C_Read... [04:58:27]Read from MH i2c: E2 03 00 [04:58:27]MH_I2C_Read... [04:58:27]Read from MH i2c: E2 03 00 96 05 00 90 00 0F [04:58:27]RAPDU: 90 00 [04:58:27]wFMCommunicate OK [04:58:27]wFMCommunicate request_size=255 [04:58:27]MH_SAM_APDU [04:58:27]CAPDU: 80 0D 02 02 FA 03 00 9C 01 1E 04 01 00 02 23 04 6D 00 8A 04 0D 00 34 36 33 30 30 30 32 35 39 39 38 35 39 06 04 29 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 74 61 6E 64 61 72 74 20 31 35 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 AD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 [04:58:27]Write to MH i2c: E2 02 01 97 05 80 0D 02 02 FA 00 03 00 9C 01 1E 04 01 00 02 23 04 6D 00 8A 04 0D 00 34 36 33 30 30 30 32 35 39 39 38 35 39 06 04 29 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 74 61 6E 64 61 72 74 20 31 35 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 AD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 D5 [04:58:27]Write i2c OK [04:58:27]MH_I2C_Read... [04:58:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:58:28]Read from MH i2c: E2 [04:58:28]MH_I2C_Read... [04:58:28]Read from MH i2c: E2 03 00 [04:58:28]MH_I2C_Read... [04:58:28]Read from MH i2c: E2 03 00 97 05 00 90 00 10 [04:58:28]RAPDU: 90 00 [04:58:28]wFMCommunicate OK [04:58:28]wFMCommunicate request_size=171 [04:58:28]MH_SAM_APDU [04:58:28]CAPDU: 80 0D 02 02 A6 89 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 12 00 00 00 00 07 04 06 00 D4 AD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 74 21 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 27 04 04 00 58 A3 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 61 A3 00 00 35 04 06 00 A1 B6 B2 F5 D3 22 [04:58:28]Write to MH i2c: E2 AE 00 98 05 80 0D 02 02 A6 00 89 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 12 00 00 00 00 07 04 06 00 D4 AD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 74 21 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 27 04 04 00 58 A3 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 61 A3 00 00 35 04 06 00 A1 B6 B2 F5 D3 22 00 00 0E [04:58:28]Write i2c OK [04:58:28]MH_I2C_Read... [04:58:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:58:28]Read from MH i2c: E2 [04:58:28]MH_I2C_Read... [04:58:28]Read from MH i2c: E2 03 00 [04:58:28]MH_I2C_Read... [04:58:28]Read from MH i2c: E2 03 00 98 05 00 90 00 11 [04:58:28]RAPDU: 90 00 [04:58:28]wFMCommunicate OK [04:58:28]wFMCommunicate request_size=4 [04:58:28]MH_SAM_APDU [04:58:28]CAPDU: 80 0D 03 02 [04:58:28]Write to MH i2c: E2 08 00 99 05 80 0D 03 02 00 00 00 00 19 [04:58:28]Write i2c OK [04:58:28]MH_I2C_Read... [04:58:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:58:28]Read from MH i2c: E2 [04:58:28]MH_I2C_Read... [04:58:28]Read from MH i2c: E2 0B 00 [04:58:28]MH_I2C_Read... [04:58:28]Read from MH i2c: E2 0B 00 99 05 00 9A E5 F8 6F 4A 8E AA B0 90 00 32 [04:58:28]RAPDU: 9A E5 F8 6F 4A 8E AA B0 90 00 [04:58:28]wFMCommunicate OK [04:58:28]SAM_PROTO_SignData done [04:58:28]FM_MakeSignedData done [04:58:28]CreateOFDProtocolMessage [04:58:28]wFMCommunicate request_size=4 [04:58:28]MH_SAM_APDU [04:58:28]CAPDU: 80 11 00 00 [04:58:28]Write to MH i2c: E2 08 00 9A 05 80 11 00 00 00 00 00 00 19 [04:58:28]Write i2c OK [04:58:28]MH_I2C_Read... [04:58:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:58:28]Read from MH i2c: E2 [04:58:28]MH_I2C_Read... [04:58:28]Read from MH i2c: E2 17 00 [04:58:28]MH_I2C_Read... [04:58:28]Read from MH i2c: E2 17 00 9A 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 75 [04:58:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [04:58:28]wFMCommunicate OK [04:58:28]CreateOFDProtocolMessage done [04:58:28]OFDSenderStorePacket 41825 [04:58:28]StoreOFDPacket docnum=41825 [04:58:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 B0 01 00 00 A7 AF A8 01 61 DF 5A 03 01 00 03 00 9C 01 1E 04 01 00 02 23 04 6D 00 8A 04 0D 00 34 36 33 30 30 30 32 35 39 39 38 35 39 06 04 29 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 74 61 6E 64 61 72 74 20 31 35 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 AD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 12 00 00 00 00 07 04 06 00 D4 AD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 74 21 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 27 04 04 00 58 A3 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 61 A3 00 00 35 04 06 00 A1 B6 B2 F5 D3 22 9A E5 F8 6F 4A 8E AA B0 [04:58:28]CheckFolder [04:58:28]dirname=/storage/ofd_packets [04:58:28]CheckFolder done [04:58:28]ProducePacketName [04:58:28]name=ofd_packets/00041825 [04:58:28]NVStorageSaveData ofd_packets/00041825 [04:58:28]File name is /storage/ofd_packets/00041825 [04:58:28]Write 462 bytes [04:58:28]NVStorageSaveData done [04:58:28]OFDSenderStorePacket done [04:58:28]KKMCreateOFDPacket done [04:58:28]NVStorageSaveData kkm_last_timestamp [04:58:28]File name is /storage/kkm_last_timestamp [04:58:28]Write 4 bytes [04:58:28]NVStorageSaveData done [04:58:28]ExternCall_PrintAddStr [04:58:28]wPrintStart [04:58:28]Write to MH i2c: 01 00 00 9B 05 A0 [04:58:28]Write i2c OK [04:58:28]MH_I2C_Read... [04:58:28]Read from MH i2c: 01 [04:58:28]MH_I2C_Read... [04:58:28]Read from MH i2c: 01 07 00 [04:58:28]MH_I2C_Read... [04:58:28]Read from MH i2c: 01 07 00 9B 05 00 00 00 00 00 FF 0F B5 [04:58:28]RasterBufferAndPrint [04:58:28]line Счет N : (3)183845 [04:58:28]line ИНН: 02508201610067 [04:58:28]line Контрольно-Кассовый Чек [04:58:28]line ВОЗВРАТ ПРОДАЖИ [04:58:28]line Товар: 4630002599859 [04:58:28]line Масло Gazpromneft Standart 15w40 1л [04:58:28]line 1.000 * 405.00 [04:58:28]line = 405.00 [04:58:28]line НДС 12% НСП 1% [04:58:28]line > о реализуемом товаре [04:58:28]line Товар: 4700000160211 [04:58:28]line Вода Легенда 0,5л [04:58:28]line 1.000 * 40.00 [04:58:28]line = 40.00 [04:58:28]line НДС 12% НСП 1% [04:58:28]line > о реализуемом товаре [04:58:28]line ИТОГО: 445.00 [04:58:28]line НСП 1% : 3.93 [04:58:28]line НДС 12% : 47.26 [04:58:28]line Наличными: 445.00 [04:58:28]line Безнал.: 0.00 [04:58:28]line Место: АЗС № 97 "Партнер Нефть" [04:58:28]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [04:58:28]line СНО: Общий режим [04:58:28]line Чек 14 29.07.2024 04:58 [04:58:28]line Смена: 427 ФФД: 1.0 [04:58:28]line ЗНМ: 0300000053 [04:58:28]line РНМ: 0000000000092626 [04:58:28]line Версия ККМ: 001 [04:58:28]line ФД осн.: 41816 [04:58:28]line ФМ осн.: 0000000000874958 [04:58:28]line ФМ: 0000000000874958 [04:58:28]line ФД: 41825 [04:58:28]line ФПД: 177806058574626 [04:58:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T045828&type=2&operation_type=1&fn_number=0000000000874958&fd_number=41825&fm=177806058574626&tin=02508201610067®Number=0000000000092626&sum=44500 [04:58:28]line 41816 [04:58:28]written 0, free lines is 4095 [04:58:29]Write to MH i2c: 01 00 00 CC 05 D1 [04:58:29]Write i2c OK [04:58:29]MH_I2C_Read... [04:58:29]Read from MH i2c: 01 [04:58:29]MH_I2C_Read... [04:58:29]Read from MH i2c: 01 07 00 [04:58:29]MH_I2C_Read... [04:58:29]Read from MH i2c: 01 07 00 CC 05 00 00 00 00 00 AC 0C 90 [04:58:29]RasterBufferAndPrint [04:58:29]line [04:58:29]line [04:58:29]line [04:58:29]line [04:58:29]line [04:58:29]written 0, free lines is 3254 [04:58:29]MH_Cut [04:58:29]Write to MH i2c: D1 01 00 D3 05 01 AA [04:58:29]Write i2c OK [04:58:29]MH_I2C_Read... [04:58:29]Read from MH i2c: D1 [04:58:29]MH_I2C_Read... [04:58:29]Read from MH i2c: D1 01 00 [04:58:29]MH_I2C_Read... [04:58:29]Read from MH i2c: D1 01 00 D3 05 00 A9 [04:58:29]Write to MH i2c: 01 00 00 D4 05 D9 [04:58:29]Write i2c OK [04:58:29]MH_I2C_Read... [04:58:29]*** Cut start [04:58:29]*** Partial cut [04:58:29]*** CUTSNS_PIN = 1 [04:58:29]*** CUTSNS_PIN = 0 [04:58:30]*** Brake cut motor [04:58:30]Read from MH i2c: 01 [04:58:30]MH_I2C_Read... [04:58:30]*** Stop cut motor [04:58:30]*** Cut end [04:58:30]Read from MH i2c: 01 07 00 [04:58:30]MH_I2C_Read... [04:58:30]Read from MH i2c: 01 07 00 D4 05 00 00 00 00 00 FF 0F EE [04:58:30]process_action close_receipt done [04:58:30]requested_data is exist [04:58:30]produce_requested_data [04:58:30]requested_item fm.sn is exist - process it [04:58:30]wFMCommunicate request_size=4 [04:58:30]MH_SAM_APDU [04:58:30]CAPDU: 80 11 00 00 [04:58:30]Write to MH i2c: E2 08 00 D5 05 80 11 00 00 00 00 00 00 54 [04:58:30]Write i2c OK [04:58:30]MH_I2C_Read... [04:58:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:58:30]Read from MH i2c: E2 [04:58:30]MH_I2C_Read... [04:58:30]Read from MH i2c: E2 17 00 [04:58:30]MH_I2C_Read... [04:58:30]Read from MH i2c: E2 17 00 D5 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 B0 [04:58:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [04:58:30]wFMCommunicate OK [04:58:30]requested_item fd.num is exist - process it [04:58:30]SAM_PROTO_GetFieldsCounters [04:58:30]wFMCommunicate request_size=4 [04:58:30]MH_SAM_APDU [04:58:30]CAPDU: 80 13 00 00 [04:58:30]Write to MH i2c: E2 08 00 D6 05 80 13 00 00 00 00 00 00 57 [04:58:30]Write i2c OK [04:58:30]MH_I2C_Read... [04:58:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:58:30]Read from MH i2c: E2 [04:58:30]MH_I2C_Read... [04:58:30]Read from MH i2c: E2 62 00 [04:58:30]MH_I2C_Read... [04:58:30]Read from MH i2c: E2 62 00 D6 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 61 A3 00 00 0E 04 04 00 AB 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 5B [04:58: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 61 A3 00 00 0E 04 04 00 AB 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:58:30]wFMCommunicate OK [04:58:30]SAM_PROTO_GetFieldsCounters done [04:58:30]requested_item shift.num is exist - process it [04:58:30]requested_item shift.opened is exist - process it [04:58:30]req_shift_opened [04:58:30]FM_GetShiftState [04:58:30]SAM_PROTO_GetShiftState [04:58:30]wFMCommunicate request_size=4 [04:58:30]MH_SAM_APDU [04:58:30]CAPDU: 80 13 01 00 [04:58:30]Write to MH i2c: E2 08 00 D7 05 80 13 01 00 00 00 00 00 59 [04:58:30]Write i2c OK [04:58:30]MH_I2C_Read... [04:58:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:58:30]Read from MH i2c: E2 [04:58:30]MH_I2C_Read... [04:58:30]Read from MH i2c: E2 0E 00 [04:58:30]MH_I2C_Read... [04:58:30]Read from MH i2c: E2 0E 00 D7 05 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 F5 [04:58:30]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [04:58:30]wFMCommunicate OK [04:58:30]SAM_PROTO_GetShiftState done [04:58:30]FM_GetShiftState done [04:58:30]req_shift_opened done [04:58:30]requested_item shift.open_date is exist - process it [04:58:30]req_shift_open_date [04:58:30]req_shift_open_date done [04:58:30]produce_requested_data done [04:58:30]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41825,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [04:58:30]process_action_free close_receipt [04:58:30]json_value_free [04:58:30]json_value_free done [04:58:30]process_json_proto returns [04:58:30]Send response to host [04:58:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41825,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [04:58:30]free response buf [04:58:30]execute_script done [04:58:30]execute_script returns [04:58:30]free content buf [04:58:30]Sock 8.Close socket [04:58:30]Sock 8.Thread stoped [04:58:31]recv_with_timeout no data received [04:58:41]recv_with_timeout no data received [04:58:58]accept exits with 11 [04:58:58]New connection [04:58:58]New thread 3066887524 created [04:58:58]Thread 3067030884 joined [04:58:58]Waiting for new connection... [04:58:58] Sock 11.Parse request [04:58:58]Sock 11.Check first char [04:58:58]Sock 11.First char is OK [04:58:58]request: POST /json_proto HTTP/1.0 [04:58:58]Method: POST [04:58:58]URL: /json_proto [04:58:58]Method is POST - this is cgi request [04:58:58]url: /json_proto [04:58:58]query_string will be loaded in cgi processing [04:58:58]execute_cgi json_proto POST (null) [04:58:58]execute_cgi path=json_proto method=POST [04:58:58]POST find Content-Length [04:58:58]Host: 172.17.43.132:8080 [04:58:58]Content-Length: 1049 [04:58:58]Content-Type: application/json [04:58:58] [04:58:58]POST finish read [04:58:58]Found Content-Length = 1049 [04:58:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183854", "tax_sys" : 0, "items" : [ { "code": "4630002599859", "name": "\u041C\u0430\u0441\u043B\u043E Gazpromneft Standart 15w40 1\u043B", "price" : 405.00, "quantity" : 1.000, "sum" : 405.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 445.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:58:58]execute_script... [04:58:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183854", "tax_sys" : 0, "items" : [ { "code": "4630002599859", "name": "\u041C\u0430\u0441\u043B\u043E Gazpromneft Standart 15w40 1\u043B", "price" : 405.00, "quantity" : 1.000, "sum" : 405.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 445.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:58:58]POST & json_proto [04:58:58]process_json_proto [04:58:58]json parsed OK: [04:58:58]protocol is kg_v1.0 [04:58:58]action value=close_receipt [04:58:58]process_action close_receipt [04:58:58]cmd_close_receipt [04:58:58]MH_GetDate [04:58:58]Write to MH i2c: F0 00 00 D8 05 CC [04:58:58]Write i2c OK [04:58:58]MH_I2C_Read... [04:58:58]Read from MH i2c: F0 [04:58:58]MH_I2C_Read... [04:58:58]Read from MH i2c: F0 09 00 [04:58:58]MH_I2C_Read... [04:58:58]Read from MH i2c: F0 09 00 D8 05 00 94 21 A7 66 AA D0 A5 66 1C [04:58:58]GetLastDocTimeStamp 1722229108 [04:58:58]current date 1722229140 [04:58:58]FM_GetShiftState [04:58:58]SAM_PROTO_GetShiftState [04:58:58]wFMCommunicate request_size=4 [04:58:58]MH_SAM_APDU [04:58:58]CAPDU: 80 13 01 00 [04:58:58]Write to MH i2c: E2 08 00 D9 05 80 13 01 00 00 00 00 00 5B [04:58:58]Write i2c OK [04:58:58]MH_I2C_Read... [04:58:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:58:58]Read from MH i2c: E2 [04:58:58]MH_I2C_Read... [04:58:58]Read from MH i2c: E2 0E 00 [04:58:58]MH_I2C_Read... [04:58:58]Read from MH i2c: E2 0E 00 D9 05 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 F7 [04:58:58]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [04:58:58]wFMCommunicate OK [04:58:58]SAM_PROTO_GetShiftState done [04:58:58]FM_GetShiftState done [04:58:58]opened in 1722211496 [04:58:58]opened+sec_in_day 1722297896 [04:58:58]quantity*price = 40500 [04:58:58]sum+1 = 40501 [04:58:58]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160211 Вода Легенда 0,5л 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 445.00 НСП 1% : 3.93 НДС 12% : 47.26 Наличными: 0.00 Безнал.: 445.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 15 29.07.2024 04:59 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874958 ФД: 41826 ФПД: 196743823102946 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T045900&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41826&fm=196743823102946&tin=02508201610067®Number=0000000000092626&sum=44500 0 [04:58:59]StoreToDocumentArchive [04:58:59]shift 427 fd 41826 [04:58:59]save to /storage/0427/doc_00041826 [04:58:59]save last doc name /storage/0427/doc_00041826 to /storage/kkm_last_doc_name [04:58:59]save OK [04:58:59]Clear old archive folders... [04:58:59]ProcessDocumentItem done err = 0, tmpTLVsize=384 [04:58:59]tlvbuf is 013C7540 [04:58:59]SAM_PROTO_ClearQueue [04:58:59]wFMCommunicate request_size=4 [04:58:59]MH_SAM_APDU [04:58:59]CAPDU: 80 09 00 00 [04:58:59]Write to MH i2c: E2 08 00 E6 05 80 09 00 00 00 00 00 00 5D [04:58:59]Write i2c OK [04:58:59]MH_I2C_Read... [04:58:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:58:59]Read from MH i2c: E2 [04:58:59]MH_I2C_Read... [04:58:59]Read from MH i2c: E2 03 00 [04:58:59]MH_I2C_Read... [04:58:59]Read from MH i2c: E2 03 00 E6 05 00 90 00 5F [04:58:59]RAPDU: 90 00 [04:58:59]wFMCommunicate OK [04:58:59]SAM_PROTO_ClearQueue done [04:58:59]KKMCreateOFDPacket [04:58:59]OFDProtocolAddRootSTLVToBuf [04:58:59]FM_MakeSignedData [04:58:59]FM_MakeSignedData [04:58:59]SAM_PROTO_SignData [04:58:59]wFMCommunicate request_size=4 [04:58:59]MH_SAM_APDU [04:58:59]CAPDU: 80 0D 01 02 [04:58:59]Write to MH i2c: E2 08 00 E7 05 80 0D 01 02 00 00 00 00 65 [04:58:59]Write i2c OK [04:58:59]MH_I2C_Read... [04:58:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:58:59]Read from MH i2c: E2 [04:58:59]MH_I2C_Read... [04:58:59]Read from MH i2c: E2 03 00 [04:58:59]MH_I2C_Read... [04:58:59]Read from MH i2c: E2 03 00 E7 05 00 90 00 60 [04:58:59]RAPDU: 90 00 [04:58:59]wFMCommunicate OK [04:58:59]wFMCommunicate request_size=255 [04:58:59]MH_SAM_APDU [04:58:59]CAPDU: 80 0D 02 02 FA 03 00 80 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 33 30 30 30 32 35 39 39 38 35 39 06 04 29 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 74 61 6E 64 61 72 74 20 31 35 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 AD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 [04:58:59]Write to MH i2c: E2 02 01 E8 05 80 0D 02 02 FA 00 03 00 80 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 33 30 30 30 32 35 39 39 38 35 39 06 04 29 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 74 61 6E 64 61 72 74 20 31 35 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 AD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 09 [04:58:59]Write i2c OK [04:58:59]MH_I2C_Read... [04:58:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:58:59]Read from MH i2c: E2 [04:58:59]MH_I2C_Read... [04:58:59]Read from MH i2c: E2 03 00 [04:58:59]MH_I2C_Read... [04:58:59]Read from MH i2c: E2 03 00 E8 05 00 90 00 61 [04:58:59]RAPDU: 90 00 [04:58:59]wFMCommunicate OK [04:58:59]wFMCommunicate request_size=143 [04:58:59]MH_SAM_APDU [04:58:59]CAPDU: 80 0D 02 02 8A 89 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 AD 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 94 21 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 62 A3 00 00 35 04 06 00 B2 EF FD B0 13 E2 [04:58:59]Write to MH i2c: E2 92 00 E9 05 80 0D 02 02 8A 00 89 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 AD 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 94 21 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 62 A3 00 00 35 04 06 00 B2 EF FD B0 13 E2 00 00 0A [04:58:59]Write i2c OK [04:58:59]MH_I2C_Read... [04:58:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:58:59]Read from MH i2c: E2 [04:58:59]MH_I2C_Read... [04:58:59]Read from MH i2c: E2 03 00 [04:58:59]MH_I2C_Read... [04:58:59]Read from MH i2c: E2 03 00 E9 05 00 90 00 62 [04:58:59]RAPDU: 90 00 [04:58:59]wFMCommunicate OK [04:58:59]wFMCommunicate request_size=4 [04:58:59]MH_SAM_APDU [04:58:59]CAPDU: 80 0D 03 02 [04:58:59]Write to MH i2c: E2 08 00 EA 05 80 0D 03 02 00 00 00 00 6A [04:58:59]Write i2c OK [04:58:59]MH_I2C_Read... [04:59:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:59:00]Read from MH i2c: E2 [04:59:00]MH_I2C_Read... [04:59:00]Read from MH i2c: E2 0B 00 [04:59:00]MH_I2C_Read... [04:59:00]Read from MH i2c: E2 0B 00 EA 05 00 7B F5 0D B2 DA 24 A2 45 90 00 7F [04:59:00]RAPDU: 7B F5 0D B2 DA 24 A2 45 90 00 [04:59:00]wFMCommunicate OK [04:59:00]SAM_PROTO_SignData done [04:59:00]FM_MakeSignedData done [04:59:00]CreateOFDProtocolMessage [04:59:00]wFMCommunicate request_size=4 [04:59:00]MH_SAM_APDU [04:59:00]CAPDU: 80 11 00 00 [04:59:00]Write to MH i2c: E2 08 00 EB 05 80 11 00 00 00 00 00 00 6A [04:59:00]Write i2c OK [04:59:00]MH_I2C_Read... [04:59:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:59:00]Read from MH i2c: E2 [04:59:00]MH_I2C_Read... [04:59:00]Read from MH i2c: E2 17 00 [04:59:00]MH_I2C_Read... [04:59:00]Read from MH i2c: E2 17 00 EB 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 C6 [04:59:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [04:59:00]wFMCommunicate OK [04:59:00]CreateOFDProtocolMessage done [04:59:00]OFDSenderStorePacket 41826 [04:59:00]StoreOFDPacket docnum=41826 [04:59:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 94 01 00 00 1D C7 8C 01 C6 AB 5A 03 01 00 03 00 80 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 33 30 30 30 32 35 39 39 38 35 39 06 04 29 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 74 61 6E 64 61 72 74 20 31 35 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 AD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 AD 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 94 21 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 62 A3 00 00 35 04 06 00 B2 EF FD B0 13 E2 7B F5 0D B2 DA 24 A2 45 [04:59:00]CheckFolder [04:59:00]dirname=/storage/ofd_packets [04:59:00]CheckFolder done [04:59:00]ProducePacketName [04:59:00]name=ofd_packets/00041826 [04:59:00]NVStorageSaveData ofd_packets/00041826 [04:59:00]File name is /storage/ofd_packets/00041826 [04:59:00]Write 434 bytes [04:59:00]NVStorageSaveData done [04:59:00]OFDSenderStorePacket done [04:59:00]KKMCreateOFDPacket done [04:59:00]NVStorageSaveData kkm_last_timestamp [04:59:00]File name is /storage/kkm_last_timestamp [04:59:00]Write 4 bytes [04:59:00]NVStorageSaveData done [04:59:00]ExternCall_PrintAddStr [04:59:00]wPrintStart [04:59:00]Write to MH i2c: 01 00 00 EC 05 F1 [04:59:00]Write i2c OK [04:59:00]MH_I2C_Read... [04:59:00]Read from MH i2c: 01 [04:59:00]MH_I2C_Read... [04:59:00]Read from MH i2c: 01 07 00 [04:59:00]MH_I2C_Read... [04:59:00]Read from MH i2c: 01 07 00 EC 05 00 00 00 00 00 FF 0F 06 [04:59:00]RasterBufferAndPrint [04:59:00]line Счет N : (3)183854 [04:59:00]line ИНН: 02508201610067 [04:59:00]line Контрольно-Кассовый Чек [04:59:00]line ПРОДАЖА [04:59:00]line Товар: 4630002599859 [04:59:00]line Масло Gazpromneft Standart 15w40 1л [04:59:00]line 1.000 * 405.00 [04:59:00]line = 405.00 [04:59:00]line НДС 12% НСП 1% [04:59:00]line > о реализуемом товаре [04:59:00]line Товар: 4700000160211 [04:59:00]line Вода Легенда 0,5л [04:59:00]line 1.000 * 40.00 [04:59:00]line = 40.00 [04:59:00]line НДС 12% НСП 1% [04:59:00]line > о реализуемом товаре [04:59:00]line ИТОГО: 445.00 [04:59:00]line НСП 1% : 3.93 [04:59:00]line НДС 12% : 47.26 [04:59:00]line Наличными: 0.00 [04:59:00]line Безнал.: 445.00 [04:59:00]line Место: АЗС № 97 "Партнер Нефть" [04:59:00]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [04:59:00]line СНО: Общий режим [04:59:00]line Чек 15 29.07.2024 04:59 [04:59:00]line Смена: 427 ФФД: 1.0 [04:59:00]line ЗНМ: 0300000053 [04:59:00]line РНМ: 0000000000092626 [04:59:00]line Версия ККМ: 001 [04:59:00]line Платежная система: Бакай Банк [04:59:00]line ФМ: 0000000000874958 [04:59:00]line ФД: 41826 [04:59:00]line ФПД: 196743823102946 [04:59:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T045900&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41826&fm=196743823102946&tin=02508201610067®Number=0000000000092626&sum=44500 [04:59:00]line 0 [04:59:00]written 0, free lines is 4095 [04:59:00]Write to MH i2c: 01 00 00 1D 06 23 [04:59:00]Write i2c OK [04:59:00]MH_I2C_Read... [04:59:00]Read from MH i2c: 01 [04:59:00]MH_I2C_Read... [04:59:00]Read from MH i2c: 01 07 00 [04:59:00]MH_I2C_Read... [04:59:00]Read from MH i2c: 01 07 00 1D 06 00 00 00 00 00 A1 0C D7 [04:59:00]RasterBufferAndPrint [04:59:00]line [04:59:00]line [04:59:00]line [04:59:00]line [04:59:00]line [04:59:00]written 0, free lines is 3239 [04:59:00]MH_Cut [04:59:00]Write to MH i2c: D1 01 00 24 06 01 FC [04:59:00]Write i2c OK [04:59:00]MH_I2C_Read... [04:59:00]Read from MH i2c: D1 [04:59:00]MH_I2C_Read... [04:59:00]Read from MH i2c: D1 01 00 [04:59:00]MH_I2C_Read... [04:59:00]Read from MH i2c: D1 01 00 24 06 00 FB [04:59:00]Write to MH i2c: 01 00 00 25 06 2B [04:59:00]Write i2c OK [04:59:00]MH_I2C_Read... [04:59:01]*** Cut start [04:59:01]*** Partial cut [04:59:01]*** CUTSNS_PIN = 1 [04:59:01]*** CUTSNS_PIN = 0 [04:59:02]*** Brake cut motor [04:59:02]Read from MH i2c: 01 [04:59:02]MH_I2C_Read... [04:59:02]*** Stop cut motor [04:59:02]*** Cut end [04:59:02]Read from MH i2c: 01 07 00 [04:59:02]MH_I2C_Read... [04:59:02]Read from MH i2c: 01 07 00 25 06 00 00 00 00 00 FF 0F 40 [04:59:02]process_action close_receipt done [04:59:02]requested_data is exist [04:59:02]produce_requested_data [04:59:02]requested_item fm.sn is exist - process it [04:59:02]wFMCommunicate request_size=4 [04:59:02]MH_SAM_APDU [04:59:02]CAPDU: 80 11 00 00 [04:59:02]Write to MH i2c: E2 08 00 26 06 80 11 00 00 00 00 00 00 A6 [04:59:02]Write i2c OK [04:59:02]MH_I2C_Read... [04:59:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:59:02]Read from MH i2c: E2 [04:59:02]MH_I2C_Read... [04:59:02]Read from MH i2c: E2 17 00 [04:59:02]MH_I2C_Read... [04:59:02]Read from MH i2c: E2 17 00 26 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 02 [04:59:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [04:59:02]wFMCommunicate OK [04:59:02]requested_item fd.num is exist - process it [04:59:02]SAM_PROTO_GetFieldsCounters [04:59:02]wFMCommunicate request_size=4 [04:59:02]MH_SAM_APDU [04:59:02]CAPDU: 80 13 00 00 [04:59:02]Write to MH i2c: E2 08 00 27 06 80 13 00 00 00 00 00 00 A9 [04:59:02]Write i2c OK [04:59:02]MH_I2C_Read... [04:59:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:59:02]Read from MH i2c: E2 [04:59:02]MH_I2C_Read... [04:59:02]Read from MH i2c: E2 62 00 [04:59:02]MH_I2C_Read... [04:59:02]Read from MH i2c: E2 62 00 27 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 62 A3 00 00 0E 04 04 00 AB 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 B1 [04:59: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 62 A3 00 00 0E 04 04 00 AB 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:59:02]wFMCommunicate OK [04:59:02]SAM_PROTO_GetFieldsCounters done [04:59:02]requested_item shift.num is exist - process it [04:59:02]requested_item shift.opened is exist - process it [04:59:02]req_shift_opened [04:59:02]FM_GetShiftState [04:59:02]SAM_PROTO_GetShiftState [04:59:02]wFMCommunicate request_size=4 [04:59:02]MH_SAM_APDU [04:59:02]CAPDU: 80 13 01 00 [04:59:02]Write to MH i2c: E2 08 00 28 06 80 13 01 00 00 00 00 00 AB [04:59:02]Write i2c OK [04:59:02]MH_I2C_Read... [04:59:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:59:02]Read from MH i2c: E2 [04:59:02]MH_I2C_Read... [04:59:02]Read from MH i2c: E2 0E 00 [04:59:02]MH_I2C_Read... [04:59:02]Read from MH i2c: E2 0E 00 28 06 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 47 [04:59:02]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [04:59:02]wFMCommunicate OK [04:59:02]SAM_PROTO_GetShiftState done [04:59:02]FM_GetShiftState done [04:59:02]req_shift_opened done [04:59:02]requested_item shift.open_date is exist - process it [04:59:02]req_shift_open_date [04:59:02]req_shift_open_date done [04:59:02]produce_requested_data done [04:59:02]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41826,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [04:59:02]process_action_free close_receipt [04:59:02]json_value_free [04:59:02]json_value_free done [04:59:02]process_json_proto returns [04:59:02]Send response to host [04:59:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41826,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [04:59:02]free response buf [04:59:02]execute_script done [04:59:02]execute_script returns [04:59:02]free content buf [04:59:02]Sock 11.Close socket [04:59:02]Sock 11.Thread stoped [04:59:32]ConnectInit Can't connect to host [04:59:32]CommunicateWithHost connect error [04:59:32]CommunicateWithHost err = -1 [04:59:32]OFD Sender: Server communicate error [04:59:32]OFD Sender: Processing packet 41823 [packets to send 60, broken 56] [04:59:32]ProducePacketName [04:59:32]name=ofd_packets/00041823 [04:59:32]OFD Sender: To server: pG, [04:59:32]CommunicateWithHost lk.salyk.kg:30040 [04:59:32]ConnectInit lk.salyk.kg [04:59:33]Connected sock=8 [04:59:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 30 01 00 00 51 68 28 01 3C B5 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 2E 21 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 5F A3 00 00 35 04 06 00 01 B9 25 6B 7F BD 72 6F 1C 25 EB 24 3D 73 [04:59: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 35 38 4F 00 00 00 01 61 47 00 FB 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 35 38 10 04 04 00 5F A3 00 00 F4 03 04 00 C7 CD A6 66 B6 04 01 00 00 73 BB 90 76 60 D4 E2 C4 [04:59:33]CommunicateWithHost err = 0 [04:59:33]CheckOFDResponse [04:59:33]1017 (14) - 77093643461234 [04:59:33]1041 (16) - 0000000000874958 [04:59:33]1040 (4) - 41823 [04:59:33]1012 (4) - 28.07.2024 23:01 [04:59:33]1206 (1) - 0 [04:59:33]OFD Sender: Remove packet 41823 [04:59:33]ProducePacketName [04:59:33]name=ofd_packets/00041823 [04:59:33]NVStorageDeleteData [04:59:34]OFD Sender: Processing packet 41824 [packets to send 59, broken 56] [04:59:34]ProducePacketName [04:59:34]name=ofd_packets/00041824 [04:59:34]OFD Sender: To server: pG, [04:59:34]CommunicateWithHost lk.salyk.kg:30040 [04:59:34]ConnectInit lk.salyk.kg [04:59:34]Connected sock=8 [04:59: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 35 38 2E 01 00 00 36 72 26 01 06 E4 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 59 21 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 60 A3 00 00 35 04 06 00 60 BE 0C 35 63 A1 C0 F6 49 27 09 68 0B 84 [04: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 35 38 4F 00 00 00 66 5F 47 00 FB 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 35 38 10 04 04 00 60 A3 00 00 F4 03 04 00 C8 CD A6 66 B6 04 01 00 00 38 A8 A8 29 FF DF 47 D0 [04:59:35]CommunicateWithHost err = 0 [04:59:35]CheckOFDResponse [04:59:35]1017 (14) - 77093643461234 [04:59:35]1041 (16) - 0000000000874958 [04:59:35]1040 (4) - 41824 [04:59:35]1012 (4) - 28.07.2024 23:01 [04:59:35]1206 (1) - 0 [04:59:35]OFD Sender: Remove packet 41824 [04:59:35]ProducePacketName [04:59:35]name=ofd_packets/00041824 [04:59:35]NVStorageDeleteData [04:59:35]OFD Sender: Processing packet 41825 [packets to send 58, broken 56] [04:59:35]ProducePacketName [04:59:35]name=ofd_packets/00041825 [04:59:35]OFD Sender: To server: pG, [04:59:35]CommunicateWithHost lk.salyk.kg:30040 [04:59:35]ConnectInit lk.salyk.kg [04:59:36]Connected sock=8 [04:59:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 B0 01 00 00 A7 AF A8 01 61 DF 5A 03 01 00 03 00 9C 01 1E 04 01 00 02 23 04 6D 00 8A 04 0D 00 34 36 33 30 30 30 32 35 39 39 38 35 39 06 04 29 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 74 61 6E 64 61 72 74 20 31 35 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 AD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 12 00 00 00 00 07 04 06 00 D4 AD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 74 21 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 27 04 04 00 58 A3 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 61 A3 00 00 35 04 06 00 A1 B6 B2 F5 D3 22 9A E5 F8 6F 4A 8E AA B0 [04:59:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 4F 00 00 00 A4 EF 47 00 6E 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 61 A3 00 00 F4 03 04 00 CA CD A6 66 B6 04 01 00 00 24 64 5E D3 72 D9 2B 3A [04:59:36]CommunicateWithHost err = 0 [04:59:36]CheckOFDResponse [04:59:36]1017 (14) - 77093643461234 [04:59:36]1041 (16) - 0000000000874958 [04:59:36]1040 (4) - 41825 [04:59:36]1012 (4) - 28.07.2024 23:01 [04:59:36]1206 (1) - 0 [04:59:36]OFD Sender: Remove packet 41825 [04:59:36]ProducePacketName [04:59:36]name=ofd_packets/00041825 [04:59:36]NVStorageDeleteData [04:59:37]OFD Sender: Processing packet 41826 [packets to send 57, broken 56] [04:59:37]ProducePacketName [04:59:37]name=ofd_packets/00041826 [04:59:37]OFD Sender: To server: pG, [04:59:37]CommunicateWithHost lk.salyk.kg:30040 [04:59:37]ConnectInit lk.salyk.kg [04:59:38]Connected sock=8 [04:59: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 35 38 94 01 00 00 1D C7 8C 01 C6 AB 5A 03 01 00 03 00 80 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 33 30 30 30 32 35 39 39 38 35 39 06 04 29 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 74 61 6E 64 61 72 74 20 31 35 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 AD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 AD 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 94 21 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 62 A3 00 00 35 04 06 00 B2 EF FD B0 13 E2 7B F5 0D B2 DA 24 A2 45 [04:59: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 35 38 4F 00 00 00 E9 23 47 00 46 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 35 38 10 04 04 00 62 A3 00 00 F4 03 04 00 CC CD A6 66 B6 04 01 00 00 DB E9 7E 50 DA 22 A8 82 [04:59:38]CommunicateWithHost err = 0 [04:59:38]CheckOFDResponse [04:59:38]1017 (14) - 77093643461234 [04:59:38]1041 (16) - 0000000000874958 [04:59:38]1040 (4) - 41826 [04:59:38]1012 (4) - 28.07.2024 23:01 [04:59:38]1206 (1) - 0 [04:59:38]OFD Sender: Remove packet 41826 [04:59:38]ProducePacketName [04:59:38]name=ofd_packets/00041826 [04:59:38]NVStorageDeleteData [04:59:39]OFD Sender: No OFD packet to send [04:59:44]OFD Sender: No OFD packet to send [04:59:49]OFD Sender: No OFD packet to send [04:59:54]OFD Sender: No OFD packet to send [04:59:59]OFD Sender: No OFD packet to send [05:00:04]OFD Sender: No OFD packet to send [05:00:09]OFD Sender: No OFD packet to send [05:00:14]OFD Sender: No OFD packet to send [05:00:19]OFD Sender: No OFD packet to send [05:00:24]OFD Sender: No OFD packet to send [05:00:29]OFD Sender: No OFD packet to send [05:00:34]OFD Sender: No OFD packet to send [05:00:39]OFD Sender: No OFD packet to send [05:00:44]OFD Sender: No OFD packet to send [05:00:49]OFD Sender: No OFD packet to send [05:00:54]OFD Sender: No OFD packet to send [05:00:59]OFD Sender: No OFD packet to send [05:01:04]OFD Sender: No OFD packet to send [05:01:09]OFD Sender: No OFD packet to send [05:01:14]OFD Sender: No OFD packet to send [05:01:19]OFD Sender: No OFD packet to send [05:01:24]OFD Sender: No OFD packet to send [05:01:29]OFD Sender: No OFD packet to send [05:01:34]OFD Sender: No OFD packet to send [05:01:39]OFD Sender: No OFD packet to send [05:01:44]OFD Sender: No OFD packet to send [05:01:49]OFD Sender: No OFD packet to send [05:01:54]OFD Sender: No OFD packet to send [05:01:59]OFD Sender: No OFD packet to send [05:02:04]OFD Sender: No OFD packet to send [05:02:09]OFD Sender: No OFD packet to send [05:02:14]OFD Sender: No OFD packet to send [05:02:19]OFD Sender: No OFD packet to send [05:02:24]OFD Sender: No OFD packet to send [05:02:25]recv_with_timeout no data received [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:12]recv_with_timeout no data received [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:15]recv_with_timeout no data received [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:23]recv_with_timeout no data received [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:36]recv_with_timeout no data received [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:26]recv_with_timeout no data received [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:52]recv_with_timeout no data received [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:23]recv_with_timeout no data received [05:16:24]OFD Sender: No OFD packet to send [05:16:29]OFD Sender: No OFD packet to send [05:16:34]OFD Sender: No OFD packet to send [05:16:39]OFD Sender: No OFD packet to send [05:16:42]recv_with_timeout no data received [05:16:44]OFD Sender: No OFD packet to send [05:16:49]OFD Sender: No OFD packet to send [05:16:54]OFD Sender: No OFD packet to send [05:16:59]OFD Sender: No OFD packet to send [05:17:04]OFD Sender: No OFD packet to send [05:17:09]OFD Sender: No OFD packet to send [05:17:14]OFD Sender: No OFD packet to send [05:17: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:09]recv_with_timeout no data received [05:21:10]OFD Sender: No OFD packet to send [05:21:15]OFD Sender: No OFD packet to send [05:21:20]OFD Sender: No OFD packet to send [05:21:25]OFD Sender: No OFD packet to send [05:21:30]OFD Sender: No OFD packet to send [05:21:35]OFD Sender: No OFD packet to send [05:21:40]OFD Sender: No OFD packet to send [05:21:45]OFD Sender: No OFD packet to send [05:21:50]OFD Sender: No OFD packet to send [05:21:55]OFD Sender: No OFD packet to send [05:21:56]recv_with_timeout no data received [05:22:00]OFD Sender: No OFD packet to send [05:22:05]OFD Sender: No OFD packet to send [05:22:10]OFD Sender: No OFD packet to send [05:22:15]OFD Sender: No OFD packet to send [05:22:20]OFD Sender: No OFD packet to send [05:22:25]OFD Sender: No OFD packet to send [05:22:30]OFD Sender: No OFD packet to send [05:22:35]OFD Sender: No OFD packet to send [05:22:39]recv_with_timeout no data received [05:22:40]OFD Sender: No OFD packet to send [05:22:45]OFD Sender: No OFD packet to send [05:22:50]OFD Sender: No OFD packet to send [05:22:55]OFD Sender: No OFD packet to send [05:23:00]OFD Sender: No OFD packet to send [05:23:05]OFD Sender: No OFD packet to send [05:23:10]OFD Sender: No OFD packet to send [05:23:15]OFD Sender: No OFD packet to send [05:23:20]OFD Sender: No OFD packet to send [05:23:25]OFD Sender: No OFD packet to send [05:23:30]OFD Sender: No OFD packet to send [05:23:35]OFD Sender: No OFD packet to send [05:23:40]recv_with_timeout no data received [05:23:40]OFD Sender: No OFD packet to send [05:23:45]OFD Sender: No OFD packet to send [05:23:50]OFD Sender: No OFD packet to send [05:23:55]OFD Sender: No OFD packet to send [05:24:00]OFD Sender: No OFD packet to send [05:24:04]recv_with_timeout no data received [05:24:05]OFD Sender: No OFD packet to send [05:24:10]OFD Sender: No OFD packet to send [05:24:15]OFD Sender: No OFD packet to send [05:24:19]recv_with_timeout no data received [05:24:20]OFD Sender: No OFD packet to send [05:24:25]OFD Sender: No OFD packet to send [05:24:30]OFD Sender: No OFD packet to send [05:24:35]OFD Sender: No OFD packet to send [05:24:40]OFD Sender: No OFD packet to send [05:24:45]OFD Sender: No OFD packet to send [05:24:50]OFD Sender: No OFD packet to send [05:24:55]OFD Sender: No OFD packet to send [05:25:00]OFD Sender: No OFD packet to send [05:25:05]OFD Sender: No OFD packet to send [05:25:10]OFD Sender: No OFD packet to send [05:25:15]OFD Sender: No OFD packet to send [05:25:20]OFD Sender: No OFD packet to send [05:25:25]OFD Sender: No OFD packet to send [05:25:30]OFD Sender: No OFD packet to send [05:25:35]OFD Sender: No OFD packet to send [05:25:40]OFD Sender: No OFD packet to send [05:25:45]OFD Sender: No OFD packet to send [05:25:50]OFD Sender: No OFD packet to send [05:25:55]OFD Sender: No OFD packet to send [05:26:00]OFD Sender: No OFD packet to send [05:26:05]OFD Sender: No OFD packet to send [05:26:10]OFD Sender: No OFD packet to send [05:26:15]OFD Sender: No OFD packet to send [05:26:20]OFD Sender: No OFD packet to send [05:26:25]OFD Sender: No OFD packet to send [05:26:30]OFD Sender: No OFD packet to send [05:26:31]recv_with_timeout no data received [05:26:35]OFD Sender: No OFD packet to send [05:26:40]OFD Sender: No OFD packet to send [05:26:45]OFD Sender: No OFD packet to send [05:26:50]OFD Sender: No OFD packet to send [05:26:55]OFD Sender: No OFD packet to send [05:27:00]OFD Sender: No OFD packet to send [05:27:05]OFD Sender: No OFD packet to send [05:27:10]OFD Sender: No OFD packet to send [05:27:13]recv_with_timeout no data received [05:27:15]OFD Sender: No OFD packet to send [05:27:20]OFD Sender: No OFD packet to send [05:27:25]OFD Sender: No OFD packet to send [05:27:30]OFD Sender: No OFD packet to send [05:27:35]OFD Sender: No OFD packet to send [05:27:40]OFD Sender: No OFD packet to send [05:27:42]recv_with_timeout no data received [05:27:45]OFD Sender: No OFD packet to send [05:27:50]OFD Sender: No OFD packet to send [05:27:55]OFD Sender: No OFD packet to send [05:28:00]OFD Sender: No OFD packet to send [05:28:02]recv_with_timeout no data received [05:28:05]OFD Sender: No OFD packet to send [05:28:10]OFD Sender: No OFD packet to send [05:28:15]OFD Sender: No OFD packet to send [05:28:20]OFD Sender: No OFD packet to send [05:28:25]OFD Sender: No OFD packet to send [05:28:30]OFD Sender: No OFD packet to send [05:28:35]OFD Sender: No OFD packet to send [05:28:40]OFD Sender: No OFD packet to send [05:28:45]OFD Sender: No OFD packet to send [05:28:50]OFD Sender: No OFD packet to send [05:28:55]OFD Sender: No OFD packet to send [05:29:00]OFD Sender: No OFD packet to send [05:29:05]OFD Sender: No OFD packet to send [05:29:09]recv_with_timeout no data received [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:06]OFD Sender: No OFD packet to send [05:35:11]OFD Sender: No OFD packet to send [05:35:16]OFD Sender: No OFD packet to send [05:35:21]OFD Sender: No OFD packet to send [05:35:26]OFD Sender: No OFD packet to send [05:35:31]OFD Sender: No OFD packet to send [05:35:36]OFD Sender: No OFD packet to send [05:35:41]OFD Sender: No OFD packet to send [05:35:46]OFD Sender: No OFD packet to send [05:35:51]OFD Sender: No OFD packet to send [05:35:56]OFD Sender: No OFD packet to send [05:36:01]OFD Sender: No OFD packet to send [05:36:06]OFD Sender: No OFD packet to send [05:36:11]OFD Sender: No OFD packet to send [05:36:16]OFD Sender: No OFD packet to send [05:36:21]OFD Sender: No OFD packet to send [05:36:26]OFD Sender: No OFD packet to send [05:36:31]OFD Sender: No OFD packet to send [05:36:36]OFD Sender: No OFD packet to send [05:36:41]OFD Sender: No OFD packet to send [05:36:46]OFD Sender: No OFD packet to send [05:36:51]OFD Sender: No OFD packet to send [05:36:56]OFD Sender: No OFD packet to send [05:37:01]OFD Sender: No OFD packet to send [05:37:06]OFD Sender: No OFD packet to send [05:37:11]OFD Sender: No OFD packet to send [05:37:16]OFD Sender: No OFD packet to send [05:37:21]OFD Sender: No OFD packet to send [05:37:26]OFD Sender: No OFD packet to send [05:37:31]OFD Sender: No OFD packet to send [05:37:36]OFD Sender: No OFD packet to send [05:37:41]OFD Sender: No OFD packet to send [05:37:46]OFD Sender: No OFD packet to send [05:37:51]OFD Sender: No OFD packet to send [05:37:56]OFD Sender: No OFD packet to send [05:38:01]OFD Sender: No OFD packet to send [05:38:06]OFD Sender: No OFD packet to send [05:38:11]OFD Sender: No OFD packet to send [05:38:16]OFD Sender: No OFD packet to send [05:38:21]OFD Sender: No OFD packet to send [05:38:26]OFD Sender: No OFD packet to send [05:38:31]OFD Sender: No OFD packet to send [05:38:36]OFD Sender: No OFD packet to send [05:38:41]OFD Sender: No OFD packet to send [05:38:46]OFD Sender: No OFD packet to send [05:38:51]OFD Sender: No OFD packet to send [05:38:56]OFD Sender: No OFD packet to send [05:39:01]OFD Sender: No OFD packet to send [05:39:06]OFD Sender: No OFD packet to send [05:39:11]OFD Sender: No OFD packet to send [05:39:16]OFD Sender: No OFD packet to send [05:39:19]recv_with_timeout no data received [05:39:21]OFD Sender: No OFD packet to send [05:39:26]OFD Sender: No OFD packet to send [05:39:31]OFD Sender: No OFD packet to send [05:39:36]OFD Sender: No OFD packet to send [05:39:41]OFD Sender: No OFD packet to send [05:39:46]OFD Sender: No OFD packet to send [05:39:51]OFD Sender: No OFD packet to send [05:39:56]OFD Sender: No OFD packet to send [05:40:01]OFD Sender: No OFD packet to send [05:40:06]OFD Sender: No OFD packet to send [05:40:11]OFD Sender: No OFD packet to send [05:40:16]OFD Sender: No OFD packet to send [05:40:21]OFD Sender: No OFD packet to send [05:40:23]accept exits with 9 [05:40:23]New connection [05:40:23]New thread 3067030884 created [05:40:23]Thread 3066887524 joined [05:40:23]Waiting for new connection... [05:40:23] Sock 9.Parse request [05:40:23]Sock 9.Check first char [05:40:23]Sock 9.First char is OK [05:40:23]request: POST /json_proto HTTP/1.0 [05:40:23]Method: POST [05:40:23]URL: /json_proto [05:40:23]Method is POST - this is cgi request [05:40:23]url: /json_proto [05:40:23]query_string will be loaded in cgi processing [05:40:23]execute_cgi json_proto POST (null) [05:40:23]execute_cgi path=json_proto method=POST [05:40:23]POST find Content-Length [05:40:23]Host: 172.17.43.132:8080 [05:40:23]Content-Length: 816 [05:40:23]Content-Type: application/json [05:40:23] [05:40:23]POST finish read [05:40:23]Found Content-Length = 816 [05:40:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183855", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:40:23]execute_script... [05:40:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183855", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:40:23]POST & json_proto [05:40:23]process_json_proto [05:40:23]json parsed OK: [05:40:23]protocol is kg_v1.0 [05:40:23]action value=close_receipt [05:40:23]process_action close_receipt [05:40:23]cmd_close_receipt [05:40:23]MH_GetDate [05:40:23]Write to MH i2c: F0 00 00 29 06 1E [05:40:23]Write i2c OK [05:40:23]MH_I2C_Read... [05:40:23]Read from MH i2c: F0 [05:40:23]MH_I2C_Read... [05:40:23]Read from MH i2c: F0 09 00 [05:40:23]MH_I2C_Read... [05:40:23]Read from MH i2c: F0 09 00 29 06 00 49 2B A7 66 AA D0 A5 66 2D [05:40:23]GetLastDocTimeStamp 1722229140 [05:40:23]current date 1722231625 [05:40:23]FM_GetShiftState [05:40:23]SAM_PROTO_GetShiftState [05:40:23]wFMCommunicate request_size=4 [05:40:23]MH_SAM_APDU [05:40:23]CAPDU: 80 13 01 00 [05:40:23]Write to MH i2c: E2 08 00 2A 06 80 13 01 00 00 00 00 00 AD [05:40:23]Write i2c OK [05:40:23]MH_I2C_Read... [05:40:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:40:23]Read from MH i2c: E2 [05:40:23]MH_I2C_Read... [05:40:23]Read from MH i2c: E2 0E 00 [05:40:23]MH_I2C_Read... [05:40:23]Read from MH i2c: E2 0E 00 2A 06 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 49 [05:40:23]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [05:40:23]wFMCommunicate OK [05:40:23]SAM_PROTO_GetShiftState done [05:40:23]FM_GetShiftState done [05:40:23]opened in 1722211496 [05:40:23]opened+sec_in_day 1722297896 [05:40:23]quantity*price = 8500 [05:40:23]sum+1 = 8501 [05:40:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 0.00 Безнал.: 85.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 16 29.07.2024 05:40 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874958 ФД: 41827 ФПД: 244307793142861 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T054025&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41827&fm=244307793142861&tin=02508201610067®Number=0000000000092626&sum=8500 0 [05:40:24]StoreToDocumentArchive [05:40:24]shift 427 fd 41827 [05:40:24]save to /storage/0427/doc_00041827 [05:40:24]save last doc name /storage/0427/doc_00041827 to /storage/kkm_last_doc_name [05:40:24]save OK [05:40:24]Clear old archive folders... [05:40:24]ProcessDocumentItem done err = 0, tmpTLVsize=294 [05:40:24]tlvbuf is 013C91E0 [05:40:24]SAM_PROTO_ClearQueue [05:40:24]wFMCommunicate request_size=4 [05:40:24]MH_SAM_APDU [05:40:24]CAPDU: 80 09 00 00 [05:40:24]Write to MH i2c: E2 08 00 37 06 80 09 00 00 00 00 00 00 AF [05:40:24]Write i2c OK [05:40:24]MH_I2C_Read... [05:40:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:40:24]Read from MH i2c: E2 [05:40:24]MH_I2C_Read... [05:40:24]Read from MH i2c: E2 03 00 [05:40:24]MH_I2C_Read... [05:40:24]Read from MH i2c: E2 03 00 37 06 00 90 00 B1 [05:40:24]RAPDU: 90 00 [05:40:24]wFMCommunicate OK [05:40:24]SAM_PROTO_ClearQueue done [05:40:24]KKMCreateOFDPacket [05:40:24]OFDProtocolAddRootSTLVToBuf [05:40:24]FM_MakeSignedData [05:40:24]FM_MakeSignedData [05:40:24]SAM_PROTO_SignData [05:40:24]wFMCommunicate request_size=4 [05:40:24]MH_SAM_APDU [05:40:24]CAPDU: 80 0D 01 02 [05:40:24]Write to MH i2c: E2 08 00 38 06 80 0D 01 02 00 00 00 00 B7 [05:40:24]Write i2c OK [05:40:24]MH_I2C_Read... [05:40:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:40:24]Read from MH i2c: E2 [05:40:24]MH_I2C_Read... [05:40:24]Read from MH i2c: E2 03 00 [05:40:24]MH_I2C_Read... [05:40:24]Read from MH i2c: E2 03 00 38 06 00 90 00 B2 [05:40:24]RAPDU: 90 00 [05:40:24]wFMCommunicate OK [05:40:24]wFMCommunicate request_size=255 [05:40:24]MH_SAM_APDU [05:40:24]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 49 2B A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [05:40:24]Write to MH i2c: E2 02 01 39 06 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 49 2B A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 D8 [05:40:24]Write i2c OK [05:40:24]MH_I2C_Read... [05:40:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:40:24]Read from MH i2c: E2 [05:40:24]MH_I2C_Read... [05:40:24]Read from MH i2c: E2 03 00 [05:40:24]MH_I2C_Read... [05:40:24]Read from MH i2c: E2 03 00 39 06 00 90 00 B3 [05:40:24]RAPDU: 90 00 [05:40:24]wFMCommunicate OK [05:40:24]wFMCommunicate request_size=53 [05:40:24]MH_SAM_APDU [05:40:24]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 63 A3 00 00 35 04 06 00 DE 32 57 39 E4 4D [05:40:24]Write to MH i2c: E2 38 00 3A 06 80 0D 02 02 30 00 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 63 A3 00 00 35 04 06 00 DE 32 57 39 E4 4D 00 00 8F [05:40:24]Write i2c OK [05:40:24]MH_I2C_Read... [05:40:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:40:24]Read from MH i2c: E2 [05:40:24]MH_I2C_Read... [05:40:24]Read from MH i2c: E2 03 00 [05:40:24]MH_I2C_Read... [05:40:24]Read from MH i2c: E2 03 00 3A 06 00 90 00 B4 [05:40:24]RAPDU: 90 00 [05:40:24]wFMCommunicate OK [05:40:24]wFMCommunicate request_size=4 [05:40:24]MH_SAM_APDU [05:40:24]CAPDU: 80 0D 03 02 [05:40:24]Write to MH i2c: E2 08 00 3B 06 80 0D 03 02 00 00 00 00 BC [05:40:24]Write i2c OK [05:40:24]MH_I2C_Read... [05:40:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:40:24]Read from MH i2c: E2 [05:40:24]MH_I2C_Read... [05:40:24]Read from MH i2c: E2 0B 00 [05:40:24]MH_I2C_Read... [05:40:24]Read from MH i2c: E2 0B 00 3B 06 00 80 B8 AE 2D B5 16 B7 48 90 00 9A [05:40:24]RAPDU: 80 B8 AE 2D B5 16 B7 48 90 00 [05:40:24]wFMCommunicate OK [05:40:24]SAM_PROTO_SignData done [05:40:24]FM_MakeSignedData done [05:40:24]CreateOFDProtocolMessage [05:40:24]wFMCommunicate request_size=4 [05:40:24]MH_SAM_APDU [05:40:24]CAPDU: 80 11 00 00 [05:40:24]Write to MH i2c: E2 08 00 3C 06 80 11 00 00 00 00 00 00 BC [05:40:24]Write i2c OK [05:40:24]MH_I2C_Read... [05:40:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:40:24]Read from MH i2c: E2 [05:40:24]MH_I2C_Read... [05:40:24]Read from MH i2c: E2 17 00 [05:40:24]MH_I2C_Read... [05:40:24]Read from MH i2c: E2 17 00 3C 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 18 [05:40:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [05:40:24]wFMCommunicate OK [05:40:24]CreateOFDProtocolMessage done [05:40:24]OFDSenderStorePacket 41827 [05:40:24]StoreOFDPacket docnum=41827 [05:40:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 3A 01 00 00 AD FE 32 01 7B 17 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 49 2B A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 63 A3 00 00 35 04 06 00 DE 32 57 39 E4 4D 80 B8 AE 2D B5 16 B7 48 [05:40:24]CheckFolder [05:40:24]dirname=/storage/ofd_packets [05:40:24]CheckFolder done [05:40:24]ProducePacketName [05:40:24]name=ofd_packets/00041827 [05:40:24]NVStorageSaveData ofd_packets/00041827 [05:40:24]File name is /storage/ofd_packets/00041827 [05:40:24]Write 344 bytes [05:40:24]NVStorageSaveData done [05:40:24]OFDSenderStorePacket done [05:40:24]KKMCreateOFDPacket done [05:40:24]NVStorageSaveData kkm_last_timestamp [05:40:24]File name is /storage/kkm_last_timestamp [05:40:24]Write 4 bytes [05:40:24]NVStorageSaveData done [05:40:24]ExternCall_PrintAddStr [05:40:24]wPrintStart [05:40:24]Write to MH i2c: 01 00 00 3D 06 43 [05:40:24]Write i2c OK [05:40:24]MH_I2C_Read... [05:40:24]Read from MH i2c: 01 [05:40:24]MH_I2C_Read... [05:40:24]Read from MH i2c: 01 07 00 [05:40:24]MH_I2C_Read... [05:40:24]Read from MH i2c: 01 07 00 3D 06 00 00 00 00 00 FF 0F 58 [05:40:24]RasterBufferAndPrint [05:40:24]line Счет N : (3)183855 [05:40:24]line ИНН: 02508201610067 [05:40:24]line Контрольно-Кассовый Чек [05:40:24]line ПРОДАЖА [05:40:24]line Товар: 4600682557456 [05:40:24]line Напиток FLash up energy эн ж/б 0,5/0,45л [05:40:24]line 1.000 * 85.00 [05:40:24]line = 85.00 [05:40:24]line НДС 12% НСП 1% [05:40:24]line > о реализуемом товаре [05:40:24]line ИТОГО: 85.00 [05:40:24]line НСП 1% : 0.75 [05:40:24]line НДС 12% : 9.03 [05:40:24]line Наличными: 0.00 [05:40:24]line Безнал.: 85.00 [05:40:24]line Место: АЗС № 97 "Партнер Нефть" [05:40:24]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [05:40:24]line СНО: Общий режим [05:40:24]line Чек 16 29.07.2024 05:40 [05:40:24]line Смена: 427 ФФД: 1.0 [05:40:24]line ЗНМ: 0300000053 [05:40:24]line РНМ: 0000000000092626 [05:40:24]line Версия ККМ: 001 [05:40:24]line Платежная система: O! деньги [05:40:24]line ФМ: 0000000000874958 [05:40:24]line ФД: 41827 [05:40:24]line ФПД: 244307793142861 [05:40:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T054025&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41827&fm=244307793142861&tin=02508201610067®Number=0000000000092626&sum=8500 [05:40:25]line 0 [05:40:25]OFD Sender: Processing packet 41827 [packets to send 57, broken 56] [05:40:25]ProducePacketName [05:40:25]name=ofd_packets/00041827 [05:40:25]OFD Sender: To server: pG, [05:40:25]CommunicateWithHost lk.salyk.kg:30040 [05:40:25]ConnectInit lk.salyk.kg [05:40:25]written 0, free lines is 4095 [05:40:25]Write to MH i2c: 01 00 00 68 06 6E [05:40:25]Write i2c OK [05:40:25]MH_I2C_Read... [05:40:25]Read from MH i2c: 01 [05:40:25]MH_I2C_Read... [05:40:25]Read from MH i2c: 01 07 00 [05:40:25]MH_I2C_Read... [05:40:25]Read from MH i2c: 01 07 00 68 06 00 00 00 00 00 E3 0C 64 [05:40:25]RasterBufferAndPrint [05:40:25]line [05:40:25]line [05:40:25]line [05:40:25]line [05:40:25]line [05:40:25]written 0, free lines is 3305 [05:40:25]MH_Cut [05:40:25]Write to MH i2c: D1 01 00 6F 06 01 47 [05:40:25]Write i2c OK [05:40:25]MH_I2C_Read... [05:40:25]Read from MH i2c: D1 [05:40:25]MH_I2C_Read... [05:40:25]Read from MH i2c: D1 01 00 [05:40:25]MH_I2C_Read... [05:40:25]Read from MH i2c: D1 01 00 6F 06 00 46 [05:40:25]Write to MH i2c: 01 00 00 70 06 76 [05:40:25]Write i2c OK [05:40:25]MH_I2C_Read... [05:40:26]*** Cut start [05:40:26]*** Partial cut [05:40:26]*** CUTSNS_PIN = 1 [05:40:26]*** CUTSNS_PIN = 0 [05:40:26]Connected sock=11 [05:40: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 35 38 3A 01 00 00 AD FE 32 01 7B 17 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 49 2B A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 63 A3 00 00 35 04 06 00 DE 32 57 39 E4 4D 80 B8 AE 2D B5 16 B7 48 [05:40:26]*** Brake cut motor [05:40: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 35 38 4F 00 00 00 A3 39 47 00 7F 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 35 38 10 04 04 00 63 A3 00 00 F4 03 04 00 5C D7 A6 66 B6 04 01 00 00 33 89 55 E2 74 F8 98 E4 [05:40:26]CommunicateWithHost err = 0 [05:40:26]CheckOFDResponse [05:40:26]1017 (14) - 77093643461234 [05:40:26]1041 (16) - 0000000000874958 [05:40:26]1040 (4) - 41827 [05:40:26]1012 (4) - 28.07.2024 23:42 [05:40:26]1206 (1) - 0 [05:40:26]OFD Sender: Remove packet 41827 [05:40:26]ProducePacketName [05:40:26]name=ofd_packets/00041827 [05:40:26]NVStorageDeleteData [05:40:27]Read from MH i2c: 01 [05:40:27]MH_I2C_Read... [05:40:27]*** Stop cut motor [05:40:27]*** Cut end [05:40:27]Read from MH i2c: 01 07 00 [05:40:27]MH_I2C_Read... [05:40:27]Read from MH i2c: 01 07 00 70 06 00 00 00 00 00 FF 0F 8B [05:40:27]process_action close_receipt done [05:40:27]requested_data is exist [05:40:27]produce_requested_data [05:40:27]requested_item fm.sn is exist - process it [05:40:27]wFMCommunicate request_size=4 [05:40:27]MH_SAM_APDU [05:40:27]CAPDU: 80 11 00 00 [05:40:27]Write to MH i2c: E2 08 00 71 06 80 11 00 00 00 00 00 00 F1 [05:40:27]Write i2c OK [05:40:27]MH_I2C_Read... [05:40:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:40:27]Read from MH i2c: E2 [05:40:27]MH_I2C_Read... [05:40:27]Read from MH i2c: E2 17 00 [05:40:27]MH_I2C_Read... [05:40:27]Read from MH i2c: E2 17 00 71 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 4D [05:40:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [05:40:27]wFMCommunicate OK [05:40:27]requested_item fd.num is exist - process it [05:40:27]SAM_PROTO_GetFieldsCounters [05:40:27]wFMCommunicate request_size=4 [05:40:27]MH_SAM_APDU [05:40:27]CAPDU: 80 13 00 00 [05:40:27]Write to MH i2c: E2 08 00 72 06 80 13 00 00 00 00 00 00 F4 [05:40:27]Write i2c OK [05:40:27]MH_I2C_Read... [05:40:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:40:27]Read from MH i2c: E2 [05:40:27]MH_I2C_Read... [05:40:27]Read from MH i2c: E2 62 00 [05:40:27]MH_I2C_Read... [05:40:27]Read from MH i2c: E2 62 00 72 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 63 A3 00 00 0E 04 04 00 AB 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 00 [05:40:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 63 A3 00 00 0E 04 04 00 AB 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:40:27]wFMCommunicate OK [05:40:27]SAM_PROTO_GetFieldsCounters done [05:40:27]requested_item shift.num is exist - process it [05:40:27]requested_item shift.opened is exist - process it [05:40:27]req_shift_opened [05:40:27]FM_GetShiftState [05:40:27]SAM_PROTO_GetShiftState [05:40:27]wFMCommunicate request_size=4 [05:40:27]MH_SAM_APDU [05:40:27]CAPDU: 80 13 01 00 [05:40:27]Write to MH i2c: E2 08 00 73 06 80 13 01 00 00 00 00 00 F6 [05:40:27]Write i2c OK [05:40:27]MH_I2C_Read... [05:40:27]OFD Sender: No OFD packet to send [05:40:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:40:27]Read from MH i2c: E2 [05:40:27]MH_I2C_Read... [05:40:27]Read from MH i2c: E2 0E 00 [05:40:27]MH_I2C_Read... [05:40:27]Read from MH i2c: E2 0E 00 73 06 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 92 [05:40:27]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [05:40:27]wFMCommunicate OK [05:40:27]SAM_PROTO_GetShiftState done [05:40:27]FM_GetShiftState done [05:40:27]req_shift_opened done [05:40:27]requested_item shift.open_date is exist - process it [05:40:27]req_shift_open_date [05:40:27]req_shift_open_date done [05:40:27]produce_requested_data done [05:40:27]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41827,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [05:40:27]process_action_free close_receipt [05:40:27]json_value_free [05:40:27]json_value_free done [05:40:27]process_json_proto returns [05:40:27]Send response to host [05:40:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41827,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [05:40:27]free response buf [05:40:27]execute_script done [05:40:27]execute_script returns [05:40:27]free content buf [05:40:27]Sock 9.Close socket [05:40:27]Sock 9.Thread stoped [05:40:32]OFD Sender: No OFD packet to send [05:40:37]OFD Sender: No OFD packet to send [05:40:42]OFD Sender: No OFD packet to send [05:40:47]OFD Sender: No OFD packet to send [05:40:52]OFD Sender: No OFD packet to send [05:40:57]OFD Sender: No OFD packet to send [05:41:02]OFD Sender: No OFD packet to send [05:41:07]OFD Sender: No OFD packet to send [05:41:12]OFD Sender: No OFD packet to send [05:41:17]OFD Sender: No OFD packet to send [05:41:22]OFD Sender: No OFD packet to send [05:41:27]OFD Sender: No OFD packet to send [05:41:32]OFD Sender: No OFD packet to send [05:41:37]OFD Sender: No OFD packet to send [05:41:42]OFD Sender: No OFD packet to send [05:41:47]OFD Sender: No OFD packet to send [05:41:52]OFD Sender: No OFD packet to send [05:41:57]OFD Sender: No OFD packet to send [05:42:02]OFD Sender: No OFD packet to send [05:42:07]OFD Sender: No OFD packet to send [05:42:12]OFD Sender: No OFD packet to send [05:42:17]OFD Sender: No OFD packet to send [05:42:22]OFD Sender: No OFD packet to send [05:42:27]OFD Sender: No OFD packet to send [05:42:32]OFD Sender: No OFD packet to send [05:42:37]OFD Sender: No OFD packet to send [05:42:42]OFD Sender: No OFD packet to send [05:42:47]OFD Sender: No OFD packet to send [05:42:52]OFD Sender: No OFD packet to send [05:42:57]OFD Sender: No OFD packet to send [05:43:02]OFD Sender: No OFD packet to send [05:43:07]OFD Sender: No OFD packet to send [05:43:12]OFD Sender: No OFD packet to send [05:43:17]OFD Sender: No OFD packet to send [05:43:22]OFD Sender: No OFD packet to send [05:43:27]OFD Sender: No OFD packet to send [05:43:32]OFD Sender: No OFD packet to send [05:43:37]OFD Sender: No OFD packet to send [05:43:42]OFD Sender: No OFD packet to send [05:43:47]recv_with_timeout no data received [05:43:47]OFD Sender: No OFD packet to send [05:43:52]OFD Sender: No OFD packet to send [05:43:57]OFD Sender: No OFD packet to send [05:44:02]OFD Sender: No OFD packet to send [05:44:07]OFD Sender: No OFD packet to send [05:44:12]OFD Sender: No OFD packet to send [05:44:17]OFD Sender: No OFD packet to send [05:44:22]OFD Sender: No OFD packet to send [05:44:27]OFD Sender: No OFD packet to send [05:44:32]OFD Sender: No OFD packet to send [05:44:37]OFD Sender: No OFD packet to send [05:44:42]OFD Sender: No OFD packet to send [05:44:47]OFD Sender: No OFD packet to send [05:44:52]OFD Sender: No OFD packet to send [05:44:57]OFD Sender: No OFD packet to send [05:45:02]OFD Sender: No OFD packet to send [05:45:07]OFD Sender: No OFD packet to send [05:45:12]OFD Sender: No OFD packet to send [05:45:17]OFD Sender: No OFD packet to send [05:45:22]OFD Sender: No OFD packet to send [05:45:27]OFD Sender: No OFD packet to send [05:45:32]OFD Sender: No OFD packet to send [05:45:37]OFD Sender: No OFD packet to send [05:45:42]OFD Sender: No OFD packet to send [05:45:47]OFD Sender: No OFD packet to send [05:45:52]OFD Sender: No OFD packet to send [05:45:57]OFD Sender: No OFD packet to send [05:46:02]OFD Sender: No OFD packet to send [05:46:07]OFD Sender: No OFD packet to send [05:46:12]OFD Sender: No OFD packet to send [05:46:17]OFD Sender: No OFD packet to send [05:46:22]OFD Sender: No OFD packet to send [05:46:27]OFD Sender: No OFD packet to send [05:46:29]recv_with_timeout no data received [05:46:32]OFD Sender: No OFD packet to send [05:46:37]OFD Sender: No OFD packet to send [05:46:42]OFD Sender: No OFD packet to send [05:46:47]OFD Sender: No OFD packet to send [05:46:52]OFD Sender: No OFD packet to send [05:46:57]OFD Sender: No OFD packet to send [05:47:02]OFD Sender: No OFD packet to send [05:47:07]OFD Sender: No OFD packet to send [05:47:12]OFD Sender: No OFD packet to send [05:47:17]OFD Sender: No OFD packet to send [05:47:22]OFD Sender: No OFD packet to send [05:47:27]OFD Sender: No OFD packet to send [05:47:32]OFD Sender: No OFD packet to send [05:47:37]OFD Sender: No OFD packet to send [05:47:42]OFD Sender: No OFD packet to send [05:47:47]OFD Sender: No OFD packet to send [05:47:52]OFD Sender: No OFD packet to send [05:47:57]OFD Sender: No OFD packet to send [05:48:01]recv_with_timeout no data received [05:48:02]OFD Sender: No OFD packet to send [05:48:07]OFD Sender: No OFD packet to send [05:48:12]OFD Sender: No OFD packet to send [05:48:17]OFD Sender: No OFD packet to send [05:48:22]OFD Sender: No OFD packet to send [05:48:27]OFD Sender: No OFD packet to send [05:48:32]OFD Sender: No OFD packet to send [05:48:37]OFD Sender: No OFD packet to send [05:48:42]OFD Sender: No OFD packet to send [05:48:47]OFD Sender: No OFD packet to send [05:48:52]OFD Sender: No OFD packet to send [05:48:57]OFD Sender: No OFD packet to send [05:49:02]OFD Sender: No OFD packet to send [05:49:07]OFD Sender: No OFD packet to send [05:49:12]OFD Sender: No OFD packet to send [05:49:17]OFD Sender: No OFD packet to send [05:49:22]OFD Sender: No OFD packet to send [05:49:27]OFD Sender: No OFD packet to send [05:49:32]OFD Sender: No OFD packet to send [05:49:37]OFD Sender: No OFD packet to send [05:49:42]OFD Sender: No OFD packet to send [05:49:47]OFD Sender: No OFD packet to send [05:49:52]OFD Sender: No OFD packet to send [05:49:57]OFD Sender: No OFD packet to send [05:50:02]OFD Sender: No OFD packet to send [05:50:07]OFD Sender: No OFD packet to send [05:50:12]OFD Sender: No OFD packet to send [05:50:17]OFD Sender: No OFD packet to send [05:50:22]OFD Sender: No OFD packet to send [05:50:27]OFD Sender: No OFD packet to send [05:50:32]OFD Sender: No OFD packet to send [05:50:37]OFD Sender: No OFD packet to send [05:50:42]OFD Sender: No OFD packet to send [05:50:47]OFD Sender: No OFD packet to send [05:50:52]OFD Sender: No OFD packet to send [05:50:57]OFD Sender: No OFD packet to send [05:51:02]OFD Sender: No OFD packet to send [05:51:07]OFD Sender: No OFD packet to send [05:51:12]OFD Sender: No OFD packet to send [05:51:17]OFD Sender: No OFD packet to send [05:51:22]OFD Sender: No OFD packet to send [05:51:27]OFD Sender: No OFD packet to send [05:51:32]OFD Sender: No OFD packet to send [05:51:37]OFD Sender: No OFD packet to send [05:51:43]OFD Sender: No OFD packet to send [05:51:48]OFD Sender: No OFD packet to send [05:51:53]OFD Sender: No OFD packet to send [05:51:58]OFD Sender: No OFD packet to send [05:52:03]OFD Sender: No OFD packet to send [05:52:08]OFD Sender: No OFD packet to send [05:52:13]OFD Sender: No OFD packet to send [05:52:18]OFD Sender: No OFD packet to send [05:52:23]OFD Sender: No OFD packet to send [05:52:28]OFD Sender: No OFD packet to send [05:52:33]OFD Sender: No OFD packet to send [05:52:38]OFD Sender: No OFD packet to send [05:52:43]OFD Sender: No OFD packet to send [05:52:48]OFD Sender: No OFD packet to send [05:52:53]OFD Sender: No OFD packet to send [05:52:58]OFD Sender: No OFD packet to send [05:53:03]OFD Sender: No OFD packet to send [05:53:08]OFD Sender: No OFD packet to send [05:53:13]OFD Sender: No OFD packet to send [05:53:17]recv_with_timeout no data received [05:53:18]OFD Sender: No OFD packet to send [05:53:23]OFD Sender: No OFD packet to send [05:53:28]OFD Sender: No OFD packet to send [05:53:33]OFD Sender: No OFD packet to send [05:53:38]OFD Sender: No OFD packet to send [05:53:43]OFD Sender: No OFD packet to send [05:53:48]OFD Sender: No OFD packet to send [05:53:53]OFD Sender: No OFD packet to send [05:53:58]OFD Sender: No OFD packet to send [05:54:03]OFD Sender: No OFD packet to send [05:54:08]OFD Sender: No OFD packet to send [05:54:13]OFD Sender: No OFD packet to send [05:54:18]OFD Sender: No OFD packet to send [05:54:23]OFD Sender: No OFD packet to send [05:54:28]OFD Sender: No OFD packet to send [05:54:33]OFD Sender: No OFD packet to send [05:54:38]OFD Sender: No OFD packet to send [05:54:43]OFD Sender: No OFD packet to send [05:54:48]OFD Sender: No OFD packet to send [05:54:53]OFD Sender: No OFD packet to send [05:54:58]OFD Sender: No OFD packet to send [05:55:03]OFD Sender: No OFD packet to send [05:55:08]OFD Sender: No OFD packet to send [05:55:13]OFD Sender: No OFD packet to send [05:55:18]OFD Sender: No OFD packet to send [05:55:23]OFD Sender: No OFD packet to send [05:55:28]OFD Sender: No OFD packet to send [05:55:33]OFD Sender: No OFD packet to send [05:55:38]OFD Sender: No OFD packet to send [05:55:43]OFD Sender: No OFD packet to send [05:55:48]OFD Sender: No OFD packet to send [05:55:53]OFD Sender: No OFD packet to send [05:55:58]OFD Sender: No OFD packet to send [05:56:03]OFD Sender: No OFD packet to send [05:56:08]OFD Sender: No OFD packet to send [05:56:13]OFD Sender: No OFD packet to send [05:56:18]OFD Sender: No OFD packet to send [05:56:23]OFD Sender: No OFD packet to send [05:56:28]OFD Sender: No OFD packet to send [05:56:33]OFD Sender: No OFD packet to send [05:56:38]OFD Sender: No OFD packet to send [05:56:43]OFD Sender: No OFD packet to send [05:56:48]OFD Sender: No OFD packet to send [05:56:49]recv_with_timeout no data received [05:56:53]OFD Sender: No OFD packet to send [05:56:58]OFD Sender: No OFD packet to send [05:57:03]OFD Sender: No OFD packet to send [05:57:08]OFD Sender: No OFD packet to send [05:57:13]OFD Sender: No OFD packet to send [05:57:18]OFD Sender: No OFD packet to send [05:57:19]recv_with_timeout no data received [05:57:23]OFD Sender: No OFD packet to send [05:57:28]OFD Sender: No OFD packet to send [05:57:33]OFD Sender: No OFD packet to send [05:57:38]OFD Sender: No OFD packet to send [05:57:43]OFD Sender: No OFD packet to send [05:57:48]OFD Sender: No OFD packet to send [05:57:53]OFD Sender: No OFD packet to send [05:57:58]OFD Sender: No OFD packet to send [05:58:03]OFD Sender: No OFD packet to send [05:58:08]OFD Sender: No OFD packet to send [05:58:13]OFD Sender: No OFD packet to send [05:58:18]OFD Sender: No OFD packet to send [05:58:23]OFD Sender: No OFD packet to send [05:58:28]OFD Sender: No OFD packet to send [05:58:33]OFD Sender: No OFD packet to send [05:58:38]OFD Sender: No OFD packet to send [05:58:43]OFD Sender: No OFD packet to send [05:58:48]OFD Sender: No OFD packet to send [05:58:53]OFD Sender: No OFD packet to send [05:58:58]OFD Sender: No OFD packet to send [05:59:03]OFD Sender: No OFD packet to send [05:59:08]OFD Sender: No OFD packet to send [05:59:13]OFD Sender: No OFD packet to send [05:59:18]OFD Sender: No OFD packet to send [05:59:23]OFD Sender: No OFD packet to send [05:59:28]OFD Sender: No OFD packet to send [05:59:33]OFD Sender: No OFD packet to send [05:59:38]OFD Sender: No OFD packet to send [05:59:43]OFD Sender: No OFD packet to send [05:59:48]OFD Sender: No OFD packet to send [05:59:53]OFD Sender: No OFD packet to send [05:59:58]OFD Sender: No OFD packet to send [06:00:03]OFD Sender: No OFD packet to send [06:00:07]recv_with_timeout no data received [06:00:08]OFD Sender: No OFD packet to send [06:00:13]OFD Sender: No OFD packet to send [06:00:18]OFD Sender: No OFD packet to send [06:00:23]OFD Sender: No OFD packet to send [06:00:28]OFD Sender: No OFD packet to send [06:00:31]recv_with_timeout no data received [06:00:33]OFD Sender: No OFD packet to send [06:00:38]OFD Sender: No OFD packet to send [06:00:43]OFD Sender: No OFD packet to send [06:00:48]OFD Sender: No OFD packet to send [06:00:53]OFD Sender: No OFD packet to send [06:00:58]OFD Sender: No OFD packet to send [06:01:03]OFD Sender: No OFD packet to send [06:01:08]OFD Sender: No OFD packet to send [06:01:13]OFD Sender: No OFD packet to send [06:01:18]OFD Sender: No OFD packet to send [06:01:23]OFD Sender: No OFD packet to send [06:01:28]OFD Sender: No OFD packet to send [06:01:33]OFD Sender: No OFD packet to send [06:01:38]OFD Sender: No OFD packet to send [06:01:43]OFD Sender: No OFD packet to send [06:01:48]OFD Sender: No OFD packet to send [06:01:53]OFD Sender: No OFD packet to send [06:01:58]OFD Sender: No OFD packet to send [06:02:03]OFD Sender: No OFD packet to send [06:02:08]OFD Sender: No OFD packet to send [06:02:13]OFD Sender: No OFD packet to send [06:02:18]OFD Sender: No OFD packet to send [06:02:23]OFD Sender: No OFD packet to send [06:02:28]OFD Sender: No OFD packet to send [06:02:33]OFD Sender: No OFD packet to send [06:02:38]OFD Sender: No OFD packet to send [06:02:43]OFD Sender: No OFD packet to send [06:02:48]OFD Sender: No OFD packet to send [06:02:53]OFD Sender: No OFD packet to send [06:02:58]OFD Sender: No OFD packet to send [06:03:03]OFD Sender: No OFD packet to send [06:03:08]OFD Sender: No OFD packet to send [06:03:13]OFD Sender: No OFD packet to send [06:03:16]recv_with_timeout no data received [06:03:18]OFD Sender: No OFD packet to send [06:03:23]OFD Sender: No OFD packet to send [06:03:28]OFD Sender: No OFD packet to send [06:03:33]OFD Sender: No OFD packet to send [06:03:38]OFD Sender: No OFD packet to send [06:03:40]recv_with_timeout no data received [06:03:43]OFD Sender: No OFD packet to send [06:03:48]OFD Sender: No OFD packet to send [06:03:53]OFD Sender: No OFD packet to send [06:03:58]OFD Sender: No OFD packet to send [06:04:03]OFD Sender: No OFD packet to send [06:04:08]OFD Sender: No OFD packet to send [06:04:13]OFD Sender: No OFD packet to send [06:04:18]OFD Sender: No OFD packet to send [06:04:23]OFD Sender: No OFD packet to send [06:04:28]OFD Sender: No OFD packet to send [06:04:33]OFD Sender: No OFD packet to send [06:04:38]OFD Sender: No OFD packet to send [06:04:43]OFD Sender: No OFD packet to send [06:04:48]OFD Sender: No OFD packet to send [06:04:53]OFD Sender: No OFD packet to send [06:04:58]OFD Sender: No OFD packet to send [06:05:03]OFD Sender: No OFD packet to send [06:05:08]OFD Sender: No OFD packet to send [06:05:13]OFD Sender: No OFD packet to send [06:05:18]OFD Sender: No OFD packet to send [06:05:23]OFD Sender: No OFD packet to send [06:05:28]OFD Sender: No OFD packet to send [06:05:33]OFD Sender: No OFD packet to send [06:05:38]OFD Sender: No OFD packet to send [06:05:43]OFD Sender: No OFD packet to send [06:05:48]OFD Sender: No OFD packet to send [06:05:53]OFD Sender: No OFD packet to send [06:05:58]OFD Sender: No OFD packet to send [06:06:03]OFD Sender: No OFD packet to send [06:06:08]OFD Sender: No OFD packet to send [06:06:13]OFD Sender: No OFD packet to send [06:06:18]OFD Sender: No OFD packet to send [06:06:23]OFD Sender: No OFD packet to send [06:06:28]OFD Sender: No OFD packet to send [06:06:33]OFD Sender: No OFD packet to send [06:06:38]OFD Sender: No OFD packet to send [06:06:39]recv_with_timeout no data received [06:06:43]OFD Sender: No OFD packet to send [06:06:48]OFD Sender: No OFD packet to send [06:06:53]OFD Sender: No OFD packet to send [06:06:58]OFD Sender: No OFD packet to send [06:07:03]OFD Sender: No OFD packet to send [06:07:08]OFD Sender: No OFD packet to send [06:07:13]OFD Sender: No OFD packet to send [06:07:18]OFD Sender: No OFD packet to send [06:07:23]OFD Sender: No OFD packet to send [06:07:28]OFD Sender: No OFD packet to send [06:07:33]OFD Sender: No OFD packet to send [06:07:38]OFD Sender: No OFD packet to send [06:07:43]OFD Sender: No OFD packet to send [06:07:48]OFD Sender: No OFD packet to send [06:07:53]OFD Sender: No OFD packet to send [06:07:57]recv_with_timeout no data received [06:07:58]OFD Sender: No OFD packet to send [06:08:03]OFD Sender: No OFD packet to send [06:08:08]OFD Sender: No OFD packet to send [06:08:13]OFD Sender: No OFD packet to send [06:08:18]OFD Sender: No OFD packet to send [06:08:23]OFD Sender: No OFD packet to send [06:08:28]OFD Sender: No OFD packet to send [06:08:33]OFD Sender: No OFD packet to send [06:08:38]OFD Sender: No OFD packet to send [06:08:43]OFD Sender: No OFD packet to send [06:08:48]OFD Sender: No OFD packet to send [06:08:53]OFD Sender: No OFD packet to send [06:08:58]OFD Sender: No OFD packet to send [06:09:02]recv_with_timeout no data received [06:09:03]OFD Sender: No OFD packet to send [06:09:08]OFD Sender: No OFD packet to send [06:09:13]OFD Sender: No OFD packet to send [06:09:18]OFD Sender: No OFD packet to send [06:09:23]OFD Sender: No OFD packet to send [06:09:28]OFD Sender: No OFD packet to send [06:09:34]OFD Sender: No OFD packet to send [06:09:39]OFD Sender: No OFD packet to send [06:09:44]OFD Sender: No OFD packet to send [06:09:49]OFD Sender: No OFD packet to send [06:09:54]OFD Sender: No OFD packet to send [06:09:59]OFD Sender: No OFD packet to send [06:10:04]OFD Sender: No OFD packet to send [06:10:09]OFD Sender: No OFD packet to send [06:10:14]OFD Sender: No OFD packet to send [06:10:19]OFD Sender: No OFD packet to send [06:10:24]OFD Sender: No OFD packet to send [06:10:29]OFD Sender: No OFD packet to send [06:10:34]OFD Sender: No OFD packet to send [06:10:39]OFD Sender: No OFD packet to send [06:10:44]OFD Sender: No OFD packet to send [06:10:49]OFD Sender: No OFD packet to send [06:10:54]OFD Sender: No OFD packet to send [06:10:59]OFD Sender: No OFD packet to send [06:11:04]OFD Sender: No OFD packet to send [06:11:09]OFD Sender: No OFD packet to send [06:11:14]OFD Sender: No OFD packet to send [06:11:19]OFD Sender: No OFD packet to send [06:11:24]OFD Sender: No OFD packet to send [06:11:28]recv_with_timeout no data received [06:11:29]OFD Sender: No OFD packet to send [06:11:34]OFD Sender: No OFD packet to send [06:11:39]OFD Sender: No OFD packet to send [06:11:44]OFD Sender: No OFD packet to send [06:11:49]OFD Sender: No OFD packet to send [06:11:54]OFD Sender: No OFD packet to send [06:11:59]OFD Sender: No OFD packet to send [06:12:04]OFD Sender: No OFD packet to send [06:12:09]OFD Sender: No OFD packet to send [06:12:14]OFD Sender: No OFD packet to send [06:12:19]OFD Sender: No OFD packet to send [06:12:24]OFD Sender: No OFD packet to send [06:12:29]OFD Sender: No OFD packet to send [06:12:34]OFD Sender: No OFD packet to send [06:12:39]OFD Sender: No OFD packet to send [06:12:44]OFD Sender: No OFD packet to send [06:12:49]OFD Sender: No OFD packet to send [06:12:54]OFD Sender: No OFD packet to send [06:12:59]OFD Sender: No OFD packet to send [06:13:04]OFD Sender: No OFD packet to send [06:13:09]OFD Sender: No OFD packet to send [06:13:14]OFD Sender: No OFD packet to send [06:13:19]OFD Sender: No OFD packet to send [06:13:24]OFD Sender: No OFD packet to send [06:13:29]OFD Sender: No OFD packet to send [06:13:34]OFD Sender: No OFD packet to send [06:13:39]OFD Sender: No OFD packet to send [06:13:44]OFD Sender: No OFD packet to send [06:13:49]OFD Sender: No OFD packet to send [06:13:54]OFD Sender: No OFD packet to send [06:13:59]OFD Sender: No OFD packet to send [06:14:04]OFD Sender: No OFD packet to send [06:14:09]OFD Sender: No OFD packet to send [06:14:14]OFD Sender: No OFD packet to send [06:14:19]OFD Sender: No OFD packet to send [06:14:24]OFD Sender: No OFD packet to send [06:14:29]OFD Sender: No OFD packet to send [06:14:34]OFD Sender: No OFD packet to send [06:14:39]OFD Sender: No OFD packet to send [06:14:40]recv_with_timeout no data received [06:14:44]OFD Sender: No OFD packet to send [06:14:49]OFD Sender: No OFD packet to send [06:14:54]OFD Sender: No OFD packet to send [06:14:59]OFD Sender: No OFD packet to send [06:15:04]OFD Sender: No OFD packet to send [06:15:09]OFD Sender: No OFD packet to send [06:15:14]OFD Sender: No OFD packet to send [06:15:19]OFD Sender: No OFD packet to send [06:15:24]OFD Sender: No OFD packet to send [06:15:29]OFD Sender: No OFD packet to send [06:15:34]OFD Sender: No OFD packet to send [06:15:39]OFD Sender: No OFD packet to send [06:15:40]recv_with_timeout no data received [06:15:44]OFD Sender: No OFD packet to send [06:15:49]OFD Sender: No OFD packet to send [06:15:54]OFD Sender: No OFD packet to send [06:15:59]OFD Sender: No OFD packet to send [06:16:04]OFD Sender: No OFD packet to send [06:16:09]OFD Sender: No OFD packet to send [06:16:14]OFD Sender: No OFD packet to send [06:16:19]OFD Sender: No OFD packet to send [06:16:24]OFD Sender: No OFD packet to send [06:16:29]OFD Sender: No OFD packet to send [06:16:34]OFD Sender: No OFD packet to send [06:16:39]OFD Sender: No OFD packet to send [06:16:44]OFD Sender: No OFD packet to send [06:16:49]OFD Sender: No OFD packet to send [06:16:54]OFD Sender: No OFD packet to send [06:16:59]OFD Sender: No OFD packet to send [06:17:04]OFD Sender: No OFD packet to send [06:17:09]OFD Sender: No OFD packet to send [06:17:14]OFD Sender: No OFD packet to send [06:17:19]OFD Sender: No OFD packet to send [06:17:24]OFD Sender: No OFD packet to send [06:17:29]OFD Sender: No OFD packet to send [06:17:34]OFD Sender: No OFD packet to send [06:17:39]OFD Sender: No OFD packet to send [06:17:44]OFD Sender: No OFD packet to send [06:17:49]OFD Sender: No OFD packet to send [06:17:54]OFD Sender: No OFD packet to send [06:17:58]recv_with_timeout no data received [06:17:59]OFD Sender: No OFD packet to send [06:18:04]OFD Sender: No OFD packet to send [06:18:09]OFD Sender: No OFD packet to send [06:18:14]OFD Sender: No OFD packet to send [06:18:15]recv_with_timeout no data received [06:18:19]OFD Sender: No OFD packet to send [06:18:24]OFD Sender: No OFD packet to send [06:18:29]OFD Sender: No OFD packet to send [06:18:34]OFD Sender: No OFD packet to send [06:18:39]OFD Sender: No OFD packet to send [06:18:44]OFD Sender: No OFD packet to send [06:18:49]OFD Sender: No OFD packet to send [06:18:54]OFD Sender: No OFD packet to send [06:18:59]OFD Sender: No OFD packet to send [06:19:04]OFD Sender: No OFD packet to send [06:19:09]OFD Sender: No OFD packet to send [06:19:14]OFD Sender: No OFD packet to send [06:19:19]OFD Sender: No OFD packet to send [06:19:24]OFD Sender: No OFD packet to send [06:19:29]OFD Sender: No OFD packet to send [06:19:34]OFD Sender: No OFD packet to send [06:19:39]OFD Sender: No OFD packet to send [06:19:44]OFD Sender: No OFD packet to send [06:19:49]OFD Sender: No OFD packet to send [06:19:54]OFD Sender: No OFD packet to send [06:19:59]OFD Sender: No OFD packet to send [06:20:04]OFD Sender: No OFD packet to send [06:20:09]OFD Sender: No OFD packet to send [06:20:14]OFD Sender: No OFD packet to send [06:20:19]OFD Sender: No OFD packet to send [06:20:24]OFD Sender: No OFD packet to send [06:20:29]OFD Sender: No OFD packet to send [06:20:34]OFD Sender: No OFD packet to send [06:20:39]OFD Sender: No OFD packet to send [06:20:44]OFD Sender: No OFD packet to send [06:20:49]OFD Sender: No OFD packet to send [06:20:54]OFD Sender: No OFD packet to send [06:20:59]OFD Sender: No OFD packet to send [06:21:04]OFD Sender: No OFD packet to send [06:21:09]OFD Sender: No OFD packet to send [06:21:14]OFD Sender: No OFD packet to send [06:21:19]OFD Sender: No OFD packet to send [06:21:24]OFD Sender: No OFD packet to send [06:21:29]OFD Sender: No OFD packet to send [06:21:34]OFD Sender: No OFD packet to send [06:21:39]OFD Sender: No OFD packet to send [06:21:44]OFD Sender: No OFD packet to send [06:21:49]OFD Sender: No OFD packet to send [06:21:54]OFD Sender: No OFD packet to send [06:21:59]OFD Sender: No OFD packet to send [06:22:04]OFD Sender: No OFD packet to send [06:22:09]OFD Sender: No OFD packet to send [06:22:14]OFD Sender: No OFD packet to send [06:22:19]OFD Sender: No OFD packet to send [06:22:24]OFD Sender: No OFD packet to send [06:22:29]OFD Sender: No OFD packet to send [06:22:34]OFD Sender: No OFD packet to send [06:22:39]OFD Sender: No OFD packet to send [06:22:44]OFD Sender: No OFD packet to send [06:22:49]OFD Sender: No OFD packet to send [06:22:54]OFD Sender: No OFD packet to send [06:22:59]OFD Sender: No OFD packet to send [06:23:04]OFD Sender: No OFD packet to send [06:23:09]OFD Sender: No OFD packet to send [06:23:14]OFD Sender: No OFD packet to send [06:23:19]OFD Sender: No OFD packet to send [06:23:24]OFD Sender: No OFD packet to send [06:23:29]OFD Sender: No OFD packet to send [06:23:34]OFD Sender: No OFD packet to send [06:23:39]OFD Sender: No OFD packet to send [06:23:44]OFD Sender: No OFD packet to send [06:23:49]OFD Sender: No OFD packet to send [06:23:54]OFD Sender: No OFD packet to send [06:23:59]OFD Sender: No OFD packet to send [06:24:04]OFD Sender: No OFD packet to send [06:24:09]OFD Sender: No OFD packet to send [06:24:14]OFD Sender: No OFD packet to send [06:24:19]OFD Sender: No OFD packet to send [06:24:24]OFD Sender: No OFD packet to send [06:24:29]OFD Sender: No OFD packet to send [06:24:34]OFD Sender: No OFD packet to send [06:24:39]OFD Sender: No OFD packet to send [06:24:44]OFD Sender: No OFD packet to send [06:24:49]OFD Sender: No OFD packet to send [06:24:54]OFD Sender: No OFD packet to send [06:24:59]OFD Sender: No OFD packet to send [06:25:04]OFD Sender: No OFD packet to send [06:25:09]OFD Sender: No OFD packet to send [06:25:14]OFD Sender: No OFD packet to send [06:25:19]OFD Sender: No OFD packet to send [06:25:24]OFD Sender: No OFD packet to send [06:25:29]OFD Sender: No OFD packet to send [06:25:34]OFD Sender: No OFD packet to send [06:25:39]OFD Sender: No OFD packet to send [06:25:44]OFD Sender: No OFD packet to send [06:25:49]OFD Sender: No OFD packet to send [06:25:54]OFD Sender: No OFD packet to send [06:25:59]OFD Sender: No OFD packet to send [06:26:04]OFD Sender: No OFD packet to send [06:26:09]OFD Sender: No OFD packet to send [06:26:14]OFD Sender: No OFD packet to send [06:26:19]OFD Sender: No OFD packet to send [06:26:24]OFD Sender: No OFD packet to send [06:26:29]OFD Sender: No OFD packet to send [06:26:34]OFD Sender: No OFD packet to send [06:26:39]OFD Sender: No OFD packet to send [06:26:44]OFD Sender: No OFD packet to send [06:26:49]OFD Sender: No OFD packet to send [06:26:54]OFD Sender: No OFD packet to send [06:26:59]OFD Sender: No OFD packet to send [06:27:04]OFD Sender: No OFD packet to send [06:27:10]OFD Sender: No OFD packet to send [06:27:15]OFD Sender: No OFD packet to send [06:27:20]OFD Sender: No OFD packet to send [06:27:25]OFD Sender: No OFD packet to send [06:27:30]OFD Sender: No OFD packet to send [06:27:35]OFD Sender: No OFD packet to send [06:27:40]OFD Sender: No OFD packet to send [06:27:45]OFD Sender: No OFD packet to send [06:27:50]OFD Sender: No OFD packet to send [06:27:55]OFD Sender: No OFD packet to send [06:28:00]OFD Sender: No OFD packet to send [06:28:05]OFD Sender: No OFD packet to send [06:28:10]OFD Sender: No OFD packet to send [06:28:15]OFD Sender: No OFD packet to send [06:28:20]OFD Sender: No OFD packet to send [06:28:25]OFD Sender: No OFD packet to send [06:28:30]OFD Sender: No OFD packet to send [06:28:35]OFD Sender: No OFD packet to send [06:28:40]OFD Sender: No OFD packet to send [06:28:45]OFD Sender: No OFD packet to send [06:28:50]OFD Sender: No OFD packet to send [06:28:55]OFD Sender: No OFD packet to send [06:29:00]OFD Sender: No OFD packet to send [06:29:05]OFD Sender: No OFD packet to send [06:29:10]OFD Sender: No OFD packet to send [06:29:15]OFD Sender: No OFD packet to send [06:29:20]OFD Sender: No OFD packet to send [06:29:25]OFD Sender: No OFD packet to send [06:29:30]OFD Sender: No OFD packet to send [06:29:35]OFD Sender: No OFD packet to send [06:29:40]OFD Sender: No OFD packet to send [06:29:45]OFD Sender: No OFD packet to send [06:29:50]OFD Sender: No OFD packet to send [06:29:55]OFD Sender: No OFD packet to send [06:30:00]OFD Sender: No OFD packet to send [06:30:05]OFD Sender: No OFD packet to send [06:30:10]OFD Sender: No OFD packet to send [06:30:15]OFD Sender: No OFD packet to send [06:30:20]OFD Sender: No OFD packet to send [06:30:25]OFD Sender: No OFD packet to send [06:30:30]OFD Sender: No OFD packet to send [06:30:35]OFD Sender: No OFD packet to send [06:30:40]OFD Sender: No OFD packet to send [06:30:43]accept exits with 10 [06:30:43]New connection [06:30:43]New thread 3066887524 created [06:30:43]Thread 3067030884 joined [06:30:43]Waiting for new connection... [06:30:43] Sock 10.Parse request [06:30:43]Sock 10.Check first char [06:30:43]Sock 10.First char is OK [06:30:43]request: POST /json_proto HTTP/1.0 [06:30:43]Method: POST [06:30:43]URL: /json_proto [06:30:43]Method is POST - this is cgi request [06:30:43]url: /json_proto [06:30:43]query_string will be loaded in cgi processing [06:30:43]execute_cgi json_proto POST (null) [06:30:43]execute_cgi path=json_proto method=POST [06:30:43]POST find Content-Length [06:30:43]Host: 172.17.43.132:8080 [06:30:43]Content-Length: 624 [06:30:43]Content-Type: application/json [06:30:43] [06:30:43]POST finish read [06:30:43]Found Content-Length = 624 [06:30:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183856", "tax_sys" : 0, "items" : [ { "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:30:43]execute_script... [06:30:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183856", "tax_sys" : 0, "items" : [ { "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:30:43]POST & json_proto [06:30:43]process_json_proto [06:30:43]json parsed OK: [06:30:43]protocol is kg_v1.0 [06:30:43]action value=close_receipt [06:30:43]process_action close_receipt [06:30:43]cmd_close_receipt [06:30:43]MH_GetDate [06:30:43]Write to MH i2c: F0 00 00 74 06 69 [06:30:43]Write i2c OK [06:30:43]MH_I2C_Read... [06:30:43]Read from MH i2c: F0 [06:30:43]MH_I2C_Read... [06:30:43]Read from MH i2c: F0 09 00 [06:30:43]MH_I2C_Read... [06:30:43]Read from MH i2c: F0 09 00 74 06 00 16 37 A7 66 AA D0 A5 66 51 [06:30:43]GetLastDocTimeStamp 1722231625 [06:30:43]current date 1722234646 [06:30:43]FM_GetShiftState [06:30:43]SAM_PROTO_GetShiftState [06:30:43]wFMCommunicate request_size=4 [06:30:43]MH_SAM_APDU [06:30:43]CAPDU: 80 13 01 00 [06:30:43]Write to MH i2c: E2 08 00 75 06 80 13 01 00 00 00 00 00 F8 [06:30:43]Write i2c OK [06:30:43]MH_I2C_Read... [06:30:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:30:43]Read from MH i2c: E2 [06:30:43]MH_I2C_Read... [06:30:43]Read from MH i2c: E2 0E 00 [06:30:43]MH_I2C_Read... [06:30:43]Read from MH i2c: E2 0E 00 75 06 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 94 [06:30:43]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [06:30:43]wFMCommunicate OK [06:30:43]SAM_PROTO_GetShiftState done [06:30:43]FM_GetShiftState done [06:30:43]opened in 1722211496 [06:30:43]opened+sec_in_day 1722297896 [06:30:43]quantity*price = 15100 [06:30:43]sum+1 = 15101 [06:30:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 151.00 НСП 1% : 1.34 НДС 12% : 16.03 Наличными: 151.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 17 29.07.2024 06:30 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41828 ФПД: 228601012441440 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T063046&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41828&fm=228601012441440&tin=02508201610067®Number=0000000000092626&sum=15100 0 [06:30:45]StoreToDocumentArchive [06:30:45]shift 427 fd 41828 [06:30:45]save to /storage/0427/doc_00041828 [06:30:45]save last doc name /storage/0427/doc_00041828 to /storage/kkm_last_doc_name [06:30:45]save OK [06:30:45]Clear old archive folders... [06:30:45]ProcessDocumentItem done err = 0, tmpTLVsize=276 [06:30:45]tlvbuf is 013D0310 [06:30:45]SAM_PROTO_ClearQueue [06:30:45]wFMCommunicate request_size=4 [06:30:45]MH_SAM_APDU [06:30:45]CAPDU: 80 09 00 00 [06:30:45]Write to MH i2c: E2 08 00 82 06 80 09 00 00 00 00 00 00 FA [06:30:45]Write i2c OK [06:30:45]MH_I2C_Read... [06:30:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:30:45]Read from MH i2c: E2 [06:30:45]MH_I2C_Read... [06:30:45]Read from MH i2c: E2 03 00 [06:30:45]MH_I2C_Read... [06:30:45]Read from MH i2c: E2 03 00 82 06 00 90 00 FC [06:30:45]RAPDU: 90 00 [06:30:45]wFMCommunicate OK [06:30:45]SAM_PROTO_ClearQueue done [06:30:45]KKMCreateOFDPacket [06:30:45]OFDProtocolAddRootSTLVToBuf [06:30:45]FM_MakeSignedData [06:30:45]FM_MakeSignedData [06:30:45]SAM_PROTO_SignData [06:30:45]wFMCommunicate request_size=4 [06:30:45]MH_SAM_APDU [06:30:45]CAPDU: 80 0D 01 02 [06:30:45]Write to MH i2c: E2 08 00 83 06 80 0D 01 02 00 00 00 00 02 [06:30:45]Write i2c OK [06:30:45]MH_I2C_Read... [06:30:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:30:45]Read from MH i2c: E2 [06:30:45]MH_I2C_Read... [06:30:45]Read from MH i2c: E2 03 00 [06:30:45]MH_I2C_Read... [06:30:45]Read from MH i2c: E2 03 00 83 06 00 90 00 FD [06:30:45]RAPDU: 90 00 [06:30:45]wFMCommunicate OK [06:30:45]wFMCommunicate request_size=255 [06:30:45]MH_SAM_APDU [06:30:45]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 16 37 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 [06:30:45]Write to MH i2c: E2 02 01 84 06 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 16 37 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 00 00 6B [06:30:45]Write i2c OK [06:30:45]MH_I2C_Read... [06:30:45]OFD Sender: No OFD packet to send [06:30:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:30:45]Read from MH i2c: E2 [06:30:45]MH_I2C_Read... [06:30:45]Read from MH i2c: E2 03 00 [06:30:45]MH_I2C_Read... [06:30:45]Read from MH i2c: E2 03 00 84 06 00 90 00 FE [06:30:45]RAPDU: 90 00 [06:30:45]wFMCommunicate OK [06:30:45]wFMCommunicate request_size=35 [06:30:45]MH_SAM_APDU [06:30:45]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 64 A3 00 00 35 04 06 00 CF E9 52 24 51 60 [06:30:45]Write to MH i2c: E2 26 00 85 06 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 64 A3 00 00 35 04 06 00 CF E9 52 24 51 60 00 00 E7 [06:30:45]Write i2c OK [06:30:45]MH_I2C_Read... [06:30:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:30:45]Read from MH i2c: E2 [06:30:45]MH_I2C_Read... [06:30:45]Read from MH i2c: E2 03 00 [06:30:45]MH_I2C_Read... [06:30:45]Read from MH i2c: E2 03 00 85 06 00 90 00 FF [06:30:45]RAPDU: 90 00 [06:30:45]wFMCommunicate OK [06:30:45]wFMCommunicate request_size=4 [06:30:45]MH_SAM_APDU [06:30:45]CAPDU: 80 0D 03 02 [06:30:45]Write to MH i2c: E2 08 00 86 06 80 0D 03 02 00 00 00 00 07 [06:30:45]Write i2c OK [06:30:45]MH_I2C_Read... [06:30:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:30:45]Read from MH i2c: E2 [06:30:45]MH_I2C_Read... [06:30:45]Read from MH i2c: E2 0B 00 [06:30:45]MH_I2C_Read... [06:30:45]Read from MH i2c: E2 0B 00 86 06 00 59 FE B8 04 C7 31 5F 6D 90 00 DF [06:30:45]RAPDU: 59 FE B8 04 C7 31 5F 6D 90 00 [06:30:45]wFMCommunicate OK [06:30:45]SAM_PROTO_SignData done [06:30:45]FM_MakeSignedData done [06:30:45]CreateOFDProtocolMessage [06:30:45]wFMCommunicate request_size=4 [06:30:45]MH_SAM_APDU [06:30:45]CAPDU: 80 11 00 00 [06:30:45]Write to MH i2c: E2 08 00 87 06 80 11 00 00 00 00 00 00 07 [06:30:45]Write i2c OK [06:30:45]MH_I2C_Read... [06:30:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:30:45]Read from MH i2c: E2 [06:30:45]MH_I2C_Read... [06:30:45]Read from MH i2c: E2 17 00 [06:30:45]MH_I2C_Read... [06:30:45]Read from MH i2c: E2 17 00 87 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 63 [06:30:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [06:30:45]wFMCommunicate OK [06:30:45]CreateOFDProtocolMessage done [06:30:45]OFDSenderStorePacket 41828 [06:30:45]StoreOFDPacket docnum=41828 [06:30:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 28 01 00 00 E8 11 20 01 08 67 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 16 37 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 64 A3 00 00 35 04 06 00 CF E9 52 24 51 60 59 FE B8 04 C7 31 5F 6D [06:30:45]CheckFolder [06:30:45]dirname=/storage/ofd_packets [06:30:45]CheckFolder done [06:30:45]ProducePacketName [06:30:45]name=ofd_packets/00041828 [06:30:45]NVStorageSaveData ofd_packets/00041828 [06:30:45]File name is /storage/ofd_packets/00041828 [06:30:45]Write 326 bytes [06:30:45]NVStorageSaveData done [06:30:45]OFDSenderStorePacket done [06:30:45]KKMCreateOFDPacket done [06:30:45]NVStorageSaveData kkm_last_timestamp [06:30:45]File name is /storage/kkm_last_timestamp [06:30:45]Write 4 bytes [06:30:45]NVStorageSaveData done [06:30:45]ExternCall_PrintAddStr [06:30:45]wPrintStart [06:30:45]Write to MH i2c: 01 00 00 88 06 8E [06:30:45]Write i2c OK [06:30:45]MH_I2C_Read... [06:30:45]Read from MH i2c: 01 [06:30:45]MH_I2C_Read... [06:30:45]Read from MH i2c: 01 07 00 [06:30:45]MH_I2C_Read... [06:30:45]Read from MH i2c: 01 07 00 88 06 00 00 00 00 00 FF 0F A3 [06:30:45]RasterBufferAndPrint [06:30:45]line Счет N : (3)183856 [06:30:45]line ИНН: 02508201610067 [06:30:45]line Контрольно-Кассовый Чек [06:30:45]line ПРОДАЖА [06:30:45]line Товар: 48742245 [06:30:45]line Сигареты Parliament Silver Blue [06:30:45]line 1.000 * 151.00 [06:30:45]line = 151.00 [06:30:45]line НДС 12% НСП 1% [06:30:45]line > о реализуемом товаре [06:30:45]line ИТОГО: 151.00 [06:30:45]line НСП 1% : 1.34 [06:30:45]line НДС 12% : 16.03 [06:30:45]line Наличными: 151.00 [06:30:45]line Безнал.: 0.00 [06:30:45]line Место: АЗС № 97 "Партнер Нефть" [06:30:45]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [06:30:45]line СНО: Общий режим [06:30:45]line Чек 17 29.07.2024 06:30 [06:30:45]line Смена: 427 ФФД: 1.0 [06:30:45]line ЗНМ: 0300000053 [06:30:45]line РНМ: 0000000000092626 [06:30:45]line Версия ККМ: 001 [06:30:45]line ФМ: 0000000000874958 [06:30:45]line ФД: 41828 [06:30:45]line ФПД: 228601012441440 [06:30:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T063046&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41828&fm=228601012441440&tin=02508201610067®Number=0000000000092626&sum=15100 [06:30:45]line 0 [06:30:45]OFD Sender: Processing packet 41828 [packets to send 57, broken 56] [06:30:45]ProducePacketName [06:30:45]name=ofd_packets/00041828 [06:30:45]OFD Sender: To server: pG, [06:30:45]CommunicateWithHost lk.salyk.kg:30040 [06:30:45]ConnectInit lk.salyk.kg [06:30:45]written 0, free lines is 4095 [06:30:46]Write to MH i2c: 01 00 00 B1 06 B7 [06:30:46]Write i2c OK [06:30:46]MH_I2C_Read... [06:30:46]Read from MH i2c: 01 [06:30:46]MH_I2C_Read... [06:30:46]Read from MH i2c: 01 07 00 [06:30:46]MH_I2C_Read... [06:30:46]Read from MH i2c: 01 07 00 B1 06 00 00 00 00 00 F4 0C BE [06:30:46]RasterBufferAndPrint [06:30:46]line [06:30:46]line [06:30:46]line [06:30:46]line [06:30:46]line [06:30:46]written 0, free lines is 3322 [06:30:46]MH_Cut [06:30:46]Write to MH i2c: D1 01 00 B8 06 01 90 [06:30:46]Write i2c OK [06:30:46]MH_I2C_Read... [06:30:46]Read from MH i2c: D1 [06:30:46]MH_I2C_Read... [06:30:46]Read from MH i2c: D1 01 00 [06:30:46]MH_I2C_Read... [06:30:46]Read from MH i2c: D1 01 00 B8 06 00 8F [06:30:46]Write to MH i2c: 01 00 00 B9 06 BF [06:30:46]Write i2c OK [06:30:46]MH_I2C_Read... [06:30:47]*** Cut start [06:30:47]*** Partial cut [06:30:47]*** CUTSNS_PIN = 1 [06:30:47]*** CUTSNS_PIN = 0 [06:30:47]*** Brake cut motor [06:30:47]Read from MH i2c: 01 [06:30:47]MH_I2C_Read... [06:30:47]*** Stop cut motor [06:30:47]*** Cut end [06:30:47]Read from MH i2c: 01 07 00 [06:30:47]MH_I2C_Read... [06:30:47]Read from MH i2c: 01 07 00 B9 06 00 00 00 00 00 FF 0F D4 [06:30:47]process_action close_receipt done [06:30:47]requested_data is exist [06:30:47]produce_requested_data [06:30:47]requested_item fm.sn is exist - process it [06:30:47]wFMCommunicate request_size=4 [06:30:47]MH_SAM_APDU [06:30:47]CAPDU: 80 11 00 00 [06:30:47]Write to MH i2c: E2 08 00 BA 06 80 11 00 00 00 00 00 00 3A [06:30:47]Write i2c OK [06:30:47]MH_I2C_Read... [06:30:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:30:47]Read from MH i2c: E2 [06:30:47]MH_I2C_Read... [06:30:47]Read from MH i2c: E2 17 00 [06:30:47]MH_I2C_Read... [06:30:47]Read from MH i2c: E2 17 00 BA 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 96 [06:30:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [06:30:47]wFMCommunicate OK [06:30:47]requested_item fd.num is exist - process it [06:30:47]SAM_PROTO_GetFieldsCounters [06:30:47]wFMCommunicate request_size=4 [06:30:47]MH_SAM_APDU [06:30:47]CAPDU: 80 13 00 00 [06:30:47]Write to MH i2c: E2 08 00 BB 06 80 13 00 00 00 00 00 00 3D [06:30:47]Write i2c OK [06:30:47]MH_I2C_Read... [06:30:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:30:48]Read from MH i2c: E2 [06:30:48]MH_I2C_Read... [06:30:48]Read from MH i2c: E2 62 00 [06:30:48]MH_I2C_Read... [06:30:48]Read from MH i2c: E2 62 00 BB 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 64 A3 00 00 0E 04 04 00 AB 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 4D [06:30: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 64 A3 00 00 0E 04 04 00 AB 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:30:48]wFMCommunicate OK [06:30:48]SAM_PROTO_GetFieldsCounters done [06:30:48]requested_item shift.num is exist - process it [06:30:48]requested_item shift.opened is exist - process it [06:30:48]req_shift_opened [06:30:48]FM_GetShiftState [06:30:48]SAM_PROTO_GetShiftState [06:30:48]wFMCommunicate request_size=4 [06:30:48]MH_SAM_APDU [06:30:48]CAPDU: 80 13 01 00 [06:30:48]Write to MH i2c: E2 08 00 BC 06 80 13 01 00 00 00 00 00 3F [06:30:48]Write i2c OK [06:30:48]MH_I2C_Read... [06:30:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:30:48]Read from MH i2c: E2 [06:30:48]MH_I2C_Read... [06:30:48]Read from MH i2c: E2 0E 00 [06:30:48]MH_I2C_Read... [06:30:48]Read from MH i2c: E2 0E 00 BC 06 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 DB [06:30:48]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [06:30:48]wFMCommunicate OK [06:30:48]SAM_PROTO_GetShiftState done [06:30:48]FM_GetShiftState done [06:30:48]req_shift_opened done [06:30:48]requested_item shift.open_date is exist - process it [06:30:48]req_shift_open_date [06:30:48]req_shift_open_date done [06:30:48]produce_requested_data done [06:30:48]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41828,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [06:30:48]process_action_free close_receipt [06:30:48]json_value_free [06:30:48]json_value_free done [06:30:48]process_json_proto returns [06:30:48]Send response to host [06:30:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41828,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [06:30:48]free response buf [06:30:48]execute_script done [06:30:48]execute_script returns [06:30:48]free content buf [06:30:48]Sock 10.Close socket [06:30:48]Sock 10.Thread stoped [06:30:50]ConnectInit Can't take IP for lk.salyk.kg [06:30:50]CommunicateWithHost connect error [06:30:50]CommunicateWithHost err = -1 [06:30:50]OFD Sender: Server communicate error [06:30:56]OFD Sender: Processing packet 41828 [packets to send 57, broken 56] [06:30:56]ProducePacketName [06:30:56]name=ofd_packets/00041828 [06:30:56]OFD Sender: To server: pG, [06:30:56]CommunicateWithHost lk.salyk.kg:30040 [06:30:56]ConnectInit lk.salyk.kg [06:31:00]Connected sock=8 [06:31: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 35 38 28 01 00 00 E8 11 20 01 08 67 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 16 37 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 64 A3 00 00 35 04 06 00 CF E9 52 24 51 60 59 FE B8 04 C7 31 5F 6D [06:31: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 35 38 4F 00 00 00 49 01 47 00 0A 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 35 38 10 04 04 00 64 A3 00 00 F4 03 04 00 36 E3 A6 66 B6 04 01 00 00 2D FB 50 1F D8 9C 6A E4 [06:31:00]CommunicateWithHost err = 0 [06:31:00]CheckOFDResponse [06:31:00]1017 (14) - 77093643461234 [06:31:00]1041 (16) - 0000000000874958 [06:31:00]1040 (4) - 41828 [06:31:00]1012 (4) - 29.07.2024 00:32 [06:31:00]1206 (1) - 0 [06:31:00]OFD Sender: Remove packet 41828 [06:31:00]ProducePacketName [06:31:00]name=ofd_packets/00041828 [06:31:00]NVStorageDeleteData [06:31:00]OFD Sender: No OFD packet to send [06:31:05]OFD Sender: No OFD packet to send [06:31:10]OFD Sender: No OFD packet to send [06:31:15]OFD Sender: No OFD packet to send [06:31:20]OFD Sender: No OFD packet to send [06:31:25]OFD Sender: No OFD packet to send [06:31:30]OFD Sender: No OFD packet to send [06:31:35]OFD Sender: No OFD packet to send [06:31:40]OFD Sender: No OFD packet to send [06:31:44]recv_with_timeout no data received [06:31:46]OFD Sender: No OFD packet to send [06:31:51]OFD Sender: No OFD packet to send [06:31:56]OFD Sender: No OFD packet to send [06:32:01]OFD Sender: No OFD packet to send [06:32:06]OFD Sender: No OFD packet to send [06:32:11]OFD Sender: No OFD packet to send [06:32:16]OFD Sender: No OFD packet to send [06:32:21]OFD Sender: No OFD packet to send [06:32:26]OFD Sender: No OFD packet to send [06:32:31]OFD Sender: No OFD packet to send [06:32:36]OFD Sender: No OFD packet to send [06:32:41]OFD Sender: No OFD packet to send [06:32:46]OFD Sender: No OFD packet to send [06:32:51]OFD Sender: No OFD packet to send [06:32:56]OFD Sender: No OFD packet to send [06:33:01]OFD Sender: No OFD packet to send [06:33:06]OFD Sender: No OFD packet to send [06:33:11]OFD Sender: No OFD packet to send [06:33:16]OFD Sender: No OFD packet to send [06:33:21]OFD Sender: No OFD packet to send [06:33:26]OFD Sender: No OFD packet to send [06:33:31]OFD Sender: No OFD packet to send [06:33:36]OFD Sender: No OFD packet to send [06:33:41]OFD Sender: No OFD packet to send [06:33:46]OFD Sender: No OFD packet to send [06:33:51]OFD Sender: No OFD packet to send [06:33:56]OFD Sender: No OFD packet to send [06:33:58]recv_with_timeout no data received [06:34:01]OFD Sender: No OFD packet to send [06:34:06]OFD Sender: No OFD packet to send [06:34:11]OFD Sender: No OFD packet to send [06:34:16]OFD Sender: No OFD packet to send [06:34:21]OFD Sender: No OFD packet to send [06:34:26]OFD Sender: No OFD packet to send [06:34:31]OFD Sender: No OFD packet to send [06:34:36]OFD Sender: No OFD packet to send [06:34:41]OFD Sender: No OFD packet to send [06:34:46]OFD Sender: No OFD packet to send [06:34:51]OFD Sender: No OFD packet to send [06:34:56]OFD Sender: No OFD packet to send [06:35:01]OFD Sender: No OFD packet to send [06:35:06]OFD Sender: No OFD packet to send [06:35:11]OFD Sender: No OFD packet to send [06:35:16]OFD Sender: No OFD packet to send [06:35:21]OFD Sender: No OFD packet to send [06:35:26]OFD Sender: No OFD packet to send [06:35:31]OFD Sender: No OFD packet to send [06:35:36]OFD Sender: No OFD packet to send [06:35:41]OFD Sender: No OFD packet to send [06:35:46]OFD Sender: No OFD packet to send [06:35:51]OFD Sender: No OFD packet to send [06:35:56]OFD Sender: No OFD packet to send [06:36:01]OFD Sender: No OFD packet to send [06:36:06]OFD Sender: No OFD packet to send [06:36:11]OFD Sender: No OFD packet to send [06:36:16]OFD Sender: No OFD packet to send [06:36:21]OFD Sender: No OFD packet to send [06:36:26]OFD Sender: No OFD packet to send [06:36:31]OFD Sender: No OFD packet to send [06:36:36]OFD Sender: No OFD packet to send [06:36:41]OFD Sender: No OFD packet to send [06:36:46]accept exits with 9 [06:36:46]New connection [06:36:46]New thread 3067030884 created [06:36:46]Thread 3066887524 joined [06:36:46]Waiting for new connection... [06:36:46] Sock 9.Parse request [06:36:46]Sock 9.Check first char [06:36:46]Sock 9.First char is OK [06:36:46]request: POST /json_proto HTTP/1.0 [06:36:46]Method: POST [06:36:46]URL: /json_proto [06:36:46]Method is POST - this is cgi request [06:36:46]url: /json_proto [06:36:46]query_string will be loaded in cgi processing [06:36:46]execute_cgi json_proto POST (null) [06:36:46]execute_cgi path=json_proto method=POST [06:36:46]POST find Content-Length [06:36:46]Host: 172.17.43.132:8080 [06:36:46]Content-Length: 912 [06:36:46]Content-Type: application/json [06:36:46] [06:36:46]POST finish read [06:36:46]Found Content-Length = 912 [06:36:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183857", "tax_sys" : 0, "items" : [ { "code": "4600682000280", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up \u043C\u043E\u0445\u0438\u0442\u043E 0,45 \u0436/\u0431", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48745291", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament SOHO NYC COMPACT BLU", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 215.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:36:46]execute_script... [06:36:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183857", "tax_sys" : 0, "items" : [ { "code": "4600682000280", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up \u043C\u043E\u0445\u0438\u0442\u043E 0,45 \u0436/\u0431", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48745291", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament SOHO NYC COMPACT BLU", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 215.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:36:46]POST & json_proto [06:36:46]process_json_proto [06:36:46]json parsed OK: [06:36:46]protocol is kg_v1.0 [06:36:46]action value=close_receipt [06:36:46]process_action close_receipt [06:36:46]cmd_close_receipt [06:36:46]MH_GetDate [06:36:46]Write to MH i2c: F0 00 00 BD 06 B2 [06:36:46]Write i2c OK [06:36:46]MH_I2C_Read... [06:36:46]Read from MH i2c: F0 [06:36:46]MH_I2C_Read... [06:36:46]Read from MH i2c: F0 09 00 [06:36:46]MH_I2C_Read... [06:36:46]Read from MH i2c: F0 09 00 BD 06 00 80 38 A7 66 AA D0 A5 66 05 [06:36:46]GetLastDocTimeStamp 1722234646 [06:36:46]current date 1722235008 [06:36:46]FM_GetShiftState [06:36:46]SAM_PROTO_GetShiftState [06:36:46]wFMCommunicate request_size=4 [06:36:46]MH_SAM_APDU [06:36:46]CAPDU: 80 13 01 00 [06:36:46]Write to MH i2c: E2 08 00 BE 06 80 13 01 00 00 00 00 00 41 [06:36:46]Write i2c OK [06:36:46]MH_I2C_Read... [06:36:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:36:46]Read from MH i2c: E2 [06:36:46]MH_I2C_Read... [06:36:46]Read from MH i2c: E2 0E 00 [06:36:46]MH_I2C_Read... [06:36:46]Read from MH i2c: E2 0E 00 BE 06 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 DD [06:36:46]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [06:36:46]wFMCommunicate OK [06:36:46]SAM_PROTO_GetShiftState done [06:36:46]FM_GetShiftState done [06:36:46]opened in 1722211496 [06:36:46]opened+sec_in_day 1722297896 [06:36:46]quantity*price = 8500 [06:36:46]sum+1 = 8501 [06:36:46]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48745291 Сигареты Parliament SOHO NYC COMPACT BLU 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 215.00 НСП 1% : 1.90 НДС 12% : 22.83 Наличными: 215.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 18 29.07.2024 06:36 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41829 ФПД: 86437167368709 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T063648&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41829&fm=86437167368709&tin=02508201610067®Number=0000000000092626&sum=21500 0 [06:36:47]StoreToDocumentArchive [06:36:47]shift 427 fd 41829 [06:36:47]save to /storage/0427/doc_00041829 [06:36:47]save last doc name /storage/0427/doc_00041829 to /storage/kkm_last_doc_name [06:36:47]save OK [06:36:47]Clear old archive folders... [06:36:47]ProcessDocumentItem done err = 0, tmpTLVsize=404 [06:36:47]tlvbuf is 013EF750 [06:36:47]SAM_PROTO_ClearQueue [06:36:47]wFMCommunicate request_size=4 [06:36:47]MH_SAM_APDU [06:36:47]CAPDU: 80 09 00 00 [06:36:47]Write to MH i2c: E2 08 00 CB 06 80 09 00 00 00 00 00 00 43 [06:36:47]Write i2c OK [06:36:47]MH_I2C_Read... [06:36:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:36:47]Read from MH i2c: E2 [06:36:47]MH_I2C_Read... [06:36:47]Read from MH i2c: E2 03 00 [06:36:47]MH_I2C_Read... [06:36:47]Read from MH i2c: E2 03 00 CB 06 00 90 00 45 [06:36:47]RAPDU: 90 00 [06:36:47]wFMCommunicate OK [06:36:47]SAM_PROTO_ClearQueue done [06:36:47]KKMCreateOFDPacket [06:36:47]OFDProtocolAddRootSTLVToBuf [06:36:47]FM_MakeSignedData [06:36:47]FM_MakeSignedData [06:36:47]SAM_PROTO_SignData [06:36:47]wFMCommunicate request_size=4 [06:36:47]MH_SAM_APDU [06:36:47]CAPDU: 80 0D 01 02 [06:36:47]Write to MH i2c: E2 08 00 CC 06 80 0D 01 02 00 00 00 00 4B [06:36:47]Write i2c OK [06:36:47]MH_I2C_Read... [06:36:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:36:47]Read from MH i2c: E2 [06:36:47]MH_I2C_Read... [06:36:47]Read from MH i2c: E2 03 00 [06:36:47]MH_I2C_Read... [06:36:47]Read from MH i2c: E2 03 00 CC 06 00 90 00 46 [06:36:47]RAPDU: 90 00 [06:36:47]wFMCommunicate OK [06:36:47]wFMCommunicate request_size=255 [06:36:47]MH_SAM_APDU [06:36:47]CAPDU: 80 0D 02 02 FA 03 00 94 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 34 36 30 30 36 38 32 30 30 30 32 38 30 06 04 2F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 D0 BC D0 BE D1 85 D0 B8 D1 82 D0 BE 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 53 00 [06:36:47]Write to MH i2c: E2 02 01 CD 06 80 0D 02 02 FA 00 03 00 94 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 34 36 30 30 36 38 32 30 30 30 32 38 30 06 04 2F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 D0 BC D0 BE D1 85 D0 B8 D1 82 D0 BE 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 53 00 00 00 E5 [06:36:47]Write i2c OK [06:36:47]MH_I2C_Read... [06:36:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:36:47]Read from MH i2c: E2 [06:36:47]MH_I2C_Read... [06:36:47]Read from MH i2c: E2 03 00 [06:36:47]MH_I2C_Read... [06:36:47]Read from MH i2c: E2 03 00 CD 06 00 90 00 47 [06:36:47]RAPDU: 90 00 [06:36:47]wFMCommunicate OK [06:36:47]wFMCommunicate request_size=163 [06:36:47]MH_SAM_APDU [06:36:47]CAPDU: 80 0D 02 02 9E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 08 00 00 00 00 07 04 06 00 FC 53 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 80 38 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 65 A3 00 00 35 04 06 00 4E 9D 38 A8 0A 05 [06:36:47]Write to MH i2c: E2 A6 00 CE 06 80 0D 02 02 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 08 00 00 00 00 07 04 06 00 FC 53 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 80 38 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 65 A3 00 00 35 04 06 00 4E 9D 38 A8 0A 05 00 00 35 [06:36:47]Write i2c OK [06:36:47]MH_I2C_Read... [06:36:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:36:47]Read from MH i2c: E2 [06:36:47]MH_I2C_Read... [06:36:47]Read from MH i2c: E2 03 00 [06:36:47]MH_I2C_Read... [06:36:47]Read from MH i2c: E2 03 00 CE 06 00 90 00 48 [06:36:47]RAPDU: 90 00 [06:36:47]wFMCommunicate OK [06:36:47]wFMCommunicate request_size=4 [06:36:47]MH_SAM_APDU [06:36:47]CAPDU: 80 0D 03 02 [06:36:47]Write to MH i2c: E2 08 00 CF 06 80 0D 03 02 00 00 00 00 50 [06:36:47]Write i2c OK [06:36:47]MH_I2C_Read... [06:36:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:36:47]Read from MH i2c: E2 [06:36:47]MH_I2C_Read... [06:36:47]Read from MH i2c: E2 0B 00 [06:36:47]MH_I2C_Read... [06:36:47]Read from MH i2c: E2 0B 00 CF 06 00 91 7F 7B 4C B5 30 17 DF 90 00 03 [06:36:47]RAPDU: 91 7F 7B 4C B5 30 17 DF 90 00 [06:36:47]wFMCommunicate OK [06:36:47]SAM_PROTO_SignData done [06:36:47]FM_MakeSignedData done [06:36:47]CreateOFDProtocolMessage [06:36:47]wFMCommunicate request_size=4 [06:36:47]MH_SAM_APDU [06:36:47]CAPDU: 80 11 00 00 [06:36:47]Write to MH i2c: E2 08 00 D0 06 80 11 00 00 00 00 00 00 50 [06:36:47]Write i2c OK [06:36:47]MH_I2C_Read... [06:36:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:36:47]Read from MH i2c: E2 [06:36:47]MH_I2C_Read... [06:36:47]Read from MH i2c: E2 17 00 [06:36:47]MH_I2C_Read... [06:36:47]Read from MH i2c: E2 17 00 D0 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 AC [06:36:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [06:36:47]wFMCommunicate OK [06:36:47]CreateOFDProtocolMessage done [06:36:47]OFDSenderStorePacket 41829 [06:36:47]StoreOFDPacket docnum=41829 [06:36:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 A8 01 00 00 D0 93 A0 01 C9 82 5A 03 01 00 03 00 94 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 34 36 30 30 36 38 32 30 30 30 32 38 30 06 04 2F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 D0 BC D0 BE D1 85 D0 B8 D1 82 D0 BE 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 53 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 08 00 00 00 00 07 04 06 00 FC 53 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 80 38 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 65 A3 00 00 35 04 06 00 4E 9D 38 A8 0A 05 91 7F 7B 4C B5 30 17 DF [06:36:47]CheckFolder [06:36:47]dirname=/storage/ofd_packets [06:36:47]CheckFolder done [06:36:47]ProducePacketName [06:36:47]name=ofd_packets/00041829 [06:36:47]NVStorageSaveData ofd_packets/00041829 [06:36:47]File name is /storage/ofd_packets/00041829 [06:36:47]Write 454 bytes [06:36:47]NVStorageSaveData done [06:36:47]OFDSenderStorePacket done [06:36:47]KKMCreateOFDPacket done [06:36:47]NVStorageSaveData kkm_last_timestamp [06:36:47]File name is /storage/kkm_last_timestamp [06:36:47]Write 4 bytes [06:36:47]NVStorageSaveData done [06:36:47]ExternCall_PrintAddStr [06:36:47]wPrintStart [06:36:47]Write to MH i2c: 01 00 00 D1 06 D7 [06:36:47]Write i2c OK [06:36:47]MH_I2C_Read... [06:36:47]Read from MH i2c: 01 [06:36:47]MH_I2C_Read... [06:36:47]Read from MH i2c: 01 07 00 [06:36:47]MH_I2C_Read... [06:36:47]Read from MH i2c: 01 07 00 D1 06 00 00 00 00 00 FF 0F EC [06:36:47]RasterBufferAndPrint [06:36:47]line Счет N : (3)183857 [06:36:47]line ИНН: 02508201610067 [06:36:47]line Контрольно-Кассовый Чек [06:36:47]line ПРОДАЖА [06:36:47]line Товар: 4600682000280 [06:36:48]line Напиток FLash up мохито 0,45 ж/б [06:36:48]line 1.000 * 85.00 [06:36:48]line = 85.00 [06:36:48]line НДС 12% НСП 1% [06:36:48]line > о реализуемом товаре [06:36:48]line Товар: 48745291 [06:36:48]line Сигареты Parliament SOHO NYC COMPACT BLU [06:36:48]line 1.000 * 130.00 [06:36:48]line = 130.00 [06:36:48]line НДС 12% НСП 1% [06:36:48]line > о реализуемом товаре [06:36:48]line ИТОГО: 215.00 [06:36:48]line НСП 1% : 1.90 [06:36:48]line НДС 12% : 22.83 [06:36:48]line Наличными: 215.00 [06:36:48]line Безнал.: 0.00 [06:36:48]line Место: АЗС № 97 "Партнер Нефть" [06:36:48]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [06:36:48]line СНО: Общий режим [06:36:48]line Чек 18 29.07.2024 06:36 [06:36:48]line Смена: 427 ФФД: 1.0 [06:36:48]line ЗНМ: 0300000053 [06:36:48]line РНМ: 0000000000092626 [06:36:48]line Версия ККМ: 001 [06:36:48]line ФМ: 0000000000874958 [06:36:48]line ФД: 41829 [06:36:48]line ФПД: 86437167368709 [06:36:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T063648&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41829&fm=86437167368709&tin=02508201610067®Number=0000000000092626&sum=21500 [06:36:48]line 0 [06:36:48]OFD Sender: Processing packet 41829 [packets to send 57, broken 56] [06:36:48]ProducePacketName [06:36:48]name=ofd_packets/00041829 [06:36:48]OFD Sender: To server: pG, [06:36:48]CommunicateWithHost lk.salyk.kg:30040 [06:36:48]ConnectInit lk.salyk.kg [06:36:48]written 0, free lines is 4095 [06:36:48]Write to MH i2c: 01 00 00 01 07 08 [06:36:48]Write i2c OK [06:36:48]MH_I2C_Read... [06:36:48]Read from MH i2c: 01 [06:36:48]MH_I2C_Read... [06:36:48]Read from MH i2c: 01 07 00 [06:36:48]MH_I2C_Read... [06:36:48]Read from MH i2c: 01 07 00 01 07 00 00 00 00 00 A8 0C C3 [06:36:48]RasterBufferAndPrint [06:36:48]line [06:36:48]line [06:36:48]line [06:36:48]line [06:36:48]line [06:36:48]written 0, free lines is 3246 [06:36:48]MH_Cut [06:36:48]Write to MH i2c: D1 01 00 08 07 01 E1 [06:36:48]Write i2c OK [06:36:48]MH_I2C_Read... [06:36:48]Read from MH i2c: D1 [06:36:48]MH_I2C_Read... [06:36:48]Read from MH i2c: D1 01 00 [06:36:48]MH_I2C_Read... [06:36:48]Read from MH i2c: D1 01 00 08 07 00 E0 [06:36:48]Write to MH i2c: 01 00 00 09 07 10 [06:36:48]Write i2c OK [06:36:48]MH_I2C_Read... [06:36:49]*** Cut start [06:36:49]*** Partial cut [06:36:49]*** CUTSNS_PIN = 1 [06:36:49]*** CUTSNS_PIN = 0 [06:36:49]Connected sock=10 [06:36: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 35 38 A8 01 00 00 D0 93 A0 01 C9 82 5A 03 01 00 03 00 94 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 34 36 30 30 36 38 32 30 30 30 32 38 30 06 04 2F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 D0 BC D0 BE D1 85 D0 B8 D1 82 D0 BE 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 53 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 *** Brake cut motor [06:36:49]03 06 00 EB 08 00 00 00 00 07 04 06 00 FC 53 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 80 38 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 65 A3 00 00 35 04 06 00 4E 9D 38 A8 0A 05 91 7F 7B 4C B5 30 17 DF [06:36:50]Read from MH i2c: 01 [06:36:50]MH_I2C_Read... [06:36:50]*** Stop cut motor [06:36:50]*** Cut end [06:36:50]Read from MH i2c: 01 07 00 [06:36:50]MH_I2C_Read... [06:36:50]Read from MH i2c: 01 07 00 09 07 00 00 00 00 00 FF 0F 25 [06:36:50]process_action close_receipt done [06:36:50]requested_data is exist [06:36:50]produce_requested_data [06:36:50]requested_item fm.sn is exist - process it [06:36:50]wFMCommunicate request_size=4 [06:36:50]MH_SAM_APDU [06:36:50]CAPDU: 80 11 00 00 [06:36:50]Write to MH i2c: E2 08 00 0A 07 80 11 00 00 00 00 00 00 8B [06:36:50]Write i2c OK [06:36:50]MH_I2C_Read... [06:36:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:36:50]Read from MH i2c: E2 [06:36:50]MH_I2C_Read... [06:36:50]Read from MH i2c: E2 17 00 [06:36:50]MH_I2C_Read... [06:36:50]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 35 38 90 00 E7 [06:36:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [06:36:50]wFMCommunicate OK [06:36:50]requested_item fd.num is exist - process it [06:36:50]SAM_PROTO_GetFieldsCounters [06:36:50]wFMCommunicate request_size=4 [06:36:50]MH_SAM_APDU [06:36:50]CAPDU: 80 13 00 00 [06:36:50]Write to MH i2c: E2 08 00 0B 07 80 13 00 00 00 00 00 00 8E [06:36:50]Write i2c OK [06:36:50]MH_I2C_Read... [06:36:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:36:50]Read from MH i2c: E2 [06:36:50]MH_I2C_Read... [06:36:50]Read from MH i2c: E2 62 00 [06:36:50]MH_I2C_Read... [06:36:50]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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 65 A3 00 00 0E 04 04 00 AB 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 A2 [06:36: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 65 A3 00 00 0E 04 04 00 AB 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 [06:36:50]wFMCommunicate OK [06:36:50]SAM_PROTO_GetFieldsCounters done [06:36:50]requested_item shift.num is exist - process it [06:36:50]requested_item shift.opened is exist - process it [06:36:50]req_shift_opened [06:36:50]FM_GetShiftState [06:36:50]SAM_PROTO_GetShiftState [06:36:50]wFMCommunicate request_size=4 [06:36:50]MH_SAM_APDU [06:36:50]CAPDU: 80 13 01 00 [06:36:50]Write to MH i2c: E2 08 00 0C 07 80 13 01 00 00 00 00 00 90 [06:36: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 35 38 4F 00 00 00 D9 51 47 00 43 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 35 38 10 04 04 00 65 A3 00 00 F4 03 04 00 94 E4 A6 66 B6 04 01 00 00 95 32 22 46 77 1E B8 85 [06:36:50]CommunicateWithHost err = 0 [06:36:50]CheckOFDResponse [06:36:50]1017 (14) - 77093643461234 [06:36:50]1041 (16) - 0000000000874958 [06:36:50]1040 (4) - 41829 [06:36:50]1012 (4) - 29.07.2024 00:38 [06:36:50]1206 (1) - 0 [06:36:50]OFD Sender: Remove packet 41829 [06:36:50]ProducePacketName [06:36:50]name=ofd_packets/00041829 [06:36:50]NVStorageDeleteData [06:36:50]Write i2c OK [06:36:50]MH_I2C_Read... [06:36:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:36:50]Read from MH i2c: E2 [06:36:50]MH_I2C_Read... [06:36:50]Read from MH i2c: E2 0E 00 [06:36:50]MH_I2C_Read... [06:36:50]Read from MH i2c: E2 0E 00 0C 07 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 2C [06:36:50]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [06:36:50]wFMCommunicate OK [06:36:50]SAM_PROTO_GetShiftState done [06:36:50]FM_GetShiftState done [06:36:50]req_shift_opened done [06:36:50]requested_item shift.open_date is exist - process it [06:36:50]req_shift_open_date [06:36:50]req_shift_open_date done [06:36:50]produce_requested_data done [06:36:50]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41829,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [06:36:50]process_action_free close_receipt [06:36:50]json_value_free [06:36:50]json_value_free done [06:36:50]process_json_proto returns [06:36:50]Send response to host [06:36:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41829,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [06:36:50]free response buf [06:36:50]execute_script done [06:36:50]execute_script returns [06:36:50]free content buf [06:36:50]Sock 9.Close socket [06:36:50]Sock 9.Thread stoped [06:36:51]OFD Sender: No OFD packet to send [06:36:56]OFD Sender: No OFD packet to send [06:37:01]OFD Sender: No OFD packet to send [06:37:06]OFD Sender: No OFD packet to send [06:37:06]recv_with_timeout no data received [06:37:11]OFD Sender: No OFD packet to send [06:37:16]OFD Sender: No OFD packet to send [06:37:21]OFD Sender: No OFD packet to send [06:37:26]OFD Sender: No OFD packet to send [06:37:31]OFD Sender: No OFD packet to send [06:37:36]OFD Sender: No OFD packet to send [06:37:41]OFD Sender: No OFD packet to send [06:37:46]OFD Sender: No OFD packet to send [06:37:51]OFD Sender: No OFD packet to send [06:37:56]OFD Sender: No OFD packet to send [06:38:01]OFD Sender: No OFD packet to send [06:38:06]OFD Sender: No OFD packet to send [06:38:11]OFD Sender: No OFD packet to send [06:38:16]OFD Sender: No OFD packet to send [06:38:21]OFD Sender: No OFD packet to send [06:38:26]OFD Sender: No OFD packet to send [06:38:31]OFD Sender: No OFD packet to send [06:38:36]OFD Sender: No OFD packet to send [06:38:41]OFD Sender: No OFD packet to send [06:38:46]OFD Sender: No OFD packet to send [06:38:51]OFD Sender: No OFD packet to send [06:38:56]OFD Sender: No OFD packet to send [06:39:01]OFD Sender: No OFD packet to send [06:39:06]OFD Sender: No OFD packet to send [06:39:11]OFD Sender: No OFD packet to send [06:39:16]OFD Sender: No OFD packet to send [06:39:21]OFD Sender: No OFD packet to send [06:39:26]OFD Sender: No OFD packet to send [06:39:31]OFD Sender: No OFD packet to send [06:39:36]OFD Sender: No OFD packet to send [06:39:41]OFD Sender: No OFD packet to send [06:39:46]OFD Sender: No OFD packet to send [06:39:51]OFD Sender: No OFD packet to send [06:39:56]OFD Sender: No OFD packet to send [06:40:01]OFD Sender: No OFD packet to send [06:40:06]OFD Sender: No OFD packet to send [06:40:11]OFD Sender: No OFD packet to send [06:40:16]OFD Sender: No OFD packet to send [06:40:21]OFD Sender: No OFD packet to send [06:40:26]OFD Sender: No OFD packet to send [06:40:31]OFD Sender: No OFD packet to send [06:40:36]OFD Sender: No OFD packet to send [06:40:41]OFD Sender: No OFD packet to send [06:40:46]OFD Sender: No OFD packet to send [06:40:51]OFD Sender: No OFD packet to send [06:40:56]OFD Sender: No OFD packet to send [06:40:57]accept exits with 8 [06:40:57]New connection [06:40:57]New thread 3066887524 created [06:40:57]Thread 3067030884 joined [06:40:57]Waiting for new connection... [06:40:57] Sock 8.Parse request [06:40:57]Sock 8.Check first char [06:40:57]Sock 8.First char is OK [06:40:57]request: POST /json_proto HTTP/1.0 [06:40:57]Method: POST [06:40:57]URL: /json_proto [06:40:57]Method is POST - this is cgi request [06:40:57]url: /json_proto [06:40:57]query_string will be loaded in cgi processing [06:40:57]execute_cgi json_proto POST (null) [06:40:57]execute_cgi path=json_proto method=POST [06:40:57]POST find Content-Length [06:40:57]Host: 172.17.43.132:8080 [06:40:57]Content-Length: 652 [06:40:57]Content-Type: application/json [06:40:57] [06:40:57]POST finish read [06:40:57]Found Content-Length = 652 [06:40:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183858", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:40:57]execute_script... [06:40:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183858", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:40:57]POST & json_proto [06:40:57]process_json_proto [06:40:57]json parsed OK: [06:40:57]protocol is kg_v1.0 [06:40:57]action value=close_receipt [06:40:57]process_action close_receipt [06:40:57]cmd_close_receipt [06:40:57]MH_GetDate [06:40:57]Write to MH i2c: F0 00 00 0D 07 03 [06:40:57]Write i2c OK [06:40:57]MH_I2C_Read... [06:40:57]Read from MH i2c: F0 [06:40:57]MH_I2C_Read... [06:40:57]Read from MH i2c: F0 09 00 [06:40:57]MH_I2C_Read... [06:40:57]Read from MH i2c: F0 09 00 0D 07 00 7C 39 A7 66 AA D0 A5 66 53 [06:40:57]GetLastDocTimeStamp 1722235008 [06:40:57]current date 1722235260 [06:40:57]FM_GetShiftState [06:40:57]SAM_PROTO_GetShiftState [06:40:57]wFMCommunicate request_size=4 [06:40:57]MH_SAM_APDU [06:40:57]CAPDU: 80 13 01 00 [06:40:57]Write to MH i2c: E2 08 00 0E 07 80 13 01 00 00 00 00 00 92 [06:40:57]Write i2c OK [06:40:57]MH_I2C_Read... [06:40:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:40:57]Read from MH i2c: E2 [06:40:57]MH_I2C_Read... [06:40:57]Read from MH i2c: E2 0E 00 [06:40:57]MH_I2C_Read... [06:40:57]Read from MH i2c: E2 0E 00 0E 07 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 2E [06:40:57]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [06:40:57]wFMCommunicate OK [06:40:57]SAM_PROTO_GetShiftState done [06:40:57]FM_GetShiftState done [06:40:57]opened in 1722211496 [06:40:57]opened+sec_in_day 1722297896 [06:40:57]quantity*price = 12500 [06:40:57]sum+1 = 12501 [06:40:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 19 29.07.2024 06:41 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41830 ФПД: 133189581896362 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T064100&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41830&fm=133189581896362&tin=02508201610067®Number=0000000000092626&sum=12500 0 [06:40:59]StoreToDocumentArchive [06:40:59]shift 427 fd 41830 [06:40:59]save to /storage/0427/doc_00041830 [06:40:59]save last doc name /storage/0427/doc_00041830 to /storage/kkm_last_doc_name [06:40:59]save OK [06:40:59]Clear old archive folders... [06:40:59]ProcessDocumentItem done err = 0, tmpTLVsize=284 [06:40:59]tlvbuf is 013D8520 [06:40:59]SAM_PROTO_ClearQueue [06:40:59]wFMCommunicate request_size=4 [06:40:59]MH_SAM_APDU [06:40:59]CAPDU: 80 09 00 00 [06:40:59]Write to MH i2c: E2 08 00 1B 07 80 09 00 00 00 00 00 00 94 [06:40:59]Write i2c OK [06:40:59]MH_I2C_Read... [06:40:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:40:59]Read from MH i2c: E2 [06:40:59]MH_I2C_Read... [06:40:59]Read from MH i2c: E2 03 00 [06:40:59]MH_I2C_Read... [06:40:59]Read from MH i2c: E2 03 00 1B 07 00 90 00 96 [06:40:59]RAPDU: 90 00 [06:40:59]wFMCommunicate OK [06:40:59]SAM_PROTO_ClearQueue done [06:40:59]KKMCreateOFDPacket [06:40:59]OFDProtocolAddRootSTLVToBuf [06:40:59]FM_MakeSignedData [06:40:59]FM_MakeSignedData [06:40:59]SAM_PROTO_SignData [06:40:59]wFMCommunicate request_size=4 [06:40:59]MH_SAM_APDU [06:40:59]CAPDU: 80 0D 01 02 [06:40:59]Write to MH i2c: E2 08 00 1C 07 80 0D 01 02 00 00 00 00 9C [06:40:59]Write i2c OK [06:40:59]MH_I2C_Read... [06:40:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:40:59]Read from MH i2c: E2 [06:40:59]MH_I2C_Read... [06:40:59]Read from MH i2c: E2 03 00 [06:40:59]MH_I2C_Read... [06:40:59]Read from MH i2c: E2 03 00 1C 07 00 90 00 97 [06:40:59]RAPDU: 90 00 [06:40:59]wFMCommunicate OK [06:40:59]wFMCommunicate request_size=255 [06:40:59]MH_SAM_APDU [06:40:59]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 7C 39 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 [06:40:59]Write to MH i2c: E2 02 01 1D 07 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 7C 39 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 00 00 BF [06:40:59]Write i2c OK [06:40:59]MH_I2C_Read... [06:40:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:40:59]Read from MH i2c: E2 [06:40:59]MH_I2C_Read... [06:40:59]Read from MH i2c: E2 03 00 [06:40:59]MH_I2C_Read... [06:40:59]Read from MH i2c: E2 03 00 1D 07 00 90 00 98 [06:40:59]RAPDU: 90 00 [06:40:59]wFMCommunicate OK [06:40:59]wFMCommunicate request_size=43 [06:40:59]MH_SAM_APDU [06:40:59]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 66 A3 00 00 35 04 06 00 79 22 9D B7 7A AA [06:40:59]Write to MH i2c: E2 2E 00 1E 07 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 66 A3 00 00 35 04 06 00 79 22 9D B7 7A AA 00 00 AC [06:40:59]Write i2c OK [06:40:59]MH_I2C_Read... [06:40:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:40:59]Read from MH i2c: E2 [06:40:59]MH_I2C_Read... [06:40:59]Read from MH i2c: E2 03 00 [06:40:59]MH_I2C_Read... [06:40:59]Read from MH i2c: E2 03 00 1E 07 00 90 00 99 [06:40:59]RAPDU: 90 00 [06:40:59]wFMCommunicate OK [06:40:59]wFMCommunicate request_size=4 [06:40:59]MH_SAM_APDU [06:40:59]CAPDU: 80 0D 03 02 [06:40:59]Write to MH i2c: E2 08 00 1F 07 80 0D 03 02 00 00 00 00 A1 [06:40:59]Write i2c OK [06:40:59]MH_I2C_Read... [06:40:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:40:59]Read from MH i2c: E2 [06:40:59]MH_I2C_Read... [06:40:59]Read from MH i2c: E2 0B 00 [06:40:59]MH_I2C_Read... [06:40:59]Read from MH i2c: E2 0B 00 1F 07 00 26 7B 3D 07 D8 0C 3E 87 90 00 30 [06:40:59]RAPDU: 26 7B 3D 07 D8 0C 3E 87 90 00 [06:40:59]wFMCommunicate OK [06:40:59]SAM_PROTO_SignData done [06:40:59]FM_MakeSignedData done [06:40:59]CreateOFDProtocolMessage [06:40:59]wFMCommunicate request_size=4 [06:40:59]MH_SAM_APDU [06:40:59]CAPDU: 80 11 00 00 [06:40:59]Write to MH i2c: E2 08 00 20 07 80 11 00 00 00 00 00 00 A1 [06:40:59]Write i2c OK [06:40:59]MH_I2C_Read... [06:40:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:40:59]Read from MH i2c: E2 [06:40:59]MH_I2C_Read... [06:40:59]Read from MH i2c: E2 17 00 [06:40:59]MH_I2C_Read... [06:40:59]Read from MH i2c: E2 17 00 20 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 FD [06:40:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [06:40:59]wFMCommunicate OK [06:40:59]CreateOFDProtocolMessage done [06:40:59]OFDSenderStorePacket 41830 [06:40:59]StoreOFDPacket docnum=41830 [06:40:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 30 01 00 00 D4 8E 28 01 DA AF 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 7C 39 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 66 A3 00 00 35 04 06 00 79 22 9D B7 7A AA 26 7B 3D 07 D8 0C 3E 87 [06:40:59]CheckFolder [06:40:59]dirname=/storage/ofd_packets [06:40:59]CheckFolder done [06:40:59]ProducePacketName [06:40:59]name=ofd_packets/00041830 [06:40:59]NVStorageSaveData ofd_packets/00041830 [06:40:59]File name is /storage/ofd_packets/00041830 [06:40:59]Write 334 bytes [06:40:59]NVStorageSaveData done [06:40:59]OFDSenderStorePacket done [06:40:59]KKMCreateOFDPacket done [06:40:59]NVStorageSaveData kkm_last_timestamp [06:40:59]File name is /storage/kkm_last_timestamp [06:40:59]Write 4 bytes [06:40:59]NVStorageSaveData done [06:40:59]ExternCall_PrintAddStr [06:40:59]wPrintStart [06:40:59]Write to MH i2c: 01 00 00 21 07 28 [06:40:59]Write i2c OK [06:40:59]MH_I2C_Read... [06:40:59]Read from MH i2c: 01 [06:40:59]MH_I2C_Read... [06:40:59]Read from MH i2c: 01 07 00 [06:40:59]MH_I2C_Read... [06:40:59]Read from MH i2c: 01 07 00 21 07 00 00 00 00 00 FF 0F 3D [06:40:59]RasterBufferAndPrint [06:40:59]line Счет N : (3)183858 [06:40:59]line ИНН: 02508201610067 [06:40:59]line Контрольно-Кассовый Чек [06:40:59]line ПРОДАЖА [06:40:59]line Товар: 2000036190018 [06:40:59]line Кофе Американо XL(GABB TRADE) [06:40:59]line 1.000 * 125.00 [06:40:59]line = 125.00 [06:40:59]line НДС 12% НСП 1% [06:40:59]line > о реализуемом товаре [06:40:59]line ИТОГО: 125.00 [06:40:59]line НСП 1% : 1.11 [06:40:59]line НДС 12% : 13.27 [06:40:59]line Наличными: 125.00 [06:40:59]line Безнал.: 0.00 [06:40:59]line Место: АЗС № 97 "Партнер Нефть" [06:40:59]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [06:40:59]line СНО: Общий режим [06:40:59]line Чек 19 29.07.2024 06:41 [06:40:59]line Смена: 427 ФФД: 1.0 [06:40:59]line ЗНМ: 0300000053 [06:40:59]line РНМ: 0000000000092626 [06:40:59]line Версия ККМ: 001 [06:40:59]line ФМ: 0000000000874958 [06:40:59]line ФД: 41830 [06:40:59]line ФПД: 133189581896362 [06:40:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T064100&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41830&fm=133189581896362&tin=02508201610067®Number=0000000000092626&sum=12500 [06:40:59]OFD Sender: Processing packet 41830 [packets to send 57, broken 56] [06:40:59]ProducePacketName [06:40:59]name=ofd_packets/00041830 [06:40:59]OFD Sender: To server: pG, [06:40:59]CommunicateWithHost lk.salyk.kg:30040 [06:40:59]ConnectInit lk.salyk.kg [06:40:59]line 0 [06:40:59]written 0, free lines is 4095 [06:41:00]Write to MH i2c: 01 00 00 4A 07 51 [06:41:00]Write i2c OK [06:41:00]MH_I2C_Read... [06:41:00]Read from MH i2c: 01 [06:41:00]MH_I2C_Read... [06:41:00]Read from MH i2c: 01 07 00 [06:41:00]MH_I2C_Read... [06:41:00]Read from MH i2c: 01 07 00 4A 07 00 00 00 00 00 07 0D 6C [06:41:00]RasterBufferAndPrint [06:41:00]line [06:41:00]line [06:41:00]line [06:41:00]line [06:41:00]line [06:41:00]written 0, free lines is 3341 [06:41:00]MH_Cut [06:41:00]Write to MH i2c: D1 01 00 51 07 01 2A [06:41:00]Write i2c OK [06:41:00]MH_I2C_Read... [06:41:00]Read from MH i2c: D1 [06:41:00]MH_I2C_Read... [06:41:00]Read from MH i2c: D1 01 00 [06:41:00]MH_I2C_Read... [06:41:00]Read from MH i2c: D1 01 00 51 07 00 29 [06:41:00]Write to MH i2c: 01 00 00 52 07 59 [06:41:00]Write i2c OK [06:41:00]MH_I2C_Read... [06:41:00]Connected sock=10 [06:41: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 35 38 30 01 00 00 D4 8E 28 01 DA AF 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 7C 39 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 66 A3 00 00 35 04 06 00 79 22 9D B7 7A AA 26 7B 3D 07 D8 0C 3E 87 [06:41:01]*** Cut start [06:41:01]*** Partial cut [06:41:01]*** CUTSNS_PIN = 1 [06:41:01]*** CUTSNS_PIN = 0 [06:41: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 35 38 4F 00 00 00 C1 16 47 00 A2 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 35 38 10 04 04 00 66 A3 00 00 F4 03 04 00 8E E5 A6 66 B6 04 01 00 00 C3 B4 92 E2 96 03 ED 39 [06:41:01]CommunicateWithHost err = 0 [06:41:01]CheckOFDResponse [06:41:01]1017 (14) - 77093643461234 [06:41:01]1041 (16) - 0000000000874958 [06:41:01]1040 (4) - 41830 [06:41:01]1012 (4) - 29.07.2024 00:42 [06:41:01]1206 (1) - 0 [06:41:01]OFD Sender: Remove packet 41830 [06:41:01]ProducePacketName [06:41:01]name=ofd_packets/00041830 [06:41:01]NVStorageDeleteData [06:41:01]*** Brake cut motor [06:41:01]Read from MH i2c: 01 [06:41:01]MH_I2C_Read... [06:41:01]*** Stop cut motor [06:41:01]*** Cut end [06:41:01]Read from MH i2c: 01 07 00 [06:41:01]MH_I2C_Read... [06:41:01]Read from MH i2c: 01 07 00 52 07 00 00 00 00 00 FF 0F 6E [06:41:01]process_action close_receipt done [06:41:01]requested_data is exist [06:41:01]produce_requested_data [06:41:01]requested_item fm.sn is exist - process it [06:41:01]wFMCommunicate request_size=4 [06:41:01]MH_SAM_APDU [06:41:01]CAPDU: 80 11 00 00 [06:41:01]Write to MH i2c: E2 08 00 53 07 80 11 00 00 00 00 00 00 D4 [06:41:01]Write i2c OK [06:41:01]MH_I2C_Read... [06:41:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:41:01]Read from MH i2c: E2 [06:41:01]MH_I2C_Read... [06:41:01]Read from MH i2c: E2 17 00 [06:41:01]MH_I2C_Read... [06:41:01]Read from MH i2c: E2 17 00 53 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 30 [06:41:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [06:41:01]wFMCommunicate OK [06:41:01]requested_item fd.num is exist - process it [06:41:01]SAM_PROTO_GetFieldsCounters [06:41:01]wFMCommunicate request_size=4 [06:41:01]MH_SAM_APDU [06:41:01]CAPDU: 80 13 00 00 [06:41:01]Write to MH i2c: E2 08 00 54 07 80 13 00 00 00 00 00 00 D7 [06:41:01]Write i2c OK [06:41:01]MH_I2C_Read... [06:41:01]OFD Sender: No OFD packet to send [06:41:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:41:02]Read from MH i2c: E2 [06:41:02]MH_I2C_Read... [06:41:02]Read from MH i2c: E2 62 00 [06:41:02]MH_I2C_Read... [06:41:02]Read from MH i2c: E2 62 00 54 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 66 A3 00 00 0E 04 04 00 AB 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 EF [06:41: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 66 A3 00 00 0E 04 04 00 AB 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:41:02]wFMCommunicate OK [06:41:02]SAM_PROTO_GetFieldsCounters done [06:41:02]requested_item shift.num is exist - process it [06:41:02]requested_item shift.opened is exist - process it [06:41:02]req_shift_opened [06:41:02]FM_GetShiftState [06:41:02]SAM_PROTO_GetShiftState [06:41:02]wFMCommunicate request_size=4 [06:41:02]MH_SAM_APDU [06:41:02]CAPDU: 80 13 01 00 [06:41:02]Write to MH i2c: E2 08 00 55 07 80 13 01 00 00 00 00 00 D9 [06:41:02]Write i2c OK [06:41:02]MH_I2C_Read... [06:41:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:41:02]Read from MH i2c: E2 [06:41:02]MH_I2C_Read... [06:41:02]Read from MH i2c: E2 0E 00 [06:41:02]MH_I2C_Read... [06:41:02]Read from MH i2c: E2 0E 00 55 07 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 75 [06:41:02]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [06:41:02]wFMCommunicate OK [06:41:02]SAM_PROTO_GetShiftState done [06:41:02]FM_GetShiftState done [06:41:02]req_shift_opened done [06:41:02]requested_item shift.open_date is exist - process it [06:41:02]req_shift_open_date [06:41:02]req_shift_open_date done [06:41:02]produce_requested_data done [06:41:02]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41830,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [06:41:02]process_action_free close_receipt [06:41:02]json_value_free [06:41:02]json_value_free done [06:41:02]process_json_proto returns [06:41:02]Send response to host [06:41:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41830,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [06:41:02]free response buf [06:41:02]execute_script done [06:41:02]execute_script returns [06:41:02]free content buf [06:41:02]Sock 8.Close socket [06:41:02]Sock 8.Thread stoped [06:41:06]OFD Sender: No OFD packet to send [06:41:11]OFD Sender: No OFD packet to send [06:41:16]OFD Sender: No OFD packet to send [06:41:21]OFD Sender: No OFD packet to send [06:41:26]OFD Sender: No OFD packet to send [06:41:31]OFD Sender: No OFD packet to send [06:41:36]OFD Sender: No OFD packet to send [06:41:41]OFD Sender: No OFD packet to send [06:41:46]OFD Sender: No OFD packet to send [06:41:51]OFD Sender: No OFD packet to send [06:41:56]OFD Sender: No OFD packet to send [06:42:01]OFD Sender: No OFD packet to send [06:42:06]OFD Sender: No OFD packet to send [06:42:11]OFD Sender: No OFD packet to send [06:42:16]OFD Sender: No OFD packet to send [06:42:21]OFD Sender: No OFD packet to send [06:42:26]OFD Sender: No OFD packet to send [06:42:31]OFD Sender: No OFD packet to send [06:42:36]OFD Sender: No OFD packet to send [06:42:41]OFD Sender: No OFD packet to send [06:42:46]OFD Sender: No OFD packet to send [06:42:51]OFD Sender: No OFD packet to send [06:42:57]OFD Sender: No OFD packet to send [06:43:02]OFD Sender: No OFD packet to send [06:43:07]OFD Sender: No OFD packet to send [06:43:12]OFD Sender: No OFD packet to send [06:43:17]OFD Sender: No OFD packet to send [06:43:17]recv_with_timeout no data received [06:43:22]OFD Sender: No OFD packet to send [06:43:27]OFD Sender: No OFD packet to send [06:43:32]OFD Sender: No OFD packet to send [06:43:37]OFD Sender: No OFD packet to send [06:43:42]OFD Sender: No OFD packet to send [06:43:47]OFD Sender: No OFD packet to send [06:43:52]OFD Sender: No OFD packet to send [06:43:57]OFD Sender: No OFD packet to send [06:44:02]OFD Sender: No OFD packet to send [06:44:07]OFD Sender: No OFD packet to send [06:44:12]OFD Sender: No OFD packet to send [06:44:17]OFD Sender: No OFD packet to send [06:44:18]recv_with_timeout no data received [06:44:22]OFD Sender: No OFD packet to send [06:44:27]OFD Sender: No OFD packet to send [06:44:32]OFD Sender: No OFD packet to send [06:44:37]OFD Sender: No OFD packet to send [06:44:42]OFD Sender: No OFD packet to send [06:44:47]OFD Sender: No OFD packet to send [06:44:52]OFD Sender: No OFD packet to send [06:44:57]OFD Sender: No OFD packet to send [06:45:02]OFD Sender: No OFD packet to send [06:45:07]OFD Sender: No OFD packet to send [06:45:12]OFD Sender: No OFD packet to send [06:45:17]OFD Sender: No OFD packet to send [06:45:22]OFD Sender: No OFD packet to send [06:45:27]OFD Sender: No OFD packet to send [06:45:32]OFD Sender: No OFD packet to send [06:45:37]OFD Sender: No OFD packet to send [06:45:42]OFD Sender: No OFD packet to send [06:45:47]OFD Sender: No OFD packet to send [06:45:52]OFD Sender: No OFD packet to send [06:45:57]OFD Sender: No OFD packet to send [06:46:02]OFD Sender: No OFD packet to send [06:46:07]OFD Sender: No OFD packet to send [06:46:12]OFD Sender: No OFD packet to send [06:46:17]OFD Sender: No OFD packet to send [06:46:22]OFD Sender: No OFD packet to send [06:46:24]recv_with_timeout no data received [06:46:27]OFD Sender: No OFD packet to send [06:46:32]OFD Sender: No OFD packet to send [06:46:37]OFD Sender: No OFD packet to send [06:46:42]OFD Sender: No OFD packet to send [06:46:47]OFD Sender: No OFD packet to send [06:46:52]OFD Sender: No OFD packet to send [06:46:57]OFD Sender: No OFD packet to send [06:47:02]OFD Sender: No OFD packet to send [06:47:07]OFD Sender: No OFD packet to send [06:47:12]OFD Sender: No OFD packet to send [06:47:17]OFD Sender: No OFD packet to send [06:47:22]OFD Sender: No OFD packet to send [06:47:27]OFD Sender: No OFD packet to send [06:47:32]OFD Sender: No OFD packet to send [06:47:37]OFD Sender: No OFD packet to send [06:47:42]OFD Sender: No OFD packet to send [06:47:45]recv_with_timeout no data received [06:47:47]OFD Sender: No OFD packet to send [06:47:52]OFD Sender: No OFD packet to send [06:47:57]OFD Sender: No OFD packet to send [06:48:02]OFD Sender: No OFD packet to send [06:48:07]OFD Sender: No OFD packet to send [06:48:12]OFD Sender: No OFD packet to send [06:48:17]OFD Sender: No OFD packet to send [06:48:22]OFD Sender: No OFD packet to send [06:48:27]OFD Sender: No OFD packet to send [06:48:32]OFD Sender: No OFD packet to send [06:48:37]OFD Sender: No OFD packet to send [06:48:42]OFD Sender: No OFD packet to send [06:48:47]OFD Sender: No OFD packet to send [06:48:52]OFD Sender: No OFD packet to send [06:48:57]OFD Sender: No OFD packet to send [06:49:02]OFD Sender: No OFD packet to send [06:49:07]OFD Sender: No OFD packet to send [06:49:12]OFD Sender: No OFD packet to send [06:49:17]OFD Sender: No OFD packet to send [06:49:22]OFD Sender: No OFD packet to send [06:49:27]OFD Sender: No OFD packet to send [06:49:32]OFD Sender: No OFD packet to send [06:49:37]OFD Sender: No OFD packet to send [06:49:42]OFD Sender: No OFD packet to send [06:49:47]OFD Sender: No OFD packet to send [06:49:52]OFD Sender: No OFD packet to send [06:49:57]OFD Sender: No OFD packet to send [06:50:02]OFD Sender: No OFD packet to send [06:50:07]OFD Sender: No OFD packet to send [06:50:12]OFD Sender: No OFD packet to send [06:50:17]OFD Sender: No OFD packet to send [06:50:22]OFD Sender: No OFD packet to send [06:50:27]OFD Sender: No OFD packet to send [06:50:32]OFD Sender: No OFD packet to send [06:50:37]OFD Sender: No OFD packet to send [06:50:42]OFD Sender: No OFD packet to send [06:50:47]OFD Sender: No OFD packet to send [06:50:52]recv_with_timeout no data received [06:50:52]OFD Sender: No OFD packet to send [06:50:57]OFD Sender: No OFD packet to send [06:51:02]OFD Sender: No OFD packet to send [06:51:07]OFD Sender: No OFD packet to send [06:51:12]OFD Sender: No OFD packet to send [06:51:17]OFD Sender: No OFD packet to send [06:51:22]OFD Sender: No OFD packet to send [06:51:27]OFD Sender: No OFD packet to send [06:51:32]OFD Sender: No OFD packet to send [06:51:37]OFD Sender: No OFD packet to send [06:51:42]OFD Sender: No OFD packet to send [06:51:44]recv_with_timeout no data received [06:51:47]OFD Sender: No OFD packet to send [06:51:52]OFD Sender: No OFD packet to send [06:51:57]OFD Sender: No OFD packet to send [06:52:02]OFD Sender: No OFD packet to send [06:52:07]OFD Sender: No OFD packet to send [06:52:12]OFD Sender: No OFD packet to send [06:52:17]OFD Sender: No OFD packet to send [06:52:22]OFD Sender: No OFD packet to send [06:52:27]OFD Sender: No OFD packet to send [06:52:32]OFD Sender: No OFD packet to send [06:52:37]OFD Sender: No OFD packet to send [06:52:42]OFD Sender: No OFD packet to send [06:52:47]OFD Sender: No OFD packet to send [06:52:52]OFD Sender: No OFD packet to send [06:52:57]OFD Sender: No OFD packet to send [06:52:59]recv_with_timeout no data received [06:53:02]OFD Sender: No OFD packet to send [06:53:07]OFD Sender: No OFD packet to send [06:53:12]OFD Sender: No OFD packet to send [06:53:17]OFD Sender: No OFD packet to send [06:53:22]OFD Sender: No OFD packet to send [06:53:27]OFD Sender: No OFD packet to send [06:53:30]recv_with_timeout no data received [06:53:32]OFD Sender: No OFD packet to send [06:56:12]OFD Sender: No OFD packet to send [06:56:17]OFD Sender: No OFD packet to send [06:56:22]OFD Sender: No OFD packet to send [06:56:27]OFD Sender: No OFD packet to send [06:56:32]OFD Sender: No OFD packet to send [06:56:37]OFD Sender: No OFD packet to send [06:56:42]OFD Sender: No OFD packet to send [06:56:47]OFD Sender: No OFD packet to send [06:56:52]OFD Sender: No OFD packet to send [06:56:57]OFD Sender: No OFD packet to send [06:57:02]OFD Sender: No OFD packet to send [06:57:07]OFD Sender: No OFD packet to send [06:57:12]OFD Sender: No OFD packet to send [06:57:14]accept exits with 9 [06:57:14]New connection [06:57:14]New thread 3067030884 created [06:57:14]Thread 3066887524 joined [06:57:14]Waiting for new connection... [06:57:14] Sock 9.Parse request [06:57:14]Sock 9.Check first char [06:57:14]Sock 9.First char is OK [06:57:14]request: POST /json_proto HTTP/1.0 [06:57:14]Method: POST [06:57:14]URL: /json_proto [06:57:14]Method is POST - this is cgi request [06:57:14]url: /json_proto [06:57:14]query_string will be loaded in cgi processing [06:57:14]execute_cgi json_proto POST (null) [06:57:14]execute_cgi path=json_proto method=POST [06:57:14]POST find Content-Length [06:57:14]Host: 172.17.43.132:8080 [06:57:14]Content-Length: 977 [06:57:14]Content-Type: application/json [06:57:14] [06:57:14]POST finish read [06:57:14]Found Content-Length = 977 [06:57:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183859", "tax_sys" : 0, "items" : [ { "code": "4607084351385", "name": "\u0411\u0438\u0441\u043A\u0432\u0438\u0442 \u0427\u043E\u043A\u043E \u043F\u0430\u0439 12\u0448\u0442", "price" : 340.00, "quantity" : 1.000, "sum" : 340.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002325113", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A PEPSI \u0433\u0430\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 \u0441\u0442 0,25\u043B", "price" : 90.00, "quantity" : 2.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 520.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:57:14]execute_script... [06:57:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183859", "tax_sys" : 0, "items" : [ { "code": "4607084351385", "name": "\u0411\u0438\u0441\u043A\u0432\u0438\u0442 \u0427\u043E\u043A\u043E \u043F\u0430\u0439 12\u0448\u0442", "price" : 340.00, "quantity" : 1.000, "sum" : 340.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002325113", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A PEPSI \u0433\u0430\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 \u0441\u0442 0,25\u043B", "price" : 90.00, "quantity" : 2.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 520.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:57:14]POST & json_proto [06:57:14]process_json_proto [06:57:14]json parsed OK: [06:57:14]protocol is kg_v1.0 [06:57:14]action value=close_receipt [06:57:14]process_action close_receipt [06:57:14]cmd_close_receipt [06:57:14]MH_GetDate [06:57:14]Write to MH i2c: F0 00 00 56 07 4C [06:57:14]Write i2c OK [06:57:14]MH_I2C_Read... [06:57:14]Read from MH i2c: F0 [06:57:14]MH_I2C_Read... [06:57:14]Read from MH i2c: F0 09 00 [06:57:14]MH_I2C_Read... [06:57:14]Read from MH i2c: F0 09 00 56 07 00 4C 3D A7 66 AA D0 A5 66 70 [06:57:14]GetLastDocTimeStamp 1722235260 [06:57:14]current date 1722236236 [06:57:14]FM_GetShiftState [06:57:14]SAM_PROTO_GetShiftState [06:57:14]wFMCommunicate request_size=4 [06:57:14]MH_SAM_APDU [06:57:14]CAPDU: 80 13 01 00 [06:57:14]Write to MH i2c: E2 08 00 57 07 80 13 01 00 00 00 00 00 DB [06:57:14]Write i2c OK [06:57:14]MH_I2C_Read... [06:57:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:57:14]Read from MH i2c: E2 [06:57:14]MH_I2C_Read... [06:57:14]Read from MH i2c: E2 0E 00 [06:57:14]MH_I2C_Read... [06:57:14]Read from MH i2c: E2 0E 00 57 07 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 77 [06:57:14]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [06:57:14]wFMCommunicate OK [06:57:14]SAM_PROTO_GetShiftState done [06:57:14]FM_GetShiftState done [06:57:14]opened in 1722211496 [06:57:14]opened+sec_in_day 1722297896 [06:57:14]quantity*price = 34000 [06:57:14]sum+1 = 34001 [06:57:14]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870002325113 Напиток PEPSI газированный ст 0,25л 2.000 * 90.00 = 180.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 520.00 НСП 1% : 4.60 НДС 12% : 55.22 Наличными: 520.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 20 29.07.2024 06:57 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41831 ФПД: 53632851298396 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T065716&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41831&fm=53632851298396&tin=02508201610067®Number=0000000000092626&sum=52000 0 [06:57:15]StoreToDocumentArchive [06:57:15]shift 427 fd 41831 [06:57:15]save to /storage/0427/doc_00041831 [06:57:15]save last doc name /storage/0427/doc_00041831 to /storage/kkm_last_doc_name [06:57:15]save OK [06:57:15]Clear old archive folders... [06:57:15]ProcessDocumentItem done err = 0, tmpTLVsize=408 [06:57:15]tlvbuf is 013EDDE0 [06:57:15]SAM_PROTO_ClearQueue [06:57:15]wFMCommunicate request_size=4 [06:57:15]MH_SAM_APDU [06:57:15]CAPDU: 80 09 00 00 [06:57:15]Write to MH i2c: E2 08 00 64 07 80 09 00 00 00 00 00 00 DD [06:57:15]Write i2c OK [06:57:15]MH_I2C_Read... [06:57:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:57:15]Read from MH i2c: E2 [06:57:15]MH_I2C_Read... [06:57:15]Read from MH i2c: E2 03 00 [06:57:15]MH_I2C_Read... [06:57:15]Read from MH i2c: E2 03 00 64 07 00 90 00 DF [06:57:15]RAPDU: 90 00 [06:57:15]wFMCommunicate OK [06:57:15]SAM_PROTO_ClearQueue done [06:57:15]KKMCreateOFDPacket [06:57:15]OFDProtocolAddRootSTLVToBuf [06:57:15]FM_MakeSignedData [06:57:15]FM_MakeSignedData [06:57:15]SAM_PROTO_SignData [06:57:15]wFMCommunicate request_size=4 [06:57:15]MH_SAM_APDU [06:57:15]CAPDU: 80 0D 01 02 [06:57:15]Write to MH i2c: E2 08 00 65 07 80 0D 01 02 00 00 00 00 E5 [06:57:15]Write i2c OK [06:57:15]MH_I2C_Read... [06:57:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:57:15]Read from MH i2c: E2 [06:57:15]MH_I2C_Read... [06:57:15]Read from MH i2c: E2 03 00 [06:57:15]MH_I2C_Read... [06:57:15]Read from MH i2c: E2 03 00 65 07 00 90 00 E0 [06:57:15]RAPDU: 90 00 [06:57:15]wFMCommunicate OK [06:57:15]wFMCommunicate request_size=255 [06:57:15]MH_SAM_APDU [06:57:15]CAPDU: 80 0D 02 02 FA 03 00 98 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 37 30 38 34 33 35 31 33 38 35 06 04 25 00 D0 91 D0 B8 D1 81 D0 BA D0 B2 D0 B8 D1 82 20 D0 A7 D0 BE D0 BA D0 BE 20 D0 BF D0 B0 D0 B9 20 31 32 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 84 00 00 00 00 13 04 06 00 D0 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 31 31 33 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 45 50 53 49 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D1 81 D1 82 20 30 2C 32 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 [06:57:15]Write to MH i2c: E2 02 01 66 07 80 0D 02 02 FA 00 03 00 98 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 37 30 38 34 33 35 31 33 38 35 06 04 25 00 D0 91 D0 B8 D1 81 D0 BA D0 B2 D0 B8 D1 82 20 D0 A7 D0 BE D0 BA D0 BE 20 D0 BF D0 B0 D0 B9 20 31 32 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 84 00 00 00 00 13 04 06 00 D0 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 31 31 33 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 45 50 53 49 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D1 81 D1 82 20 30 2C 32 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 DB [06:57:15]Write i2c OK [06:57:15]MH_I2C_Read... [06:57:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:57:15]Read from MH i2c: E2 [06:57:15]MH_I2C_Read... [06:57:15]Read from MH i2c: E2 03 00 [06:57:15]MH_I2C_Read... [06:57:15]Read from MH i2c: E2 03 00 66 07 00 90 00 E1 [06:57:15]RAPDU: 90 00 [06:57:15]wFMCommunicate OK [06:57:15]wFMCommunicate request_size=167 [06:57:15]MH_SAM_APDU [06:57:15]CAPDU: 80 0D 02 02 A2 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 4C 3D A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 67 A3 00 00 35 04 06 00 30 C7 5F 0C C8 5C [06:57:15]Write to MH i2c: E2 AA 00 67 07 80 0D 02 02 A2 00 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 4C 3D A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 67 A3 00 00 35 04 06 00 30 C7 5F 0C C8 5C 00 00 A2 [06:57:15]Write i2c OK [06:57:15]MH_I2C_Read... [06:57:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:57:15]Read from MH i2c: E2 [06:57:15]MH_I2C_Read... [06:57:15]Read from MH i2c: E2 03 00 [06:57:15]MH_I2C_Read... [06:57:15]Read from MH i2c: E2 03 00 67 07 00 90 00 E2 [06:57:15]RAPDU: 90 00 [06:57:15]wFMCommunicate OK [06:57:15]wFMCommunicate request_size=4 [06:57:15]MH_SAM_APDU [06:57:15]CAPDU: 80 0D 03 02 [06:57:15]Write to MH i2c: E2 08 00 68 07 80 0D 03 02 00 00 00 00 EA [06:57:15]Write i2c OK [06:57:15]MH_I2C_Read... [06:57:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:57:15]Read from MH i2c: E2 [06:57:15]MH_I2C_Read... [06:57:15]Read from MH i2c: E2 0B 00 [06:57:15]MH_I2C_Read... [06:57:15]Read from MH i2c: E2 0B 00 68 07 00 30 CE F9 9B 8A B0 6B 38 90 00 5A [06:57:15]RAPDU: 30 CE F9 9B 8A B0 6B 38 90 00 [06:57:15]wFMCommunicate OK [06:57:15]SAM_PROTO_SignData done [06:57:15]FM_MakeSignedData done [06:57:15]CreateOFDProtocolMessage [06:57:15]wFMCommunicate request_size=4 [06:57:15]MH_SAM_APDU [06:57:15]CAPDU: 80 11 00 00 [06:57:15]Write to MH i2c: E2 08 00 69 07 80 11 00 00 00 00 00 00 EA [06:57:15]Write i2c OK [06:57:15]MH_I2C_Read... [06:57:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:57:15]Read from MH i2c: E2 [06:57:15]MH_I2C_Read... [06:57:15]Read from MH i2c: E2 17 00 [06:57:15]MH_I2C_Read... [06:57:15]Read from MH i2c: E2 17 00 69 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 46 [06:57:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [06:57:15]wFMCommunicate OK [06:57:15]CreateOFDProtocolMessage done [06:57:15]OFDSenderStorePacket 41831 [06:57:15]StoreOFDPacket docnum=41831 [06:57:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 AC 01 00 00 89 86 A4 01 F0 81 5A 03 01 00 03 00 98 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 37 30 38 34 33 35 31 33 38 35 06 04 25 00 D0 91 D0 B8 D1 81 D0 BA D0 B2 D0 B8 D1 82 20 D0 A7 D0 BE D0 BA D0 BE 20 D0 BF D0 B0 D0 B9 20 31 32 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 84 00 00 00 00 13 04 06 00 D0 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 31 31 33 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 45 50 53 49 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D1 81 D1 82 20 30 2C 32 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 4C 3D A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 67 A3 00 00 35 04 06 00 30 C7 5F 0C C8 5C 30 CE F9 9B 8A B0 6B 38 [06:57:15]CheckFolder [06:57:15]dirname=/storage/ofd_packets [06:57:15]CheckFolder done [06:57:15]ProducePacketName [06:57:15]name=ofd_packets/00041831 [06:57:15]NVStorageSaveData ofd_packets/00041831 [06:57:15]File name is /storage/ofd_packets/00041831 [06:57:15]Write 458 bytes [06:57:15]NVStorageSaveData done [06:57:15]OFDSenderStorePacket done [06:57:15]KKMCreateOFDPacket done [06:57:15]NVStorageSaveData kkm_last_timestamp [06:57:15]File name is /storage/kkm_last_timestamp [06:57:15]Write 4 bytes [06:57:15]NVStorageSaveData done [06:57:15]ExternCall_PrintAddStr [06:57:15]wPrintStart [06:57:15]Write to MH i2c: 01 00 00 6A 07 71 [06:57:15]Write i2c OK [06:57:15]MH_I2C_Read... [06:57:15]Read from MH i2c: 01 [06:57:15]MH_I2C_Read... [06:57:15]Read from MH i2c: 01 07 00 [06:57:16]MH_I2C_Read... [06:57:16]OFD Sender: Processing packet 41831 [packets to send 57, broken 56] [06:57:16]ProducePacketName [06:57:16]name=ofd_packets/00041831 [06:57:16]OFD Sender: To server: pG, [06:57:16]CommunicateWithHost lk.salyk.kg:30040 [06:57:16]ConnectInit lk.salyk.kg [06:57:16]Read from MH i2c: 01 07 00 6A 07 00 00 00 00 00 FF 0F 86 [06:57:16]RasterBufferAndPrint [06:57:16]line Счет N : (3)183859 [06:57:16]line ИНН: 02508201610067 [06:57:16]line Контрольно-Кассовый Чек [06:57:16]line ПРОДАЖА [06:57:16]line Товар: 4607084351385 [06:57:16]line Бисквит Чоко пай 12шт [06:57:16]line 1.000 * 340.00 [06:57:16]line = 340.00 [06:57:16]line НДС 12% НСП 1% [06:57:16]line > о реализуемом товаре [06:57:16]line Товар: 4870002325113 [06:57:16]line Напиток PEPSI газированный ст 0,25л [06:57:16]line 2.000 * 90.00 [06:57:16]line = 180.00 [06:57:16]line НДС 12% НСП 1% [06:57:16]line > о реализуемом товаре [06:57:16]line ИТОГО: 520.00 [06:57:16]line НСП 1% : 4.60 [06:57:16]line НДС 12% : 55.22 [06:57:16]line Наличными: 520.00 [06:57:16]line Безнал.: 0.00 [06:57:16]line Место: АЗС № 97 "Партнер Нефть" [06:57:16]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [06:57:16]line СНО: Общий режим [06:57:16]line Чек 20 29.07.2024 06:57 [06:57:16]line Смена: 427 ФФД: 1.0 [06:57:16]line ЗНМ: 0300000053 [06:57:16]line РНМ: 0000000000092626 [06:57:16]line Версия ККМ: 001 [06:57:16]line ФМ: 0000000000874958 [06:57:16]line ФД: 41831 [06:57:16]line ФПД: 53632851298396 [06:57:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T065716&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41831&fm=53632851298396&tin=02508201610067®Number=0000000000092626&sum=52000 [06:57:16]line 0 [06:57:16]written 0, free lines is 4095 [06:57:16]Write to MH i2c: 01 00 00 99 07 A0 [06:57:16]Write i2c OK [06:57:16]MH_I2C_Read... [06:57:16]Read from MH i2c: 01 [06:57:16]MH_I2C_Read... [06:57:16]Read from MH i2c: 01 07 00 [06:57:16]MH_I2C_Read... [06:57:16]Read from MH i2c: 01 07 00 99 07 00 00 00 00 00 BC 0C 6F [06:57:16]RasterBufferAndPrint [06:57:16]line [06:57:16]line [06:57:16]line [06:57:16]line [06:57:16]line [06:57:16]written 0, free lines is 3267 [06:57:16]MH_Cut [06:57:16]Write to MH i2c: D1 01 00 A0 07 01 79 [06:57:16]Write i2c OK [06:57:16]MH_I2C_Read... [06:57:16]Read from MH i2c: D1 [06:57:16]MH_I2C_Read... [06:57:16]Read from MH i2c: D1 01 00 [06:57:16]MH_I2C_Read... [06:57:16]Read from MH i2c: D1 01 00 A0 07 00 78 [06:57:16]Write to MH i2c: 01 00 00 A1 07 A8 [06:57:16]Write i2c OK [06:57:16]MH_I2C_Read... [06:57:17]*** Cut start [06:57:17]*** Partial cut [06:57:17]*** CUTSNS_PIN = 1 [06:57:17]*** CUTSNS_PIN = 0 [06:57:17]*** Brake cut motor [06:57:18]Read from MH i2c: 01 [06:57:18]MH_I2C_Read... [06:57:18]*** Stop cut motor [06:57:18]*** Cut end [06:57:18]Read from MH i2c: 01 07 00 [06:57:18]MH_I2C_Read... [06:57:18]Read from MH i2c: 01 07 00 A1 07 00 00 00 00 00 FF 0F BD [06:57:18]process_action close_receipt done [06:57:18]requested_data is exist [06:57:18]produce_requested_data [06:57:18]requested_item fm.sn is exist - process it [06:57:18]wFMCommunicate request_size=4 [06:57:18]MH_SAM_APDU [06:57:18]CAPDU: 80 11 00 00 [06:57:18]Write to MH i2c: E2 08 00 A2 07 80 11 00 00 00 00 00 00 23 [06:57:18]Write i2c OK [06:57:18]MH_I2C_Read... [06:57:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:57:18]Read from MH i2c: E2 [06:57:18]MH_I2C_Read... [06:57:18]Read from MH i2c: E2 17 00 [06:57:18]MH_I2C_Read... [06:57:18]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 35 38 90 00 7F [06:57:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [06:57:18]wFMCommunicate OK [06:57:18]requested_item fd.num is exist - process it [06:57:18]SAM_PROTO_GetFieldsCounters [06:57:18]wFMCommunicate request_size=4 [06:57:18]MH_SAM_APDU [06:57:18]CAPDU: 80 13 00 00 [06:57:18]Write to MH i2c: E2 08 00 A3 07 80 13 00 00 00 00 00 00 26 [06:57:18]Write i2c OK [06:57:18]MH_I2C_Read... [06:57:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:57:18]Read from MH i2c: E2 [06:57:18]MH_I2C_Read... [06:57:18]Read from MH i2c: E2 62 00 [06:57:18]MH_I2C_Read... [06:57:18]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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 67 A3 00 00 0E 04 04 00 AB 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 42 [06:57:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 67 A3 00 00 0E 04 04 00 AB 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 [06:57:18]wFMCommunicate OK [06:57:18]SAM_PROTO_GetFieldsCounters done [06:57:18]requested_item shift.num is exist - process it [06:57:18]requested_item shift.opened is exist - process it [06:57:18]req_shift_opened [06:57:18]FM_GetShiftState [06:57:18]SAM_PROTO_GetShiftState [06:57:18]wFMCommunicate request_size=4 [06:57:18]MH_SAM_APDU [06:57:18]CAPDU: 80 13 01 00 [06:57:18]Write to MH i2c: E2 08 00 A4 07 80 13 01 00 00 00 00 00 28 [06:57:18]Write i2c OK [06:57:18]MH_I2C_Read... [06:57:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:57:18]Read from MH i2c: E2 [06:57:18]MH_I2C_Read... [06:57:18]Read from MH i2c: E2 0E 00 [06:57:18]MH_I2C_Read... [06:57:18]Read from MH i2c: E2 0E 00 A4 07 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 C4 [06:57:18]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [06:57:18]wFMCommunicate OK [06:57:18]SAM_PROTO_GetShiftState done [06:57:18]FM_GetShiftState done [06:57:18]req_shift_opened done [06:57:18]requested_item shift.open_date is exist - process it [06:57:18]req_shift_open_date [06:57:18]req_shift_open_date done [06:57:18]produce_requested_data done [06:57:18]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41831,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [06:57:18]process_action_free close_receipt [06:57:18]json_value_free [06:57:18]json_value_free done [06:57:18]process_json_proto returns [06:57:18]Send response to host [06:57:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41831,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [06:57:18]free response buf [06:57:18]execute_script done [06:57:18]execute_script returns [06:57:18]free content buf [06:57:18]Sock 9.Close socket [06:57:18]Sock 9.Thread stoped [06:57:21]ConnectInit Can't take IP for lk.salyk.kg [06:57:21]CommunicateWithHost connect error [06:57:21]CommunicateWithHost err = -1 [06:57:21]OFD Sender: Server communicate error [06:57:26]OFD Sender: Processing packet 41831 [packets to send 57, broken 56] [06:57:26]ProducePacketName [06:57:26]name=ofd_packets/00041831 [06:57:26]OFD Sender: To server: pG, [06:57:26]CommunicateWithHost lk.salyk.kg:30040 [06:57:26]ConnectInit lk.salyk.kg [06:57:31]ConnectInit Can't take IP for lk.salyk.kg [06:57:31]CommunicateWithHost connect error [06:57:31]CommunicateWithHost err = -1 [06:57:31]OFD Sender: Server communicate error [06:57:36]OFD Sender: Processing packet 41831 [packets to send 57, broken 56] [06:57:36]ProducePacketName [06:57:36]name=ofd_packets/00041831 [06:57:36]OFD Sender: To server: pG, [06:57:36]CommunicateWithHost lk.salyk.kg:30040 [06:57:36]ConnectInit lk.salyk.kg [06:57:41]ConnectInit Can't take IP for lk.salyk.kg [06:57:41]CommunicateWithHost connect error [06:57:41]CommunicateWithHost err = -1 [06:57:41]OFD Sender: Server communicate error [06:57:46]OFD Sender: Processing packet 41831 [packets to send 57, broken 56] [06:57:46]ProducePacketName [06:57:46]name=ofd_packets/00041831 [06:57:46]OFD Sender: To server: pG, [06:57:46]CommunicateWithHost lk.salyk.kg:30040 [06:57:46]ConnectInit lk.salyk.kg [06:57:51]ConnectInit Can't take IP for lk.salyk.kg [06:57:51]CommunicateWithHost connect error [06:57:51]CommunicateWithHost err = -1 [06:57:51]OFD Sender: Server communicate error [06:57:56]OFD Sender: Processing packet 41831 [packets to send 57, broken 56] [06:57:56]ProducePacketName [06:57:56]name=ofd_packets/00041831 [06:57:56]OFD Sender: To server: pG, [06:57:56]CommunicateWithHost lk.salyk.kg:30040 [06:57:56]ConnectInit lk.salyk.kg [06:58:01]ConnectInit Can't take IP for lk.salyk.kg [06:58:01]CommunicateWithHost connect error [06:58:01]CommunicateWithHost err = -1 [06:58:01]OFD Sender: Server communicate error [06:58:06]OFD Sender: Processing packet 41831 [packets to send 57, broken 56] [06:58:06]ProducePacketName [06:58:06]name=ofd_packets/00041831 [06:58:06]OFD Sender: To server: pG, [06:58:06]CommunicateWithHost lk.salyk.kg:30040 [06:58:06]ConnectInit lk.salyk.kg [06:58:11]ConnectInit Can't take IP for lk.salyk.kg [06:58:11]CommunicateWithHost connect error [06:58:11]CommunicateWithHost err = -1 [06:58:11]OFD Sender: Server communicate error [06:58:16]OFD Sender: Processing packet 41831 [packets to send 57, broken 56] [06:58:16]ProducePacketName [06:58:16]name=ofd_packets/00041831 [06:58:16]OFD Sender: To server: pG, [06:58:16]CommunicateWithHost lk.salyk.kg:30040 [06:58:16]ConnectInit lk.salyk.kg [06:58:20]Connected sock=9 [06:58: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 35 38 AC 01 00 00 89 86 A4 01 F0 81 5A 03 01 00 03 00 98 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 37 30 38 34 33 35 31 33 38 35 06 04 25 00 D0 91 D0 B8 D1 81 D0 BA D0 B2 D0 B8 D1 82 20 D0 A7 D0 BE D0 BA D0 BE 20 D0 BF D0 B0 D0 B9 20 31 32 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 84 00 00 00 00 13 04 06 00 D0 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 31 31 33 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 45 50 53 49 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D1 81 D1 82 20 30 2C 32 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 4C 3D A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 67 A3 00 00 35 04 06 00 30 C7 5F 0C C8 5C 30 CE F9 9B 8A B0 6B 38 [06:58:24]ConnectInit Can't connect to host [06:58: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 35 38 4F 00 00 00 72 84 47 00 B7 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 35 38 10 04 04 00 67 A3 00 00 F4 03 04 00 9E E9 A6 66 B6 04 01 00 00 A2 BA 4B 79 20 2E 08 72 [06:58:24]CommunicateWithHost err = 0 [06:58:24]CheckOFDResponse [06:58:24]1017 (14) - 77093643461234 [06:58:24]1041 (16) - 0000000000874958 [06:58:24]1040 (4) - 41831 [06:58:24]1012 (4) - 29.07.2024 01:00 [06:58:24]1206 (1) - 0 [06:58:24]OFD Sender: Remove packet 41831 [06:58:24]ProducePacketName [06:58:24]name=ofd_packets/00041831 [06:58:24]NVStorageDeleteData [06:58:25]OFD Sender: No OFD packet to send [06:58:30]OFD Sender: No OFD packet to send [06:58:35]OFD Sender: No OFD packet to send [06:58:40]OFD Sender: No OFD packet to send [06:58:45]OFD Sender: No OFD packet to send [06:58:50]OFD Sender: No OFD packet to send [06:58:55]OFD Sender: No OFD packet to send [06:59:00]OFD Sender: No OFD packet to send [06:59:05]OFD Sender: No OFD packet to send [06:59:10]OFD Sender: No OFD packet to send [06:59:15]OFD Sender: No OFD packet to send [06:59:16]recv_with_timeout no data received [06:59:20]OFD Sender: No OFD packet to send [07:01:40]OFD Sender: No OFD packet to send [07:01:45]OFD Sender: No OFD packet to send [07:01:50]OFD Sender: No OFD packet to send [07:01:55]OFD Sender: No OFD packet to send [07:02:00]OFD Sender: No OFD packet to send [07:02:05]OFD Sender: No OFD packet to send [07:02:10]OFD Sender: No OFD packet to send [07:02:15]OFD Sender: No OFD packet to send [07:02:20]OFD Sender: No OFD packet to send [07:02:25]OFD Sender: No OFD packet to send [07:02:30]OFD Sender: No OFD packet to send [07:02:35]OFD Sender: No OFD packet to send [07:02:40]OFD Sender: No OFD packet to send [07:02:45]OFD Sender: No OFD packet to send [07:02:50]OFD Sender: No OFD packet to send [07:02:55]OFD Sender: No OFD packet to send [07:03:00]OFD Sender: No OFD packet to send [07:03:05]OFD Sender: No OFD packet to send [07:03:10]OFD Sender: No OFD packet to send [07:03:12]recv_with_timeout no data received [07:03:15]OFD Sender: No OFD packet to send [07:03:20]OFD Sender: No OFD packet to send [07:03:25]OFD Sender: No OFD packet to send [07:03:30]OFD Sender: No OFD packet to send [07:03:35]OFD Sender: No OFD packet to send [07:03:40]OFD Sender: No OFD packet to send [07:03:45]OFD Sender: No OFD packet to send [07:03:50]OFD Sender: No OFD packet to send [07:03:55]OFD Sender: No OFD packet to send [07:04:00]OFD Sender: No OFD packet to send [07:04:05]OFD Sender: No OFD packet to send [07:04:10]OFD Sender: No OFD packet to send [07:04:15]OFD Sender: No OFD packet to send [07:04:20]OFD Sender: No OFD packet to send [07:04:25]OFD Sender: No OFD packet to send [07:04:30]OFD Sender: No OFD packet to send [07:04:35]OFD Sender: No OFD packet to send [07:04:40]OFD Sender: No OFD packet to send [07:04:41]recv_with_timeout no data received [07:04:45]OFD Sender: No OFD packet to send [07:04:50]OFD Sender: No OFD packet to send [07:04:55]OFD Sender: No OFD packet to send [07:05:00]OFD Sender: No OFD packet to send [07:05:05]OFD Sender: No OFD packet to send [07:05:10]OFD Sender: No OFD packet to send [07:05:15]OFD Sender: No OFD packet to send [07:05:20]OFD Sender: No OFD packet to send [07:05:25]OFD Sender: No OFD packet to send [07:05:30]OFD Sender: No OFD packet to send [07:05:35]OFD Sender: No OFD packet to send [07:05:40]OFD Sender: No OFD packet to send [07:05:45]OFD Sender: No OFD packet to send [07:05:50]OFD Sender: No OFD packet to send [07:05:55]OFD Sender: No OFD packet to send [07:06:00]OFD Sender: No OFD packet to send [07:06:05]OFD Sender: No OFD packet to send [07:06:10]OFD Sender: No OFD packet to send [07:06:15]OFD Sender: No OFD packet to send [07:06:20]OFD Sender: No OFD packet to send [07:06:25]OFD Sender: No OFD packet to send [07:06:30]OFD Sender: No OFD packet to send [07:06:35]OFD Sender: No OFD packet to send [07:06:40]OFD Sender: No OFD packet to send [07:06:45]OFD Sender: No OFD packet to send [07:06:50]OFD Sender: No OFD packet to send [07:06:55]OFD Sender: No OFD packet to send [07:07:00]OFD Sender: No OFD packet to send [07:07:05]OFD Sender: No OFD packet to send [07:07:10]OFD Sender: No OFD packet to send [07:07:15]OFD Sender: No OFD packet to send [07:07:18]recv_with_timeout no data received [07:07:20]OFD Sender: No OFD packet to send [07:07:25]OFD Sender: No OFD packet to send [07:07:30]OFD Sender: No OFD packet to send [07:07:35]OFD Sender: No OFD packet to send [07:07:40]OFD Sender: No OFD packet to send [07:07:45]OFD Sender: No OFD packet to send [07:07:50]OFD Sender: No OFD packet to send [07:07:55]OFD Sender: No OFD packet to send [07:08:00]OFD Sender: No OFD packet to send [07:08:05]OFD Sender: No OFD packet to send [07:08:10]OFD Sender: No OFD packet to send [07:08:15]OFD Sender: No OFD packet to send [07:08:20]OFD Sender: No OFD packet to send [07:08:25]OFD Sender: No OFD packet to send [07:08:27]recv_with_timeout no data received [07:08:30]OFD Sender: No OFD packet to send [07:08:35]OFD Sender: No OFD packet to send [07:08:40]OFD Sender: No OFD packet to send [07:08:45]OFD Sender: No OFD packet to send [07:08:50]OFD Sender: No OFD packet to send [07:08:55]OFD Sender: No OFD packet to send [07:09:00]OFD Sender: No OFD packet to send [07:09:05]OFD Sender: No OFD packet to send [07:09:10]OFD Sender: No OFD packet to send [07:09:15]OFD Sender: No OFD packet to send [07:09:20]OFD Sender: No OFD packet to send [07:09:25]OFD Sender: No OFD packet to send [07:09:30]OFD Sender: No OFD packet to send [07:09:35]OFD Sender: No OFD packet to send [07:09:40]OFD Sender: No OFD packet to send [07:09:45]OFD Sender: No OFD packet to send [07:09:50]OFD Sender: No OFD packet to send [07:09:55]OFD Sender: No OFD packet to send [07:10:00]OFD Sender: No OFD packet to send [07:10:05]OFD Sender: No OFD packet to send [07:10:10]OFD Sender: No OFD packet to send [07:10:15]OFD Sender: No OFD packet to send [07:10:20]OFD Sender: No OFD packet to send [07:10:25]OFD Sender: No OFD packet to send [07:10:30]OFD Sender: No OFD packet to send [07:10:35]OFD Sender: No OFD packet to send [07:10:40]OFD Sender: No OFD packet to send [07:10:45]OFD Sender: No OFD packet to send [07:10:50]OFD Sender: No OFD packet to send [07:10:55]OFD Sender: No OFD packet to send [07:11:00]OFD Sender: No OFD packet to send [07:11:05]OFD Sender: No OFD packet to send [07:11:10]OFD Sender: No OFD packet to send [07:11:15]OFD Sender: No OFD packet to send [07:11:20]OFD Sender: No OFD packet to send [07:11:25]OFD Sender: No OFD packet to send [07:11:30]OFD Sender: No OFD packet to send [07:11:35]OFD Sender: No OFD packet to send [07:11:40]OFD Sender: No OFD packet to send [07:11:45]OFD Sender: No OFD packet to send [07:11:50]OFD Sender: No OFD packet to send [07:11:56]OFD Sender: No OFD packet to send [07:12:01]OFD Sender: No OFD packet to send [07:12:06]OFD Sender: No OFD packet to send [07:12:11]OFD Sender: No OFD packet to send [07:12:16]OFD Sender: No OFD packet to send [07:12:21]OFD Sender: No OFD packet to send [07:12:23]recv_with_timeout no data received [07:12:26]OFD Sender: No OFD packet to send [07:12:31]OFD Sender: No OFD packet to send [07:12:36]OFD Sender: No OFD packet to send [07:12:41]OFD Sender: No OFD packet to send [07:12:46]OFD Sender: No OFD packet to send [07:12:51]OFD Sender: No OFD packet to send [07:12:52]recv_with_timeout no data received [07:12:56]OFD Sender: No OFD packet to send [07:13:01]OFD Sender: No OFD packet to send [07:13:06]OFD Sender: No OFD packet to send [07:13:11]OFD Sender: No OFD packet to send [07:13:16]OFD Sender: No OFD packet to send [07:13:21]OFD Sender: No OFD packet to send [07:13:25]recv_with_timeout no data received [07:13:26]OFD Sender: No OFD packet to send [07:13:31]OFD Sender: No OFD packet to send [07:13:36]OFD Sender: No OFD packet to send [07:13:41]OFD Sender: No OFD packet to send [07:13:46]OFD Sender: No OFD packet to send [07:13:51]OFD Sender: No OFD packet to send [07:13:56]OFD Sender: No OFD packet to send [07:14:01]OFD Sender: No OFD packet to send [07:14:06]OFD Sender: No OFD packet to send [07:14:11]OFD Sender: No OFD packet to send [07:14:16]OFD Sender: No OFD packet to send [07:14:21]OFD Sender: No OFD packet to send [07:14:26]OFD Sender: No OFD packet to send [07:14:31]OFD Sender: No OFD packet to send [07:14:36]OFD Sender: No OFD packet to send [07:14:41]OFD Sender: No OFD packet to send [07:14:46]OFD Sender: No OFD packet to send [07:14:51]OFD Sender: No OFD packet to send [07:14:56]OFD Sender: No OFD packet to send [07:15:01]OFD Sender: No OFD packet to send [07:15:06]OFD Sender: No OFD packet to send [07:15:11]OFD Sender: No OFD packet to send [07:15:16]OFD Sender: No OFD packet to send [07:15:21]OFD Sender: No OFD packet to send [07:15:26]OFD Sender: No OFD packet to send [07:15:31]OFD Sender: No OFD packet to send [07:15:36]OFD Sender: No OFD packet to send [07:15:41]OFD Sender: No OFD packet to send [07:15:46]OFD Sender: No OFD packet to send [07:15:51]OFD Sender: No OFD packet to send [07:15:56]OFD Sender: No OFD packet to send [07:16:01]OFD Sender: No OFD packet to send [07:16:05]recv_with_timeout no data received [07:16:06]OFD Sender: No OFD packet to send [07:16:11]OFD Sender: No OFD packet to send [07:16:16]OFD Sender: No OFD packet to send [07:16:21]OFD Sender: No OFD packet to send [07:16:26]OFD Sender: No OFD packet to send [07:16:31]OFD Sender: No OFD packet to send [07:16:36]OFD Sender: No OFD packet to send [07:16:41]OFD Sender: No OFD packet to send [07:16:46]OFD Sender: No OFD packet to send [07:16:51]OFD Sender: No OFD packet to send [07:16:56]OFD Sender: No OFD packet to send [07:17:01]OFD Sender: No OFD packet to send [07:17:06]OFD Sender: No OFD packet to send [07:17:11]OFD Sender: No OFD packet to send [07:17:16]OFD Sender: No OFD packet to send [07:17:21]OFD Sender: No OFD packet to send [07:17:26]OFD Sender: No OFD packet to send [07:17:31]OFD Sender: No OFD packet to send [07:17:36]OFD Sender: No OFD packet to send [07:17:41]OFD Sender: No OFD packet to send [07:17:46]OFD Sender: No OFD packet to send [07:17:51]OFD Sender: No OFD packet to send [07:17:56]OFD Sender: No OFD packet to send [07:18:01]OFD Sender: No OFD packet to send [07:18:06]OFD Sender: No OFD packet to send [07:18:11]OFD Sender: No OFD packet to send [07:18:16]OFD Sender: No OFD packet to send [07:18:21]OFD Sender: No OFD packet to send [07:18:26]OFD Sender: No OFD packet to send [07:18:31]OFD Sender: No OFD packet to send [07:18:36]OFD Sender: No OFD packet to send [07:18:41]OFD Sender: No OFD packet to send [07:18:46]OFD Sender: No OFD packet to send [07:18:51]OFD Sender: No OFD packet to send [07:18:56]OFD Sender: No OFD packet to send [07:19:01]OFD Sender: No OFD packet to send [07:19:06]OFD Sender: No OFD packet to send [07:19:11]OFD Sender: No OFD packet to send [07:19:16]OFD Sender: No OFD packet to send [07:19:21]OFD Sender: No OFD packet to send [07:19:26]OFD Sender: No OFD packet to send [07:19:31]OFD Sender: No OFD packet to send [07:19:36]OFD Sender: No OFD packet to send [07:19:41]OFD Sender: No OFD packet to send [07:19:46]OFD Sender: No OFD packet to send [07:19:51]OFD Sender: No OFD packet to send [07:19:56]OFD Sender: No OFD packet to send [07:20:01]OFD Sender: No OFD packet to send [07:20:06]OFD Sender: No OFD packet to send [07:20:11]OFD Sender: No OFD packet to send [07:20:16]OFD Sender: No OFD packet to send [07:20:21]OFD Sender: No OFD packet to send [07:20:24]recv_with_timeout no data received [07:20:26]OFD Sender: No OFD packet to send [07:20:31]OFD Sender: No OFD packet to send [07:20:36]OFD Sender: No OFD packet to send [07:20:41]OFD Sender: No OFD packet to send [07:20:46]OFD Sender: No OFD packet to send [07:20:51]OFD Sender: No OFD packet to send [07:20:56]OFD Sender: No OFD packet to send [07:21:01]OFD Sender: No OFD packet to send [07:21:06]OFD Sender: No OFD packet to send [07:21:11]OFD Sender: No OFD packet to send [07:21:16]OFD Sender: No OFD packet to send [07:21:17]recv_with_timeout no data received [07:21:21]OFD Sender: No OFD packet to send [07:21:26]OFD Sender: No OFD packet to send [07:21:28]recv_with_timeout no data received [07:21:31]OFD Sender: No OFD packet to send [07:21:36]OFD Sender: No OFD packet to send [07:21:41]OFD Sender: No OFD packet to send [07:21:46]OFD Sender: No OFD packet to send [07:21:51]OFD Sender: No OFD packet to send [07:21:56]OFD Sender: No OFD packet to send [07:22:01]OFD Sender: No OFD packet to send [07:22:06]OFD Sender: No OFD packet to send [07:22:11]OFD Sender: No OFD packet to send [07:22:16]OFD Sender: No OFD packet to send [07:22:21]OFD Sender: No OFD packet to send [07:22:26]OFD Sender: No OFD packet to send [07:22:31]OFD Sender: No OFD packet to send [07:22:36]OFD Sender: No OFD packet to send [07:22:41]OFD Sender: No OFD packet to send [07:22:46]OFD Sender: No OFD packet to send [07:22:51]OFD Sender: No OFD packet to send [07:22:56]OFD Sender: No OFD packet to send [07:23:01]OFD Sender: No OFD packet to send [07:23:06]OFD Sender: No OFD packet to send [07:23:11]OFD Sender: No OFD packet to send [07:23:16]OFD Sender: No OFD packet to send [07:23:21]OFD Sender: No OFD packet to send [07:23:26]OFD Sender: No OFD packet to send [07:23:31]OFD Sender: No OFD packet to send [07:23:36]OFD Sender: No OFD packet to send [07:23:41]OFD Sender: No OFD packet to send [07:23:46]OFD Sender: No OFD packet to send [07:23:51]OFD Sender: No OFD packet to send [07:23:56]OFD Sender: No OFD packet to send [07:24:01]OFD Sender: No OFD packet to send [07:24:05]recv_with_timeout no data received [07:24:06]OFD Sender: No OFD packet to send [07:24:11]OFD Sender: No OFD packet to send [07:24:16]OFD Sender: No OFD packet to send [07:24:21]OFD Sender: No OFD packet to send [07:24:26]OFD Sender: No OFD packet to send [07:24:31]OFD Sender: No OFD packet to send [07:24:36]OFD Sender: No OFD packet to send [07:24:41]OFD Sender: No OFD packet to send [07:24:46]OFD Sender: No OFD packet to send [07:24:51]OFD Sender: No OFD packet to send [07:24:56]OFD Sender: No OFD packet to send [07:25:01]OFD Sender: No OFD packet to send [07:25:06]OFD Sender: No OFD packet to send [07:25:11]OFD Sender: No OFD packet to send [07:25:16]OFD Sender: No OFD packet to send [07:25:21]OFD Sender: No OFD packet to send [07:25:26]OFD Sender: No OFD packet to send [07:25:31]OFD Sender: No OFD packet to send [07:25:35]recv_with_timeout no data received [07:25:36]OFD Sender: No OFD packet to send [07:25:41]OFD Sender: No OFD packet to send [07:25:46]OFD Sender: No OFD packet to send [07:25:51]OFD Sender: No OFD packet to send [07:25:56]OFD Sender: No OFD packet to send [07:26:01]OFD Sender: No OFD packet to send [07:26:06]OFD Sender: No OFD packet to send [07:26:11]OFD Sender: No OFD packet to send [07:26:16]OFD Sender: No OFD packet to send [07:26:21]OFD Sender: No OFD packet to send [07:26:26]OFD Sender: No OFD packet to send [07:26:31]OFD Sender: No OFD packet to send [07:26:36]OFD Sender: No OFD packet to send [07:26:41]OFD Sender: No OFD packet to send [07:26:46]OFD Sender: No OFD packet to send [07:26:51]OFD Sender: No OFD packet to send [07:26:56]OFD Sender: No OFD packet to send [07:27:01]OFD Sender: No OFD packet to send [07:27:06]OFD Sender: No OFD packet to send [07:27:11]OFD Sender: No OFD packet to send [07:27:16]OFD Sender: No OFD packet to send [07:27:21]OFD Sender: No OFD packet to send [07:27:26]OFD Sender: No OFD packet to send [07:27:27]recv_with_timeout no data received [07:27:31]OFD Sender: No OFD packet to send [07:27:36]OFD Sender: No OFD packet to send [07:27:41]OFD Sender: No OFD packet to send [07:27:46]OFD Sender: No OFD packet to send [07:27:51]OFD Sender: No OFD packet to send [07:27:56]OFD Sender: No OFD packet to send [07:28:01]OFD Sender: No OFD packet to send [07:28:06]OFD Sender: No OFD packet to send [07:28:11]OFD Sender: No OFD packet to send [07:28:16]OFD Sender: No OFD packet to send [07:28:21]OFD Sender: No OFD packet to send [07:28:26]OFD Sender: No OFD packet to send [07:28:31]OFD Sender: No OFD packet to send [07:28:36]OFD Sender: No OFD packet to send [07:28:41]OFD Sender: No OFD packet to send [07:28:46]OFD Sender: No OFD packet to send [07:28:51]OFD Sender: No OFD packet to send [07:28:56]OFD Sender: No OFD packet to send [07:29:01]OFD Sender: No OFD packet to send [07:29:06]OFD Sender: No OFD packet to send [07:29:11]OFD Sender: No OFD packet to send [07:29:16]OFD Sender: No OFD packet to send [07:29:19]recv_with_timeout no data received [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:37]OFD Sender: No OFD packet to send [07:29:42]OFD Sender: No OFD packet to send [07:29:47]OFD Sender: No OFD packet to send [07:29:52]OFD Sender: No OFD packet to send [07:29:57]OFD Sender: No OFD packet to send [07:30:02]OFD Sender: No OFD packet to send [07:30:07]OFD Sender: No OFD packet to send [07:30:12]OFD Sender: No OFD packet to send [07:30:17]OFD Sender: No OFD packet to send [07:30:22]OFD Sender: No OFD packet to send [07:30:27]OFD Sender: No OFD packet to send [07:30:32]OFD Sender: No OFD packet to send [07:30:37]OFD Sender: No OFD packet to send [07:30:42]OFD Sender: No OFD packet to send [07:30:47]OFD Sender: No OFD packet to send [07:30:52]OFD Sender: No OFD packet to send [07:30:54]recv_with_timeout no data received [07:30:57]OFD Sender: No OFD packet to send [07:31:02]OFD Sender: No OFD packet to send [07:31:07]OFD Sender: No OFD packet to send [07:31:12]OFD Sender: No OFD packet to send [07:31:17]OFD Sender: No OFD packet to send [07:31:22]OFD Sender: No OFD packet to send [07:31:27]OFD Sender: No OFD packet to send [07:31:32]OFD Sender: No OFD packet to send [07:31:37]OFD Sender: No OFD packet to send [07:31:42]OFD Sender: No OFD packet to send [07:31:47]OFD Sender: No OFD packet to send [07:31:47]recv_with_timeout no data received [07:31:52]OFD Sender: No OFD packet to send [07:31:57]OFD Sender: No OFD packet to send [07:32:02]OFD Sender: No OFD packet to send [07:32:07]OFD Sender: No OFD packet to send [07:32:12]OFD Sender: No OFD packet to send [07:32:17]OFD Sender: No OFD packet to send [07:32:22]OFD Sender: No OFD packet to send [07:32:27]OFD Sender: No OFD packet to send [07:32:32]OFD Sender: No OFD packet to send [07:32:37]OFD Sender: No OFD packet to send [07:32:42]OFD Sender: No OFD packet to send [07:32:47]OFD Sender: No OFD packet to send [07:32:52]OFD Sender: No OFD packet to send [07:32:57]OFD Sender: No OFD packet to send [07:33:02]OFD Sender: No OFD packet to send [07:33:07]OFD Sender: No OFD packet to send [07:33:12]OFD Sender: No OFD packet to send [07:33:17]OFD Sender: No OFD packet to send [07:33:22]OFD Sender: No OFD packet to send [07:33:27]OFD Sender: No OFD packet to send [07:33:32]OFD Sender: No OFD packet to send [07:33:37]OFD Sender: No OFD packet to send [07:33:41]recv_with_timeout no data received [07:33:42]OFD Sender: No OFD packet to send [07:33:47]OFD Sender: No OFD packet to send [07:33:52]OFD Sender: No OFD packet to send [07:33:57]OFD Sender: No OFD packet to send [07:34:02]OFD Sender: No OFD packet to send [07:34:07]OFD Sender: No OFD packet to send [07:34:12]OFD Sender: No OFD packet to send [07:34:17]OFD Sender: No OFD packet to send [07:34:22]OFD Sender: No OFD packet to send [07:34:27]OFD Sender: No OFD packet to send [07:34:32]OFD Sender: No OFD packet to send [07:34:37]OFD Sender: No OFD packet to send [07:34:42]OFD Sender: No OFD packet to send [07:34:47]OFD Sender: No OFD packet to send [07:34:52]OFD Sender: No OFD packet to send [07:34:57]OFD Sender: No OFD packet to send [07:35:02]OFD Sender: No OFD packet to send [07:35:07]OFD Sender: No OFD packet to send [07:35:12]OFD Sender: No OFD packet to send [07:35:15]recv_with_timeout no data received [07:35:17]OFD Sender: No OFD packet to send [07:35:22]OFD Sender: No OFD packet to send [07:35:27]OFD Sender: No OFD packet to send [07:35:32]OFD Sender: No OFD packet to send [07:35:37]OFD Sender: No OFD packet to send [07:35:42]OFD Sender: No OFD packet to send [07:35:47]OFD Sender: No OFD packet to send [07:35:52]OFD Sender: No OFD packet to send [07:35:57]OFD Sender: No OFD packet to send [07:36:02]OFD Sender: No OFD packet to send [07:36:07]OFD Sender: No OFD packet to send [07:36:12]OFD Sender: No OFD packet to send [07:36:17]OFD Sender: No OFD packet to send [07:36:22]OFD Sender: No OFD packet to send [07:36:27]OFD Sender: No OFD packet to send [07:36:32]OFD Sender: No OFD packet to send [07:36:37]OFD Sender: No OFD packet to send [07:36:42]OFD Sender: No OFD packet to send [07:36:47]OFD Sender: No OFD packet to send [07:36:52]OFD Sender: No OFD packet to send [07:36:57]OFD Sender: No OFD packet to send [07:37:02]OFD Sender: No OFD packet to send [07:37:07]OFD Sender: No OFD packet to send [07:37:12]OFD Sender: No OFD packet to send [07:37:17]OFD Sender: No OFD packet to send [07:37:22]OFD Sender: No OFD packet to send [07:37:27]OFD Sender: No OFD packet to send [07:37:32]OFD Sender: No OFD packet to send [07:37:37]OFD Sender: No OFD packet to send [07:37:42]OFD Sender: No OFD packet to send [07:37:47]OFD Sender: No OFD packet to send [07:37:52]OFD Sender: No OFD packet to send [07:37:57]OFD Sender: No OFD packet to send [07:38:02]OFD Sender: No OFD packet to send [07:38:07]OFD Sender: No OFD packet to send [07:38:12]OFD Sender: No OFD packet to send [07:38:17]OFD Sender: No OFD packet to send [07:38:22]OFD Sender: No OFD packet to send [07:38:27]OFD Sender: No OFD packet to send [07:38:32]OFD Sender: No OFD packet to send [07:38:37]OFD Sender: No OFD packet to send [07:38:42]OFD Sender: No OFD packet to send [07:38:47]OFD Sender: No OFD packet to send [07:38:52]OFD Sender: No OFD packet to send [07:38:57]OFD Sender: No OFD packet to send [07:39:02]OFD Sender: No OFD packet to send [07:39:07]OFD Sender: No OFD packet to send [07:39:12]OFD Sender: No OFD packet to send [07:39:17]OFD Sender: No OFD packet to send [07:39:22]OFD Sender: No OFD packet to send [07:39:27]OFD Sender: No OFD packet to send [07:39:32]OFD Sender: No OFD packet to send [07:39:37]OFD Sender: No OFD packet to send [07:39:42]OFD Sender: No OFD packet to send [07:39:47]OFD Sender: No OFD packet to send [07:39:52]OFD Sender: No OFD packet to send [07:39:57]OFD Sender: No OFD packet to send [07:40:02]OFD Sender: No OFD packet to send [07:40:07]OFD Sender: No OFD packet to send [07:40:12]OFD Sender: No OFD packet to send [07:40:17]OFD Sender: No OFD packet to send [07:40:22]OFD Sender: No OFD packet to send [07:40:25]recv_with_timeout no data received [07:40:27]OFD Sender: No OFD packet to send [07:40:32]OFD Sender: No OFD packet to send [07:40:37]OFD Sender: No OFD packet to send [07:40:42]OFD Sender: No OFD packet to send [07:40:47]OFD Sender: No OFD packet to send [07:40:52]OFD Sender: No OFD packet to send [07:40:57]OFD Sender: No OFD packet to send [07:41:02]OFD Sender: No OFD packet to send [07:41:07]OFD Sender: No OFD packet to send [07:41:12]OFD Sender: No OFD packet to send [07:41:17]OFD Sender: No OFD packet to send [07:41:22]OFD Sender: No OFD packet to send [07:41:27]OFD Sender: No OFD packet to send [07:41:32]OFD Sender: No OFD packet to send [07:41:37]OFD Sender: No OFD packet to send [07:41:42]OFD Sender: No OFD packet to send [07:41:47]OFD Sender: No OFD packet to send [07:41:52]OFD Sender: No OFD packet to send [07:41:57]OFD Sender: No OFD packet to send [07:42:02]OFD Sender: No OFD packet to send [07:42:07]OFD Sender: No OFD packet to send [07:42:12]OFD Sender: No OFD packet to send [07:42:17]OFD Sender: No OFD packet to send [07:42:22]OFD Sender: No OFD packet to send [07:42:27]OFD Sender: No OFD packet to send [07:42:32]OFD Sender: No OFD packet to send [07:42:37]OFD Sender: No OFD packet to send [07:42:42]OFD Sender: No OFD packet to send [07:42:47]OFD Sender: No OFD packet to send [07:42:52]OFD Sender: No OFD packet to send [07:42:57]OFD Sender: No OFD packet to send [07:43:02]OFD Sender: No OFD packet to send [07:43:07]OFD Sender: No OFD packet to send [07:43:12]OFD Sender: No OFD packet to send [07:43:17]OFD Sender: No OFD packet to send [07:43:22]OFD Sender: No OFD packet to send [07:43:27]OFD Sender: No OFD packet to send [07:43:32]OFD Sender: No OFD packet to send [07:43:37]OFD Sender: No OFD packet to send [07:43:42]OFD Sender: No OFD packet to send [07:43:47]OFD Sender: No OFD packet to send [07:43:48]accept exits with 10 [07:43:48]New connection [07:43:48]New thread 3066887524 created [07:43:48]Thread 3067030884 joined [07:43:48]Waiting for new connection... [07:43:48] Sock 10.Parse request [07:43:48]Sock 10.Check first char [07:43:48]Sock 10.First char is OK [07:43:48]request: POST /json_proto HTTP/1.0 [07:43:48]Method: POST [07:43:48]URL: /json_proto [07:43:48]Method is POST - this is cgi request [07:43:48]url: /json_proto [07:43:48]query_string will be loaded in cgi processing [07:43:48]execute_cgi json_proto POST (null) [07:43:48]execute_cgi path=json_proto method=POST [07:43:48]POST find Content-Length [07:43:48]Host: 172.17.43.132:8080 [07:43:48]Content-Length: 646 [07:43:48]Content-Type: application/json [07:43:48] [07:43:48]POST finish read [07:43:48]Found Content-Length = 646 [07:43:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183860", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:43:48]execute_script... [07:43:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183860", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:43:48]POST & json_proto [07:43:48]process_json_proto [07:43:48]json parsed OK: [07:43:48]protocol is kg_v1.0 [07:43:48]action value=close_receipt [07:43:48]process_action close_receipt [07:43:48]cmd_close_receipt [07:43:48]MH_GetDate [07:43:48]Write to MH i2c: F0 00 00 A5 07 9B [07:43:48]Write i2c OK [07:43:48]MH_I2C_Read... [07:43:48]Read from MH i2c: F0 [07:43:48]MH_I2C_Read... [07:43:48]Read from MH i2c: F0 09 00 [07:43:48]MH_I2C_Read... [07:43:48]Read from MH i2c: F0 09 00 A5 07 00 37 48 A7 66 AA D0 A5 66 B5 [07:43:48]GetLastDocTimeStamp 1722236236 [07:43:48]current date 1722239031 [07:43:48]FM_GetShiftState [07:43:48]SAM_PROTO_GetShiftState [07:43:48]wFMCommunicate request_size=4 [07:43:48]MH_SAM_APDU [07:43:48]CAPDU: 80 13 01 00 [07:43:48]Write to MH i2c: E2 08 00 A6 07 80 13 01 00 00 00 00 00 2A [07:43:48]Write i2c OK [07:43:48]MH_I2C_Read... [07:43:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:43:48]Read from MH i2c: E2 [07:43:48]MH_I2C_Read... [07:43:48]Read from MH i2c: E2 0E 00 [07:43:48]MH_I2C_Read... [07:43:48]Read from MH i2c: E2 0E 00 A6 07 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 C6 [07:43:48]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [07:43:48]wFMCommunicate OK [07:43:48]SAM_PROTO_GetShiftState done [07:43:48]FM_GetShiftState done [07:43:48]opened in 1722211496 [07:43:48]opened+sec_in_day 1722297896 [07:43:48]quantity*price = 13000 [07:43:48]sum+1 = 13001 [07:43:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 21 29.07.2024 07:43 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41832 ФПД: 1548300528038 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T074351&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41832&fm=1548300528038&tin=02508201610067®Number=0000000000092626&sum=13000 0 [07:43:49]StoreToDocumentArchive [07:43:49]shift 427 fd 41832 [07:43:49]save to /storage/0427/doc_00041832 [07:43:49]save last doc name /storage/0427/doc_00041832 to /storage/kkm_last_doc_name [07:43:49]save OK [07:43:49]Clear old archive folders... [07:43:49]ProcessDocumentItem done err = 0, tmpTLVsize=282 [07:43:49]tlvbuf is 013FF300 [07:43:49]SAM_PROTO_ClearQueue [07:43:49]wFMCommunicate request_size=4 [07:43:49]MH_SAM_APDU [07:43:49]CAPDU: 80 09 00 00 [07:43:49]Write to MH i2c: E2 08 00 B3 07 80 09 00 00 00 00 00 00 2C [07:43:49]Write i2c OK [07:43:49]MH_I2C_Read... [07:43:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:43:49]Read from MH i2c: E2 [07:43:49]MH_I2C_Read... [07:43:49]Read from MH i2c: E2 03 00 [07:43:49]MH_I2C_Read... [07:43:49]Read from MH i2c: E2 03 00 B3 07 00 90 00 2E [07:43:49]RAPDU: 90 00 [07:43:49]wFMCommunicate OK [07:43:49]SAM_PROTO_ClearQueue done [07:43:49]KKMCreateOFDPacket [07:43:49]OFDProtocolAddRootSTLVToBuf [07:43:49]FM_MakeSignedData [07:43:49]FM_MakeSignedData [07:43:49]SAM_PROTO_SignData [07:43:49]wFMCommunicate request_size=4 [07:43:49]MH_SAM_APDU [07:43:49]CAPDU: 80 0D 01 02 [07:43:49]Write to MH i2c: E2 08 00 B4 07 80 0D 01 02 00 00 00 00 34 [07:43:49]Write i2c OK [07:43:49]MH_I2C_Read... [07:43:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:43:50]Read from MH i2c: E2 [07:43:50]MH_I2C_Read... [07:43:50]Read from MH i2c: E2 03 00 [07:43:50]MH_I2C_Read... [07:43:50]Read from MH i2c: E2 03 00 B4 07 00 90 00 2F [07:43:50]RAPDU: 90 00 [07:43:50]wFMCommunicate OK [07:43:50]wFMCommunicate request_size=255 [07:43:50]MH_SAM_APDU [07:43:50]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 37 48 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 [07:43:50]Write to MH i2c: E2 02 01 B5 07 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 37 48 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 00 00 90 [07:43:50]Write i2c OK [07:43:50]MH_I2C_Read... [07:43:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:43:50]Read from MH i2c: E2 [07:43:50]MH_I2C_Read... [07:43:50]Read from MH i2c: E2 03 00 [07:43:50]MH_I2C_Read... [07:43:50]Read from MH i2c: E2 03 00 B5 07 00 90 00 30 [07:43:50]RAPDU: 90 00 [07:43:50]wFMCommunicate OK [07:43:50]wFMCommunicate request_size=41 [07:43:50]MH_SAM_APDU [07:43:50]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 68 A3 00 00 35 04 06 00 01 68 7D E7 29 A6 [07:43:50]Write to MH i2c: E2 2C 00 B6 07 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 68 A3 00 00 35 04 06 00 01 68 7D E7 29 A6 00 00 B6 [07:43:50]Write i2c OK [07:43:50]MH_I2C_Read... [07:43:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:43:50]Read from MH i2c: E2 [07:43:50]MH_I2C_Read... [07:43:50]Read from MH i2c: E2 03 00 [07:43:50]MH_I2C_Read... [07:43:50]Read from MH i2c: E2 03 00 B6 07 00 90 00 31 [07:43:50]RAPDU: 90 00 [07:43:50]wFMCommunicate OK [07:43:50]wFMCommunicate request_size=4 [07:43:50]MH_SAM_APDU [07:43:50]CAPDU: 80 0D 03 02 [07:43:50]Write to MH i2c: E2 08 00 B7 07 80 0D 03 02 00 00 00 00 39 [07:43:50]Write i2c OK [07:43:50]MH_I2C_Read... [07:43:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:43:50]Read from MH i2c: E2 [07:43:50]MH_I2C_Read... [07:43:50]Read from MH i2c: E2 0B 00 [07:43:50]MH_I2C_Read... [07:43:50]Read from MH i2c: E2 0B 00 B7 07 00 43 85 0F D6 3D C7 08 B3 90 00 A6 [07:43:50]RAPDU: 43 85 0F D6 3D C7 08 B3 90 00 [07:43:50]wFMCommunicate OK [07:43:50]SAM_PROTO_SignData done [07:43:50]FM_MakeSignedData done [07:43:50]CreateOFDProtocolMessage [07:43:50]wFMCommunicate request_size=4 [07:43:50]MH_SAM_APDU [07:43:50]CAPDU: 80 11 00 00 [07:43:50]Write to MH i2c: E2 08 00 B8 07 80 11 00 00 00 00 00 00 39 [07:43:50]Write i2c OK [07:43:50]MH_I2C_Read... [07:43:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:43:50]Read from MH i2c: E2 [07:43:50]MH_I2C_Read... [07:43:50]Read from MH i2c: E2 17 00 [07:43:50]MH_I2C_Read... [07:43:50]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 35 38 90 00 95 [07:43:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [07:43:50]wFMCommunicate OK [07:43:50]CreateOFDProtocolMessage done [07:43:50]OFDSenderStorePacket 41832 [07:43:50]StoreOFDPacket docnum=41832 [07:43:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 2E 01 00 00 7E 36 26 01 53 88 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 37 48 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 68 A3 00 00 35 04 06 00 01 68 7D E7 29 A6 43 85 0F D6 3D C7 08 B3 [07:43:50]CheckFolder [07:43:50]dirname=/storage/ofd_packets [07:43:50]CheckFolder done [07:43:50]ProducePacketName [07:43:50]name=ofd_packets/00041832 [07:43:50]NVStorageSaveData ofd_packets/00041832 [07:43:50]File name is /storage/ofd_packets/00041832 [07:43:50]Write 332 bytes [07:43:50]NVStorageSaveData done [07:43:50]OFDSenderStorePacket done [07:43:50]KKMCreateOFDPacket done [07:43:50]NVStorageSaveData kkm_last_timestamp [07:43:50]File name is /storage/kkm_last_timestamp [07:43:50]Write 4 bytes [07:43:50]NVStorageSaveData done [07:43:50]ExternCall_PrintAddStr [07:43:50]wPrintStart [07:43:50]Write to MH i2c: 01 00 00 B9 07 C0 [07:43:50]Write i2c OK [07:43:50]MH_I2C_Read... [07:43:50]Read from MH i2c: 01 [07:43:50]MH_I2C_Read... [07:43:50]Read from MH i2c: 01 07 00 [07:43:50]MH_I2C_Read... [07:43:50]Read from MH i2c: 01 07 00 B9 07 00 00 00 00 00 FF 0F D5 [07:43:50]RasterBufferAndPrint [07:43:50]line Счет N : (3)183860 [07:43:50]line ИНН: 02508201610067 [07:43:50]line Контрольно-Кассовый Чек [07:43:50]line ПРОДАЖА [07:43:50]line Товар: 2000036220012 [07:43:50]line Кофе Капучино XL(GABB TRADE) [07:43:50]line 1.000 * 130.00 [07:43:50]line = 130.00 [07:43:50]line НДС 12% НСП 1% [07:43:50]line > о реализуемом товаре [07:43:50]line ИТОГО: 130.00 [07:43:50]line НСП 1% : 1.15 [07:43:50]line НДС 12% : 13.80 [07:43:50]line Наличными: 130.00 [07:43:50]line Безнал.: 0.00 [07:43:50]line Место: АЗС № 97 "Партнер Нефть" [07:43:50]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [07:43:50]line СНО: Общий режим [07:43:50]line Чек 21 29.07.2024 07:43 [07:43:50]line Смена: 427 ФФД: 1.0 [07:43:50]line ЗНМ: 0300000053 [07:43:50]line РНМ: 0000000000092626 [07:43:50]line Версия ККМ: 001 [07:43:50]line ФМ: 0000000000874958 [07:43:50]line ФД: 41832 [07:43:50]line ФПД: 1548300528038 [07:43:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T074351&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41832&fm=1548300528038&tin=02508201610067®Number=0000000000092626&sum=13000 [07:43:50]line 0 [07:43:50]OFD Sender: Processing packet 41832 [packets to send 57, broken 56] [07:43:50]ProducePacketName [07:43:50]name=ofd_packets/00041832 [07:43:50]OFD Sender: To server: pG, [07:43:50]CommunicateWithHost lk.salyk.kg:30040 [07:43:50]ConnectInit lk.salyk.kg [07:43:50]written 0, free lines is 4095 [07:43:51]Write to MH i2c: 01 00 00 E2 07 E9 [07:43:51]Write i2c OK [07:43:51]MH_I2C_Read... [07:43:51]Read from MH i2c: 01 [07:43:51]MH_I2C_Read... [07:43:51]Read from MH i2c: 01 07 00 [07:43:51]MH_I2C_Read... [07:43:51]Read from MH i2c: 01 07 00 E2 07 00 00 00 00 00 05 0D 02 [07:43:51]RasterBufferAndPrint [07:43:51]line [07:43:51]line [07:43:51]line [07:43:51]line [07:43:51]line [07:43:51]written 0, free lines is 3339 [07:43:51]MH_Cut [07:43:51]Write to MH i2c: D1 01 00 E9 07 01 C2 [07:43:51]Write i2c OK [07:43:51]MH_I2C_Read... [07:43:51]Read from MH i2c: D1 [07:43:51]MH_I2C_Read... [07:43:51]Read from MH i2c: D1 01 00 [07:43:51]MH_I2C_Read... [07:43:51]Read from MH i2c: D1 01 00 E9 07 00 C1 [07:43:51]Write to MH i2c: 01 00 00 EA 07 F1 [07:43:51]Write i2c OK [07:43:51]MH_I2C_Read... [07:43:51]*** Cut start [07:43:51]*** Partial cut [07:43:51]*** CUTSNS_PIN = 1 [07:43:51]*** CUTSNS_PIN = 0 [07:43:52]*** Brake cut motor [07:43:52]Read from MH i2c: 01 [07:43:52]MH_I2C_Read... [07:43:52]*** Stop cut motor [07:43:52]*** Cut end [07:43:52]Read from MH i2c: 01 07 00 [07:43:52]MH_I2C_Read... [07:43:52]Read from MH i2c: 01 07 00 EA 07 00 00 00 00 00 FF 0F 06 [07:43:52]process_action close_receipt done [07:43:52]requested_data is exist [07:43:52]produce_requested_data [07:43:52]requested_item fm.sn is exist - process it [07:43:52]wFMCommunicate request_size=4 [07:43:52]MH_SAM_APDU [07:43:52]CAPDU: 80 11 00 00 [07:43:52]Write to MH i2c: E2 08 00 EB 07 80 11 00 00 00 00 00 00 6C [07:43:52]Write i2c OK [07:43:52]MH_I2C_Read... [07:43:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:43:52]Read from MH i2c: E2 [07:43:52]MH_I2C_Read... [07:43:52]Read from MH i2c: E2 17 00 [07:43:52]MH_I2C_Read... [07:43:52]Read from MH i2c: E2 17 00 EB 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 C8 [07:43:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [07:43:52]wFMCommunicate OK [07:43:52]requested_item fd.num is exist - process it [07:43:52]SAM_PROTO_GetFieldsCounters [07:43:52]wFMCommunicate request_size=4 [07:43:52]MH_SAM_APDU [07:43:52]CAPDU: 80 13 00 00 [07:43:52]Write to MH i2c: E2 08 00 EC 07 80 13 00 00 00 00 00 00 6F [07:43:52]Write i2c OK [07:43:52]MH_I2C_Read... [07:43:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:43:52]Read from MH i2c: E2 [07:43:52]MH_I2C_Read... [07:43:52]Read from MH i2c: E2 62 00 [07:43:52]MH_I2C_Read... [07:43:52]Read from MH i2c: E2 62 00 EC 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 68 A3 00 00 0E 04 04 00 AB 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 8F [07:43:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 68 A3 00 00 0E 04 04 00 AB 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 [07:43:52]wFMCommunicate OK [07:43:52]SAM_PROTO_GetFieldsCounters done [07:43:52]requested_item shift.num is exist - process it [07:43:52]requested_item shift.opened is exist - process it [07:43:52]req_shift_opened [07:43:52]FM_GetShiftState [07:43:52]SAM_PROTO_GetShiftState [07:43:52]wFMCommunicate request_size=4 [07:43:52]MH_SAM_APDU [07:43:52]CAPDU: 80 13 01 00 [07:43:52]Write to MH i2c: E2 08 00 ED 07 80 13 01 00 00 00 00 00 71 [07:43:52]Write i2c OK [07:43:52]MH_I2C_Read... [07:43:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:43:52]Read from MH i2c: E2 [07:43:52]MH_I2C_Read... [07:43:52]Read from MH i2c: E2 0E 00 [07:43:52]MH_I2C_Read... [07:43:52]Read from MH i2c: E2 0E 00 ED 07 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 0D [07:43:52]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [07:43:52]wFMCommunicate OK [07:43:52]SAM_PROTO_GetShiftState done [07:43:52]FM_GetShiftState done [07:43:52]req_shift_opened done [07:43:52]requested_item shift.open_date is exist - process it [07:43:52]req_shift_open_date [07:43:52]req_shift_open_date done [07:43:52]produce_requested_data done [07:43:52]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41832,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [07:43:52]process_action_free close_receipt [07:43:52]json_value_free [07:43:52]json_value_free done [07:43:52]process_json_proto returns [07:43:52]Send response to host [07:43:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41832,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [07:43:52]free response buf [07:43:52]execute_script done [07:43:52]execute_script returns [07:43:52]free content buf [07:43:52]Sock 10.Close socket [07:43:52]Sock 10.Thread stoped [07:43:54]Connected sock=11 [07:43: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 35 38 2E 01 00 00 7E 36 26 01 53 88 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 37 48 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 68 A3 00 00 35 04 06 00 01 68 7D E7 29 A6 43 85 0F D6 3D C7 08 B3 [07:43: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 35 38 4F 00 00 00 6E A4 47 00 99 F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 68 A3 00 00 F4 03 04 00 4D F4 A6 66 B6 04 01 00 00 CA 53 F9 8F 91 DD F6 1C [07:43:55]CommunicateWithHost err = 0 [07:43:55]CheckOFDResponse [07:43:55]1017 (14) - 77093643461234 [07:43:55]1041 (16) - 0000000000874958 [07:43:55]1040 (4) - 41832 [07:43:55]1012 (4) - 29.07.2024 01:45 [07:43:55]1206 (1) - 0 [07:43:55]OFD Sender: Remove packet 41832 [07:43:55]ProducePacketName [07:43:55]name=ofd_packets/00041832 [07:43:55]NVStorageDeleteData [07:43:55]OFD Sender: No OFD packet to send [07:44:00]OFD Sender: No OFD packet to send [07:44:05]recv_with_timeout no data received [07:44:05]OFD Sender: No OFD packet to send [07:44:10]OFD Sender: No OFD packet to send [07:44:15]OFD Sender: No OFD packet to send [07:44:20]OFD Sender: No OFD packet to send [07:44:25]OFD Sender: No OFD packet to send [07:44:30]OFD Sender: No OFD packet to send [07:44:35]OFD Sender: No OFD packet to send [07:44:40]OFD Sender: No OFD packet to send [07:44:45]OFD Sender: No OFD packet to send [07:44:50]OFD Sender: No OFD packet to send [07:44:55]OFD Sender: No OFD packet to send [07:45:00]OFD Sender: No OFD packet to send [07:45:05]OFD Sender: No OFD packet to send [07:45:09]recv_with_timeout no data received [07:45:10]OFD Sender: No OFD packet to send [07:45:15]OFD Sender: No OFD packet to send [07:45:20]OFD Sender: No OFD packet to send [07:45:25]OFD Sender: No OFD packet to send [07:45:30]OFD Sender: No OFD packet to send [07:45:35]OFD Sender: No OFD packet to send [07:45:40]OFD Sender: No OFD packet to send [07:45:45]OFD Sender: No OFD packet to send [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:26]OFD Sender: No OFD packet to send [07:46:26]accept exits with 8 [07:46:26]New connection [07:46:26]New thread 3067030884 created [07:46:26]Thread 3066887524 joined [07:46:26]Waiting for new connection... [07:46:26] Sock 8.Parse request [07:46:26]Sock 8.Check first char [07:46:26]Sock 8.First char is OK [07:46:26]request: POST /json_proto HTTP/1.0 [07:46:26]Method: POST [07:46:26]URL: /json_proto [07:46:26]Method is POST - this is cgi request [07:46:26]url: /json_proto [07:46:26]query_string will be loaded in cgi processing [07:46:26]execute_cgi json_proto POST (null) [07:46:26]execute_cgi path=json_proto method=POST [07:46:26]POST find Content-Length [07:46:26]Host: 172.17.43.132:8080 [07:46:26]Content-Length: 632 [07:46:26]Content-Type: application/json [07:46:26] [07:46:26]POST finish read [07:46:26]Found Content-Length = 632 [07:46:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183861", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:46:26]execute_script... [07:46:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183861", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:46:26]POST & json_proto [07:46:26]process_json_proto [07:46:26]json parsed OK: [07:46:26]protocol is kg_v1.0 [07:46:26]action value=close_receipt [07:46:26]process_action close_receipt [07:46:26]cmd_close_receipt [07:46:26]MH_GetDate [07:46:26]Write to MH i2c: F0 00 00 EE 07 E4 [07:46:26]Write i2c OK [07:46:26]MH_I2C_Read... [07:46:26]Read from MH i2c: F0 [07:46:26]MH_I2C_Read... [07:46:26]Read from MH i2c: F0 09 00 [07:46:26]MH_I2C_Read... [07:46:26]Read from MH i2c: F0 09 00 EE 07 00 D5 48 A7 66 AA D0 A5 66 9C [07:46:26]GetLastDocTimeStamp 1722239031 [07:46:26]current date 1722239189 [07:46:26]FM_GetShiftState [07:46:26]SAM_PROTO_GetShiftState [07:46:26]wFMCommunicate request_size=4 [07:46:26]MH_SAM_APDU [07:46:26]CAPDU: 80 13 01 00 [07:46:26]Write to MH i2c: E2 08 00 EF 07 80 13 01 00 00 00 00 00 73 [07:46:26]Write i2c OK [07:46:26]MH_I2C_Read... [07:46:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:46:26]Read from MH i2c: E2 [07:46:26]MH_I2C_Read... [07:46:26]Read from MH i2c: E2 0E 00 [07:46:26]MH_I2C_Read... [07:46:26]Read from MH i2c: E2 0E 00 EF 07 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 0F [07:46:26]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [07:46:26]wFMCommunicate OK [07:46:26]SAM_PROTO_GetShiftState done [07:46:26]FM_GetShiftState done [07:46:26]opened in 1722211496 [07:46:26]opened+sec_in_day 1722297896 [07:46:26]quantity*price = 6000 [07:46:26]sum+1 = 6001 [07:46:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 22 29.07.2024 07:46 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41833 ФПД: 81134077303543 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T074629&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41833&fm=81134077303543&tin=02508201610067®Number=0000000000092626&sum=6000 0 [07:46:27]StoreToDocumentArchive [07:46:27]shift 427 fd 41833 [07:46:27]save to /storage/0427/doc_00041833 [07:46:27]save last doc name /storage/0427/doc_00041833 to /storage/kkm_last_doc_name [07:46:27]save OK [07:46:27]Clear old archive folders... [07:46:28]ProcessDocumentItem done err = 0, tmpTLVsize=271 [07:46:28]tlvbuf is B6ED4830 [07:46:28]SAM_PROTO_ClearQueue [07:46:28]wFMCommunicate request_size=4 [07:46:28]MH_SAM_APDU [07:46:28]CAPDU: 80 09 00 00 [07:46:28]Write to MH i2c: E2 08 00 FC 07 80 09 00 00 00 00 00 00 75 [07:46:28]Write i2c OK [07:46:28]MH_I2C_Read... [07:46:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:46:28]Read from MH i2c: E2 [07:46:28]MH_I2C_Read... [07:46:28]Read from MH i2c: E2 03 00 [07:46:28]MH_I2C_Read... [07:46:28]Read from MH i2c: E2 03 00 FC 07 00 90 00 77 [07:46:28]RAPDU: 90 00 [07:46:28]wFMCommunicate OK [07:46:28]SAM_PROTO_ClearQueue done [07:46:28]KKMCreateOFDPacket [07:46:28]OFDProtocolAddRootSTLVToBuf [07:46:28]FM_MakeSignedData [07:46:28]FM_MakeSignedData [07:46:28]SAM_PROTO_SignData [07:46:28]wFMCommunicate request_size=4 [07:46:28]MH_SAM_APDU [07:46:28]CAPDU: 80 0D 01 02 [07:46:28]Write to MH i2c: E2 08 00 FD 07 80 0D 01 02 00 00 00 00 7D [07:46:28]Write i2c OK [07:46:28]MH_I2C_Read... [07:46:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:46:28]Read from MH i2c: E2 [07:46:28]MH_I2C_Read... [07:46:28]Read from MH i2c: E2 03 00 [07:46:28]MH_I2C_Read... [07:46:28]Read from MH i2c: E2 03 00 FD 07 00 90 00 78 [07:46:28]RAPDU: 90 00 [07:46:28]wFMCommunicate OK [07:46:28]wFMCommunicate request_size=255 [07:46:28]MH_SAM_APDU [07:46:28]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 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 D5 48 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 [07:46:28]Write to MH i2c: E2 02 01 FE 07 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 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 D5 48 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 98 [07:46:28]Write i2c OK [07:46:28]MH_I2C_Read... [07:46:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:46:28]Read from MH i2c: E2 [07:46:28]MH_I2C_Read... [07:46:28]Read from MH i2c: E2 03 00 [07:46:28]MH_I2C_Read... [07:46:28]Read from MH i2c: E2 03 00 FE 07 00 90 00 79 [07:46:28]RAPDU: 90 00 [07:46:28]wFMCommunicate OK [07:46:28]wFMCommunicate request_size=30 [07:46:28]MH_SAM_APDU [07:46:28]CAPDU: 80 0D 02 02 19 30 38 37 34 39 35 38 10 04 04 00 69 A3 00 00 35 04 06 00 49 CA 7F DB 5A F7 [07:46:28]Write to MH i2c: E2 21 00 FF 07 80 0D 02 02 19 00 30 38 37 34 39 35 38 10 04 04 00 69 A3 00 00 35 04 06 00 49 CA 7F DB 5A F7 00 00 4C [07:46:28]Write i2c OK [07:46:28]MH_I2C_Read... [07:46:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:46:28]Read from MH i2c: E2 [07:46:28]MH_I2C_Read... [07:46:28]Read from MH i2c: E2 03 00 [07:46:28]MH_I2C_Read... [07:46:28]Read from MH i2c: E2 03 00 FF 07 00 90 00 7A [07:46:28]RAPDU: 90 00 [07:46:28]wFMCommunicate OK [07:46:28]wFMCommunicate request_size=4 [07:46:28]MH_SAM_APDU [07:46:28]CAPDU: 80 0D 03 02 [07:46:28]Write to MH i2c: E2 08 00 00 08 80 0D 03 02 00 00 00 00 83 [07:46:28]Write i2c OK [07:46:28]MH_I2C_Read... [07:46:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:46:28]Read from MH i2c: E2 [07:46:28]MH_I2C_Read... [07:46:28]Read from MH i2c: E2 0B 00 [07:46:28]MH_I2C_Read... [07:46:28]Read from MH i2c: E2 0B 00 00 08 00 97 C4 4F 75 31 72 87 88 90 00 55 [07:46:28]RAPDU: 97 C4 4F 75 31 72 87 88 90 00 [07:46:28]wFMCommunicate OK [07:46:28]SAM_PROTO_SignData done [07:46:28]FM_MakeSignedData done [07:46:28]CreateOFDProtocolMessage [07:46:28]wFMCommunicate request_size=4 [07:46:28]MH_SAM_APDU [07:46:28]CAPDU: 80 11 00 00 [07:46:28]Write to MH i2c: E2 08 00 01 08 80 11 00 00 00 00 00 00 83 [07:46:28]Write i2c OK [07:46:28]MH_I2C_Read... [07:46:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:46:28]Read from MH i2c: E2 [07:46:28]MH_I2C_Read... [07:46:28]Read from MH i2c: E2 17 00 [07:46:28]MH_I2C_Read... [07:46:28]Read from MH i2c: E2 17 00 01 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 DF [07:46:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [07:46:28]wFMCommunicate OK [07:46:28]CreateOFDProtocolMessage done [07:46:28]OFDSenderStorePacket 41833 [07:46:28]StoreOFDPacket docnum=41833 [07:46:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 23 01 00 00 3D A6 1B 01 DD D2 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 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 D5 48 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 69 A3 00 00 35 04 06 00 49 CA 7F DB 5A F7 97 C4 4F 75 31 72 87 88 [07:46:28]CheckFolder [07:46:28]dirname=/storage/ofd_packets [07:46:28]CheckFolder done [07:46:28]ProducePacketName [07:46:28]name=ofd_packets/00041833 [07:46:28]NVStorageSaveData ofd_packets/00041833 [07:46:28]File name is /storage/ofd_packets/00041833 [07:46:28]Write 321 bytes [07:46:28]NVStorageSaveData done [07:46:28]OFDSenderStorePacket done [07:46:28]KKMCreateOFDPacket done [07:46:28]NVStorageSaveData kkm_last_timestamp [07:46:28]File name is /storage/kkm_last_timestamp [07:46:28]Write 4 bytes [07:46:28]NVStorageSaveData done [07:46:28]ExternCall_PrintAddStr [07:46:28]wPrintStart [07:46:28]Write to MH i2c: 01 00 00 02 08 0A [07:46:28]Write i2c OK [07:46:28]MH_I2C_Read... [07:46:28]Read from MH i2c: 01 [07:46:28]MH_I2C_Read... [07:46:28]Read from MH i2c: 01 07 00 [07:46:28]MH_I2C_Read... [07:46:28]Read from MH i2c: 01 07 00 02 08 00 00 00 00 00 FF 0F 1F [07:46:28]RasterBufferAndPrint [07:46:28]line Счет N : (3)183861 [07:46:28]line ИНН: 02508201610067 [07:46:28]line Контрольно-Кассовый Чек [07:46:28]line ПРОДАЖА [07:46:28]line Товар: 4700000160204 [07:46:28]line Вода Легенда 1,5л [07:46:28]line 1.000 * 60.00 [07:46:28]line = 60.00 [07:46:28]line НДС 12% НСП 1% [07:46:28]line > о реализуемом товаре [07:46:28]line ИТОГО: 60.00 [07:46:28]line НСП 1% : 0.53 [07:46:28]line НДС 12% : 6.37 [07:46:28]line Наличными: 60.00 [07:46:28]line Безнал.: 0.00 [07:46:28]line Место: АЗС № 97 "Партнер Нефть" [07:46:28]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [07:46:28]line СНО: Общий режим [07:46:28]line Чек 22 29.07.2024 07:46 [07:46:28]line Смена: 427 ФФД: 1.0 [07:46:28]line ЗНМ: 0300000053 [07:46:28]line РНМ: 0000000000092626 [07:46:28]line Версия ККМ: 001 [07:46:28]line ФМ: 0000000000874958 [07:46:28]line ФД: 41833 [07:46:28]line ФПД: 81134077303543 [07:46:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T074629&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41833&fm=81134077303543&tin=02508201610067®Number=0000000000092626&sum=6000 [07:46:28]line 0 [07:46:28]OFD Sender: Processing packet 41833 [packets to send 57, broken 56] [07:46:28]ProducePacketName [07:46:28]name=ofd_packets/00041833 [07:46:28]OFD Sender: To server: pG, [07:46:28]CommunicateWithHost lk.salyk.kg:30040 [07:46:28]ConnectInit lk.salyk.kg [07:46:28]written 0, free lines is 4095 [07:46:29]Write to MH i2c: 01 00 00 2A 08 32 [07:46:29]Write i2c OK [07:46:29]MH_I2C_Read... [07:46:29]Read from MH i2c: 01 [07:46:29]MH_I2C_Read... [07:46:29]Read from MH i2c: 01 07 00 [07:46:29]MH_I2C_Read... [07:46:29]Read from MH i2c: 01 07 00 2A 08 00 00 00 00 00 09 0D 4F [07:46:29]RasterBufferAndPrint [07:46:29]line [07:46:29]line [07:46:29]line [07:46:29]line [07:46:29]line [07:46:29]written 0, free lines is 3343 [07:46:29]MH_Cut [07:46:29]Write to MH i2c: D1 01 00 31 08 01 0B [07:46:29]Write i2c OK [07:46:29]MH_I2C_Read... [07:46:29]Read from MH i2c: D1 [07:46:29]MH_I2C_Read... [07:46:29]Read from MH i2c: D1 01 00 [07:46:29]MH_I2C_Read... [07:46:29]Read from MH i2c: D1 01 00 31 08 00 0A [07:46:29]Write to MH i2c: 01 00 00 32 08 3A [07:46:29]Write i2c OK [07:46:29]MH_I2C_Read... [07:46:29]*** Cut start [07:46:29]*** Partial cut [07:46:29]*** CUTSNS_PIN = 1 [07:46:30]*** CUTSNS_PIN = 0 [07:46:30]*** Brake cut motor [07:46:30]Read from MH i2c: 01 [07:46:30]MH_I2C_Read... [07:46:30]*** Stop cut motor [07:46:30]*** Cut end [07:46:30]Read from MH i2c: 01 07 00 [07:46:30]MH_I2C_Read... [07:46:30]Read from MH i2c: 01 07 00 32 08 00 00 00 00 00 FF 0F 4F [07:46:30]process_action close_receipt done [07:46:30]requested_data is exist [07:46:30]produce_requested_data [07:46:30]requested_item fm.sn is exist - process it [07:46:30]wFMCommunicate request_size=4 [07:46:30]MH_SAM_APDU [07:46:30]CAPDU: 80 11 00 00 [07:46:30]Write to MH i2c: E2 08 00 33 08 80 11 00 00 00 00 00 00 B5 [07:46:30]Write i2c OK [07:46:30]MH_I2C_Read... [07:46:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:46:30]Read from MH i2c: E2 [07:46:30]MH_I2C_Read... [07:46:30]Read from MH i2c: E2 17 00 [07:46:30]MH_I2C_Read... [07:46:30]Read from MH i2c: E2 17 00 33 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 11 [07:46:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [07:46:30]wFMCommunicate OK [07:46:30]requested_item fd.num is exist - process it [07:46:30]SAM_PROTO_GetFieldsCounters [07:46:30]wFMCommunicate request_size=4 [07:46:30]MH_SAM_APDU [07:46:30]CAPDU: 80 13 00 00 [07:46:30]Write to MH i2c: E2 08 00 34 08 80 13 00 00 00 00 00 00 B8 [07:46:30]Write i2c OK [07:46:30]MH_I2C_Read... [07:46:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:46:30]Read from MH i2c: E2 [07:46:30]MH_I2C_Read... [07:46:30]Read from MH i2c: E2 62 00 [07:46:30]MH_I2C_Read... [07:46:30]Read from MH i2c: E2 62 00 34 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 69 A3 00 00 0E 04 04 00 AB 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 DC [07:46: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 69 A3 00 00 0E 04 04 00 AB 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 [07:46:30]wFMCommunicate OK [07:46:30]SAM_PROTO_GetFieldsCounters done [07:46:30]requested_item shift.num is exist - process it [07:46:30]requested_item shift.opened is exist - process it [07:46:30]req_shift_opened [07:46:30]FM_GetShiftState [07:46:30]SAM_PROTO_GetShiftState [07:46:30]wFMCommunicate request_size=4 [07:46:30]MH_SAM_APDU [07:46:30]CAPDU: 80 13 01 00 [07:46:30]Write to MH i2c: E2 08 00 35 08 80 13 01 00 00 00 00 00 BA [07:46:30]Write i2c OK [07:46:30]MH_I2C_Read... [07:46:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:46:30]Read from MH i2c: E2 [07:46:30]MH_I2C_Read... [07:46:30]Read from MH i2c: E2 0E 00 [07:46:30]MH_I2C_Read... [07:46:30]Read from MH i2c: E2 0E 00 35 08 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 56 [07:46:30]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [07:46:30]wFMCommunicate OK [07:46:30]SAM_PROTO_GetShiftState done [07:46:30]FM_GetShiftState done [07:46:30]req_shift_opened done [07:46:30]requested_item shift.open_date is exist - process it [07:46:30]req_shift_open_date [07:46:30]req_shift_open_date done [07:46:30]produce_requested_data done [07:46:30]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41833,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [07:46:30]process_action_free close_receipt [07:46:30]json_value_free [07:46:30]json_value_free done [07:46:30]process_json_proto returns [07:46:30]Send response to host [07:46:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41833,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [07:46:30]free response buf [07:46:30]execute_script done [07:46:30]execute_script returns [07:46:30]free content buf [07:46:30]Sock 8.Close socket [07:46:30]Sock 8.Thread stoped [07:46:33]recv_with_timeout no data received [07:46:54]Connected sock=11 [07:46:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 23 01 00 00 3D A6 1B 01 DD D2 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 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 D5 48 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 69 A3 00 00 35 04 06 00 49 CA 7F DB 5A F7 97 C4 4F 75 31 72 87 88 [07:46:59]recv_with_timeout no data received [07:46:59]CommunicateWithHost answer receiving error [07:46:59]CommunicateWithHost err = -3 [07:46:59]OFD Sender: Server communicate error [07:47:03]recv_with_timeout no data received [07:47:04]OFD Sender: Processing packet 41833 [packets to send 57, broken 56] [07:47:04]ProducePacketName [07:47:04]name=ofd_packets/00041833 [07:47:04]OFD Sender: To server: pG, [07:47:04]CommunicateWithHost lk.salyk.kg:30040 [07:47:04]ConnectInit lk.salyk.kg [07:47:09]ConnectInit Can't take IP for lk.salyk.kg [07:47:09]CommunicateWithHost connect error [07:47:09]CommunicateWithHost err = -1 [07:47:09]OFD Sender: Server communicate error [07:47:14]OFD Sender: Processing packet 41833 [packets to send 57, broken 56] [07:47:14]ProducePacketName [07:47:14]name=ofd_packets/00041833 [07:47:14]OFD Sender: To server: pG, [07:47:14]CommunicateWithHost lk.salyk.kg:30040 [07:47:14]ConnectInit lk.salyk.kg [07:47:17]Connected sock=8 [07:47: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 35 38 23 01 00 00 3D A6 1B 01 DD D2 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 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 D5 48 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 69 A3 00 00 35 04 06 00 49 CA 7F DB 5A F7 97 C4 4F 75 31 72 87 88 [07:47: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 35 38 4F 00 00 00 2E 96 47 00 65 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 35 38 10 04 04 00 69 A3 00 00 F4 03 04 00 18 F5 A6 66 B6 04 01 00 00 A8 71 88 7B 69 5F 6D F3 [07:47:18]CommunicateWithHost err = 0 [07:47:18]CheckOFDResponse [07:47:18]1017 (14) - 77093643461234 [07:47:18]1041 (16) - 0000000000874958 [07:47:18]1040 (4) - 41833 [07:47:18]1012 (4) - 29.07.2024 01:49 [07:47:18]1206 (1) - 0 [07:47:18]OFD Sender: Remove packet 41833 [07:47:18]ProducePacketName [07:47:18]name=ofd_packets/00041833 [07:47:18]NVStorageDeleteData [07:47:18]OFD Sender: No OFD packet to send [07:47:23]OFD Sender: No OFD packet to send [07:47:28]recv_with_timeout no data received [07:47:28]OFD Sender: No OFD packet to send [07:47:33]OFD Sender: No OFD packet to send [07:47:38]OFD Sender: No OFD packet to send [07:47:43]OFD Sender: No OFD packet to send [07:47:48]OFD Sender: No OFD packet to send [07:47:53]OFD Sender: No OFD packet to send [07:47:58]OFD Sender: No OFD packet to send [07:48:03]OFD Sender: No OFD packet to send [07:48:08]OFD Sender: No OFD packet to send [07:48:13]OFD Sender: No OFD packet to send [07:48:18]OFD Sender: No OFD packet to send [07:48:23]OFD Sender: No OFD packet to send [07:48:28]OFD Sender: No OFD packet to send [07:48:33]OFD Sender: No OFD packet to send [07:48:38]OFD Sender: No OFD packet to send [07:48:43]OFD Sender: No OFD packet to send [07:48:46]accept exits with 9 [07:48:46]New connection [07:48:46]New thread 3066887524 created [07:48:46]Thread 3067030884 joined [07:48:46]Waiting for new connection... [07:48:46] Sock 9.Parse request [07:48:46]Sock 9.Check first char [07:48:46]Sock 9.First char is OK [07:48:46]request: POST /json_proto HTTP/1.0 [07:48:46]Method: POST [07:48:46]URL: /json_proto [07:48:46]Method is POST - this is cgi request [07:48:46]url: /json_proto [07:48:46]query_string will be loaded in cgi processing [07:48:46]execute_cgi json_proto POST (null) [07:48:46]execute_cgi path=json_proto method=POST [07:48:46]POST find Content-Length [07:48:46]Host: 172.17.43.132:8080 [07:48:46]Content-Length: 748 [07:48:46]Content-Type: application/json [07:48:46] [07:48:46]POST finish read [07:48:46]Found Content-Length = 748 [07:48:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183862", "tax_sys" : 0, "items" : [ { "code": "4700003730039", "name": "\u0421\u043D\u0435\u043A \u0412\u043E\u0437\u0434 \u043F\u0448\u0435\u043D\u0438\u0446\u0430 \u0411\u0430\u0434\u044B\u0440\u0430\u043A \u0441\u043B\u0430\u0434\u043A\u0430\u044F 30\u0433\u0440", "price" : 20.00, "quantity" : 1.000, "sum" : 20.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 20.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:48:46]execute_script... [07:48: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 : (3)183862", "tax_sys" : 0, "items" : [ { "code": "4700003730039", "name": "\u0421\u043D\u0435\u043A \u0412\u043E\u0437\u0434 \u043F\u0448\u0435\u043D\u0438\u0446\u0430 \u0411\u0430\u0434\u044B\u0440\u0430\u043A \u0441\u043B\u0430\u0434\u043A\u0430\u044F 30\u0433\u0440", "price" : 20.00, "quantity" : 1.000, "sum" : 20.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 20.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:48:46]POST & json_proto [07:48:46]process_json_proto [07:48:46]json parsed OK: [07:48:46]protocol is kg_v1.0 [07:48:46]action value=close_receipt [07:48:46]process_action close_receipt [07:48:46]cmd_close_receipt [07:48:46]MH_GetDate [07:48:46]Write to MH i2c: F0 00 00 36 08 2D [07:48:46]Write i2c OK [07:48:46]MH_I2C_Read... [07:48:46]Read from MH i2c: F0 [07:48:46]MH_I2C_Read... [07:48:46]Read from MH i2c: F0 09 00 [07:48:46]MH_I2C_Read... [07:48:46]Read from MH i2c: F0 09 00 36 08 00 61 49 A7 66 AA D0 A5 66 72 [07:48:46]GetLastDocTimeStamp 1722239189 [07:48:46]current date 1722239329 [07:48:46]FM_GetShiftState [07:48:46]SAM_PROTO_GetShiftState [07:48:46]wFMCommunicate request_size=4 [07:48:46]MH_SAM_APDU [07:48:46]CAPDU: 80 13 01 00 [07:48:46]Write to MH i2c: E2 08 00 37 08 80 13 01 00 00 00 00 00 BC [07:48:46]Write i2c OK [07:48:46]MH_I2C_Read... [07:48:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:48:46]Read from MH i2c: E2 [07:48:46]MH_I2C_Read... [07:48:46]Read from MH i2c: E2 0E 00 [07:48:46]MH_I2C_Read... [07:48:46]Read from MH i2c: E2 0E 00 37 08 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 58 [07:48:46]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [07:48:46]wFMCommunicate OK [07:48:46]SAM_PROTO_GetShiftState done [07:48:46]FM_GetShiftState done [07:48:46]opened in 1722211496 [07:48:46]opened+sec_in_day 1722297896 [07:48:46]quantity*price = 2000 [07:48:46]sum+1 = 2001 [07:48:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 20.00 НСП 1% : 0.18 НДС 12% : 2.12 Наличными: 20.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 23 29.07.2024 07:48 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41834 ФПД: 148193409368427 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T074849&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41834&fm=148193409368427&tin=02508201610067®Number=0000000000092626&sum=2000 0 [07:48:48]StoreToDocumentArchive [07:48:48]shift 427 fd 41834 [07:48:48]save to /storage/0427/doc_00041834 [07:48:48]save last doc name /storage/0427/doc_00041834 to /storage/kkm_last_doc_name [07:48:48]save OK [07:48:48]Clear old archive folders... [07:48:48]ProcessDocumentItem done err = 0, tmpTLVsize=311 [07:48:48]tlvbuf is 013D7BF0 [07:48:48]SAM_PROTO_ClearQueue [07:48:48]wFMCommunicate request_size=4 [07:48:48]MH_SAM_APDU [07:48:48]CAPDU: 80 09 00 00 [07:48:48]Write to MH i2c: E2 08 00 44 08 80 09 00 00 00 00 00 00 BE [07:48:48]Write i2c OK [07:48:48]MH_I2C_Read... [07:48:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:48:48]Read from MH i2c: E2 [07:48:48]MH_I2C_Read... [07:48:48]Read from MH i2c: E2 03 00 [07:48:48]MH_I2C_Read... [07:48:48]Read from MH i2c: E2 03 00 44 08 00 90 00 C0 [07:48:48]RAPDU: 90 00 [07:48:48]wFMCommunicate OK [07:48:48]SAM_PROTO_ClearQueue done [07:48:48]KKMCreateOFDPacket [07:48:48]OFDProtocolAddRootSTLVToBuf [07:48:48]FM_MakeSignedData [07:48:48]FM_MakeSignedData [07:48:48]SAM_PROTO_SignData [07:48:48]wFMCommunicate request_size=4 [07:48:48]MH_SAM_APDU [07:48:48]CAPDU: 80 0D 01 02 [07:48:48]Write to MH i2c: E2 08 00 45 08 80 0D 01 02 00 00 00 00 C6 [07:48:48]Write i2c OK [07:48:48]MH_I2C_Read... [07:48:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:48:48]Read from MH i2c: E2 [07:48:48]MH_I2C_Read... [07:48:48]Read from MH i2c: E2 03 00 [07:48:48]MH_I2C_Read... [07:48:48]Read from MH i2c: E2 03 00 45 08 00 90 00 C1 [07:48:48]RAPDU: 90 00 [07:48:48]wFMCommunicate OK [07:48:48]wFMCommunicate request_size=255 [07:48:48]MH_SAM_APDU [07:48:48]CAPDU: 80 0D 02 02 FA 03 00 37 01 1E 04 01 00 01 23 04 89 00 8A 04 0D 00 34 37 30 30 30 30 33 37 33 30 30 33 39 06 04 45 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 92 D0 BE D0 B7 D0 B4 20 D0 BF D1 88 D0 B5 D0 BD D0 B8 D1 86 D0 B0 20 D0 91 D0 B0 D0 B4 D1 8B D1 80 D0 B0 D0 BA 20 D1 81 D0 BB D0 B0 D0 B4 D0 BA D0 B0 D1 8F 20 33 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 07 00 00 00 00 13 04 06 00 D0 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 07 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 00 00 00 00 00 07 04 06 00 D0 07 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 61 49 A7 66 0E 04 04 00 AB 01 [07:48:48]Write to MH i2c: E2 02 01 46 08 80 0D 02 02 FA 00 03 00 37 01 1E 04 01 00 01 23 04 89 00 8A 04 0D 00 34 37 30 30 30 30 33 37 33 30 30 33 39 06 04 45 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 92 D0 BE D0 B7 D0 B4 20 D0 BF D1 88 D0 B5 D0 BD D0 B8 D1 86 D0 B0 20 D0 91 D0 B0 D0 B4 D1 8B D1 80 D0 B0 D0 BA 20 D1 81 D0 BB D0 B0 D0 B4 D0 BA D0 B0 D1 8F 20 33 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 07 00 00 00 00 13 04 06 00 D0 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 07 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 00 00 00 00 00 07 04 06 00 D0 07 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 61 49 A7 66 0E 04 04 00 AB 01 00 00 5C [07:48:48]Write i2c OK [07:48:48]MH_I2C_Read... [07:48:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:48:48]Read from MH i2c: E2 [07:48:48]MH_I2C_Read... [07:48:48]Read from MH i2c: E2 03 00 [07:48:48]MH_I2C_Read... [07:48:48]Read from MH i2c: E2 03 00 46 08 00 90 00 C2 [07:48:48]RAPDU: 90 00 [07:48:48]wFMCommunicate OK [07:48:48]wFMCommunicate request_size=70 [07:48:48]MH_SAM_APDU [07:48:48]CAPDU: 80 0D 02 02 41 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 6A A3 00 00 35 04 06 00 86 C7 F7 86 01 6B [07:48:48]Write to MH i2c: E2 49 00 47 08 80 0D 02 02 41 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 6A A3 00 00 35 04 06 00 86 C7 F7 86 01 6B 00 00 2C [07:48:48]Write i2c OK [07:48:48]MH_I2C_Read... [07:48:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:48:48]Read from MH i2c: E2 [07:48:48]MH_I2C_Read... [07:48:48]Read from MH i2c: E2 03 00 [07:48:48]MH_I2C_Read... [07:48:48]Read from MH i2c: E2 03 00 47 08 00 90 00 C3 [07:48:48]RAPDU: 90 00 [07:48:48]wFMCommunicate OK [07:48:48]wFMCommunicate request_size=4 [07:48:48]MH_SAM_APDU [07:48:48]CAPDU: 80 0D 03 02 [07:48:48]Write to MH i2c: E2 08 00 48 08 80 0D 03 02 00 00 00 00 CB [07:48:48]Write i2c OK [07:48:48]MH_I2C_Read... [07:48:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:48:48]Read from MH i2c: E2 [07:48:48]MH_I2C_Read... [07:48:48]Read from MH i2c: E2 0B 00 [07:48:48]MH_I2C_Read... [07:48:48]Read from MH i2c: E2 0B 00 48 08 00 52 13 73 4B F4 4A 0F 7C 90 00 B8 [07:48:48]RAPDU: 52 13 73 4B F4 4A 0F 7C 90 00 [07:48:48]wFMCommunicate OK [07:48:48]SAM_PROTO_SignData done [07:48:48]FM_MakeSignedData done [07:48:48]CreateOFDProtocolMessage [07:48:48]wFMCommunicate request_size=4 [07:48:48]MH_SAM_APDU [07:48:48]CAPDU: 80 11 00 00 [07:48:48]Write to MH i2c: E2 08 00 49 08 80 11 00 00 00 00 00 00 CB [07:48:48]Write i2c OK [07:48:48]MH_I2C_Read... [07:48:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:48:48]Read from MH i2c: E2 [07:48:48]MH_I2C_Read... [07:48:48]Read from MH i2c: E2 17 00 [07:48:48]MH_I2C_Read... [07:48:48]Read from MH i2c: E2 17 00 49 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 27 [07:48:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [07:48:48]wFMCommunicate OK [07:48:48]CreateOFDProtocolMessage done [07:48:48]OFDSenderStorePacket 41834 [07:48:48]StoreOFDPacket docnum=41834 [07:48:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 4B 01 00 00 18 5F 43 01 14 04 5A 03 01 00 03 00 37 01 1E 04 01 00 01 23 04 89 00 8A 04 0D 00 34 37 30 30 30 30 33 37 33 30 30 33 39 06 04 45 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 92 D0 BE D0 B7 D0 B4 20 D0 BF D1 88 D0 B5 D0 BD D0 B8 D1 86 D0 B0 20 D0 91 D0 B0 D0 B4 D1 8B D1 80 D0 B0 D0 BA 20 D1 81 D0 BB D0 B0 D0 B4 D0 BA D0 B0 D1 8F 20 33 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 07 00 00 00 00 13 04 06 00 D0 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 07 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 00 00 00 00 00 07 04 06 00 D0 07 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 61 49 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 6A A3 00 00 35 04 06 00 86 C7 F7 86 01 6B 52 13 73 4B F4 4A 0F 7C [07:48:48]CheckFolder [07:48:48]dirname=/storage/ofd_packets [07:48:48]CheckFolder done [07:48:48]ProducePacketName [07:48:48]name=ofd_packets/00041834 [07:48:48]NVStorageSaveData ofd_packets/00041834 [07:48:48]File name is /storage/ofd_packets/00041834 [07:48:48]Write 361 bytes [07:48:48]NVStorageSaveData done [07:48:48]OFDSenderStorePacket done [07:48:48]KKMCreateOFDPacket done [07:48:48]NVStorageSaveData kkm_last_timestamp [07:48:48]File name is /storage/kkm_last_timestamp [07:48:48]Write 4 bytes [07:48:48]NVStorageSaveData done [07:48:48]ExternCall_PrintAddStr [07:48:48]wPrintStart [07:48:48]Write to MH i2c: 01 00 00 4A 08 52 [07:48:48]Write i2c OK [07:48:48]MH_I2C_Read... [07:48:48]Read from MH i2c: 01 [07:48:48]MH_I2C_Read... [07:48:48]Read from MH i2c: 01 07 00 [07:48:48]MH_I2C_Read... [07:48:48]Read from MH i2c: 01 07 00 4A 08 00 00 00 00 00 FF 0F 67 [07:48:48]RasterBufferAndPrint [07:48:48]line Счет N : (3)183862 [07:48:48]line ИНН: 02508201610067 [07:48:48]line Контрольно-Кассовый Чек [07:48:48]line ПРОДАЖА [07:48:48]line Товар: 4700003730039 [07:48:48]line Снек Возд пшеница Бадырак сладкая 30гр [07:48:48]line 1.000 * 20.00 [07:48:48]line = 20.00 [07:48:48]line НДС 12% НСП 1% [07:48:48]line > о реализуемом товаре [07:48:48]line ИТОГО: 20.00 [07:48:48]line НСП 1% : 0.18 [07:48:48]line НДС 12% : 2.12 [07:48:48]line Наличными: 20.00 [07:48:48]line Безнал.: 0.00 [07:48:48]line Место: АЗС № 97 "Партнер Нефть" [07:48:48]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [07:48:48]line СНО: Общий режим [07:48:48]line Чек 23 29.07.2024 07:48 [07:48:48]line Смена: 427 ФФД: 1.0 [07:48:48]line ЗНМ: 0300000053 [07:48:48]line РНМ: 0000000000092626 [07:48:48]line Версия ККМ: 001 [07:48:48]line ФМ: 0000000000874958 [07:48:48]line ФД: 41834 [07:48:48]line ФПД: 148193409368427 [07:48:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T074849&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41834&fm=148193409368427&tin=02508201610067®Number=0000000000092626&sum=2000 [07:48:49]OFD Sender: Processing packet 41834 [packets to send 57, broken 56] [07:48:49]ProducePacketName [07:48:49]name=ofd_packets/00041834 [07:48:49]OFD Sender: To server: pG, [07:48:49]CommunicateWithHost lk.salyk.kg:30040 [07:48:49]ConnectInit lk.salyk.kg [07:48:49]line 0 [07:48:49]written 0, free lines is 4095 [07:48:49]Write to MH i2c: 01 00 00 73 08 7B [07:48:49]Write i2c OK [07:48:49]MH_I2C_Read... [07:48:49]Read from MH i2c: 01 [07:48:49]MH_I2C_Read... [07:48:49]Read from MH i2c: 01 07 00 [07:48:49]MH_I2C_Read... [07:48:49]Read from MH i2c: 01 07 00 73 08 00 00 00 00 00 04 0D 93 [07:48:49]RasterBufferAndPrint [07:48:49]line [07:48:49]line [07:48:49]line [07:48:49]line [07:48:49]line [07:48:49]written 0, free lines is 3337 [07:48:49]Connected sock=10 [07:48: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 35 38 4B 01 00 00 18 5F 43 01 14 04 5A 03 01 00 03 00 37 01 1E 04 01 00 01 23 04 89 00 8A 04 0D 00 34 37 30 30 30 30 33 37 33 30 30 33 39 06 04 45 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 92 D0 BE D0 B7 D0 B4 20 D0 BF D1 88 D0 B5 D0 BD D0 B8 D1 86 D0 B0 20 D0 91 D0 B0 D0 B4 D1 8B D1 80 D0 B0 D0 BA 20 D1 81 D0 BB D0 B0 D0 B4 D0 BA D0 B0 D1 8F 20 33 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 07 00 00 00 00 13 04 06 00 D0 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 07 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 00 00 00 00 00 07 04 06 00 D0 07 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 61 49 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 6A A3 00 00 35 04 06 00 86 C7 F7 86 01 6B 52 13 73 4B F4 4A 0F 7C [07:48:49]MH_Cut [07:48:49]Write to MH i2c: D1 01 00 7A 08 01 54 [07:48:49]Write i2c OK [07:48:49]MH_I2C_Read... [07:48:49]Read from MH i2c: D1 [07:48:49]MH_I2C_Read... [07:48:49]Read from MH i2c: D1 01 00 [07:48:49]MH_I2C_Read... [07:48:49]Read from MH i2c: D1 01 00 7A 08 00 53 [07:48:49]Write to MH i2c: 01 00 00 7B 08 83 [07:48:49]Write i2c OK [07:48:49]MH_I2C_Read... [07:48: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 35 38 4F 00 00 00 0D 68 47 00 4E 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 35 38 10 04 04 00 6A A3 00 00 F4 03 04 00 73 F5 A6 66 B6 04 01 00 00 29 A5 77 16 BA BF A6 19 [07:48:50]CommunicateWithHost err = 0 [07:48:50]CheckOFDResponse [07:48:50]1017 (14) - 77093643461234 [07:48:50]1041 (16) - 0000000000874958 [07:48:50]1040 (4) - 41834 [07:48:50]1012 (4) - 29.07.2024 01:50 [07:48:50]1206 (1) - 0 [07:48:50]OFD Sender: Remove packet 41834 [07:48:50]ProducePacketName [07:48:50]name=ofd_packets/00041834 [07:48:50]NVStorageDeleteData [07:48:50]*** Cut start [07:48:50]*** Partial cut [07:48:50]*** CUTSNS_PIN = 1 [07:48:50]*** CUTSNS_PIN = 0 [07:48:50]*** Brake cut motor [07:48:50]OFD Sender: No OFD packet to send [07:48:50]Read from MH i2c: 01 [07:48:50]MH_I2C_Read... [07:48:50]*** Stop cut motor [07:48:50]*** Cut end [07:48:50]Read from MH i2c: 01 07 00 [07:48:50]MH_I2C_Read... [07:48:50]Read from MH i2c: 01 07 00 7B 08 00 00 00 00 00 FF 0F 98 [07:48:50]process_action close_receipt done [07:48:50]requested_data is exist [07:48:50]produce_requested_data [07:48:50]requested_item fm.sn is exist - process it [07:48:50]wFMCommunicate request_size=4 [07:48:50]MH_SAM_APDU [07:48:50]CAPDU: 80 11 00 00 [07:48:50]Write to MH i2c: E2 08 00 7C 08 80 11 00 00 00 00 00 00 FE [07:48:50]Write i2c OK [07:48:50]MH_I2C_Read... [07:48:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:48:50]Read from MH i2c: E2 [07:48:50]MH_I2C_Read... [07:48:50]Read from MH i2c: E2 17 00 [07:48:50]MH_I2C_Read... [07:48:50]Read from MH i2c: E2 17 00 7C 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 5A [07:48:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [07:48:50]wFMCommunicate OK [07:48:50]requested_item fd.num is exist - process it [07:48:50]SAM_PROTO_GetFieldsCounters [07:48:50]wFMCommunicate request_size=4 [07:48:50]MH_SAM_APDU [07:48:50]CAPDU: 80 13 00 00 [07:48:50]Write to MH i2c: E2 08 00 7D 08 80 13 00 00 00 00 00 00 01 [07:48:50]Write i2c OK [07:48:50]MH_I2C_Read... [07:48:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:48:51]Read from MH i2c: E2 [07:48:51]MH_I2C_Read... [07:48:51]Read from MH i2c: E2 62 00 [07:48:51]MH_I2C_Read... [07:48:51]Read from MH i2c: E2 62 00 7D 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 6A A3 00 00 0E 04 04 00 AB 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 29 [07:48: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 6A A3 00 00 0E 04 04 00 AB 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 [07:48:51]wFMCommunicate OK [07:48:51]SAM_PROTO_GetFieldsCounters done [07:48:51]requested_item shift.num is exist - process it [07:48:51]requested_item shift.opened is exist - process it [07:48:51]req_shift_opened [07:48:51]FM_GetShiftState [07:48:51]SAM_PROTO_GetShiftState [07:48:51]wFMCommunicate request_size=4 [07:48:51]MH_SAM_APDU [07:48:51]CAPDU: 80 13 01 00 [07:48:51]Write to MH i2c: E2 08 00 7E 08 80 13 01 00 00 00 00 00 03 [07:48:51]Write i2c OK [07:48:51]MH_I2C_Read... [07:48:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:48:51]Read from MH i2c: E2 [07:48:51]MH_I2C_Read... [07:48:51]Read from MH i2c: E2 0E 00 [07:48:51]MH_I2C_Read... [07:48:51]Read from MH i2c: E2 0E 00 7E 08 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 9F [07:48:51]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [07:48:51]wFMCommunicate OK [07:48:51]SAM_PROTO_GetShiftState done [07:48:51]FM_GetShiftState done [07:48:51]req_shift_opened done [07:48:51]requested_item shift.open_date is exist - process it [07:48:51]req_shift_open_date [07:48:51]req_shift_open_date done [07:48:51]produce_requested_data done [07:48:51]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41834,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [07:48:51]process_action_free close_receipt [07:48:51]json_value_free [07:48:51]json_value_free done [07:48:51]process_json_proto returns [07:48:51]Send response to host [07:48:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41834,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [07:48:51]free response buf [07:48:51]execute_script done [07:48:51]execute_script returns [07:48:51]free content buf [07:48:51]Sock 9.Close socket [07:48:51]Sock 9.Thread stoped [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:07]accept exits with 8 [07:49:07]New connection [07:49:07]New thread 3067030884 created [07:49:07]Thread 3066887524 joined [07:49:07]Waiting for new connection... [07:49:07] Sock 8.Parse request [07:49:07]Sock 8.Check first char [07:49:07]Sock 8.First char is OK [07:49:07]request: POST /json_proto HTTP/1.0 [07:49:07]Method: POST [07:49:07]URL: /json_proto [07:49:07]Method is POST - this is cgi request [07:49:07]url: /json_proto [07:49:07]query_string will be loaded in cgi processing [07:49:07]execute_cgi json_proto POST (null) [07:49:07]execute_cgi path=json_proto method=POST [07:49:07]POST find Content-Length [07:49:07]Host: 172.17.43.132:8080 [07:49:07]Content-Length: 585 [07:49:07]Content-Type: application/json [07:49:07] [07:49:07]POST finish read [07:49:07]Found Content-Length = 585 [07:49:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183863", "tax_sys" : 0, "items" : [ { "code": "50173808", "name": "\u0416\u0435\u0432 Orbit Sweet Mint", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:49:07]execute_script... [07:49: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 : (3)183863", "tax_sys" : 0, "items" : [ { "code": "50173808", "name": "\u0416\u0435\u0432 Orbit Sweet Mint", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:49:07]POST & json_proto [07:49:07]process_json_proto [07:49:07]json parsed OK: [07:49:07]protocol is kg_v1.0 [07:49:07]action value=close_receipt [07:49:07]process_action close_receipt [07:49:07]cmd_close_receipt [07:49:07]MH_GetDate [07:49:07]Write to MH i2c: F0 00 00 7F 08 76 [07:49:07]Write i2c OK [07:49:07]MH_I2C_Read... [07:49:07]Read from MH i2c: F0 [07:49:07]MH_I2C_Read... [07:49:07]Read from MH i2c: F0 09 00 [07:49:07]MH_I2C_Read... [07:49:07]Read from MH i2c: F0 09 00 7F 08 00 76 49 A7 66 AA D0 A5 66 D0 [07:49:07]GetLastDocTimeStamp 1722239329 [07:49:07]current date 1722239350 [07:49:07]FM_GetShiftState [07:49:07]SAM_PROTO_GetShiftState [07:49:07]wFMCommunicate request_size=4 [07:49:07]MH_SAM_APDU [07:49:07]CAPDU: 80 13 01 00 [07:49:07]Write to MH i2c: E2 08 00 80 08 80 13 01 00 00 00 00 00 05 [07:49:07]Write i2c OK [07:49:07]MH_I2C_Read... [07:49:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:49:07]Read from MH i2c: E2 [07:49:07]MH_I2C_Read... [07:49:07]Read from MH i2c: E2 0E 00 [07:49:07]MH_I2C_Read... [07:49:07]Read from MH i2c: E2 0E 00 80 08 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 A1 [07:49:07]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [07:49:07]wFMCommunicate OK [07:49:07]SAM_PROTO_GetShiftState done [07:49:07]FM_GetShiftState done [07:49:07]opened in 1722211496 [07:49:07]opened+sec_in_day 1722297896 [07:49:07]quantity*price = 4500 [07:49:07]sum+1 = 4501 [07:49:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 45.00 НСП 1% : 0.40 НДС 12% : 4.78 Наличными: 45.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 24 29.07.2024 07:49 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41835 ФПД: 163351501733070 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T074910&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41835&fm=163351501733070&tin=02508201610067®Number=0000000000092626&sum=4500 0 [07:49:09]StoreToDocumentArchive [07:49:09]shift 427 fd 41835 [07:49:09]save to /storage/0427/doc_00041835 [07:49:09]save last doc name /storage/0427/doc_00041835 to /storage/kkm_last_doc_name [07:49:09]save OK [07:49:09]Clear old archive folders... [07:49:09]ProcessDocumentItem done err = 0, tmpTLVsize=260 [07:49:09]tlvbuf is 013EEE90 [07:49:09]SAM_PROTO_ClearQueue [07:49:09]wFMCommunicate request_size=4 [07:49:09]MH_SAM_APDU [07:49:09]CAPDU: 80 09 00 00 [07:49:09]Write to MH i2c: E2 08 00 8D 08 80 09 00 00 00 00 00 00 07 [07:49:09]Write i2c OK [07:49:09]MH_I2C_Read... [07:49:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:49:09]Read from MH i2c: E2 [07:49:09]MH_I2C_Read... [07:49:09]Read from MH i2c: E2 03 00 [07:49:09]MH_I2C_Read... [07:49:09]Read from MH i2c: E2 03 00 8D 08 00 90 00 09 [07:49:09]RAPDU: 90 00 [07:49:09]wFMCommunicate OK [07:49:09]SAM_PROTO_ClearQueue done [07:49:09]KKMCreateOFDPacket [07:49:09]OFDProtocolAddRootSTLVToBuf [07:49:09]FM_MakeSignedData [07:49:09]FM_MakeSignedData [07:49:09]SAM_PROTO_SignData [07:49:09]wFMCommunicate request_size=4 [07:49:09]MH_SAM_APDU [07:49:09]CAPDU: 80 0D 01 02 [07:49:09]Write to MH i2c: E2 08 00 8E 08 80 0D 01 02 00 00 00 00 0F [07:49:09]Write i2c OK [07:49:09]MH_I2C_Read... [07:49:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:49:09]Read from MH i2c: E2 [07:49:09]MH_I2C_Read... [07:49:09]Read from MH i2c: E2 03 00 [07:49:09]MH_I2C_Read... [07:49:09]Read from MH i2c: E2 03 00 8E 08 00 90 00 0A [07:49:09]RAPDU: 90 00 [07:49:09]wFMCommunicate OK [07:49:09]wFMCommunicate request_size=255 [07:49:09]MH_SAM_APDU [07:49:09]CAPDU: 80 0D 02 02 FA 03 00 04 01 1E 04 01 00 01 23 04 56 00 8A 04 08 00 35 30 31 37 33 38 30 38 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 53 77 65 65 74 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 76 49 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 [07:49:09]Write to MH i2c: E2 02 01 8F 08 80 0D 02 02 FA 00 03 00 04 01 1E 04 01 00 01 23 04 56 00 8A 04 08 00 35 30 31 37 33 38 30 38 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 53 77 65 65 74 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 76 49 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 00 00 B4 [07:49:09]Write i2c OK [07:49:09]MH_I2C_Read... [07:49:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:49:09]Read from MH i2c: E2 [07:49:09]MH_I2C_Read... [07:49:09]Read from MH i2c: E2 03 00 [07:49:09]MH_I2C_Read... [07:49:09]Read from MH i2c: E2 03 00 8F 08 00 90 00 0B [07:49:09]RAPDU: 90 00 [07:49:09]wFMCommunicate OK [07:49:09]wFMCommunicate request_size=19 [07:49:09]MH_SAM_APDU [07:49:09]CAPDU: 80 0D 02 02 0E 6B A3 00 00 35 04 06 00 94 91 3C 3B FC CE [07:49:09]Write to MH i2c: E2 16 00 90 08 80 0D 02 02 0E 00 6B A3 00 00 35 04 06 00 94 91 3C 3B FC CE 00 00 E1 [07:49:09]Write i2c OK [07:49:09]MH_I2C_Read... [07:49:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:49:09]Read from MH i2c: E2 [07:49:09]MH_I2C_Read... [07:49:09]Read from MH i2c: E2 03 00 [07:49:09]MH_I2C_Read... [07:49:09]Read from MH i2c: E2 03 00 90 08 00 90 00 0C [07:49:09]RAPDU: 90 00 [07:49:09]wFMCommunicate OK [07:49:09]wFMCommunicate request_size=4 [07:49:09]MH_SAM_APDU [07:49:09]CAPDU: 80 0D 03 02 [07:49:09]Write to MH i2c: E2 08 00 91 08 80 0D 03 02 00 00 00 00 14 [07:49:09]Write i2c OK [07:49:09]MH_I2C_Read... [07:49:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:49:09]Read from MH i2c: E2 [07:49:09]MH_I2C_Read... [07:49:09]Read from MH i2c: E2 0B 00 [07:49:09]MH_I2C_Read... [07:49:09]Read from MH i2c: E2 0B 00 91 08 00 8E 3C 5A BC 19 7E 39 4C 90 00 11 [07:49:09]RAPDU: 8E 3C 5A BC 19 7E 39 4C 90 00 [07:49:09]wFMCommunicate OK [07:49:09]SAM_PROTO_SignData done [07:49:09]FM_MakeSignedData done [07:49:09]CreateOFDProtocolMessage [07:49:09]wFMCommunicate request_size=4 [07:49:09]MH_SAM_APDU [07:49:09]CAPDU: 80 11 00 00 [07:49:09]Write to MH i2c: E2 08 00 92 08 80 11 00 00 00 00 00 00 14 [07:49:09]Write i2c OK [07:49:09]MH_I2C_Read... [07:49:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:49:09]Read from MH i2c: E2 [07:49:09]MH_I2C_Read... [07:49:09]Read from MH i2c: E2 17 00 [07:49:09]MH_I2C_Read... [07:49:09]Read from MH i2c: E2 17 00 92 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 70 [07:49:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [07:49:09]wFMCommunicate OK [07:49:09]CreateOFDProtocolMessage done [07:49:09]OFDSenderStorePacket 41835 [07:49:09]StoreOFDPacket docnum=41835 [07:49:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 18 01 00 00 B7 27 10 01 3B 4E 5A 03 01 00 03 00 04 01 1E 04 01 00 01 23 04 56 00 8A 04 08 00 35 30 31 37 33 38 30 38 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 53 77 65 65 74 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 76 49 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 6B A3 00 00 35 04 06 00 94 91 3C 3B FC CE 8E 3C 5A BC 19 7E 39 4C [07:49:09]CheckFolder [07:49:09]dirname=/storage/ofd_packets [07:49:09]CheckFolder done [07:49:09]ProducePacketName [07:49:09]name=ofd_packets/00041835 [07:49:09]NVStorageSaveData ofd_packets/00041835 [07:49:09]File name is /storage/ofd_packets/00041835 [07:49:09]Write 310 bytes [07:49:09]NVStorageSaveData done [07:49:09]OFDSenderStorePacket done [07:49:09]KKMCreateOFDPacket done [07:49:09]NVStorageSaveData kkm_last_timestamp [07:49:09]File name is /storage/kkm_last_timestamp [07:49:09]Write 4 bytes [07:49:09]NVStorageSaveData done [07:49:09]ExternCall_PrintAddStr [07:49:09]wPrintStart [07:49:09]Write to MH i2c: 01 00 00 93 08 9B [07:49:09]Write i2c OK [07:49:09]MH_I2C_Read... [07:49:09]Read from MH i2c: 01 [07:49:09]MH_I2C_Read... [07:49:09]Read from MH i2c: 01 07 00 [07:49:09]MH_I2C_Read... [07:49:09]Read from MH i2c: 01 07 00 93 08 00 00 00 00 00 FF 0F B0 [07:49:09]RasterBufferAndPrint [07:49:09]line Счет N : (3)183863 [07:49:09]line ИНН: 02508201610067 [07:49:09]line Контрольно-Кассовый Чек [07:49:09]line ПРОДАЖА [07:49:09]line Товар: 50173808 [07:49:09]line Жев Orbit Sweet Mint [07:49:09]line 1.000 * 45.00 [07:49:09]line = 45.00 [07:49:09]line НДС 12% НСП 1% [07:49:09]line > о реализуемом товаре [07:49:09]line ИТОГО: 45.00 [07:49:09]line НСП 1% : 0.40 [07:49:09]line НДС 12% : 4.78 [07:49:09]line Наличными: 45.00 [07:49:09]line Безнал.: 0.00 [07:49:09]line Место: АЗС № 97 "Партнер Нефть" [07:49:09]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [07:49:09]line СНО: Общий режим [07:49:09]line Чек 24 29.07.2024 07:49 [07:49:09]line Смена: 427 ФФД: 1.0 [07:49:09]line ЗНМ: 0300000053 [07:49:09]line РНМ: 0000000000092626 [07:49:09]line Версия ККМ: 001 [07:49:09]line ФМ: 0000000000874958 [07:49:09]line ФД: 41835 [07:49:09]line ФПД: 163351501733070 [07:49:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T074910&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41835&fm=163351501733070&tin=02508201610067®Number=0000000000092626&sum=4500 [07:49:09]line 0 [07:49:09]written 0, free lines is 4095 [07:49:09]OFD Sender: Processing packet 41835 [packets to send 57, broken 56] [07:49:09]ProducePacketName [07:49:09]name=ofd_packets/00041835 [07:49:09]OFD Sender: To server: pG, [07:49:09]CommunicateWithHost lk.salyk.kg:30040 [07:49:09]ConnectInit lk.salyk.kg [07:49:10]Write to MH i2c: 01 00 00 BB 08 C3 [07:49:10]Write i2c OK [07:49:10]MH_I2C_Read... [07:49:10]Read from MH i2c: 01 [07:49:10]MH_I2C_Read... [07:49:10]Read from MH i2c: 01 07 00 [07:49:10]MH_I2C_Read... [07:49:10]Read from MH i2c: 01 07 00 BB 08 00 00 00 00 00 07 0D DE [07:49:10]RasterBufferAndPrint [07:49:10]line [07:49:10]line [07:49:10]line [07:49:10]line [07:49:10]line [07:49:10]written 0, free lines is 3344 [07:49:10]MH_Cut [07:49:10]Write to MH i2c: D1 01 00 C2 08 01 9C [07:49:10]Write i2c OK [07:49:10]MH_I2C_Read... [07:49:10]Read from MH i2c: D1 [07:49:10]MH_I2C_Read... [07:49:10]Read from MH i2c: D1 01 00 [07:49:10]MH_I2C_Read... [07:49:10]Read from MH i2c: D1 01 00 C2 08 00 9B [07:49:10]Write to MH i2c: 01 00 00 C3 08 CB [07:49:10]Write i2c OK [07:49:10]MH_I2C_Read... [07:49:10]*** Cut start [07:49:10]*** Partial cut [07:49:10]*** CUTSNS_PIN = 1 [07:49:10]*** CUTSNS_PIN = 0 [07:49:11]*** Brake cut motor [07:49:11]Read from MH i2c: 01 [07:49:11]MH_I2C_Read... [07:49:11]*** Stop cut motor [07:49:11]*** Cut end [07:49:11]Read from MH i2c: 01 07 00 [07:49:11]MH_I2C_Read... [07:49:11]Read from MH i2c: 01 07 00 C3 08 00 00 00 00 00 FF 0F E0 [07:49:11]process_action close_receipt done [07:49:11]requested_data is exist [07:49:11]produce_requested_data [07:49:11]requested_item fm.sn is exist - process it [07:49:11]wFMCommunicate request_size=4 [07:49:11]MH_SAM_APDU [07:49:11]CAPDU: 80 11 00 00 [07:49:11]Write to MH i2c: E2 08 00 C4 08 80 11 00 00 00 00 00 00 46 [07:49:11]Write i2c OK [07:49:11]MH_I2C_Read... [07:49:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:49:11]Read from MH i2c: E2 [07:49:11]MH_I2C_Read... [07:49:11]Read from MH i2c: E2 17 00 [07:49:11]MH_I2C_Read... [07:49:11]Read from MH i2c: E2 17 00 C4 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 A2 [07:49:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [07:49:11]wFMCommunicate OK [07:49:11]requested_item fd.num is exist - process it [07:49:11]SAM_PROTO_GetFieldsCounters [07:49:11]wFMCommunicate request_size=4 [07:49:11]MH_SAM_APDU [07:49:11]CAPDU: 80 13 00 00 [07:49:11]Write to MH i2c: E2 08 00 C5 08 80 13 00 00 00 00 00 00 49 [07:49:11]Write i2c OK [07:49:11]MH_I2C_Read... [07:49:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:49:11]Read from MH i2c: E2 [07:49:11]MH_I2C_Read... [07:49:11]Read from MH i2c: E2 62 00 [07:49:11]MH_I2C_Read... [07:49:11]Read from MH i2c: E2 62 00 C5 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 6B A3 00 00 0E 04 04 00 AB 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 75 [07:49: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 6B A3 00 00 0E 04 04 00 AB 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 [07:49:11]wFMCommunicate OK [07:49:11]SAM_PROTO_GetFieldsCounters done [07:49:11]requested_item shift.num is exist - process it [07:49:11]requested_item shift.opened is exist - process it [07:49:11]req_shift_opened [07:49:11]FM_GetShiftState [07:49:11]SAM_PROTO_GetShiftState [07:49:11]wFMCommunicate request_size=4 [07:49:11]MH_SAM_APDU [07:49:11]CAPDU: 80 13 01 00 [07:49:11]Write to MH i2c: E2 08 00 C6 08 80 13 01 00 00 00 00 00 4B [07:49:11]Write i2c OK [07:49:11]MH_I2C_Read... [07:49:11]recv_with_timeout no data received [07:49:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:49:11]Read from MH i2c: E2 [07:49:11]MH_I2C_Read... [07:49:11]Read from MH i2c: E2 0E 00 [07:49:11]MH_I2C_Read... [07:49:11]Read from MH i2c: E2 0E 00 C6 08 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 E7 [07:49:11]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [07:49:11]wFMCommunicate OK [07:49:11]SAM_PROTO_GetShiftState done [07:49:11]FM_GetShiftState done [07:49:11]req_shift_opened done [07:49:11]requested_item shift.open_date is exist - process it [07:49:11]req_shift_open_date [07:49:11]req_shift_open_date done [07:49:11]produce_requested_data done [07:49:11]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41835,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [07:49:11]process_action_free close_receipt [07:49:11]json_value_free [07:49:11]json_value_free done [07:49:11]process_json_proto returns [07:49:11]Send response to host [07:49:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41835,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [07:49:11]free response buf [07:49:11]execute_script done [07:49:11]execute_script returns [07:49:11]free content buf [07:49:11]Sock 8.Close socket [07:49:11]Sock 8.Thread stoped [07:49:16]Connected sock=11 [07:49: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 35 38 18 01 00 00 B7 27 10 01 3B 4E 5A 03 01 00 03 00 04 01 1E 04 01 00 01 23 04 56 00 8A 04 08 00 35 30 31 37 33 38 30 38 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 53 77 65 65 74 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 76 49 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 6B A3 00 00 35 04 06 00 94 91 3C 3B FC CE 8E 3C 5A BC 19 7E 39 4C [07:49: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 35 38 4F 00 00 00 C7 C2 47 00 31 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 35 38 10 04 04 00 6B A3 00 00 F4 03 04 00 8E F5 A6 66 B6 04 01 00 00 01 60 F8 11 53 31 F2 6A [07:49:16]CommunicateWithHost err = 0 [07:49:16]CheckOFDResponse [07:49:16]1017 (14) - 77093643461234 [07:49:16]1041 (16) - 0000000000874958 [07:49:16]1040 (4) - 41835 [07:49:16]1012 (4) - 29.07.2024 01:51 [07:49:16]1206 (1) - 0 [07:49:16]OFD Sender: Remove packet 41835 [07:49:16]ProducePacketName [07:49:16]name=ofd_packets/00041835 [07:49:16]NVStorageDeleteData [07:49:17]OFD Sender: No OFD packet to send [07:49:22]OFD Sender: No OFD packet to send [07:49:27]OFD Sender: No OFD packet to send [07:49:32]OFD Sender: No OFD packet to send [07:49:37]OFD Sender: No OFD packet to send [07:49:42]OFD Sender: No OFD packet to send [07:49:47]OFD Sender: No OFD packet to send [07:49:52]OFD Sender: No OFD packet to send [07:49:57]OFD Sender: No OFD packet to send [07:50:02]OFD Sender: No OFD packet to send [07:50:07]OFD Sender: No OFD packet to send [07:50:12]OFD Sender: No OFD packet to send [07:50:17]OFD Sender: No OFD packet to send [07:50:22]OFD Sender: No OFD packet to send [07:50:27]OFD Sender: No OFD packet to send [07:50:28]recv_with_timeout no data received [07:50:32]OFD Sender: No OFD packet to send [07:50:37]OFD Sender: No OFD packet to send [07:50:42]OFD Sender: No OFD packet to send [07:50:47]OFD Sender: No OFD packet to send [07:50:52]OFD Sender: No OFD packet to send [07:50:57]OFD Sender: No OFD packet to send [07:50:58]accept exits with 10 [07:50:58]New connection [07:50:58]New thread 3066887524 created [07:50:58]Thread 3067030884 joined [07:50:58]Waiting for new connection... [07:50:58] Sock 10.Parse request [07:50:58]Sock 10.Check first char [07:50:58]Sock 10.First char is OK [07:50:58]request: POST /json_proto HTTP/1.0 [07:50:58]Method: POST [07:50:58]URL: /json_proto [07:50:58]Method is POST - this is cgi request [07:50:58]url: /json_proto [07:50:58]query_string will be loaded in cgi processing [07:50:58]execute_cgi json_proto POST (null) [07:50:58]execute_cgi path=json_proto method=POST [07:50:58]POST find Content-Length [07:50:58]Host: 172.17.43.132:8080 [07:50:58]Content-Length: 723 [07:50:58]Content-Type: application/json [07:50:58] [07:50:58]POST finish read [07:50:58]Found Content-Length = 723 [07:50:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183864", "tax_sys" : 0, "items" : [ { "code": "4870202521193", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041CAXI \u0447\u0435\u0440 \u0447\u0430\u0439 \u043B\u0435\u0441\u043D\u044B\u0435 \u044F\u0433\u043E\u0434\u044B 0,4\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:50:58]execute_script... [07:50:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183864", "tax_sys" : 0, "items" : [ { "code": "4870202521193", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041CAXI \u0447\u0435\u0440 \u0447\u0430\u0439 \u043B\u0435\u0441\u043D\u044B\u0435 \u044F\u0433\u043E\u0434\u044B 0,4\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:50:58]POST & json_proto [07:50:58]process_json_proto [07:50:58]json parsed OK: [07:50:58]protocol is kg_v1.0 [07:50:58]action value=close_receipt [07:50:58]process_action close_receipt [07:50:58]cmd_close_receipt [07:50:58]MH_GetDate [07:50:58]Write to MH i2c: F0 00 00 C7 08 BE [07:50:58]Write i2c OK [07:50:58]MH_I2C_Read... [07:50:58]Read from MH i2c: F0 [07:50:58]MH_I2C_Read... [07:50:58]Read from MH i2c: F0 09 00 [07:50:58]MH_I2C_Read... [07:50:58]Read from MH i2c: F0 09 00 C7 08 00 E5 49 A7 66 AA D0 A5 66 87 [07:50:58]GetLastDocTimeStamp 1722239350 [07:50:58]current date 1722239461 [07:50:58]FM_GetShiftState [07:50:58]SAM_PROTO_GetShiftState [07:50:58]wFMCommunicate request_size=4 [07:50:58]MH_SAM_APDU [07:50:58]CAPDU: 80 13 01 00 [07:50:58]Write to MH i2c: E2 08 00 C8 08 80 13 01 00 00 00 00 00 4D [07:50:58]Write i2c OK [07:50:58]MH_I2C_Read... [07:50:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:50:58]Read from MH i2c: E2 [07:50:58]MH_I2C_Read... [07:50:58]Read from MH i2c: E2 0E 00 [07:50:58]MH_I2C_Read... [07:50:58]Read from MH i2c: E2 0E 00 C8 08 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 E9 [07:50:58]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [07:50:58]wFMCommunicate OK [07:50:58]SAM_PROTO_GetShiftState done [07:50:58]FM_GetShiftState done [07:50:58]opened in 1722211496 [07:50:58]opened+sec_in_day 1722297896 [07:50:58]quantity*price = 7000 [07:50:58]sum+1 = 7001 [07:50:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 70.00 НСП 1% : 0.62 НДС 12% : 7.43 Наличными: 70.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 25 29.07.2024 07:51 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41836 ФПД: 174761411485945 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T075101&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41836&fm=174761411485945&tin=02508201610067®Number=0000000000092626&sum=7000 0 [07:50:59]StoreToDocumentArchive [07:50:59]shift 427 fd 41836 [07:50:59]save to /storage/0427/doc_00041836 [07:50:59]save last doc name /storage/0427/doc_00041836 to /storage/kkm_last_doc_name [07:50:59]save OK [07:50:59]Clear old archive folders... [07:50:59]ProcessDocumentItem done err = 0, tmpTLVsize=306 [07:50:59]tlvbuf is 013CEB50 [07:50:59]SAM_PROTO_ClearQueue [07:50:59]wFMCommunicate request_size=4 [07:50:59]MH_SAM_APDU [07:50:59]CAPDU: 80 09 00 00 [07:50:59]Write to MH i2c: E2 08 00 D5 08 80 09 00 00 00 00 00 00 4F [07:50:59]Write i2c OK [07:50:59]MH_I2C_Read... [07:50:59]Read from MH i2c: E2 [07:50:59]MH_I2C_Read... [07:50:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:50:59]Read from MH i2c: E2 03 00 [07:50:59]MH_I2C_Read... [07:50:59]Read from MH i2c: E2 03 00 D5 08 00 90 00 51 [07:50:59]RAPDU: 90 00 [07:50:59]wFMCommunicate OK [07:50:59]SAM_PROTO_ClearQueue done [07:50:59]KKMCreateOFDPacket [07:50:59]OFDProtocolAddRootSTLVToBuf [07:50:59]FM_MakeSignedData [07:50:59]FM_MakeSignedData [07:50:59]SAM_PROTO_SignData [07:50:59]wFMCommunicate request_size=4 [07:50:59]MH_SAM_APDU [07:50:59]CAPDU: 80 0D 01 02 [07:50:59]Write to MH i2c: E2 08 00 D6 08 80 0D 01 02 00 00 00 00 57 [07:50:59]Write i2c OK [07:50:59]MH_I2C_Read... [07:50:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:51:00]Read from MH i2c: E2 [07:51:00]MH_I2C_Read... [07:51:00]Read from MH i2c: E2 03 00 [07:51:00]MH_I2C_Read... [07:51:00]Read from MH i2c: E2 03 00 D6 08 00 90 00 52 [07:51:00]RAPDU: 90 00 [07:51:00]wFMCommunicate OK [07:51:00]wFMCommunicate request_size=255 [07:51:00]MH_SAM_APDU [07:51:00]CAPDU: 80 0D 02 02 FA 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 39 33 06 04 40 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9C 41 58 49 20 D1 87 D0 B5 D1 80 20 D1 87 D0 B0 D0 B9 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B 20 30 2C 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 E5 49 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 [07:51:00]Write to MH i2c: E2 02 01 D7 08 80 0D 02 02 FA 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 39 33 06 04 40 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9C 41 58 49 20 D1 87 D0 B5 D1 80 20 D1 87 D0 B0 D0 B9 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B 20 30 2C 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 E5 49 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 00 84 [07:51:00]Write i2c OK [07:51:00]MH_I2C_Read... [07:51:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:51:00]Read from MH i2c: E2 [07:51:00]MH_I2C_Read... [07:51:00]Read from MH i2c: E2 03 00 [07:51:00]MH_I2C_Read... [07:51:00]Read from MH i2c: E2 03 00 D7 08 00 90 00 53 [07:51:00]RAPDU: 90 00 [07:51:00]wFMCommunicate OK [07:51:00]wFMCommunicate request_size=65 [07:51:00]MH_SAM_APDU [07:51:00]CAPDU: 80 0D 02 02 3C 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 6C A3 00 00 35 04 06 00 9E F1 CF DA 20 F9 [07:51:00]Write to MH i2c: E2 44 00 D8 08 80 0D 02 02 3C 00 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 6C A3 00 00 35 04 06 00 9E F1 CF DA 20 F9 00 00 12 [07:51:00]Write i2c OK [07:51:00]MH_I2C_Read... [07:51:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:51:00]Read from MH i2c: E2 [07:51:00]MH_I2C_Read... [07:51:00]Read from MH i2c: E2 03 00 [07:51:00]MH_I2C_Read... [07:51:00]Read from MH i2c: E2 03 00 D8 08 00 90 00 54 [07:51:00]RAPDU: 90 00 [07:51:00]wFMCommunicate OK [07:51:00]wFMCommunicate request_size=4 [07:51:00]MH_SAM_APDU [07:51:00]CAPDU: 80 0D 03 02 [07:51:00]Write to MH i2c: E2 08 00 D9 08 80 0D 03 02 00 00 00 00 5C [07:51:00]Write i2c OK [07:51:00]MH_I2C_Read... [07:51:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:51:00]Read from MH i2c: E2 [07:51:00]MH_I2C_Read... [07:51:00]Read from MH i2c: E2 0B 00 [07:51:00]MH_I2C_Read... [07:51:00]Read from MH i2c: E2 0B 00 D9 08 00 5F DE 90 EB 9A D0 91 7C 90 00 8C [07:51:00]RAPDU: 5F DE 90 EB 9A D0 91 7C 90 00 [07:51:00]wFMCommunicate OK [07:51:00]SAM_PROTO_SignData done [07:51:00]FM_MakeSignedData done [07:51:00]CreateOFDProtocolMessage [07:51:00]wFMCommunicate request_size=4 [07:51:00]MH_SAM_APDU [07:51:00]CAPDU: 80 11 00 00 [07:51:00]Write to MH i2c: E2 08 00 DA 08 80 11 00 00 00 00 00 00 5C [07:51:00]Write i2c OK [07:51:00]MH_I2C_Read... [07:51:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:51:00]Read from MH i2c: E2 [07:51:00]MH_I2C_Read... [07:51:00]Read from MH i2c: E2 17 00 [07:51:00]MH_I2C_Read... [07:51:00]Read from MH i2c: E2 17 00 DA 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 B8 [07:51:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [07:51:00]wFMCommunicate OK [07:51:00]CreateOFDProtocolMessage done [07:51:00]OFDSenderStorePacket 41836 [07:51:00]StoreOFDPacket docnum=41836 [07:51:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 46 01 00 00 12 B0 3E 01 05 68 5A 03 01 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 39 33 06 04 40 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9C 41 58 49 20 D1 87 D0 B5 D1 80 20 D1 87 D0 B0 D0 B9 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B 20 30 2C 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 E5 49 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 6C A3 00 00 35 04 06 00 9E F1 CF DA 20 F9 5F DE 90 EB 9A D0 91 7C [07:51:00]CheckFolder [07:51:00]dirname=/storage/ofd_packets [07:51:00]CheckFolder done [07:51:00]ProducePacketName [07:51:00]name=ofd_packets/00041836 [07:51:00]NVStorageSaveData ofd_packets/00041836 [07:51:00]File name is /storage/ofd_packets/00041836 [07:51:00]Write 356 bytes [07:51:00]NVStorageSaveData done [07:51:00]OFDSenderStorePacket done [07:51:00]KKMCreateOFDPacket done [07:51:00]NVStorageSaveData kkm_last_timestamp [07:51:00]File name is /storage/kkm_last_timestamp [07:51:00]Write 4 bytes [07:51:00]NVStorageSaveData done [07:51:00]ExternCall_PrintAddStr [07:51:00]wPrintStart [07:51:00]Write to MH i2c: 01 00 00 DB 08 E3 [07:51:00]Write i2c OK [07:51:00]MH_I2C_Read... [07:51:00]Read from MH i2c: 01 [07:51:00]MH_I2C_Read... [07:51:00]Read from MH i2c: 01 07 00 [07:51:00]MH_I2C_Read... [07:51:00]Read from MH i2c: 01 07 00 DB 08 00 00 00 00 00 FF 0F F8 [07:51:00]RasterBufferAndPrint [07:51:00]line Счет N : (3)183864 [07:51:00]line ИНН: 02508201610067 [07:51:00]line Контрольно-Кассовый Чек [07:51:00]line ПРОДАЖА [07:51:00]line Товар: 4870202521193 [07:51:00]line Напиток МAXI чер чай лесные ягоды 0,4л [07:51:00]line 1.000 * 70.00 [07:51:00]line = 70.00 [07:51:00]line НДС 12% НСП 1% [07:51:00]line > о реализуемом товаре [07:51:00]line ИТОГО: 70.00 [07:51:00]line НСП 1% : 0.62 [07:51:00]line НДС 12% : 7.43 [07:51:00]line Наличными: 70.00 [07:51:00]line Безнал.: 0.00 [07:51:00]line Место: АЗС № 97 "Партнер Нефть" [07:51:00]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [07:51:00]line СНО: Общий режим [07:51:00]line Чек 25 29.07.2024 07:51 [07:51:00]line Смена: 427 ФФД: 1.0 [07:51:00]line ЗНМ: 0300000053 [07:51:00]line РНМ: 0000000000092626 [07:51:00]line Версия ККМ: 001 [07:51:00]line ФМ: 0000000000874958 [07:51:00]line ФД: 41836 [07:51:00]line ФПД: 174761411485945 [07:51:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T075101&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41836&fm=174761411485945&tin=02508201610067®Number=0000000000092626&sum=7000 [07:51:00]line 0 [07:51:00]OFD Sender: Processing packet 41836 [packets to send 57, broken 56] [07:51:00]ProducePacketName [07:51:00]name=ofd_packets/00041836 [07:51:00]OFD Sender: To server: pG, [07:51:00]CommunicateWithHost lk.salyk.kg:30040 [07:51:00]ConnectInit lk.salyk.kg [07:51:00]written 0, free lines is 4095 [07:51:01]Write to MH i2c: 01 00 00 04 09 0D [07:51:01]Write i2c OK [07:51:01]MH_I2C_Read... [07:51:01]Read from MH i2c: 01 [07:51:01]MH_I2C_Read... [07:51:01]Read from MH i2c: 01 07 00 [07:51:01]MH_I2C_Read... [07:51:01]Read from MH i2c: 01 07 00 04 09 00 00 00 00 00 04 0D 25 [07:51:01]RasterBufferAndPrint [07:51:01]line [07:51:01]line [07:51:01]line [07:51:01]line [07:51:01]line [07:51:01]written 0, free lines is 3338 [07:51:01]MH_Cut [07:51:01]Write to MH i2c: D1 01 00 0B 09 01 E6 [07:51:01]Write i2c OK [07:51:01]MH_I2C_Read... [07:51:01]Read from MH i2c: D1 [07:51:01]MH_I2C_Read... [07:51:01]Read from MH i2c: D1 01 00 [07:51:01]MH_I2C_Read... [07:51:01]Read from MH i2c: D1 01 00 0B 09 00 E5 [07:51:01]Write to MH i2c: 01 00 00 0C 09 15 [07:51:01]Write i2c OK [07:51:01]MH_I2C_Read... [07:51:01]*** Cut start [07:51:01]*** Partial cut [07:51:01]*** CUTSNS_PIN = 1 [07:51:01]*** CUTSNS_PIN = 0 [07:51:02]Connected sock=11 [07:51: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 35 38 46 01 00 00 12 B0 3E 01 05 68 5A 03 01 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 39 33 06 04 40 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9C 41 58 49 20 D1 87 D0 B5 D1 80 20 D1 87 D0 B0 D0 B9 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B 20 30 2C 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 E5 49 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 6C A3 00 00 35 04 06 00 9E F1 CF DA 20 F9 5F DE 90 EB 9A D0 91 7C [07:51:02]*** Brake cut motor [07:51:02]Read from MH i2c: 01 [07:51:02]MH_I2C_Read... [07:51:02]*** Stop cut motor [07:51:02]*** Cut end [07:51:02]Read from MH i2c: 01 07 00 [07:51:02]MH_I2C_Read... [07:51:02]Read from MH i2c: 01 07 00 0C 09 00 00 00 00 00 FF 0F 2A [07:51:02]process_action close_receipt done [07:51:02]requested_data is exist [07:51:02]produce_requested_data [07:51:02]requested_item fm.sn is exist - process it [07:51:02]wFMCommunicate request_size=4 [07:51:02]MH_SAM_APDU [07:51:02]CAPDU: 80 11 00 00 [07:51:02]Write to MH i2c: E2 08 00 0D 09 80 11 00 00 00 00 00 00 90 [07:51:02]Write i2c OK [07:51:02]MH_I2C_Read... [07:51:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:51:02]Read from MH i2c: E2 [07:51:02]MH_I2C_Read... [07:51:02]Read from MH i2c: E2 17 00 [07:51:02]MH_I2C_Read... [07:51:02]Read from MH i2c: E2 17 00 0D 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 EC [07:51:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [07:51:02]wFMCommunicate OK [07:51:02]requested_item fd.num is exist - process it [07:51:02]SAM_PROTO_GetFieldsCounters [07:51:02]wFMCommunicate request_size=4 [07:51:02]MH_SAM_APDU [07:51:02]CAPDU: 80 13 00 00 [07:51:02]Write to MH i2c: E2 08 00 0E 09 80 13 00 00 00 00 00 00 93 [07:51:02]Write i2c OK [07:51:02]MH_I2C_Read... [07:51: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 35 38 4F 00 00 00 C9 95 47 00 68 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 35 38 10 04 04 00 6C A3 00 00 F4 03 04 00 F8 F5 A6 66 B6 04 01 00 00 80 59 1C A8 52 11 C6 3B [07:51:02]CommunicateWithHost err = 0 [07:51:02]CheckOFDResponse [07:51:02]1017 (14) - 77093643461234 [07:51:02]1041 (16) - 0000000000874958 [07:51:02]1040 (4) - 41836 [07:51:02]1012 (4) - 29.07.2024 01:52 [07:51:02]1206 (1) - 0 [07:51:02]OFD Sender: Remove packet 41836 [07:51:02]ProducePacketName [07:51:02]name=ofd_packets/00041836 [07:51:02]NVStorageDeleteData [07:51:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:51:02]Read from MH i2c: E2 [07:51:02]MH_I2C_Read... [07:51:02]Read from MH i2c: E2 62 00 [07:51:02]MH_I2C_Read... [07:51:02]Read from MH i2c: E2 62 00 0E 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 6C A3 00 00 0E 04 04 00 AB 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 C3 [07:51: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 6C A3 00 00 0E 04 04 00 AB 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 [07:51:02]wFMCommunicate OK [07:51:02]SAM_PROTO_GetFieldsCounters done [07:51:02]requested_item shift.num is exist - process it [07:51:02]requested_item shift.opened is exist - process it [07:51:02]req_shift_opened [07:51:02]FM_GetShiftState [07:51:02]SAM_PROTO_GetShiftState [07:51:02]wFMCommunicate request_size=4 [07:51:02]MH_SAM_APDU [07:51:02]CAPDU: 80 13 01 00 [07:51:02]Write to MH i2c: E2 08 00 0F 09 80 13 01 00 00 00 00 00 95 [07:51:02]Write i2c OK [07:51:02]MH_I2C_Read... [07:51:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:51:02]Read from MH i2c: E2 [07:51:02]MH_I2C_Read... [07:51:02]Read from MH i2c: E2 0E 00 [07:51:02]MH_I2C_Read... [07:51:02]Read from MH i2c: E2 0E 00 0F 09 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 31 [07:51:02]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [07:51:02]wFMCommunicate OK [07:51:02]SAM_PROTO_GetShiftState done [07:51:02]FM_GetShiftState done [07:51:02]req_shift_opened done [07:51:02]requested_item shift.open_date is exist - process it [07:51:02]req_shift_open_date [07:51:02]req_shift_open_date done [07:51:02]produce_requested_data done [07:51:02]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41836,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [07:51:02]process_action_free close_receipt [07:51:02]json_value_free [07:51:02]json_value_free done [07:51:02]process_json_proto returns [07:51:02]Send response to host [07:51:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41836,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [07:51:02]free response buf [07:51:02]execute_script done [07:51:02]execute_script returns [07:51:02]free content buf [07:51:02]Sock 10.Close socket [07:51:02]Sock 10.Thread stoped [07:51:03]OFD Sender: No OFD packet to send [07:51:08]OFD Sender: No OFD packet to send [07:51:13]OFD Sender: No OFD packet to send [07:51:18]OFD Sender: No OFD packet to send [07:51:20]recv_with_timeout no data received [07:51:23]OFD Sender: No OFD packet to send [07:51:28]OFD Sender: No OFD packet to send [07:51:33]OFD Sender: No OFD packet to send [07:51:38]OFD Sender: No OFD packet to send [07:51:43]OFD Sender: No OFD packet to send [07:51:47]recv_with_timeout no data received [07:51:48]OFD Sender: No OFD packet to send [07:51:53]OFD Sender: No OFD packet to send [07:51:58]OFD Sender: No OFD packet to send [07:52:03]OFD Sender: No OFD packet to send [07:52:08]OFD Sender: No OFD packet to send [07:52:13]OFD Sender: No OFD packet to send [07:52:18]OFD Sender: No OFD packet to send [07:52:23]OFD Sender: No OFD packet to send [07:52:28]OFD Sender: No OFD packet to send [07:52:33]OFD Sender: No OFD packet to send [07:52:38]OFD Sender: No OFD packet to send [07:52:43]OFD Sender: No OFD packet to send [07:52:48]OFD Sender: No OFD packet to send [07:52:53]OFD Sender: No OFD packet to send [07:52:58]OFD Sender: No OFD packet to send [07:53:03]OFD Sender: No OFD packet to send [07:53:08]OFD Sender: No OFD packet to send [07:53:13]OFD Sender: No OFD packet to send [07:53:18]OFD Sender: No OFD packet to send [07:53:23]OFD Sender: No OFD packet to send [07:53:28]OFD Sender: No OFD packet to send [07:53:33]OFD Sender: No OFD packet to send [07:53:38]OFD Sender: No OFD packet to send [07:53:43]OFD Sender: No OFD packet to send [07:53:43]recv_with_timeout no data received [07:53:48]OFD Sender: No OFD packet to send [07:53:53]OFD Sender: No OFD packet to send [07:53:58]OFD Sender: No OFD packet to send [07:54:03]OFD Sender: No OFD packet to send [07:54:08]OFD Sender: No OFD packet to send [07:54:13]OFD Sender: No OFD packet to send [07:54:14]recv_with_timeout no data received [07:54:18]OFD Sender: No OFD packet to send [07:54:23]OFD Sender: No OFD packet to send [07:54:28]OFD Sender: No OFD packet to send [07:54:33]OFD Sender: No OFD packet to send [07:54:38]OFD Sender: No OFD packet to send [07:54:43]OFD Sender: No OFD packet to send [07:54:48]OFD Sender: No OFD packet to send [07:54:53]OFD Sender: No OFD packet to send [07:54:58]OFD Sender: No OFD packet to send [07:55:03]OFD Sender: No OFD packet to send [07:55:08]OFD Sender: No OFD packet to send [07:55:13]OFD Sender: No OFD packet to send [07:55:18]OFD Sender: No OFD packet to send [07:55:23]OFD Sender: No OFD packet to send [07:55:28]OFD Sender: No OFD packet to send [07:55:33]OFD Sender: No OFD packet to send [07:55:38]OFD Sender: No OFD packet to send [07:55:43]OFD Sender: No OFD packet to send [07:55:48]OFD Sender: No OFD packet to send [07:55:53]OFD Sender: No OFD packet to send [07:55:58]OFD Sender: No OFD packet to send [07:55:59]accept exits with 9 [07:55:59]New connection [07:55:59]New thread 3067030884 created [07:55:59]Thread 3066887524 joined [07:55:59]Waiting for new connection... [07:55:59] Sock 9.Parse request [07:55:59]Sock 9.Check first char [07:55:59]Sock 9.First char is OK [07:55:59]request: POST /json_proto HTTP/1.0 [07:55:59]Method: POST [07:55:59]URL: /json_proto [07:55:59]Method is POST - this is cgi request [07:55:59]url: /json_proto [07:55:59]query_string will be loaded in cgi processing [07:55:59]execute_cgi json_proto POST (null) [07:55:59]execute_cgi path=json_proto method=POST [07:55:59]POST find Content-Length [07:55:59]Host: 172.17.43.132:8080 [07:55:59]Content-Length: 642 [07:55:59]Content-Type: application/json [07:55:59] [07:55:59]POST finish read [07:55:59]Found Content-Length = 642 [07:55:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183865", "tax_sys" : 0, "items" : [ { "code": "46116482", "name": "\u0416\u0435\u0432 Orbit \u044F\u0433\u043E\u0434\u043D\u044B\u0439 \u043C\u0438\u043A\u0441", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:55:59]execute_script... [07:55:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183865", "tax_sys" : 0, "items" : [ { "code": "46116482", "name": "\u0416\u0435\u0432 Orbit \u044F\u0433\u043E\u0434\u043D\u044B\u0439 \u043C\u0438\u043A\u0441", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:55:59]POST & json_proto [07:55:59]process_json_proto [07:55:59]json parsed OK: [07:55:59]protocol is kg_v1.0 [07:55:59]action value=close_receipt [07:55:59]process_action close_receipt [07:55:59]cmd_close_receipt [07:55:59]MH_GetDate [07:55:59]Write to MH i2c: F0 00 00 10 09 08 [07:55:59]Write i2c OK [07:55:59]MH_I2C_Read... [07:55:59]Read from MH i2c: F0 [07:55:59]MH_I2C_Read... [07:55:59]Read from MH i2c: F0 09 00 [07:55:59]MH_I2C_Read... [07:55:59]Read from MH i2c: F0 09 00 10 09 00 12 4B A7 66 AA D0 A5 66 00 [07:55:59]GetLastDocTimeStamp 1722239461 [07:55:59]current date 1722239762 [07:55:59]FM_GetShiftState [07:55:59]SAM_PROTO_GetShiftState [07:55:59]wFMCommunicate request_size=4 [07:55:59]MH_SAM_APDU [07:55:59]CAPDU: 80 13 01 00 [07:55:59]Write to MH i2c: E2 08 00 11 09 80 13 01 00 00 00 00 00 97 [07:55:59]Write i2c OK [07:55:59]MH_I2C_Read... [07:55:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:55:59]Read from MH i2c: E2 [07:55:59]MH_I2C_Read... [07:55:59]Read from MH i2c: E2 0E 00 [07:55:59]MH_I2C_Read... [07:55:59]Read from MH i2c: E2 0E 00 11 09 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 33 [07:55:59]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [07:55:59]wFMCommunicate OK [07:55:59]SAM_PROTO_GetShiftState done [07:55:59]FM_GetShiftState done [07:55:59]opened in 1722211496 [07:55:59]opened+sec_in_day 1722297896 [07:55:59]quantity*price = 4500 [07:55:59]sum+1 = 4501 [07:55:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 45.00 НСП 1% : 0.40 НДС 12% : 4.78 Наличными: 45.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 26 29.07.2024 07:56 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41837 ФПД: 84698149887366 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T075602&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41837&fm=84698149887366&tin=02508201610067®Number=0000000000092626&sum=4500 0 [07:56:01]StoreToDocumentArchive [07:56:01]shift 427 fd 41837 [07:56:01]save to /storage/0427/doc_00041837 [07:56:01]save last doc name /storage/0427/doc_00041837 to /storage/kkm_last_doc_name [07:56:01]save OK [07:56:01]Clear old archive folders... [07:56:01]ProcessDocumentItem done err = 0, tmpTLVsize=273 [07:56:01]tlvbuf is 013FDB80 [07:56:01]SAM_PROTO_ClearQueue [07:56:01]wFMCommunicate request_size=4 [07:56:01]MH_SAM_APDU [07:56:01]CAPDU: 80 09 00 00 [07:56:01]Write to MH i2c: E2 08 00 1E 09 80 09 00 00 00 00 00 00 99 [07:56:01]Write i2c OK [07:56:01]MH_I2C_Read... [07:56:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:56:01]Read from MH i2c: E2 [07:56:01]MH_I2C_Read... [07:56:01]Read from MH i2c: E2 03 00 [07:56:01]MH_I2C_Read... [07:56:01]Read from MH i2c: E2 03 00 1E 09 00 90 00 9B [07:56:01]RAPDU: 90 00 [07:56:01]wFMCommunicate OK [07:56:01]SAM_PROTO_ClearQueue done [07:56:01]KKMCreateOFDPacket [07:56:01]OFDProtocolAddRootSTLVToBuf [07:56:01]FM_MakeSignedData [07:56:01]FM_MakeSignedData [07:56:01]SAM_PROTO_SignData [07:56:01]wFMCommunicate request_size=4 [07:56:01]MH_SAM_APDU [07:56:01]CAPDU: 80 0D 01 02 [07:56:01]Write to MH i2c: E2 08 00 1F 09 80 0D 01 02 00 00 00 00 A1 [07:56:01]Write i2c OK [07:56:01]MH_I2C_Read... [07:56:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:56:01]Read from MH i2c: E2 [07:56:01]MH_I2C_Read... [07:56:01]Read from MH i2c: E2 03 00 [07:56:01]MH_I2C_Read... [07:56:01]Read from MH i2c: E2 03 00 1F 09 00 90 00 9C [07:56:01]RAPDU: 90 00 [07:56:01]wFMCommunicate OK [07:56:01]wFMCommunicate request_size=255 [07:56:01]MH_SAM_APDU [07:56:01]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 31 31 36 34 38 32 06 04 24 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D1 8F D0 B3 D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D0 BC D0 B8 D0 BA D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 12 4B A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 [07:56:01]Write to MH i2c: E2 02 01 20 09 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 31 31 36 34 38 32 06 04 24 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D1 8F D0 B3 D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D0 BC D0 B8 D0 BA D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 12 4B A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 00 00 D3 [07:56:01]Write i2c OK [07:56:01]MH_I2C_Read... [07:56:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:56:01]Read from MH i2c: E2 [07:56:01]MH_I2C_Read... [07:56:01]Read from MH i2c: E2 03 00 [07:56:01]MH_I2C_Read... [07:56:01]Read from MH i2c: E2 03 00 20 09 00 90 00 9D [07:56:01]RAPDU: 90 00 [07:56:01]wFMCommunicate OK [07:56:01]wFMCommunicate request_size=32 [07:56:01]MH_SAM_APDU [07:56:01]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 39 35 38 10 04 04 00 6D A3 00 00 35 04 06 00 4D 08 53 23 1D 86 [07:56:01]Write to MH i2c: E2 23 00 21 09 80 0D 02 02 1B 00 30 30 30 38 37 34 39 35 38 10 04 04 00 6D A3 00 00 35 04 06 00 4D 08 53 23 1D 86 00 00 88 [07:56:01]Write i2c OK [07:56:01]MH_I2C_Read... [07:56:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:56:01]Read from MH i2c: E2 [07:56:01]MH_I2C_Read... [07:56:01]Read from MH i2c: E2 03 00 [07:56:01]MH_I2C_Read... [07:56:01]Read from MH i2c: E2 03 00 21 09 00 90 00 9E [07:56:01]RAPDU: 90 00 [07:56:01]wFMCommunicate OK [07:56:01]wFMCommunicate request_size=4 [07:56:01]MH_SAM_APDU [07:56:01]CAPDU: 80 0D 03 02 [07:56:01]Write to MH i2c: E2 08 00 22 09 80 0D 03 02 00 00 00 00 A6 [07:56:01]Write i2c OK [07:56:01]MH_I2C_Read... [07:56:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:56:01]Read from MH i2c: E2 [07:56:01]MH_I2C_Read... [07:56:01]Read from MH i2c: E2 0B 00 [07:56:01]MH_I2C_Read... [07:56:01]Read from MH i2c: E2 0B 00 22 09 00 3E 67 0E 5E 90 AF E2 41 90 00 1A [07:56:01]RAPDU: 3E 67 0E 5E 90 AF E2 41 90 00 [07:56:01]wFMCommunicate OK [07:56:01]SAM_PROTO_SignData done [07:56:01]FM_MakeSignedData done [07:56:01]CreateOFDProtocolMessage [07:56:01]wFMCommunicate request_size=4 [07:56:01]MH_SAM_APDU [07:56:01]CAPDU: 80 11 00 00 [07:56:01]Write to MH i2c: E2 08 00 23 09 80 11 00 00 00 00 00 00 A6 [07:56:01]Write i2c OK [07:56:01]MH_I2C_Read... [07:56:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:56:01]Read from MH i2c: E2 [07:56:01]MH_I2C_Read... [07:56:01]Read from MH i2c: E2 17 00 [07:56:01]MH_I2C_Read... [07:56:01]Read from MH i2c: E2 17 00 23 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 02 [07:56:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [07:56:01]wFMCommunicate OK [07:56:01]CreateOFDProtocolMessage done [07:56:01]OFDSenderStorePacket 41837 [07:56:01]StoreOFDPacket docnum=41837 [07:56:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 25 01 00 00 BA 41 1D 01 FD D9 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 31 31 36 34 38 32 06 04 24 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D1 8F D0 B3 D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D0 BC D0 B8 D0 BA D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 12 4B A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 6D A3 00 00 35 04 06 00 4D 08 53 23 1D 86 3E 67 0E 5E 90 AF E2 41 [07:56:01]CheckFolder [07:56:01]dirname=/storage/ofd_packets [07:56:01]CheckFolder done [07:56:01]ProducePacketName [07:56:01]name=ofd_packets/00041837 [07:56:01]NVStorageSaveData ofd_packets/00041837 [07:56:01]File name is /storage/ofd_packets/00041837 [07:56:01]Write 323 bytes [07:56:01]NVStorageSaveData done [07:56:01]OFDSenderStorePacket done [07:56:01]KKMCreateOFDPacket done [07:56:01]NVStorageSaveData kkm_last_timestamp [07:56:01]File name is /storage/kkm_last_timestamp [07:56:01]Write 4 bytes [07:56:01]NVStorageSaveData done [07:56:01]ExternCall_PrintAddStr [07:56:01]wPrintStart [07:56:01]Write to MH i2c: 01 00 00 24 09 2D [07:56:01]Write i2c OK [07:56:01]MH_I2C_Read... [07:56:01]Read from MH i2c: 01 [07:56:01]MH_I2C_Read... [07:56:01]Read from MH i2c: 01 07 00 [07:56:01]MH_I2C_Read... [07:56:01]Read from MH i2c: 01 07 00 24 09 00 00 00 00 00 FF 0F 42 [07:56:01]RasterBufferAndPrint [07:56:01]line Счет N : (3)183865 [07:56:01]line ИНН: 02508201610067 [07:56:01]line Контрольно-Кассовый Чек [07:56:01]line ПРОДАЖА [07:56:01]line Товар: 46116482 [07:56:01]line Жев Orbit ягодный микс [07:56:01]line 1.000 * 45.00 [07:56:01]line = 45.00 [07:56:01]line НДС 12% НСП 1% [07:56:01]line > о реализуемом товаре [07:56:01]line ИТОГО: 45.00 [07:56:01]line НСП 1% : 0.40 [07:56:01]line НДС 12% : 4.78 [07:56:01]line Наличными: 45.00 [07:56:01]line Безнал.: 0.00 [07:56:01]line Место: АЗС № 97 "Партнер Нефть" [07:56:01]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [07:56:01]line СНО: Общий режим [07:56:01]line Чек 26 29.07.2024 07:56 [07:56:01]line Смена: 427 ФФД: 1.0 [07:56:01]line ЗНМ: 0300000053 [07:56:01]line РНМ: 0000000000092626 [07:56:01]line Версия ККМ: 001 [07:56:01]line ФМ: 0000000000874958 [07:56:01]line ФД: 41837 [07:56:01]line ФПД: 84698149887366 [07:56:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T075602&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41837&fm=84698149887366&tin=02508201610067®Number=0000000000092626&sum=4500 [07:56:01]line 0 [07:56:01]written 0, free lines is 4095 [07:56:01]OFD Sender: Processing packet 41837 [packets to send 57, broken 56] [07:56:01]ProducePacketName [07:56:01]name=ofd_packets/00041837 [07:56:01]OFD Sender: To server: pG, [07:56:01]CommunicateWithHost lk.salyk.kg:30040 [07:56:01]ConnectInit lk.salyk.kg [07:56:02]Write to MH i2c: 01 00 00 4C 09 55 [07:56:02]Write i2c OK [07:56:02]MH_I2C_Read... [07:56:02]Read from MH i2c: 01 [07:56:02]MH_I2C_Read... [07:56:02]Read from MH i2c: 01 07 00 [07:56:02]MH_I2C_Read... [07:56:02]Read from MH i2c: 01 07 00 4C 09 00 00 00 00 00 10 0D 79 [07:56:02]RasterBufferAndPrint [07:56:02]line [07:56:02]line [07:56:02]line [07:56:02]line [07:56:02]line [07:56:02]written 0, free lines is 3350 [07:56:02]MH_Cut [07:56:02]Write to MH i2c: D1 01 00 53 09 01 2E [07:56:02]Write i2c OK [07:56:02]MH_I2C_Read... [07:56:02]Read from MH i2c: D1 [07:56:02]MH_I2C_Read... [07:56:02]Read from MH i2c: D1 01 00 [07:56:02]MH_I2C_Read... [07:56:02]Read from MH i2c: D1 01 00 53 09 00 2D [07:56:02]Write to MH i2c: 01 00 00 54 09 5D [07:56:02]Write i2c OK [07:56:02]MH_I2C_Read... [07:56:02]Connected sock=10 [07:56: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 35 38 25 01 00 00 BA 41 1D 01 FD D9 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 31 31 36 34 38 32 06 04 24 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D1 8F D0 B3 D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D0 BC D0 B8 D0 BA D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 12 4B A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 6D A3 00 00 35 04 06 00 4D 08 53 23 1D 86 3E 67 0E 5E 90 AF E2 41 [07:56:03]*** Cut start [07:56:03]*** Partial cut [07:56:03]*** CUTSNS_PIN = 1 [07:56:03]*** CUTSNS_PIN = 0 [07:56:03]*** Brake cut motor [07:56:03]Read from MH i2c: 01 [07:56:03]MH_I2C_Read... [07:56:03]*** Stop cut motor [07:56:03]*** Cut end [07:56:03]Read from MH i2c: 01 07 00 [07:56:03]MH_I2C_Read... [07:56:03]Read from MH i2c: 01 07 00 54 09 00 00 00 00 00 FF 0F 72 [07:56:03]process_action close_receipt done [07:56:03]requested_data is exist [07:56:03]produce_requested_data [07:56:03]requested_item fm.sn is exist - process it [07:56:03]wFMCommunicate request_size=4 [07:56:03]MH_SAM_APDU [07:56:03]CAPDU: 80 11 00 00 [07:56:03]Write to MH i2c: E2 08 00 55 09 80 11 00 00 00 00 00 00 D8 [07:56:03]Write i2c OK [07:56:03]MH_I2C_Read... [07:56:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:56:03]Read from MH i2c: E2 [07:56:03]MH_I2C_Read... [07:56:03]Read from MH i2c: E2 17 00 [07:56:03]MH_I2C_Read... [07:56:03]Read from MH i2c: E2 17 00 55 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 34 [07:56:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [07:56:03]wFMCommunicate OK [07:56:03]requested_item fd.num is exist - process it [07:56:03]SAM_PROTO_GetFieldsCounters [07:56:03]wFMCommunicate request_size=4 [07:56:03]MH_SAM_APDU [07:56:03]CAPDU: 80 13 00 00 [07:56:03]Write to MH i2c: E2 08 00 56 09 80 13 00 00 00 00 00 00 DB [07:56:03]Write i2c OK [07:56:03]MH_I2C_Read... [07:56:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:56:03]Read from MH i2c: E2 [07:56:03]MH_I2C_Read... [07:56:03]Read from MH i2c: E2 62 00 [07:56:03]MH_I2C_Read... [07:56:03]Read from MH i2c: E2 62 00 56 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 6D A3 00 00 0E 04 04 00 AB 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 0F [07:56: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 6D A3 00 00 0E 04 04 00 AB 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 [07:56:03]wFMCommunicate OK [07:56:03]SAM_PROTO_GetFieldsCounters done [07:56:03]requested_item shift.num is exist - process it [07:56:03]requested_item shift.opened is exist - process it [07:56:03]req_shift_opened [07:56:03]FM_GetShiftState [07:56:03]SAM_PROTO_GetShiftState [07:56:03]wFMCommunicate request_size=4 [07:56:03]MH_SAM_APDU [07:56:03]CAPDU: 80 13 01 00 [07:56:03]Write to MH i2c: E2 08 00 57 09 80 13 01 00 00 00 00 00 DD [07:56:03]Write i2c OK [07:56:03]MH_I2C_Read... [07:56:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:56:03]Read from MH i2c: E2 [07:56:03]MH_I2C_Read... [07:56:03]Read from MH i2c: E2 0E 00 [07:56:03]MH_I2C_Read... [07:56:03]Read from MH i2c: E2 0E 00 57 09 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 79 [07:56:03]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [07:56:03]wFMCommunicate OK [07:56:03]SAM_PROTO_GetShiftState done [07:56:03]FM_GetShiftState done [07:56:03]req_shift_opened done [07:56:03]requested_item shift.open_date is exist - process it [07:56:03]req_shift_open_date [07:56:03]req_shift_open_date done [07:56:03]produce_requested_data done [07:56:03]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41837,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [07:56:03]process_action_free close_receipt [07:56:03]json_value_free [07:56:03]json_value_free done [07:56:03]process_json_proto returns [07:56:04]Send response to host [07:56:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41837,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [07:56:04]free response buf [07:56:04]execute_script done [07:56:04]execute_script returns [07:56:04]free content buf [07:56:04]Sock 9.Close socket [07:56:04]Sock 9.Thread stoped [07:56: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 35 38 4F 00 00 00 CC 66 47 00 C9 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 6D A3 00 00 F4 03 04 00 25 F7 A6 66 B6 04 01 00 00 95 48 67 A7 0F C2 97 74 [07:56:04]CommunicateWithHost err = 0 [07:56:04]CheckOFDResponse [07:56:04]1017 (14) - 77093643461234 [07:56:04]1041 (16) - 0000000000874958 [07:56:04]1040 (4) - 41837 [07:56:04]1012 (4) - 29.07.2024 01:57 [07:56:04]1206 (1) - 0 [07:56:04]OFD Sender: Remove packet 41837 [07:56:04]ProducePacketName [07:56:04]name=ofd_packets/00041837 [07:56:04]NVStorageDeleteData [07:56:04]OFD Sender: No OFD packet to send [07:56:09]OFD Sender: No OFD packet to send [07:56:14]OFD Sender: No OFD packet to send [07:56:19]OFD Sender: No OFD packet to send [07:56:24]OFD Sender: No OFD packet to send [07:56:29]OFD Sender: No OFD packet to send [07:56:34]OFD Sender: No OFD packet to send [07:56:39]OFD Sender: No OFD packet to send [07:56:44]OFD Sender: No OFD packet to send [07:56:49]OFD Sender: No OFD packet to send [07:56:54]OFD Sender: No OFD packet to send [07:56:59]OFD Sender: No OFD packet to send [07:57:04]OFD Sender: No OFD packet to send [07:57:09]OFD Sender: No OFD packet to send [07:57:14]OFD Sender: No OFD packet to send [07:57:19]OFD Sender: No OFD packet to send [07:57:24]OFD Sender: No OFD packet to send [07:57:29]OFD Sender: No OFD packet to send [07:57:34]OFD Sender: No OFD packet to send [07:57:39]OFD Sender: No OFD packet to send [07:57:44]OFD Sender: No OFD packet to send [07:57:49]OFD Sender: No OFD packet to send [07:57:54]OFD Sender: No OFD packet to send [07:57:59]OFD Sender: No OFD packet to send [07:58:04]OFD Sender: No OFD packet to send [07:58:09]OFD Sender: No OFD packet to send [07:58:14]OFD Sender: No OFD packet to send [07:58:19]OFD Sender: No OFD packet to send [07:58:24]OFD Sender: No OFD packet to send [07:58:29]OFD Sender: No OFD packet to send [07:58:34]OFD Sender: No OFD packet to send [07:58:39]OFD Sender: No OFD packet to send [07:58:44]OFD Sender: No OFD packet to send [07:58:49]OFD Sender: No OFD packet to send [07:58:54]OFD Sender: No OFD packet to send [07:58:59]OFD Sender: No OFD packet to send [07:59:04]OFD Sender: No OFD packet to send [07:59:09]OFD Sender: No OFD packet to send [07:59:12]recv_with_timeout no data received [07:59:14]OFD Sender: No OFD packet to send [07:59:19]OFD Sender: No OFD packet to send [07:59:24]OFD Sender: No OFD packet to send [07:59:29]OFD Sender: No OFD packet to send [07:59:34]OFD Sender: No OFD packet to send [07:59:39]OFD Sender: No OFD packet to send [07:59:44]OFD Sender: No OFD packet to send [07:59:49]OFD Sender: No OFD packet to send [07:59:54]OFD Sender: No OFD packet to send [07:59:59]OFD Sender: No OFD packet to send [08:00:04]OFD Sender: No OFD packet to send [08:00:09]OFD Sender: No OFD packet to send [08:00:14]OFD Sender: No OFD packet to send [08:00:19]OFD Sender: No OFD packet to send [08:00:24]OFD Sender: No OFD packet to send [08:00:29]OFD Sender: No OFD packet to send [08:00:34]OFD Sender: No OFD packet to send [08:00:39]OFD Sender: No OFD packet to send [08:00:44]OFD Sender: No OFD packet to send [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:05]OFD Sender: No OFD packet to send [08:01:05]accept exits with 8 [08:01:05]New connection [08:01:05]New thread 3066887524 created [08:01:05]Thread 3067030884 joined [08:01:05]Waiting for new connection... [08:01:05] Sock 8.Parse request [08:01:05]Sock 8.Check first char [08:01:05]Sock 8.First char is OK [08:01:05]request: POST /json_proto HTTP/1.0 [08:01:05]Method: POST [08:01:05]URL: /json_proto [08:01:05]Method is POST - this is cgi request [08:01:05]url: /json_proto [08:01:05]query_string will be loaded in cgi processing [08:01:05]execute_cgi json_proto POST (null) [08:01:05]execute_cgi path=json_proto method=POST [08:01:05]POST find Content-Length [08:01:05]Host: 172.17.43.132:8080 [08:01:05]Content-Length: 1463 [08:01:05]Content-Type: application/json [08:01:05] [08:01:05]POST finish read [08:01:05]Found Content-Length = 1463 [08:01:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183866", "tax_sys" : 0, "items" : [ { "code": "4870202521247", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043F\u0435\u0440\u0441\u0438\u043A", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "6931280300549", "name": "\u0417\u0430\u0436\u0438\u0433\u0430\u043B\u043A\u0430 Cricket \u041F\u041D \u043F\u044C\u0435\u0437\u043E", "price" : 67.00, "quantity" : 1.000, "sum" : 67.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 56.00, "quantity" : 1.000, "sum" : 56.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 398.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:01:05]execute_script... [08:01:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183866", "tax_sys" : 0, "items" : [ { "code": "4870202521247", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043F\u0435\u0440\u0441\u0438\u043A", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "6931280300549", "name": "\u0417\u0430\u0436\u0438\u0433\u0430\u043B\u043A\u0430 Cricket \u041F\u041D \u043F\u044C\u0435\u0437\u043E", "price" : 67.00, "quantity" : 1.000, "sum" : 67.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 56.00, "quantity" : 1.000, "sum" : 56.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 398.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:01:05]POST & json_proto [08:01:05]process_json_proto [08:01:05]json parsed OK: [08:01:05]protocol is kg_v1.0 [08:01:05]action value=close_receipt [08:01:05]process_action close_receipt [08:01:05]cmd_close_receipt [08:01:05]MH_GetDate [08:01:05]Write to MH i2c: F0 00 00 58 09 50 [08:01:05]Write i2c OK [08:01:05]MH_I2C_Read... [08:01:05]Read from MH i2c: F0 [08:01:05]MH_I2C_Read... [08:01:05]Read from MH i2c: F0 09 00 [08:01:05]MH_I2C_Read... [08:01:05]Read from MH i2c: F0 09 00 58 09 00 44 4C A7 66 AA D0 A5 66 7B [08:01:05]GetLastDocTimeStamp 1722239762 [08:01:05]current date 1722240068 [08:01:05]FM_GetShiftState [08:01:05]SAM_PROTO_GetShiftState [08:01:05]wFMCommunicate request_size=4 [08:01:05]MH_SAM_APDU [08:01:05]CAPDU: 80 13 01 00 [08:01:05]Write to MH i2c: E2 08 00 59 09 80 13 01 00 00 00 00 00 DF [08:01:05]Write i2c OK [08:01:05]MH_I2C_Read... [08:01:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:01:05]Read from MH i2c: E2 [08:01:05]MH_I2C_Read... [08:01:05]Read from MH i2c: E2 0E 00 [08:01:05]MH_I2C_Read... [08:01:05]Read from MH i2c: E2 0E 00 59 09 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 7B [08:01:05]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [08:01:05]wFMCommunicate OK [08:01:05]SAM_PROTO_GetShiftState done [08:01:05]FM_GetShiftState done [08:01:05]opened in 1722211496 [08:01:05]opened+sec_in_day 1722297896 [08:01:05]quantity*price = 12500 [08:01:05]sum+1 = 12501 [08:01:05]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 6931280300549 Зажигалка Cricket ПН пьезо 1.000 * 67.00 = 67.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607065001445 Шок батончик Snickers 50,5г 1.000 * 56.00 = 56.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4640030091607 Сигареты ESSE Exchange 1.000 * 150.00 = 150.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 398.00 НСП 1% : 3.53 НДС 12% : 42.26 Наличными: 398.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 27 29.07.2024 08:01 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41838 ФПД: 77964940162206 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T080108&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41838&fm=77964940162206&tin=02508201610067®Number=0000000000092626&sum=39800 0 [08:01:06]StoreToDocumentArchive [08:01:06]shift 427 fd 41838 [08:01:06]save to /storage/0427/doc_00041838 [08:01:06]save last doc name /storage/0427/doc_00041838 to /storage/kkm_last_doc_name [08:01:06]save OK [08:01:06]Clear old archive folders... [08:01:06]ProcessDocumentItem done err = 0, tmpTLVsize=621 [08:01:06]tlvbuf is 013CE4C0 [08:01:06]SAM_PROTO_ClearQueue [08:01:06]wFMCommunicate request_size=4 [08:01:06]MH_SAM_APDU [08:01:06]CAPDU: 80 09 00 00 [08:01:06]Write to MH i2c: E2 08 00 66 09 80 09 00 00 00 00 00 00 E1 [08:01:06]Write i2c OK [08:01:06]MH_I2C_Read... [08:01:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:01:07]Read from MH i2c: E2 [08:01:07]MH_I2C_Read... [08:01:07]Read from MH i2c: E2 03 00 [08:01:07]MH_I2C_Read... [08:01:07]Read from MH i2c: E2 03 00 66 09 00 90 00 E3 [08:01:07]RAPDU: 90 00 [08:01:07]wFMCommunicate OK [08:01:07]SAM_PROTO_ClearQueue done [08:01:07]KKMCreateOFDPacket [08:01:07]OFDProtocolAddRootSTLVToBuf [08:01:07]FM_MakeSignedData [08:01:07]FM_MakeSignedData [08:01:07]SAM_PROTO_SignData [08:01:07]wFMCommunicate request_size=4 [08:01:07]MH_SAM_APDU [08:01:07]CAPDU: 80 0D 01 02 [08:01:07]Write to MH i2c: E2 08 00 67 09 80 0D 01 02 00 00 00 00 E9 [08:01:07]Write i2c OK [08:01:07]MH_I2C_Read... [08:01:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:01:07]Read from MH i2c: E2 [08:01:07]MH_I2C_Read... [08:01:07]Read from MH i2c: E2 03 00 [08:01:07]MH_I2C_Read... [08:01:07]Read from MH i2c: E2 03 00 67 09 00 90 00 E4 [08:01:07]RAPDU: 90 00 [08:01:07]wFMCommunicate OK [08:01:07]wFMCommunicate request_size=255 [08:01:07]MH_SAM_APDU [08:01:07]CAPDU: 80 0D 02 02 FA 03 00 6D 02 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B [08:01:07]Write to MH i2c: E2 02 01 68 09 80 0D 02 02 FA 00 03 00 6D 02 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 00 9E [08:01:07]Write i2c OK [08:01:07]MH_I2C_Read... [08:01:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:01:07]Read from MH i2c: E2 [08:01:07]MH_I2C_Read... [08:01:07]Read from MH i2c: E2 03 00 [08:01:07]MH_I2C_Read... [08:01:07]Read from MH i2c: E2 03 00 68 09 00 90 00 E5 [08:01:07]RAPDU: 90 00 [08:01:07]wFMCommunicate OK [08:01:07]wFMCommunicate request_size=255 [08:01:07]MH_SAM_APDU [08:01:07]CAPDU: 80 0D 02 02 FA 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 15 00 00 00 00 13 04 06 00 E0 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 9B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 01 00 00 00 00 EE 03 0F 00 F2 03 01 [08:01:07]Write to MH i2c: E2 02 01 69 09 80 0D 02 02 FA 00 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 15 00 00 00 00 13 04 06 00 E0 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 9B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 00 B5 [08:01:07]Write i2c OK [08:01:07]MH_I2C_Read... [08:01:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:01:07]Read from MH i2c: E2 [08:01:07]MH_I2C_Read... [08:01:07]Read from MH i2c: E2 03 00 [08:01:07]MH_I2C_Read... [08:01:07]Read from MH i2c: E2 03 00 69 09 00 90 00 E6 [08:01:07]RAPDU: 90 00 [08:01:07]wFMCommunicate OK [08:01:07]wFMCommunicate request_size=130 [08:01:07]MH_SAM_APDU [08:01:07]CAPDU: 80 0D 02 02 7D 00 01 F3 03 06 00 82 10 00 00 00 00 07 04 06 00 78 9B 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 44 4C A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 6E A3 00 00 35 04 06 00 46 E8 A0 90 34 9E [08:01:07]Write to MH i2c: E2 85 00 6A 09 80 0D 02 02 7D 00 00 01 F3 03 06 00 82 10 00 00 00 00 07 04 06 00 78 9B 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 44 4C A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 6E A3 00 00 35 04 06 00 46 E8 A0 90 34 9E 00 00 71 [08:01:07]Write i2c OK [08:01:07]MH_I2C_Read... [08:01:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:01:07]Read from MH i2c: E2 [08:01:07]MH_I2C_Read... [08:01:07]Read from MH i2c: E2 03 00 [08:01:07]MH_I2C_Read... [08:01:07]Read from MH i2c: E2 03 00 6A 09 00 90 00 E7 [08:01:07]RAPDU: 90 00 [08:01:07]wFMCommunicate OK [08:01:07]wFMCommunicate request_size=4 [08:01:07]MH_SAM_APDU [08:01:07]CAPDU: 80 0D 03 02 [08:01:07]Write to MH i2c: E2 08 00 6B 09 80 0D 03 02 00 00 00 00 EF [08:01:07]Write i2c OK [08:01:07]MH_I2C_Read... [08:01:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:01:07]Read from MH i2c: E2 [08:01:07]MH_I2C_Read... [08:01:07]Read from MH i2c: E2 0B 00 [08:01:07]MH_I2C_Read... [08:01:07]Read from MH i2c: E2 0B 00 6B 09 00 05 2C 70 B2 8A DD AF C6 90 00 1F [08:01:07]RAPDU: 05 2C 70 B2 8A DD AF C6 90 00 [08:01:07]wFMCommunicate OK [08:01:07]SAM_PROTO_SignData done [08:01:07]FM_MakeSignedData done [08:01:07]CreateOFDProtocolMessage [08:01:07]wFMCommunicate request_size=4 [08:01:07]MH_SAM_APDU [08:01:07]CAPDU: 80 11 00 00 [08:01:07]Write to MH i2c: E2 08 00 6C 09 80 11 00 00 00 00 00 00 EF [08:01:07]Write i2c OK [08:01:07]MH_I2C_Read... [08:01:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:01:07]Read from MH i2c: E2 [08:01:07]MH_I2C_Read... [08:01:07]Read from MH i2c: E2 17 00 [08:01:07]MH_I2C_Read... [08:01:07]Read from MH i2c: E2 17 00 6C 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 4B [08:01:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [08:01:07]wFMCommunicate OK [08:01:07]CreateOFDProtocolMessage done [08:01:07]OFDSenderStorePacket 41838 [08:01:07]StoreOFDPacket docnum=41838 [08:01:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 81 02 00 00 EC 76 79 02 C9 A6 5A 03 01 00 03 00 6D 02 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 15 00 00 00 00 13 04 06 00 E0 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 9B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 10 00 00 00 00 07 04 06 00 78 9B 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 44 4C A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 6E A3 00 00 35 04 06 00 46 E8 A0 90 34 9E 05 2C 70 B2 8A DD AF C6 [08:01:07]CheckFolder [08:01:07]dirname=/storage/ofd_packets [08:01:07]CheckFolder done [08:01:07]ProducePacketName [08:01:07]name=ofd_packets/00041838 [08:01:07]NVStorageSaveData ofd_packets/00041838 [08:01:07]File name is /storage/ofd_packets/00041838 [08:01:07]Write 671 bytes [08:01:07]NVStorageSaveData done [08:01:07]OFDSenderStorePacket done [08:01:07]KKMCreateOFDPacket done [08:01:07]NVStorageSaveData kkm_last_timestamp [08:01:07]File name is /storage/kkm_last_timestamp [08:01:07]Write 4 bytes [08:01:07]NVStorageSaveData done [08:01:07]ExternCall_PrintAddStr [08:01:07]wPrintStart [08:01:07]Write to MH i2c: 01 00 00 6D 09 76 [08:01:07]Write i2c OK [08:01:07]MH_I2C_Read... [08:01:07]Read from MH i2c: 01 [08:01:07]MH_I2C_Read... [08:01:07]Read from MH i2c: 01 07 00 [08:01:07]MH_I2C_Read... [08:01:07]Read from MH i2c: 01 07 00 6D 09 00 00 00 00 00 FF 0F 8B [08:01:07]RasterBufferAndPrint [08:01:07]line Счет N : (3)183866 [08:01:07]line ИНН: 02508201610067 [08:01:07]line Контрольно-Кассовый Чек [08:01:07]line ПРОДАЖА [08:01:07]line Товар: 4870202521247 [08:01:07]line Напиток MAXI чай 1,2 черн.персик [08:01:07]line 1.000 * 125.00 [08:01:07]line = 125.00 [08:01:07]line НДС 12% НСП 1% [08:01:07]line > о реализуемом товаре [08:01:07]line Товар: 6931280300549 [08:01:07]line Зажигалка Cricket ПН пьезо [08:01:07]line 1.000 * 67.00 [08:01:07]line = 67.00 [08:01:07]line НДС 12% НСП 1% [08:01:07]line > о реализуемом товаре [08:01:08]line Товар: 4607065001445 [08:01:08]line Шок батончик Snickers 50,5г [08:01:08]line 1.000 * 56.00 [08:01:08]line = 56.00 [08:01:08]line НДС 12% НСП 1% [08:01:08]line > о реализуемом товаре [08:01:08]line Товар: 4640030091607 [08:01:08]line Сигареты ESSE Exchange [08:01:08]line 1.000 * 150.00 [08:01:08]line = 150.00 [08:01:08]line НДС 12% НСП 1% [08:01:08]line > о реализуемом товаре [08:01:08]line ИТОГО: 398.00 [08:01:08]line НСП 1% : 3.53 [08:01:08]line НДС 12% : 42.26 [08:01:08]line Наличными: 398.00 [08:01:08]line Безнал.: 0.00 [08:01:08]line Место: АЗС № 97 "Партнер Нефть" [08:01:08]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [08:01:08]line СНО: Общий режим [08:01:08]line Чек 27 29.07.2024 08:01 [08:01:08]line Смена: 427 ФФД: 1.0 [08:01:08]line ЗНМ: 0300000053 [08:01:08]line РНМ: 0000000000092626 [08:01:08]line Версия ККМ: 001 [08:01:08]line ФМ: 0000000000874958 [08:01:08]line ФД: 41838 [08:01:08]line ФПД: 77964940162206 [08:01:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T080108&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41838&fm=77964940162206&tin=02508201610067®Number=0000000000092626&sum=39800 [08:01:08]line 0 [08:01:08]OFD Sender: Processing packet 41838 [packets to send 57, broken 56] [08:01:08]ProducePacketName [08:01:08]name=ofd_packets/00041838 [08:01:08]OFD Sender: To server: pG, [08:01:08]CommunicateWithHost lk.salyk.kg:30040 [08:01:08]ConnectInit lk.salyk.kg [08:01:08]written 0, free lines is 4095 [08:01:08]Connected sock=9 [08:01: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 35 38 81 02 00 00 EC 76 79 02 C9 A6 5A 03 01 00 03 00 6D 02 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 15 00 00 00 00 13 04 06 00 E0 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 9B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 10 00 00 00 00 07 04 06 00 78 9B 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 44 4C A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 6E A3 00 00 35 04 06 00 46 E8 A0 90 34 9E 05 2C 70 B2 8A DD AF C6 [08:01:08]Write to MH i2c: 01 00 00 A8 09 B1 [08:01:08]Write i2c OK [08:01:08]MH_I2C_Read... [08:01:08]Read from MH i2c: 01 [08:01:08]MH_I2C_Read... [08:01:08]Read from MH i2c: 01 07 00 [08:01:08]MH_I2C_Read... [08:01:08]Read from MH i2c: 01 07 00 A8 09 00 00 00 00 00 4B 0C 0F [08:01:08]RasterBufferAndPrint [08:01:08]line [08:01:08]line [08:01:08]line [08:01:08]line [08:01:08]line [08:01:08]written 0, free lines is 3159 [08:01:08]MH_Cut [08:01:08]Write to MH i2c: D1 01 00 AF 09 01 8A [08:01:08]Write i2c OK [08:01:08]MH_I2C_Read... [08:01:08]Read from MH i2c: D1 [08:01:08]MH_I2C_Read... [08:01:08]Read from MH i2c: D1 01 00 [08:01:08]MH_I2C_Read... [08:01:08]Read from MH i2c: D1 01 00 AF 09 00 89 [08:01:08]Write to MH i2c: 01 00 00 B0 09 B9 [08:01:08]Write i2c OK [08:01:08]MH_I2C_Read... [08:01: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 35 38 4F 00 00 00 3D 45 47 00 33 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 35 38 10 04 04 00 6E A3 00 00 F4 03 04 00 57 F8 A6 66 B6 04 01 00 00 2C 16 67 4D 55 1A 47 61 [08:01:09]CommunicateWithHost err = 0 [08:01:09]CheckOFDResponse [08:01:09]1017 (14) - 77093643461234 [08:01:09]1041 (16) - 0000000000874958 [08:01:09]1040 (4) - 41838 [08:01:09]1012 (4) - 29.07.2024 02:03 [08:01:09]1206 (1) - 0 [08:01:09]OFD Sender: Remove packet 41838 [08:01:09]ProducePacketName [08:01:09]name=ofd_packets/00041838 [08:01:09]NVStorageDeleteData [08:01:09]OFD Sender: No OFD packet to send [08:01:09]*** Cut start [08:01:09]*** Partial cut [08:01:09]*** CUTSNS_PIN = 1 [08:01:09]*** CUTSNS_PIN = 0 [08:01:10]*** Brake cut motor [08:01:10]Read from MH i2c: 01 [08:01:10]MH_I2C_Read... [08:01:10]*** Stop cut motor [08:01:10]*** Cut end [08:01:10]Read from MH i2c: 01 07 00 [08:01:10]MH_I2C_Read... [08:01:10]Read from MH i2c: 01 07 00 B0 09 00 00 00 00 00 FF 0F CE [08:01:10]process_action close_receipt done [08:01:10]requested_data is exist [08:01:10]produce_requested_data [08:01:10]requested_item fm.sn is exist - process it [08:01:10]wFMCommunicate request_size=4 [08:01:10]MH_SAM_APDU [08:01:10]CAPDU: 80 11 00 00 [08:01:10]Write to MH i2c: E2 08 00 B1 09 80 11 00 00 00 00 00 00 34 [08:01:10]Write i2c OK [08:01:10]MH_I2C_Read... [08:01:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:01:10]Read from MH i2c: E2 [08:01:10]MH_I2C_Read... [08:01:10]Read from MH i2c: E2 17 00 [08:01:10]MH_I2C_Read... [08:01:10]Read from MH i2c: E2 17 00 B1 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 90 [08:01:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [08:01:10]wFMCommunicate OK [08:01:10]requested_item fd.num is exist - process it [08:01:10]SAM_PROTO_GetFieldsCounters [08:01:10]wFMCommunicate request_size=4 [08:01:10]MH_SAM_APDU [08:01:10]CAPDU: 80 13 00 00 [08:01:10]Write to MH i2c: E2 08 00 B2 09 80 13 00 00 00 00 00 00 37 [08:01:10]Write i2c OK [08:01:10]MH_I2C_Read... [08:01:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:01:10]Read from MH i2c: E2 [08:01:10]MH_I2C_Read... [08:01:10]Read from MH i2c: E2 62 00 [08:01:10]MH_I2C_Read... [08:01:10]Read from MH i2c: E2 62 00 B2 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 6E A3 00 00 0E 04 04 00 AB 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 6F [08:01: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 6E A3 00 00 0E 04 04 00 AB 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:01:10]wFMCommunicate OK [08:01:10]SAM_PROTO_GetFieldsCounters done [08:01:10]requested_item shift.num is exist - process it [08:01:10]requested_item shift.opened is exist - process it [08:01:10]req_shift_opened [08:01:10]FM_GetShiftState [08:01:10]SAM_PROTO_GetShiftState [08:01:10]wFMCommunicate request_size=4 [08:01:10]MH_SAM_APDU [08:01:10]CAPDU: 80 13 01 00 [08:01:10]Write to MH i2c: E2 08 00 B3 09 80 13 01 00 00 00 00 00 39 [08:01:10]Write i2c OK [08:01:10]MH_I2C_Read... [08:01:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:01:10]Read from MH i2c: E2 [08:01:10]MH_I2C_Read... [08:01:10]Read from MH i2c: E2 0E 00 [08:01:10]MH_I2C_Read... [08:01:10]Read from MH i2c: E2 0E 00 B3 09 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 D5 [08:01:10]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [08:01:10]wFMCommunicate OK [08:01:10]SAM_PROTO_GetShiftState done [08:01:10]FM_GetShiftState done [08:01:10]req_shift_opened done [08:01:10]requested_item shift.open_date is exist - process it [08:01:10]req_shift_open_date [08:01:10]req_shift_open_date done [08:01:10]produce_requested_data done [08:01:10]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41838,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [08:01:10]process_action_free close_receipt [08:01:10]json_value_free [08:01:10]json_value_free done [08:01:10]process_json_proto returns [08:01:10]Send response to host [08:01:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41838,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [08:01:10]free response buf [08:01:10]execute_script done [08:01:10]execute_script returns [08:01:10]free content buf [08:01:10]Sock 8.Close socket [08:01:10]Sock 8.Thread stoped [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:49]OFD Sender: No OFD packet to send [08:03:54]OFD Sender: No OFD packet to send [08:03:59]OFD Sender: No OFD packet to send [08:04:04]OFD Sender: No OFD packet to send [08:04:09]OFD Sender: No OFD packet to send [08:04:14]OFD Sender: No OFD packet to send [08:04:19]OFD Sender: No OFD packet to send [08:04:24]OFD Sender: No OFD packet to send [08:04:29]OFD Sender: No OFD packet to send [08:04:34]OFD Sender: No OFD packet to send [08:04:38]recv_with_timeout no data received [08:04:39]OFD Sender: No OFD packet to send [08:04:44]OFD Sender: No OFD packet to send [08:04:49]OFD Sender: No OFD packet to send [08:04:54]OFD Sender: No OFD packet to send [08:04:59]OFD Sender: No OFD packet to send [08:05:04]OFD Sender: No OFD packet to send [08:05:09]OFD Sender: No OFD packet to send [08:05:14]OFD Sender: No OFD packet to send [08:05:19]OFD Sender: No OFD packet to send [08:05:24]OFD Sender: No OFD packet to send [08:05:29]OFD Sender: No OFD packet to send [08:05:34]OFD Sender: No OFD packet to send [08:05:39]OFD Sender: No OFD packet to send [08:05:44]OFD Sender: No OFD packet to send [08:05:49]OFD Sender: No OFD packet to send [08:05:54]OFD Sender: No OFD packet to send [08:05:59]OFD Sender: No OFD packet to send [08:06:04]OFD Sender: No OFD packet to send [08:06:09]OFD Sender: No OFD packet to send [08:06:14]OFD Sender: No OFD packet to send [08:06:19]OFD Sender: No OFD packet to send [08:06:24]OFD Sender: No OFD packet to send [08:06:29]OFD Sender: No OFD packet to send [08:06:34]OFD Sender: No OFD packet to send [08:06:39]OFD Sender: No OFD packet to send [08:06:44]OFD Sender: No OFD packet to send [08:06:49]OFD Sender: No OFD packet to send [08:06:54]OFD Sender: No OFD packet to send [08:07:00]OFD Sender: No OFD packet to send [08:07:05]OFD Sender: No OFD packet to send [08:07:10]OFD Sender: No OFD packet to send [08:07:15]OFD Sender: No OFD packet to send [08:07:20]OFD Sender: No OFD packet to send [08:07:25]OFD Sender: No OFD packet to send [08:07:30]OFD Sender: No OFD packet to send [08:07:35]OFD Sender: No OFD packet to send [08:07:40]OFD Sender: No OFD packet to send [08:07:45]OFD Sender: No OFD packet to send [08:07:50]OFD Sender: No OFD packet to send [08:07:55]OFD Sender: No OFD packet to send [08:08:00]OFD Sender: No OFD packet to send [08:08:01]accept exits with 10 [08:08:01]New connection [08:08:01]New thread 3067030884 created [08:08:01]Thread 3066887524 joined [08:08:01]Waiting for new connection... [08:08:01] Sock 10.Parse request [08:08:01]Sock 10.Check first char [08:08:01]Sock 10.First char is OK [08:08:01]request: POST /json_proto HTTP/1.0 [08:08:01]Method: POST [08:08:01]URL: /json_proto [08:08:01]Method is POST - this is cgi request [08:08:01]url: /json_proto [08:08:01]query_string will be loaded in cgi processing [08:08:01]execute_cgi json_proto POST (null) [08:08:01]execute_cgi path=json_proto method=POST [08:08:01]POST find Content-Length [08:08:01]Host: 172.17.43.132:8080 [08:08:01]Content-Length: 675 [08:08:01]Content-Type: application/json [08:08:01] [08:08:01]POST finish read [08:08:01]Found Content-Length = 675 [08:08:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183867", "tax_sys" : 0, "items" : [ { "code": "4700040114120", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:08:01]execute_script... [08:08:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183867", "tax_sys" : 0, "items" : [ { "code": "4700040114120", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:08:01]POST & json_proto [08:08:01]process_json_proto [08:08:01]json parsed OK: [08:08:01]protocol is kg_v1.0 [08:08:01]action value=close_receipt [08:08:01]process_action close_receipt [08:08:01]cmd_close_receipt [08:08:01]MH_GetDate [08:08:01]Write to MH i2c: F0 00 00 B4 09 AC [08:08:01]Write i2c OK [08:08:01]MH_I2C_Read... [08:08:01]Read from MH i2c: F0 [08:08:01]MH_I2C_Read... [08:08:01]Read from MH i2c: F0 09 00 [08:08:01]MH_I2C_Read... [08:08:01]Read from MH i2c: F0 09 00 B4 09 00 E4 4D A7 66 AA D0 A5 66 78 [08:08:01]GetLastDocTimeStamp 1722240068 [08:08:01]current date 1722240484 [08:08:01]FM_GetShiftState [08:08:01]SAM_PROTO_GetShiftState [08:08:01]wFMCommunicate request_size=4 [08:08:01]MH_SAM_APDU [08:08:01]CAPDU: 80 13 01 00 [08:08:01]Write to MH i2c: E2 08 00 B5 09 80 13 01 00 00 00 00 00 3B [08:08:01]Write i2c OK [08:08:01]MH_I2C_Read... [08:08:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:08:01]Read from MH i2c: E2 [08:08:01]MH_I2C_Read... [08:08:01]Read from MH i2c: E2 0E 00 [08:08:01]MH_I2C_Read... [08:08:01]Read from MH i2c: E2 0E 00 B5 09 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 D7 [08:08:01]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [08:08:01]wFMCommunicate OK [08:08:01]SAM_PROTO_GetShiftState done [08:08:01]FM_GetShiftState done [08:08:01]opened in 1722211496 [08:08:01]opened+sec_in_day 1722297896 [08:08:01]quantity*price = 6500 [08:08:01]sum+1 = 6501 [08:08:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 28 29.07.2024 08:08 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41839 ФПД: 279795375667753 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T080804&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41839&fm=279795375667753&tin=02508201610067®Number=0000000000092626&sum=6500 0 [08:08:02]StoreToDocumentArchive [08:08:02]shift 427 fd 41839 [08:08:02]save to /storage/0427/doc_00041839 [08:08:02]save last doc name /storage/0427/doc_00041839 to /storage/kkm_last_doc_name [08:08:02]save OK [08:08:02]Clear old archive folders... [08:08:02]ProcessDocumentItem done err = 0, tmpTLVsize=286 [08:08:02]tlvbuf is 013EF550 [08:08:02]SAM_PROTO_ClearQueue [08:08:02]wFMCommunicate request_size=4 [08:08:02]MH_SAM_APDU [08:08:02]CAPDU: 80 09 00 00 [08:08:02]Write to MH i2c: E2 08 00 C2 09 80 09 00 00 00 00 00 00 3D [08:08:02]Write i2c OK [08:08:02]MH_I2C_Read... [08:08:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:08:03]Read from MH i2c: E2 [08:08:03]MH_I2C_Read... [08:08:03]Read from MH i2c: E2 03 00 [08:08:03]MH_I2C_Read... [08:08:03]Read from MH i2c: E2 03 00 C2 09 00 90 00 3F [08:08:03]RAPDU: 90 00 [08:08:03]wFMCommunicate OK [08:08:03]SAM_PROTO_ClearQueue done [08:08:03]KKMCreateOFDPacket [08:08:03]OFDProtocolAddRootSTLVToBuf [08:08:03]FM_MakeSignedData [08:08:03]FM_MakeSignedData [08:08:03]SAM_PROTO_SignData [08:08:03]wFMCommunicate request_size=4 [08:08:03]MH_SAM_APDU [08:08:03]CAPDU: 80 0D 01 02 [08:08:03]Write to MH i2c: E2 08 00 C3 09 80 0D 01 02 00 00 00 00 45 [08:08:03]Write i2c OK [08:08:03]MH_I2C_Read... [08:08:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:08:03]Read from MH i2c: E2 [08:08:03]MH_I2C_Read... [08:08:03]Read from MH i2c: E2 03 00 [08:08:03]MH_I2C_Read... [08:08:03]Read from MH i2c: E2 03 00 C3 09 00 90 00 40 [08:08:03]RAPDU: 90 00 [08:08:03]wFMCommunicate OK [08:08:03]wFMCommunicate request_size=255 [08:08:03]MH_SAM_APDU [08:08:03]CAPDU: 80 0D 02 02 FA 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 E4 4D A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 [08:08:03]Write to MH i2c: E2 02 01 C4 09 80 0D 02 02 FA 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 E4 4D A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 00 00 13 [08:08:03]Write i2c OK [08:08:03]MH_I2C_Read... [08:08:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:08:03]Read from MH i2c: E2 [08:08:03]MH_I2C_Read... [08:08:03]Read from MH i2c: E2 03 00 [08:08:03]MH_I2C_Read... [08:08:03]Read from MH i2c: E2 03 00 C4 09 00 90 00 41 [08:08:03]RAPDU: 90 00 [08:08:03]wFMCommunicate OK [08:08:03]wFMCommunicate request_size=45 [08:08:03]MH_SAM_APDU [08:08:03]CAPDU: 80 0D 02 02 28 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 6F A3 00 00 35 04 06 00 FE 78 EF F9 FA 29 [08:08:03]Write to MH i2c: E2 30 00 C5 09 80 0D 02 02 28 00 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 6F A3 00 00 35 04 06 00 FE 78 EF F9 FA 29 00 00 38 [08:08:03]Write i2c OK [08:08:03]MH_I2C_Read... [08:08:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:08:03]Read from MH i2c: E2 [08:08:03]MH_I2C_Read... [08:08:03]Read from MH i2c: E2 03 00 [08:08:03]MH_I2C_Read... [08:08:03]Read from MH i2c: E2 03 00 C5 09 00 90 00 42 [08:08:03]RAPDU: 90 00 [08:08:03]wFMCommunicate OK [08:08:03]wFMCommunicate request_size=4 [08:08:03]MH_SAM_APDU [08:08:03]CAPDU: 80 0D 03 02 [08:08:03]Write to MH i2c: E2 08 00 C6 09 80 0D 03 02 00 00 00 00 4A [08:08:03]Write i2c OK [08:08:03]MH_I2C_Read... [08:08:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:08:03]Read from MH i2c: E2 [08:08:03]MH_I2C_Read... [08:08:03]Read from MH i2c: E2 0B 00 [08:08:03]MH_I2C_Read... [08:08:03]Read from MH i2c: E2 0B 00 C6 09 00 BE D9 98 D1 6C 79 0E BD 90 00 FB [08:08:03]RAPDU: BE D9 98 D1 6C 79 0E BD 90 00 [08:08:03]wFMCommunicate OK [08:08:03]SAM_PROTO_SignData done [08:08:03]FM_MakeSignedData done [08:08:03]CreateOFDProtocolMessage [08:08:03]wFMCommunicate request_size=4 [08:08:03]MH_SAM_APDU [08:08:03]CAPDU: 80 11 00 00 [08:08:03]Write to MH i2c: E2 08 00 C7 09 80 11 00 00 00 00 00 00 4A [08:08:03]Write i2c OK [08:08:03]MH_I2C_Read... [08:08:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:08:03]Read from MH i2c: E2 [08:08:03]MH_I2C_Read... [08:08:03]Read from MH i2c: E2 17 00 [08:08:03]MH_I2C_Read... [08:08:03]Read from MH i2c: E2 17 00 C7 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 A6 [08:08:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [08:08:03]wFMCommunicate OK [08:08:03]CreateOFDProtocolMessage done [08:08:03]OFDSenderStorePacket 41839 [08:08:03]StoreOFDPacket docnum=41839 [08:08:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 32 01 00 00 08 03 2A 01 51 C8 5A 03 01 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 E4 4D A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 6F A3 00 00 35 04 06 00 FE 78 EF F9 FA 29 BE D9 98 D1 6C 79 0E BD [08:08:03]CheckFolder [08:08:03]dirname=/storage/ofd_packets [08:08:03]CheckFolder done [08:08:03]ProducePacketName [08:08:03]name=ofd_packets/00041839 [08:08:03]NVStorageSaveData ofd_packets/00041839 [08:08:03]File name is /storage/ofd_packets/00041839 [08:08:03]Write 336 bytes [08:08:03]NVStorageSaveData done [08:08:03]OFDSenderStorePacket done [08:08:03]KKMCreateOFDPacket done [08:08:03]NVStorageSaveData kkm_last_timestamp [08:08:03]File name is /storage/kkm_last_timestamp [08:08:03]Write 4 bytes [08:08:03]NVStorageSaveData done [08:08:03]OFD Sender: Processing packet 41839 [packets to send 57, broken 56] [08:08:03]ProducePacketName [08:08:03]name=ofd_packets/00041839 [08:08:03]OFD Sender: To server: pG, [08:08:03]CommunicateWithHost lk.salyk.kg:30040 [08:08:03]ConnectInit lk.salyk.kg [08:08:03]ExternCall_PrintAddStr [08:08:03]wPrintStart [08:08:03]Write to MH i2c: 01 00 00 C8 09 D1 [08:08:03]Write i2c OK [08:08:03]MH_I2C_Read... [08:08:03]Read from MH i2c: 01 [08:08:03]MH_I2C_Read... [08:08:03]Read from MH i2c: 01 07 00 [08:08:03]MH_I2C_Read... [08:08:03]Read from MH i2c: 01 07 00 C8 09 00 00 00 00 00 FF 0F E6 [08:08:03]RasterBufferAndPrint [08:08:03]line Счет N : (3)183867 [08:08:03]line ИНН: 02508201610067 [08:08:03]line Контрольно-Кассовый Чек [08:08:03]line ПРОДАЖА [08:08:03]line Товар: 4700040114120 [08:08:03]line Султан чай 1л. чер персик [08:08:03]line 1.000 * 65.00 [08:08:03]line = 65.00 [08:08:03]line НДС 12% НСП 1% [08:08:03]line > о реализуемом товаре [08:08:03]line ИТОГО: 65.00 [08:08:03]line НСП 1% : 0.57 [08:08:03]line НДС 12% : 6.90 [08:08:03]line Наличными: 65.00 [08:08:03]line Безнал.: 0.00 [08:08:03]line Место: АЗС № 97 "Партнер Нефть" [08:08:03]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [08:08:03]line СНО: Общий режим [08:08:03]line Чек 28 29.07.2024 08:08 [08:08:03]line Смена: 427 ФФД: 1.0 [08:08:03]line ЗНМ: 0300000053 [08:08:03]line РНМ: 0000000000092626 [08:08:03]line Версия ККМ: 001 [08:08:03]line ФМ: 0000000000874958 [08:08:03]line ФД: 41839 [08:08:03]line ФПД: 279795375667753 [08:08:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T080804&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41839&fm=279795375667753&tin=02508201610067®Number=0000000000092626&sum=6500 [08:08:03]line 0 [08:08:03]written 0, free lines is 4095 [08:08:04]Write to MH i2c: 01 00 00 F0 09 F9 [08:08:04]Write i2c OK [08:08:04]MH_I2C_Read... [08:08:04]Read from MH i2c: 01 [08:08:04]MH_I2C_Read... [08:08:04]Read from MH i2c: 01 07 00 [08:08:04]MH_I2C_Read... [08:08:04]Read from MH i2c: 01 07 00 F0 09 00 00 00 00 00 18 0D 25 [08:08:04]RasterBufferAndPrint [08:08:04]line [08:08:04]line [08:08:04]line [08:08:04]line [08:08:04]line [08:08:04]written 0, free lines is 3358 [08:08:04]MH_Cut [08:08:04]Write to MH i2c: D1 01 00 F7 09 01 D2 [08:08:04]Write i2c OK [08:08:04]MH_I2C_Read... [08:08:04]Read from MH i2c: D1 [08:08:04]MH_I2C_Read... [08:08:04]Read from MH i2c: D1 01 00 [08:08:04]MH_I2C_Read... [08:08:04]Read from MH i2c: D1 01 00 F7 09 00 D1 [08:08:04]Write to MH i2c: 01 00 00 F8 09 01 [08:08:04]Write i2c OK [08:08:04]MH_I2C_Read... [08:08:04]*** Cut start [08:08:04]*** Partial cut [08:08:04]*** CUTSNS_PIN = 1 [08:08:04]Connected sock=11 [08:08: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 35 38 32 01 00 00 08 03 2A 01 51 C8 5A 03 01 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 E4 4D A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 6F A3 00 00 35 04 06 00 FE 78 EF F9 FA 29 BE D9 98 D1 6C 79 0E BD [08:08:05]*** CUTSNS_PIN = 0 [08:08:05]*** Brake cut motor [08:08: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 35 38 4F 00 00 00 2A F2 47 00 3B 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 6F A3 00 00 F4 03 04 00 F7 F9 A6 66 B6 04 01 00 00 42 4C E4 C0 A1 9D DA 0E [08:08:05]CommunicateWithHost err = 0 [08:08:05]CheckOFDResponse [08:08:05]1017 (14) - 77093643461234 [08:08:05]1041 (16) - 0000000000874958 [08:08:05]1040 (4) - 41839 [08:08:05]1012 (4) - 29.07.2024 02:09 [08:08:05]1206 (1) - 0 [08:08:05]OFD Sender: Remove packet 41839 [08:08:05]ProducePacketName [08:08:05]name=ofd_packets/00041839 [08:08:05]NVStorageDeleteData [08:08:05]Read from MH i2c: 01 [08:08:05]MH_I2C_Read... [08:08:05]*** Stop cut motor [08:08:05]*** Cut end [08:08:05]Read from MH i2c: 01 07 00 [08:08:05]MH_I2C_Read... [08:08:05]Read from MH i2c: 01 07 00 F8 09 00 00 00 00 00 FF 0F 16 [08:08:05]process_action close_receipt done [08:08:05]requested_data is exist [08:08:05]produce_requested_data [08:08:05]requested_item fm.sn is exist - process it [08:08:05]wFMCommunicate request_size=4 [08:08:05]MH_SAM_APDU [08:08:05]CAPDU: 80 11 00 00 [08:08:05]Write to MH i2c: E2 08 00 F9 09 80 11 00 00 00 00 00 00 7C [08:08:05]Write i2c OK [08:08:05]MH_I2C_Read... [08:08:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:08:05]Read from MH i2c: E2 [08:08:05]MH_I2C_Read... [08:08:05]Read from MH i2c: E2 17 00 [08:08:05]MH_I2C_Read... [08:08:05]Read from MH i2c: E2 17 00 F9 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 D8 [08:08:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [08:08:05]wFMCommunicate OK [08:08:05]requested_item fd.num is exist - process it [08:08:05]SAM_PROTO_GetFieldsCounters [08:08:05]wFMCommunicate request_size=4 [08:08:05]MH_SAM_APDU [08:08:05]CAPDU: 80 13 00 00 [08:08:05]Write to MH i2c: E2 08 00 FA 09 80 13 00 00 00 00 00 00 7F [08:08:05]Write i2c OK [08:08:05]MH_I2C_Read... [08:08:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:08:05]Read from MH i2c: E2 [08:08:05]MH_I2C_Read... [08:08:05]Read from MH i2c: E2 62 00 [08:08:05]MH_I2C_Read... [08:08:05]Read from MH i2c: E2 62 00 FA 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 6F A3 00 00 0E 04 04 00 AB 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 BB [08:08: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 6F A3 00 00 0E 04 04 00 AB 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:08:05]wFMCommunicate OK [08:08:05]SAM_PROTO_GetFieldsCounters done [08:08:05]requested_item shift.num is exist - process it [08:08:05]requested_item shift.opened is exist - process it [08:08:05]req_shift_opened [08:08:05]FM_GetShiftState [08:08:05]SAM_PROTO_GetShiftState [08:08:05]wFMCommunicate request_size=4 [08:08:05]MH_SAM_APDU [08:08:05]CAPDU: 80 13 01 00 [08:08:05]Write to MH i2c: E2 08 00 FB 09 80 13 01 00 00 00 00 00 81 [08:08:05]Write i2c OK [08:08:05]MH_I2C_Read... [08:08:05]OFD Sender: No OFD packet to send [08:08:05]Read from MH i2c: E2 [08:08:05]MH_I2C_Read... [08:08:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:08:05]Read from MH i2c: E2 0E 00 [08:08:05]MH_I2C_Read... [08:08:05]Read from MH i2c: E2 0E 00 FB 09 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 1D [08:08:05]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [08:08:05]wFMCommunicate OK [08:08:05]SAM_PROTO_GetShiftState done [08:08:05]FM_GetShiftState done [08:08:05]req_shift_opened done [08:08:05]requested_item shift.open_date is exist - process it [08:08:05]req_shift_open_date [08:08:05]req_shift_open_date done [08:08:05]produce_requested_data done [08:08:05]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41839,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [08:08:05]process_action_free close_receipt [08:08:05]json_value_free [08:08:05]json_value_free done [08:08:05]process_json_proto returns [08:08:05]Send response to host [08:08:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41839,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [08:08:05]free response buf [08:08:05]execute_script done [08:08:05]execute_script returns [08:08:05]free content buf [08:08:05]Sock 10.Close socket [08:08:05]Sock 10.Thread stoped [08:08:10]OFD Sender: No OFD packet to send [08:08:15]OFD Sender: No OFD packet to send [08:08:20]OFD Sender: No OFD packet to send [08:08:25]OFD Sender: No OFD packet to send [08:08:28]recv_with_timeout no data received [08:08:30]OFD Sender: No OFD packet to send [08:08:35]OFD Sender: No OFD packet to send [08:08:40]OFD Sender: No OFD packet to send [08:08:45]OFD Sender: No OFD packet to send [08:08:50]OFD Sender: No OFD packet to send [08:08:55]OFD Sender: No OFD packet to send [08:09:00]OFD Sender: No OFD packet to send [08:09:05]OFD Sender: No OFD packet to send [08:09:11]OFD Sender: No OFD packet to send [08:09:16]OFD Sender: No OFD packet to send [08:09:21]OFD Sender: No OFD packet to send [08:09:26]OFD Sender: No OFD packet to send [08:09:31]OFD Sender: No OFD packet to send [08:09:36]OFD Sender: No OFD packet to send [08:09:36]recv_with_timeout no data received [08:09:41]OFD Sender: No OFD packet to send [08:09:46]OFD Sender: No OFD packet to send [08:09:51]OFD Sender: No OFD packet to send [08:09:56]OFD Sender: No OFD packet to send [08:10:01]OFD Sender: No OFD packet to send [08:10:01]accept exits with 9 [08:10:01]New connection [08:10:01]New thread 3066887524 created [08:10:01]Thread 3067030884 joined [08:10:01]Waiting for new connection... [08:10:01] Sock 9.Parse request [08:10:01]Sock 9.Check first char [08:10:01]Sock 9.First char is OK [08:10:01]request: POST /json_proto HTTP/1.0 [08:10:01]Method: POST [08:10:01]URL: /json_proto [08:10:01]Method is POST - this is cgi request [08:10:01]url: /json_proto [08:10:01]query_string will be loaded in cgi processing [08:10:01]execute_cgi json_proto POST (null) [08:10:01]execute_cgi path=json_proto method=POST [08:10:01]POST find Content-Length [08:10:01]Host: 172.17.43.132:8080 [08:10:01]Content-Length: 775 [08:10:01]Content-Type: application/json [08:10:01] [08:10:01]POST finish read [08:10:01]Found Content-Length = 775 [08:10:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183868", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.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" : 111.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:10:01]execute_script... [08:10:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183868", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.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" : 111.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:10:01]POST & json_proto [08:10:01]process_json_proto [08:10:01]json parsed OK: [08:10:01]protocol is kg_v1.0 [08:10:01]action value=close_receipt [08:10:01]process_action close_receipt [08:10:01]cmd_close_receipt [08:10:01]MH_GetDate [08:10:01]Write to MH i2c: F0 00 00 FC 09 F4 [08:10:01]Write i2c OK [08:10:01]MH_I2C_Read... [08:10:01]Read from MH i2c: F0 [08:10:01]MH_I2C_Read... [08:10:01]Read from MH i2c: F0 09 00 [08:10:01]MH_I2C_Read... [08:10:01]Read from MH i2c: F0 09 00 FC 09 00 5C 4E A7 66 AA D0 A5 66 39 [08:10:01]GetLastDocTimeStamp 1722240484 [08:10:01]current date 1722240604 [08:10:01]FM_GetShiftState [08:10:01]SAM_PROTO_GetShiftState [08:10:01]wFMCommunicate request_size=4 [08:10:01]MH_SAM_APDU [08:10:01]CAPDU: 80 13 01 00 [08:10:01]Write to MH i2c: E2 08 00 FD 09 80 13 01 00 00 00 00 00 83 [08:10:01]Write i2c OK [08:10:01]MH_I2C_Read... [08:10:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:10:01]Read from MH i2c: E2 [08:10:01]MH_I2C_Read... [08:10:01]Read from MH i2c: E2 0E 00 [08:10:01]MH_I2C_Read... [08:10:01]Read from MH i2c: E2 0E 00 FD 09 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 1F [08:10:01]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [08:10:01]wFMCommunicate OK [08:10:01]SAM_PROTO_GetShiftState done [08:10:01]FM_GetShiftState done [08:10:01]opened in 1722211496 [08:10:01]opened+sec_in_day 1722297896 [08:10:01]quantity*price = 11100 [08:10:01]sum+1 = 11101 [08:10:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 111.00 НСП 1% : 0.98 НДС 12% : 11.79 Наличными: 0.00 Безнал.: 111.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 29 29.07.2024 08:10 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874958 ФД: 41840 ФПД: 195927541349183 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T081004&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41840&fm=195927541349183&tin=02508201610067®Number=0000000000092626&sum=11100 0 [08:10:02]StoreToDocumentArchive [08:10:02]shift 427 fd 41840 [08:10:02]save to /storage/0427/doc_00041840 [08:10:02]save last doc name /storage/0427/doc_00041840 to /storage/kkm_last_doc_name [08:10:02]save OK [08:10:02]Clear old archive folders... [08:10:02]ProcessDocumentItem done err = 0, tmpTLVsize=266 [08:10:02]tlvbuf is 013CF260 [08:10:02]SAM_PROTO_ClearQueue [08:10:02]wFMCommunicate request_size=4 [08:10:02]MH_SAM_APDU [08:10:02]CAPDU: 80 09 00 00 [08:10:02]Write to MH i2c: E2 08 00 0A 0A 80 09 00 00 00 00 00 00 86 [08:10:02]Write i2c OK [08:10:02]MH_I2C_Read... [08:10:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:10:02]Read from MH i2c: E2 [08:10:02]MH_I2C_Read... [08:10:02]Read from MH i2c: E2 03 00 [08:10:02]MH_I2C_Read... [08:10:02]Read from MH i2c: E2 03 00 0A 0A 00 90 00 88 [08:10:02]RAPDU: 90 00 [08:10:02]wFMCommunicate OK [08:10:02]SAM_PROTO_ClearQueue done [08:10:02]KKMCreateOFDPacket [08:10:02]OFDProtocolAddRootSTLVToBuf [08:10:02]FM_MakeSignedData [08:10:02]FM_MakeSignedData [08:10:02]SAM_PROTO_SignData [08:10:02]wFMCommunicate request_size=4 [08:10:02]MH_SAM_APDU [08:10:02]CAPDU: 80 0D 01 02 [08:10:02]Write to MH i2c: E2 08 00 0B 0A 80 0D 01 02 00 00 00 00 8E [08:10:02]Write i2c OK [08:10:02]MH_I2C_Read... [08:10:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:10:02]Read from MH i2c: E2 [08:10:02]MH_I2C_Read... [08:10:02]Read from MH i2c: E2 03 00 [08:10:02]MH_I2C_Read... [08:10:02]Read from MH i2c: E2 03 00 0B 0A 00 90 00 89 [08:10:02]RAPDU: 90 00 [08:10:02]wFMCommunicate OK [08:10:02]wFMCommunicate request_size=255 [08:10:02]MH_SAM_APDU [08:10:02]CAPDU: 80 0D 02 02 FA 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 2B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 5C 4E A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 [08:10:02]Write to MH i2c: E2 02 01 0C 0A 80 0D 02 02 FA 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 2B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 5C 4E A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 00 00 29 [08:10:02]Write i2c OK [08:10:02]MH_I2C_Read... [08:10:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:10:03]Read from MH i2c: E2 [08:10:03]MH_I2C_Read... [08:10:03]Read from MH i2c: E2 03 00 [08:10:03]MH_I2C_Read... [08:10:03]Read from MH i2c: E2 03 00 0C 0A 00 90 00 8A [08:10:03]RAPDU: 90 00 [08:10:03]wFMCommunicate OK [08:10:03]wFMCommunicate request_size=25 [08:10:03]MH_SAM_APDU [08:10:03]CAPDU: 80 0D 02 02 14 35 38 10 04 04 00 70 A3 00 00 35 04 06 00 B2 31 EF 80 FB 3F [08:10:03]Write to MH i2c: E2 1C 00 0D 0A 80 0D 02 02 14 00 35 38 10 04 04 00 70 A3 00 00 35 04 06 00 B2 31 EF 80 FB 3F 00 00 1C [08:10:03]Write i2c OK [08:10:03]MH_I2C_Read... [08:10:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:10:03]Read from MH i2c: E2 [08:10:03]MH_I2C_Read... [08:10:03]Read from MH i2c: E2 03 00 [08:10:03]MH_I2C_Read... [08:10:03]Read from MH i2c: E2 03 00 0D 0A 00 90 00 8B [08:10:03]RAPDU: 90 00 [08:10:03]wFMCommunicate OK [08:10:03]wFMCommunicate request_size=4 [08:10:03]MH_SAM_APDU [08:10:03]CAPDU: 80 0D 03 02 [08:10:03]Write to MH i2c: E2 08 00 0E 0A 80 0D 03 02 00 00 00 00 93 [08:10:03]Write i2c OK [08:10:03]MH_I2C_Read... [08:10:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:10:03]Read from MH i2c: E2 [08:10:03]MH_I2C_Read... [08:10:03]Read from MH i2c: E2 0B 00 [08:10:03]MH_I2C_Read... [08:10:03]Read from MH i2c: E2 0B 00 0E 0A 00 1B 88 BE 3B D7 91 5E 9D 90 00 93 [08:10:03]RAPDU: 1B 88 BE 3B D7 91 5E 9D 90 00 [08:10:03]wFMCommunicate OK [08:10:03]SAM_PROTO_SignData done [08:10:03]FM_MakeSignedData done [08:10:03]CreateOFDProtocolMessage [08:10:03]wFMCommunicate request_size=4 [08:10:03]MH_SAM_APDU [08:10:03]CAPDU: 80 11 00 00 [08:10:03]Write to MH i2c: E2 08 00 0F 0A 80 11 00 00 00 00 00 00 93 [08:10:03]Write i2c OK [08:10:03]MH_I2C_Read... [08:10:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:10:03]Read from MH i2c: E2 [08:10:03]MH_I2C_Read... [08:10:03]Read from MH i2c: E2 17 00 [08:10:03]MH_I2C_Read... [08:10:03]Read from MH i2c: E2 17 00 0F 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 EF [08:10:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [08:10:03]wFMCommunicate OK [08:10:03]CreateOFDProtocolMessage done [08:10:03]OFDSenderStorePacket 41840 [00:00:09] *** EcrCore started. Build 196 *** [00:00:09]/dev/ttyS4 opened [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]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 81 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 26 [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]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:09]*** [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]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:09]*** Serial: 3139303353513838 5400000000572581 (1903SQ88T) [00:00:09]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:09]*** step 0: 5000 (2650, 2350 REF) [00:00:09]*** step 1: 4835 (2500, 2335 REF) [00:00:09]*** step 2: 4676 (2440, 2236 REF) [00:00:09]*** step 3: 4523 (2280, 2243 REF) [00:00:09]*** step 4: 4376 (2160, 2216 REF) [00:00:09]*** step 5: 4235 (2050, 2185 REF) [00:00:09]*** step 6: 4098 (1950, 2148 REF) [00:00:09]*** step 7: 3967 (1870, 2097 REF) [00:00:09]*** step 8: 3840 (1828, 2012 REF) [00:00:09]*** step 9: 3719 (1728, 1991 REF) [00:00:09]*** step 10: 3601 (1675, 1926 REF) [00:00:09]*** step 11: 3488 (1635, 1853 REF) [00:00:09]*** step 12: 3379 (1595, 1784 REF) [00:00:09]*** step 13: 3275 (1565, 1710 REF) [00:00:09]*** step 14: 3174 (1543, 1631 REF) [00:00:09]*** step 15: 3077 (1523, 1554 REF) [00:00:09]*** step 16: 2983 (1503, 1480 REF) [00:00:09]*** step 17: 2893 (1486, 1407 REF) [00:00:09]*** step 18: 2806 (1466, 1340 REF) [00:00:09]*** step 19: 2723 (1426, 1297 REF) [00:00:09]*** step 20: 2642 (1406, 1236 REF) [00:00:09]*** step 21: 2565 (1384, 1181 REF) [00:00:09]*** step 22: 2490 (1364, 1126 REF) [00:00:09]*** step 23: 2418 (1344, 1074 REF) [00:00:09]*** step 24: 2349 (1322, 1027 REF) [00:00:09]*** step 25: 2283 (1302, 981 REF) [00:00:09]*** step 26: 2218 (1282, 936 REF) [00:00:09]*** step 27: 2157 (1262, 895 REF) [00:00:09]*** step 28: 2097 (1242, 855 REF) [00:00:09]*** step 29: 2040 (1222, 818 REF) [00:00:09]*** step 30: 1985 (1202, 783 REF) [00:00:09]*** step 31: 1932 (1191, 741 REF) [00:00:09]*** step 32: 1880 (1181, 699 REF) [00:00:09]*** step 33: 1831 (1171, 660 REF) [00:00:09]*** step 34: 1784 (1161, 623 REF) [00:00:09]*** step 35: 1738 (1151, 587 REF) [00:00:09]*** step 36: 1694 (1141, 553 REF) [00:00:09]*** step 37: 1652 (1131, 521 REF) [00:00:09]*** step 38: 1611 (1121, 490 REF) [00:00:09]*** step 39: 1572 (1111, 461 REF) [00:00:09]*** step 40: 1534 (1103, 431 REF) [00:00:09]*** step 41: 1497 (1093, 404 REF) [00:00:09]*** step 42: 1462 (1083, 379 REF) [00:00:09]*** step 43: 1428 (1073, 355 REF) [00:00:09]*** step 44: 1396 (1063, 333 REF) [00:00:09]*** step 45: 1365 (1053, 312 REF) [00:00:09]*** step 46: 1334 (1043, 291 REF) [00:00:09]*** step 47: 1305 (1033, 272 REF) [00:00:09]*** step 48: 1277 (1023, 254 REF) [00:00:09]*** step 49: 1250 (1013, 237 REF) [00:00:09]*** step 50: 1224 (990, 234 REF) [00:00:09]*** step 51: 1199 (980, 219 REF) [00:00:09]*** step 52: 1175 (970, 205 REF) [00:00:09]*** step 53: 1152 (960, 192 REF) [00:00:09]*** step 54: 1130 (950, 180 REF) [00:00:09]*** step 55: 1108 (940, 168 REF) [00:00:09]*** step 56: 1088 (930, 158 REF) [00:00:09]*** step 57: 1068 (920, 148 REF) [00:00:09]*** step 58: 1049 (910, 139 REF) [00:00:09]*** step 59: 1030 (900, 130 REF) [00:00:09]*** step 60: 1012 (890, 122 REF) [00:00:09]*** step 61: 995 (880, 115 REF) [00:00:09]*** step 62: 979 (870, 109 REF) [00:00:09]*** step 63: 963 (860, 103 REF) [00:00:09]*** step 64: 948 (850, 98 REF) [00:00:09]*** step 65: 933 (840, 93 REF) [00:00:09]*** step 66: 919 (830, 89 REF) [00:00:09]*** step 67: 905 (820, 85 REF) [00:00:09]*** step 68: 892 (810, 82 REF) [00:00:09]*** step 69: 879 (800, 79 REF) [00:00:09]*** step 70: 867 (790, 77 REF) [00:00:09]*** step 71: 855 (780, 75 REF) [00:00:09]*** step 72: 844 (770, 74 REF) [00:00:09]*** step 73: 833 (760, 73 REF) [00:00:09]*** step 74: 822 (750, 72 REF) [00:00:09]*** step 75: 812 (740, 72 REF) [00:00:09]*** step 76: 803 (730, 73 REF) [00:00:09]*** step 77: 793 (720, 73 REF) [00:00:09]*** step 78: 784 (710, 74 REF) [00:00:09]*** step 79: 776 (700, 76 REF) [00:00:09]*** step 80: 767 (690, 77 REF) [00:00:09]*** step 81: 759 (680, 79 REF) [00:00:09]*** step 82: 751 (670, 81 REF) [00:00:09]*** step 83: 744 (660, 84 REF) [00:00:09]*** step 84: 737 (650, 87 REF) [00:00:09]*** step 85: 730 (640, 90 REF) [00:00:09]*** step 86: 723 (630, 93 REF) [00:00:09]*** step 87: 717 (620, 97 REF) [00:00:09]*** step 88: 710 (610, 100 REF) [00:00:09]*** step 89: 705 (600, 105 REF) [00:00:09]*** step 90: 699 [00:00:09]*** step 91: 693 [00:00:09]*** step 92: 688 [00:00:09]*** step 93: 683 [00:00:09]*** step 94: 678 [00:00:09]*** step 95: 673 [00:00:09]*** step 96: 669 [00:00:09]*** step 97: 664 [00:00:09]*** step 98: 660 [00:00:09]*** step 99: 656 [00:00:09]*** step 100: 652 [00:00:09]*** step 101: 648 [00:00:09]*** step 102: 644 [00:00:09]*** step 103: 641 [00:00:09]*** step 104: 638 [00:00:09]*** step 105: 634 [00:00:09]*** step 106: 631 [00:00:09]*** step 107: 628 [00:00:09]*** step 108: 625 [00:00:09]*** step 109: 622 [00:00:09]*** step 110: 620 [00:00:09]*** step 111: 617 [00:00:09]*** step 112: 615 [00:00:09]*** step 113: 612 [00:00:09]*** step 114: 610 [00:00:09]*** step 115: 608 [00:00:09]*** step 116: 605 [00:00:09]*** step 117: 603 [00:00:09]*** step 118: 601 [00:00:09]*** step 119: 599 [00:00:09]*** printer: Printer HW initialized [00:00:09]*** initSamCard finished [00:00:09]*** RTC: 10+0=10 [00:00:09]*** BPK Status Register BPK_RDY = 0x2 [00:00:09]*** SEN State Register SEN_STATE = 0xff [00:00:09]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:09]*** Analog Control Register 0 SEN_ANA0 = 0x33540624 [00:00:09]*** 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 81 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 27 [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 60 00 FF FF 7F [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 0A 00 00 00 00 00 00 00 09 [00:00:10]Current date/time: 01.01.1970 00:00 [00:00:10]FM_Init [00:00:10]wFMConnect [00:00:10]MH_SAM_On [00:00:10]Write to MH i2c: E0 00 00 08 00 E7 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** iso7816_init finished! [00:00:10]*** atr: [00:00:10]*** 0F 3B D5 18 FF 81 91 FE [00:00:10]*** 1F C3 80 73 C8 21 10 0A [00:00:10]*** 00 00 00 00 00 00 00 00 [00:00:10]*** 00 00 00 00 00 00 00 00 [00:00:10]*** 00 00 00 00 00 00 00 00 [00:00:10]*** 00 00 00 00 00 00 00 00 [00:00:10]*** 00 00 00 00 00 00 00 00 [00:00:10]*** 00 00 00 00 00 00 00 00 [00:00:10]Read from MH i2c: E0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: E0 10 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [00:00:10]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [00:00:10]wFMCommunicate request_size=10 [00:00:10]MH_SAM_APDU [00:00:10]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [00:00:10]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [00:00:10]Read from MH i2c: E2 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: E2 03 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [00:00:10]RAPDU: 90 00 [00:00:10]wFMCommunicate OK [00:00:10]wFMCommunicate request_size=4 [00:00:10]MH_SAM_APDU [00:00:10]CAPDU: 80 11 00 00 [00:00:10]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:00:10]Read from MH i2c: E2 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: E2 17 00 [00:00:10]MH_I2C_Read... [00:00:10]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 35 38 90 00 E0 [00:00:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [00:00:10]wFMCommunicate OK [00:00:10]Detected FM SN is 0000000000874958 [00:00:10]Stored FM SN is 0000000000874958 [00:00:10]wFMCommunicate request_size=9 [00:00:10]MH_SAM_APDU [00:00:10]CAPDU: 80 16 00 00 04 FB 29 00 00 [00:00:10]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 FB 29 00 00 00 00 B6 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [00:00:10]Read from MH i2c: E2 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: E2 03 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [00:00:10]RAPDU: 90 00 [00:00:10]wFMCommunicate OK [00:00:10]FM PIN OK [00:00:10]wFMCommunicate request_size=8 [00:00:10]MH_SAM_APDU [00:00:10]CAPDU: 80 14 04 00 03 02 00 01 [00:00:10]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [00:00:10]Read from MH i2c: E2 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: E2 03 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [00:00:10]RAPDU: 90 00 [00:00:10]wFMCommunicate OK [00:00:10]wFMCommunicate request_size=13 [00:00:10]MH_SAM_APDU [00:00:10]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [00:00:10]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [00:00:10]Read from MH i2c: E2 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: E2 03 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [00:00:10]RAPDU: 90 00 [00:00:10]wFMCommunicate OK [00:00:10]wFMCommunicate request_size=4 [00:00:10]MH_SAM_APDU [00:00:10]CAPDU: 80 11 00 00 [00:00:10]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:00:10]Read from MH i2c: E2 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: E2 17 00 [00:00:10]MH_I2C_Read... [00:00:10]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 35 38 90 00 E4 [00:00:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [00:00:10]wFMCommunicate OK [00:00:10]DocumentArchiveInit [00:00:10]Start Httpd... [00:00:10]Httpd thread 3067469156 created [00:00:10]Write to MH i2c: 01 00 00 0F 00 0F [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 0F 00 00 00 00 00 00 FF 0F 24 [00:00:10]MH Int Process started [00:00:10]Allocated Socket 8 [00:00:10]Bind OK [00:00:10]Listen OK [00:00:10]httpd running on port 8080 [00:00:10]Waiting for new connection... [00:00:10]OFD Sender: Processing packet 41840 [packets to send 57, broken 56] [00:00:10]ProducePacketName [00:00:10]name=ofd_packets/00041840 [00:00:10]OFD Sender: To server: pG, [00:00:10]CommunicateWithHost lk.salyk.kg:30040 [00:00:10]ConnectInit lk.salyk.kg [00:00:11]Connected sock=7 [00:00: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 35 38 1E 01 00 00 D1 60 16 01 98 C7 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 2B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 5C 4E A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 70 A3 00 00 35 04 06 00 B2 31 EF 80 FB 3F 1B 88 BE 3B D7 91 5E 9D [00:00: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 35 38 4F 00 00 00 66 9A 47 00 74 C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 70 A3 00 00 F4 03 04 00 F8 FE A6 66 B6 04 01 00 00 A6 F3 DA D3 0D F3 B8 CF [00:00:11]CommunicateWithHost err = 0 [00:00:11]CheckOFDResponse [00:00:11]1017 (14) - 77093643461234 [00:00:11]1041 (16) - 0000000000874958 [00:00:11]1040 (4) - 41840 [00:00:11]1012 (4) - 29.07.2024 02:31 [00:00:11]1206 (1) - 0 [00:00:11]OFD Sender: Remove packet 41840 [00:00:11]ProducePacketName [00:00:11]name=ofd_packets/00041840 [00:00:11]NVStorageDeleteData [00:00:12]OFD Sender: No OFD packet to send [00:00:12]accept exits with 9 [00:00:12]New connection [00:00:12]New thread 3067182436 created [00:00:12]Waiting for new connection... [00:00:12] Sock 9.Parse request [00:00:12]Sock 9.Check first char [00:00:12]Sock 9.First char is OK [00:00:12]request: POST /json_proto HTTP/1.0 [00:00:12]Method: POST [00:00:12]URL: /json_proto [00:00:12]Method is POST - this is cgi request [00:00:12]url: /json_proto [00:00:12]query_string will be loaded in cgi processing [00:00:12]execute_cgi json_proto POST (null) [00:00:12]execute_cgi path=json_proto method=POST [00:00:12]POST find Content-Length [00:00:12]Host: 172.17.43.132:8080 [00:00:12]Content-Length: 215 [00:00:12]Content-Type: application/json [00:00:12] [00:00:12]POST finish read [00:00:12]Found Content-Length = 215 [00:00:12]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:00:12]execute_script... [00:00:12]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:00:12]POST & json_proto [00:00:12]process_json_proto [00:00:12]json parsed OK: [00:00:12]protocol is kg_v1.0 [00:00:12]action value=get_value [00:00:12]process_action get_value [00:00:12]cmd_get_value [00:00:12]process_action get_value done [00:00:12]requested_data is exist [00:00:12]produce_requested_data [00:00:12]requested_item kkm.sn is exist - process it [00:00:12]requested_item kkm.ver is exist - process it [00:00:12]requested_item fm.sn is exist - process it [00:00:12]wFMCommunicate request_size=4 [00:00:12]MH_SAM_APDU [00:00:12]CAPDU: 80 11 00 00 [00:00:12]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:00:12]Read from MH i2c: E2 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: E2 17 00 [00:00:12]MH_I2C_Read... [00:00:12]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 35 38 90 00 E6 [00:00:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [00:00:12]wFMCommunicate OK [00:00:12]requested_item fd.num is exist - process it [00:00:12]SAM_PROTO_GetFieldsCounters [00:00:12]wFMCommunicate request_size=4 [00:00:12]MH_SAM_APDU [00:00:12]CAPDU: 80 13 00 00 [00:00:12]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:00:13]Read from MH i2c: E2 [00:00:13]MH_I2C_Read... [00:00:13]Read from MH i2c: E2 62 00 [00:00:13]MH_I2C_Read... [00:00:13]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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 70 A3 00 00 0E 04 04 00 AB 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 CD [00:00: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 70 A3 00 00 0E 04 04 00 AB 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 [00:00:13]wFMCommunicate OK [00:00:13]SAM_PROTO_GetFieldsCounters done [00:00:13]requested_item shift.num is exist - process it [00:00:13]requested_item shift.opened is exist - process it [00:00:13]req_shift_opened [00:00:13]FM_GetShiftState [00:00:13]SAM_PROTO_GetShiftState [00:00:13]wFMCommunicate request_size=4 [00:00:13]MH_SAM_APDU [00:00:13]CAPDU: 80 13 01 00 [00:00:13]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [00:00:13]Write i2c OK [00:00:13]MH_I2C_Read... [00:00:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:00:13]Read from MH i2c: E2 [00:00:13]MH_I2C_Read... [00:00:13]Read from MH i2c: E2 0E 00 [00:00:13]MH_I2C_Read... [00:00:13]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 2B [00:00:13]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [00:00:13]wFMCommunicate OK [00:00:13]SAM_PROTO_GetShiftState done [00:00:13]FM_GetShiftState done [00:00:13]req_shift_opened done [00:00:13]requested_item shift.open_date is exist - process it [00:00:13]req_shift_open_date [00:00:13]req_shift_open_date done [00:00:13]produce_requested_data done [00:00:13]produce_requested_data return {"kkm.sn":"0300000053","kkm.ver":"001","fm.sn":"0000000000874958","fd.num":41840,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [00:00:13]process_action_free get_value [00:00:13]json_value_free [00:00:13]json_value_free done [00:00:13]process_json_proto returns [00:00:13]Send response to host [00:00:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000053","kkm.ver":"001","fm.sn":"0000000000874958","fd.num":41840,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [00:00:13]free response buf [00:00:13]execute_script done [00:00:13]execute_script returns [00:00:13]free content buf [00:00:13]Sock 9.Close socket [00:00:13]Sock 9.Thread stoped [00:00:13]accept exits with 7 [00:00:13]New connection [00:00:13]New thread 3067039076 created [00:00:13]Thread 3067182436 joined [00:00:13]Waiting for new connection... [00:00:13] Sock 7.Parse request [00:00:13]Sock 7.Check first char [00:00:13]Sock 7.First char is OK [00:00:13]request: POST /json_proto HTTP/1.0 [00:00:13]Method: POST [00:00:13]URL: /json_proto [00:00:13]Method is POST - this is cgi request [00:00:13]url: /json_proto [00:00:13]query_string will be loaded in cgi processing [00:00:13]execute_cgi json_proto POST (null) [00:00:13]execute_cgi path=json_proto method=POST [00:00:13]POST find Content-Length [00:00:13]Host: 172.17.43.132:8080 [00:00:13]Content-Length: 331 [00:00:13]Content-Type: application/json [00:00:13] [00:00:13]POST finish read [00:00:13]Found Content-Length = 331 [00:00: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" ] } } [00:00:13]execute_script... [00:00: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" ] } } [00:00:13]POST & json_proto [00:00:13]process_json_proto [00:00:13]json parsed OK: [00:00:13]protocol is kg_v1.0 [00:00:13]action value=get_value [00:00:13]process_action get_value [00:00:13]cmd_get_value [00:00:13]process_action get_value done [00:00:13]requested_data is exist [00:00:13]produce_requested_data [00:00:13]requested_item fm.sale.total is exist - process it [00:00:13]SAM_PROTO_GetFMData [00:00:13]wFMCommunicate request_size=4 [00:00:13]MH_SAM_APDU [00:00:13]CAPDU: 80 13 03 00 [00:00:13]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [00:00:13]Write i2c OK [00:00:13]MH_I2C_Read... [00:00:13]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:00:13]Read from MH i2c: E2 [00:00:13]MH_I2C_Read... [00:00:13]Read from MH i2c: E2 FD 00 [00:00:13]MH_I2C_Read... [00:00:13]Read from MH i2c: E2 FD 00 13 00 00 C1 04 85 04 BD 04 6E 04 04 00 1A A0 00 00 69 04 A0 00 6F 04 04 00 80 9F 00 00 B1 04 04 00 91 A7 1D 37 70 04 04 00 40 ED C8 31 72 04 04 00 51 BA 54 05 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 BD 46 DA 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4A C7 7C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 9A 00 00 00 B1 04 03 00 54 D5 4E 70 04 03 00 58 C9 42 72 04 03 00 FC 0B 0C 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 13 5F 08 EF 03 09 00 F6 03 90 00 FA [00:00:13]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 1A A0 00 00 69 04 A0 00 6F 04 04 00 80 9F 00 00 B1 04 04 00 91 A7 1D 37 70 04 04 00 40 ED C8 31 72 04 04 00 51 BA 54 05 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 BD 46 DA 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4A C7 7C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 9A 00 00 00 B1 04 03 00 54 D5 4E 70 04 03 00 58 C9 42 72 04 03 00 FC 0B 0C 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 13 5F 08 EF 03 09 00 F6 03 90 00 [00:00:13]wFMCommunicate OK [00:00:13]wFMCommunicate request_size=4 [00:00:13]MH_SAM_APDU [00:00:13]CAPDU: 80 17 00 00 [00:00:13]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [00:00:13]Write i2c OK [00:00:13]MH_I2C_Read... [00:00:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:13]Read from MH i2c: E2 [00:00:13]MH_I2C_Read... [00:00:13]Read from MH i2c: E2 FD 00 [00:00:13]MH_I2C_Read... [00:00:13]Read from MH i2c: E2 FD 00 14 00 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 F4 [00:00:13]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 [00:00:13]wFMCommunicate OK [00:00:13]wFMCommunicate request_size=4 [00:00:13]MH_SAM_APDU [00:00:13]CAPDU: 80 17 00 00 [00:00:13]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [00:00:13]Write i2c OK [00:00:13]MH_I2C_Read... [00:00:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:14]Read from MH i2c: E2 [00:00:14]MH_I2C_Read... [00:00:14]Read from MH i2c: E2 FD 00 [00:00:14]MH_I2C_Read... [00:00:14]Read from MH i2c: E2 FD 00 15 00 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 35 [00:00:14]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [00:00:14]wFMCommunicate OK [00:00:14]wFMCommunicate request_size=4 [00:00:14]MH_SAM_APDU [00:00:14]CAPDU: 80 17 00 00 [00:00:14]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [00:00:14]Write i2c OK [00:00:14]MH_I2C_Read... [00:00:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:14]Read from MH i2c: E2 [00:00:14]MH_I2C_Read... [00:00:14]Read from MH i2c: E2 FD 00 [00:00:14]MH_I2C_Read... [00:00:14]Read from MH i2c: E2 FD 00 16 00 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 1B [00:00:14]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [00:00:14]wFMCommunicate OK [00:00:14]wFMCommunicate request_size=4 [00:00:14]MH_SAM_APDU [00:00:14]CAPDU: 80 17 00 00 [00:00:14]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [00:00:14]Write i2c OK [00:00:14]MH_I2C_Read... [00:00:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:00:14]Read from MH i2c: E2 [00:00:14]MH_I2C_Read... [00:00:14]Read from MH i2c: E2 DE 00 [00:00:14]MH_I2C_Read... [00:00:14]Read from MH i2c: E2 DE 00 17 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 76 [00:00:14]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:00:14]wFMCommunicate OK [00:00:14]SAM_PROTO_GetFMData done [00:00:14]requested_item fm.sale_refund.total is exist - process it [00:00:14]requested_item fm.buy.total is exist - process it [00:00:14]requested_item shift.sale.total is exist - process it [00:00:14]SAM_PROTO_GetShiftData [00:00:14]wFMCommunicate request_size=4 [00:00:14]MH_SAM_APDU [00:00:14]CAPDU: 80 13 02 00 [00:00:14]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [00:00:14]Write i2c OK [00:00:14]MH_I2C_Read... [00:00:15]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:00:15]Read from MH i2c: E2 [00:00:15]MH_I2C_Read... [00:00:15]Read from MH i2c: E2 FD 00 [00:00:15]MH_I2C_Read... [00:00:15]Read from MH i2c: E2 FD 00 18 00 00 B5 04 AA 04 B1 04 6E 04 04 00 1D 00 00 00 69 04 9A 00 6F 04 04 00 1C 00 00 00 B1 04 03 00 D0 8C 07 70 04 03 00 40 46 06 72 04 03 00 90 46 01 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 3D CD 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 19 11 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 D4 AD 70 04 02 00 D4 AD 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 76 12 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 90 00 39 [00:00:15]RAPDU: B5 04 AA 04 B1 04 6E 04 04 00 1D 00 00 00 69 04 9A 00 6F 04 04 00 1C 00 00 00 B1 04 03 00 D0 8C 07 70 04 03 00 40 46 06 72 04 03 00 90 46 01 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 3D CD 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 19 11 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 D4 AD 70 04 02 00 D4 AD 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 76 12 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 90 00 [00:00:15]wFMCommunicate OK [00:00:15]wFMCommunicate request_size=4 [00:00:15]MH_SAM_APDU [00:00:15]CAPDU: 80 17 00 00 [00:00:15]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [00:00:15]Write i2c OK [00:00:15]MH_I2C_Read... [00:00:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:15]Read from MH i2c: E2 [00:00:15]MH_I2C_Read... [00:00:15]Read from MH i2c: E2 FD 00 [00:00:15]MH_I2C_Read... [00:00:15]Read from MH i2c: E2 FD 00 19 00 00 03 01 00 01 F7 03 02 00 89 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 44 [00:00:15]RAPDU: 03 01 00 01 F7 03 02 00 89 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:00:15]wFMCommunicate OK [00:00:15]wFMCommunicate request_size=4 [00:00:15]MH_SAM_APDU [00:00:15]CAPDU: 80 17 00 00 [00:00:15]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [00:00:15]Write i2c OK [00:00:15]MH_I2C_Read... [00:00:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:15]Read from MH i2c: E2 [00:00:15]MH_I2C_Read... [00:00:15]Read from MH i2c: E2 FD 00 [00:00:15]MH_I2C_Read... [00:00:15]Read from MH i2c: E2 FD 00 1A 00 00 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 90 00 57 [00:00:15]RAPDU: 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 90 00 [00:00:15]wFMCommunicate OK [00:00:15]wFMCommunicate request_size=4 [00:00:15]MH_SAM_APDU [00:00:15]CAPDU: 80 17 00 00 [00:00:15]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [00:00:15]Write i2c OK [00:00:15]MH_I2C_Read... [00:00:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:16]Read from MH i2c: E2 [00:00:16]MH_I2C_Read... [00:00:16]Read from MH i2c: E2 FD 00 [00:00:16]MH_I2C_Read... [00:00:16]Read from MH i2c: E2 FD 00 1B 00 00 F6 [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 81 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 26 [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:11]*** Serial: 3139303353513838 5400000000572581 (1903SQ88T) [00:00:11]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:11]*** step 0: 5000 (2650, 2350 REF) [00:00:11]*** step 1: 4835 (2500, 2335 REF) [00:00:11]*** step 2: 4676 (2440, 2236 REF) [00:00:11]*** step 3: 4523 (2280, 2243 REF) [00:00:11]*** step 4: 4376 (2160, 2216 REF) [00:00:11]*** step 5: 4235 (2050, 2185 REF) [00:00:11]*** step 6: 4098 (1950, 2148 REF) [00:00:11]*** step 7: 3967 (1870, 2097 REF) [00:00:11]*** step 8: 3840 (1828, 2012 REF) [00:00:11]*** step 9: 3719 (1728, 1991 REF) [00:00:11]*** step 10: 3601 (1675, 1926 REF) [00:00:11]*** step 11: 3488 (1635, 1853 REF) [00:00:11]*** step 12: 3379 (1595, 1784 REF) [00:00:11]*** step 13: 3275 (1565, 1710 REF) [00:00:11]*** step 14: 3174 (1543, 1631 REF) [00:00:11]*** step 15: 3077 (1523, 1554 REF) [00:00:11]*** step 16: 2983 (1503, 1480 REF) [00:00:11]*** step 17: 2893 (1486, 1407 REF) [00:00:11]*** step 18: 2806 (1466, 1340 REF) [00:00:11]*** step 19: 2723 (1426, 1297 REF) [00:00:11]*** step 20: 2642 (1406, 1236 REF) [00:00:11]*** step 21: 2565 (1384, 1181 REF) [00:00:11]*** step 22: 2490 (1364, 1126 REF) [00:00:11]*** step 23: 2418 (1344, 1074 REF) [00:00:11]*** step 24: 2349 (1322, 1027 REF) [00:00:11]*** step 25: 2283 (1302, 981 REF) [00:00:11]*** step 26: 2218 (1282, 936 REF) [00:00:11]*** step 27: 2157 (1262, 895 REF) [00:00:11]*** step 28: 2097 (1242, 855 REF) [00:00:11]*** step 29: 2040 (1222, 818 REF) [00:00:11]*** step 30: 1985 (1202, 783 REF) [00:00:11]*** step 31: 1932 (1191, 741 REF) [00:00:11]*** step 32: 1880 (1181, 699 REF) [00:00:11]*** step 33: 1831 (1171, 660 REF) [00:00:11]*** step 34: 1784 (1161, 623 REF) [00:00:11]*** step 35: 1738 (1151, 587 REF) [00:00:11]*** step 36: 1694 (1141, 553 REF) [00:00:11]*** step 37: 1652 (1131, 521 REF) [00:00:11]*** step 38: 1611 (1121, 490 REF) [00:00:11]*** step 39: 1572 (1111, 461 REF) [00:00:11]*** step 40: 1534 (1103, 431 REF) [00:00:11]*** step 41: 1497 (1093, 404 REF) [00:00:11]*** step 42: 1462 (1083, 379 REF) [00:00:11]*** step 43: 1428 (1073, 355 REF) [00:00:11]*** step 44: 1396 (1063, 333 REF) [00:00:11]*** step 45: 1365 (1053, 312 REF) [00:00:11]*** step 46: 1334 (1043, 291 REF) [00:00:11]*** step 47: 1305 (1033, 272 REF) [00:00:11]*** step 48: 1277 (1023, 254 REF) [00:00:11]*** step 49: 1250 (1013, 237 REF) [00:00:11]*** step 50: 1224 (990, 234 REF) [00:00:11]*** step 51: 1199 (980, 219 REF) [00:00:11]*** step 52: 1175 (970, 205 REF) [00:00:11]*** step 53: 1152 (960, 192 REF) [00:00:11]*** step 54: 1130 (950, 180 REF) [00:00:11]*** step 55: 1108 (940, 168 REF) [00:00:11]*** step 56: 1088 (930, 158 REF) [00:00:11]*** step 57: 1068 (920, 148 REF) [00:00:11]*** step 58: 1049 (910, 139 REF) [00:00:11]*** step 59: 1030 (900, 130 REF) [00:00:11]*** step 60: 1012 (890, 122 REF) [00:00:11]*** step 61: 995 (880, 115 REF) [00:00:11]*** step 62: 979 (870, 109 REF) [00:00:11]*** step 63: 963 (860, 103 REF) [00:00:11]*** step 64: 948 (850, 98 REF) [00:00:11]*** step 65: 933 (840, 93 REF) [00:00:11]*** step 66: 919 (830, 89 REF) [00:00:11]*** step 67: 905 (820, 85 REF) [00:00:11]*** step 68: 892 (810, 82 REF) [00:00:11]*** step 69: 879 (800, 79 REF) [00:00:11]*** step 70: 867 (790, 77 REF) [00:00:11]*** step 71: 855 (780, 75 REF) [00:00:11]*** step 72: 844 (770, 74 REF) [00:00:11]*** step 73: 833 (760, 73 REF) [00:00:11]*** step 74: 822 (750, 72 REF) [00:00:11]*** step 75: 812 (740, 72 REF) [00:00:11]*** step 76: 803 (730, 73 REF) [00:00:11]*** step 77: 793 (720, 73 REF) [00:00:11]*** step 78: 784 (710, 74 REF) [00:00:11]*** step 79: 776 (700, 76 REF) [00:00:11]*** step 80: 767 (690, 77 REF) [00:00:11]*** step 81: 759 (680, 79 REF) [00:00:11]*** step 82: 751 (670, 81 REF) [00:00:11]*** step 83: 744 (660, 84 REF) [00:00:11]*** step 84: 737 (650, 87 REF) [00:00:11]*** step 85: 730 (640, 90 REF) [00:00:11]*** step 86: 723 (630, 93 REF) [00:00:11]*** step 87: 717 (620, 97 REF) [00:00:11]*** step 88: 710 (610, 100 REF) [00:00:11]*** step 89: 705 (600, 105 REF) [00:00:11]*** step 90: 699 [00:00:11]*** step 91: 693 [00:00:11]*** step 92: 688 [00:00:11]*** step 93: 683 [00:00:11]*** step 94: 678 [00:00:11]*** step 95: 673 [00:00:11]*** step 96: 669 [00:00:11]*** step 97: 664 [00:00:11]*** step 98: 660 [00:00:11]*** step 99: 656 [00:00:11]*** step 100: 652 [00:00:11]*** step 101: 648 [00:00:11]*** step 102: 644 [00:00:11]*** step 103: 641 [00:00:11]*** step 104: 638 [00:00:11]*** step 105: 634 [00:00:11]*** step 106: 631 [00:00:11]*** step 107: 628 [00:00:11]*** step 108: 625 [00:00:11]*** step 109: 622 [00:00:11]*** step 110: 620 [00:00:11]*** step 111: 617 [00:00:11]*** step 112: 615 [00:00:11]*** step 113: 612 [00:00:11]*** step 114: 610 [00:00:11]*** step 115: 608 [00:00:11]*** step 116: 605 [00:00:11]*** step 117: 603 [00:00:11]*** step 118: 601 [00:00:11]*** step 119: 599 [00:00:11]*** printer: Printer HW initialized [00:00:11]*** initSamCard finished [00:00:11]*** RTC: 11+0=11 [00:00:11]*** BPK Status Register BPK_RDY = 0x2 [00:00:11]*** SEN State Register SEN_STATE = 0xff [00:00:11]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:11]*** Analog Control Register 0 SEN_ANA0 = 0x33540624 [00:00:11]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 81 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 27 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 60 00 FF FF 7F [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 0B 00 00 00 00 00 00 00 0A [00:00:11]Current date/time: 01.01.1970 00:00 [00:00:11]FM_Init [00:00:11]wFMConnect [00:00:11]MH_SAM_On [00:00:11]Write to MH i2c: E0 00 00 08 00 E7 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]*** iso7816_init finished! [00:00:11]*** atr: [00:00:11]*** 0F 3B D5 18 FF 81 91 FE [00:00:11]*** 1F C3 80 73 C8 21 10 0A [00:00:11]*** 00 00 00 00 00 00 00 00 [00:00:11]*** 00 00 00 00 00 00 00 00 [00:00:11]*** 00 00 00 00 00 00 00 00 [00:00:11]*** 00 00 00 00 00 00 00 00 [00:00:11]*** 00 00 00 00 00 00 00 00 [00:00:11]*** 00 00 00 00 00 00 00 00 [00:00:11]Read from MH i2c: E0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E0 10 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [00:00:11]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [00:00:11]wFMCommunicate request_size=10 [00:00:11]MH_SAM_APDU [00:00:11]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [00:00:11]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [00:00:11]Read from MH i2c: E2 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E2 03 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [00:00:11]RAPDU: 90 00 [00:00:11]wFMCommunicate OK [00:00:11]wFMCommunicate request_size=4 [00:00:11]MH_SAM_APDU [00:00:11]CAPDU: 80 11 00 00 [00:00:11]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:00:11]Read from MH i2c: E2 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E2 17 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 E0 [00:00:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [00:00:11]wFMCommunicate OK [00:00:11]Detected FM SN is 0000000000874958 [00:00:11]Stored FM SN is 0000000000874958 [00:00:11]wFMCommunicate request_size=9 [00:00:11]MH_SAM_APDU [00:00:11]CAPDU: 80 16 00 00 04 FB 29 00 00 [00:00:11]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 FB 29 00 00 00 00 B6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [00:00:11]Read from MH i2c: E2 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E2 03 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [00:00:11]RAPDU: 90 00 [00:00:11]wFMCommunicate OK [00:00:11]FM PIN OK [00:00:11]wFMCommunicate request_size=8 [00:00:11]MH_SAM_APDU [00:00:11]CAPDU: 80 14 04 00 03 02 00 01 [00:00:11]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [00:00:11]Read from MH i2c: E2 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E2 03 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [00:00:11]RAPDU: 90 00 [00:00:11]wFMCommunicate OK [00:00:11]wFMCommunicate request_size=13 [00:00:11]MH_SAM_APDU [00:00:11]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [00:00:11]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [00:00:11]Read from MH i2c: E2 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E2 03 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [00:00:11]RAPDU: 90 00 [00:00:11]wFMCommunicate OK [00:00:11]wFMCommunicate request_size=4 [00:00:11]MH_SAM_APDU [00:00:11]CAPDU: 80 11 00 00 [00:00:11]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:00:11]Read from MH i2c: E2 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E2 17 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 E4 [00:00:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [00:00:11]wFMCommunicate OK [00:00:11]DocumentArchiveInit [00:00:11]Start Httpd... [00:00:11]Httpd thread 3067202916 created [00:00:11]Write to MH i2c: 01 00 00 0F 00 0F [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [00:00:11]MH Int Process started [00:00:11]Allocated Socket 7 [00:00:11]Bind OK [00:00:11]Listen OK [00:00:11]httpd running on port 8080 [00:00:11]Waiting for new connection... [00:00:11]OFD Sender: No OFD packet to send [00:00:13]accept exits with 8 [00:00:13]New connection [00:00:13]New thread 3066916196 created [00:00:13]Waiting for new connection... [00:00:13] Sock 8.Parse request [00:00:13]Sock 8.Check first char [00:00:13]Sock 8.First char is OK [00:00:13]request: POST /json_proto HTTP/1.0 [00:00:13]Method: POST [00:00:13]URL: /json_proto [00:00:13]Method is POST - this is cgi request [00:00:13]url: /json_proto [00:00:13]query_string will be loaded in cgi processing [00:00:13]execute_cgi json_proto POST (null) [00:00:13]execute_cgi path=json_proto method=POST [00:00:13]POST find Content-Length [00:00:13]Host: 172.17.43.132:8080 [00:00:13]Content-Length: 215 [00:00:13]Content-Type: application/json [00:00:13] [00:00:13]POST finish read [00:00:13]Found Content-Length = 215 [00:00:13]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:00:13]execute_script... [00:00:13]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:00:13]POST & json_proto [00:00:13]process_json_proto [00:00:13]json parsed OK: [00:00:13]protocol is kg_v1.0 [00:00:13]action value=get_value [00:00:13]process_action get_value [00:00:13]cmd_get_value [00:00:13]process_action get_value done [00:00:13]requested_data is exist [00:00:13]produce_requested_data [00:00:13]requested_item kkm.sn is exist - process it [00:00:13]requested_item kkm.ver is exist - process it [00:00:13]requested_item fm.sn is exist - process it [00:00:13]wFMCommunicate request_size=4 [00:00:13]MH_SAM_APDU [00:00:13]CAPDU: 80 11 00 00 [00:00:13]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [00:00:13]Write i2c OK [00:00:13]MH_I2C_Read... [00:00:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:00:13]Read from MH i2c: E2 [00:00:13]MH_I2C_Read... [00:00:13]Read from MH i2c: E2 17 00 [00:00:13]MH_I2C_Read... [00:00:13]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 35 38 90 00 E6 [00:00:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [00:00:13]wFMCommunicate OK [00:00:13]requested_item fd.num is exist - process it [00:00:13]SAM_PROTO_GetFieldsCounters [00:00:13]wFMCommunicate request_size=4 [00:00:13]MH_SAM_APDU [00:00:13]CAPDU: 80 13 00 00 [00:00:13]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [00:00:13]Write i2c OK [00:00:13]MH_I2C_Read... [00:00:13]Read from MH i2c: E2 [00:00:13]MH_I2C_Read... [00:00:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:00:13]Read from MH i2c: E2 62 00 [00:00:13]MH_I2C_Read... [00:00:13]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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 70 A3 00 00 0E 04 04 00 AB 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 CD [00:00: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 70 A3 00 00 0E 04 04 00 AB 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 [00:00:13]wFMCommunicate OK [00:00:13]SAM_PROTO_GetFieldsCounters done [00:00:13]requested_item shift.num is exist - process it [00:00:13]requested_item shift.opened is exist - process it [00:00:13]req_shift_opened [00:00:13]FM_GetShiftState [00:00:13]SAM_PROTO_GetShiftState [00:00:13]wFMCommunicate request_size=4 [00:00:13]MH_SAM_APDU [00:00:13]CAPDU: 80 13 01 00 [00:00:13]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [00:00:13]Write i2c OK [00:00:13]MH_I2C_Read... [00:00:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:00:13]Read from MH i2c: E2 [00:00:13]MH_I2C_Read... [00:00:13]Read from MH i2c: E2 0E 00 [00:00:13]MH_I2C_Read... [00:00:13]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 2B [00:00:13]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [00:00:13]wFMCommunicate OK [00:00:13]SAM_PROTO_GetShiftState done [00:00:13]FM_GetShiftState done [00:00:13]req_shift_opened done [00:00:13]requested_item shift.open_date is exist - process it [00:00:13]req_shift_open_date [00:00:13]req_shift_open_date done [00:00:13]produce_requested_data done [00:00:13]produce_requested_data return {"kkm.sn":"0300000053","kkm.ver":"001","fm.sn":"0000000000874958","fd.num":41840,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [00:00:13]process_action_free get_value [00:00:13]json_value_free [00:00:13]json_value_free done [00:00:13]process_json_proto returns [00:00:13]Send response to host [00:00:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000053","kkm.ver":"001","fm.sn":"0000000000874958","fd.num":41840,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [00:00:13]free response buf [00:00:13]execute_script done [00:00:13]execute_script returns [00:00:13]free content buf [00:00:13]Sock 8.Close socket [00:00:13]Sock 8.Thread stoped [00:00:13]accept exits with 9 [00:00:13]New connection [00:00:13]New thread 3066772836 created [00:00:13]Thread 3066916196 joined [00:00:13]Waiting for new connection... [00:00:13] Sock 9.Parse request [00:00:13]Sock 9.Check first char [00:00:13]Sock 9.First char is OK [00:00:13]request: POST /json_proto HTTP/1.0 [00:00:13]Method: POST [00:00:13]URL: /json_proto [00:00:13]Method is POST - this is cgi request [00:00:13]url: /json_proto [00:00:13]query_string will be loaded in cgi processing [00:00:13]execute_cgi json_proto POST (null) [00:00:13]execute_cgi path=json_proto method=POST [00:00:13]POST find Content-Length [00:00:13]Host: 172.17.43.132:8080 [00:00:13]Content-Length: 331 [00:00:13]Content-Type: application/json [00:00:13] [00:00:13]POST finish read [00:00:13]Found Content-Length = 331 [00:00: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" ] } } [00:00:13]execute_script... [00:00: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" ] } } [00:00:13]POST & json_proto [00:00:13]process_json_proto [00:00:13]json parsed OK: [00:00:13]protocol is kg_v1.0 [00:00:13]action value=get_value [00:00:13]process_action get_value [00:00:13]cmd_get_value [00:00:13]process_action get_value done [00:00:13]requested_data is exist [00:00:13]produce_requested_data [00:00:13]requested_item fm.sale.total is exist - process it [00:00:13]SAM_PROTO_GetFMData [00:00:13]wFMCommunicate request_size=4 [00:00:13]MH_SAM_APDU [00:00:13]CAPDU: 80 13 03 00 [00:00:13]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [00:00:13]Write i2c OK [00:00:13]MH_I2C_Read... [00:00:13]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:00:13]Read from MH i2c: E2 [00:00:13]MH_I2C_Read... [00:00:13]Read from MH i2c: E2 FD 00 [00:00:13]MH_I2C_Read... [00:00:13]Read from MH i2c: E2 FD 00 13 00 00 C1 04 85 04 BD 04 6E 04 04 00 1A A0 00 00 69 04 A0 00 6F 04 04 00 80 9F 00 00 B1 04 04 00 91 A7 1D 37 70 04 04 00 40 ED C8 31 72 04 04 00 51 BA 54 05 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 BD 46 DA 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4A C7 7C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 9A 00 00 00 B1 04 03 00 54 D5 4E 70 04 03 00 58 C9 42 72 04 03 00 FC 0B 0C 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 13 5F 08 EF 03 09 00 F6 03 90 00 FA [00:00:13]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 1A A0 00 00 69 04 A0 00 6F 04 04 00 80 9F 00 00 B1 04 04 00 91 A7 1D 37 70 04 04 00 40 ED C8 31 72 04 04 00 51 BA 54 05 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 BD 46 DA 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4A C7 7C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 9A 00 00 00 B1 04 03 00 54 D5 4E 70 04 03 00 58 C9 42 72 04 03 00 FC 0B 0C 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 13 5F 08 EF 03 09 00 F6 03 90 00 [00:00:13]wFMCommunicate OK [00:00:13]wFMCommunicate request_size=4 [00:00:13]MH_SAM_APDU [00:00:13]CAPDU: 80 17 00 00 [00:00:13]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [00:00:13]Write i2c OK [00:00:13]MH_I2C_Read... [00:00:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:14]Read from MH i2c: E2 [00:00:14]MH_I2C_Read... [00:00:14]Read from MH i2c: E2 FD 00 [00:00:14]MH_I2C_Read... [00:00:14]Read from MH i2c: E2 FD 00 14 00 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 F4 [00:00:14]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 [00:00:14]wFMCommunicate OK [00:00:14]wFMCommunicate request_size=4 [00:00:14]MH_SAM_APDU [00:00:14]CAPDU: 80 17 00 00 [00:00:14]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [00:00:14]Write i2c OK [00:00:14]MH_I2C_Read... [00:00:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:14]Read from MH i2c: E2 [00:00:14]MH_I2C_Read... [00:00:14]Read from MH i2c: E2 FD 00 [00:00:14]MH_I2C_Read... [00:00:14]Read from MH i2c: E2 FD 00 15 00 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 35 [00:00:14]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [00:00:14]wFMCommunicate OK [00:00:14]wFMCommunicate request_size=4 [00:00:14]MH_SAM_APDU [00:00:14]CAPDU: 80 17 00 00 [00:00:14]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [00:00:14]Write i2c OK [00:00:14]MH_I2C_Read... [00:00:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:14]Read from MH i2c: E2 [00:00:14]MH_I2C_Read... [00:00:14]Read from MH i2c: E2 FD 00 [00:00:14]MH_I2C_Read... [00:00:14]Read from MH i2c: E2 FD 00 16 00 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 1B [00:00:14]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [00:00:14]wFMCommunicate OK [00:00:14]wFMCommunicate request_size=4 [00:00:14]MH_SAM_APDU [00:00:14]CAPDU: 80 17 00 00 [00:00:14]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [00:00:14]Write i2c OK [00:00:14]MH_I2C_Read... [00:00:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:00:14]Read from MH i2c: E2 [00:00:14]MH_I2C_Read... [00:00:14]Read from MH i2c: E2 DE 00 [00:00:14]MH_I2C_Read... [00:00:14]Read from MH i2c: E2 DE 00 17 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 76 [00:00:14]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:00:14]wFMCommunicate OK [00:00:14]SAM_PROTO_GetFMData done [00:00:14]requested_item fm.sale_refund.total is exist - process it [00:00:14]requested_item fm.buy.total is exist - process it [00:00:14]requested_item shift.sale.total is exist - process it [00:00:14]SAM_PROTO_GetShiftData [00:00:14]wFMCommunicate request_size=4 [00:00:14]MH_SAM_APDU [00:00:14]CAPDU: 80 13 02 00 [00:00:14]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [00:00:14]Write i2c OK [00:00:14]MH_I2C_Read... [00:00:15]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:00:15]Read from MH i2c: E2 [00:00:15]MH_I2C_Read... [00:00:15]Read from MH i2c: E2 FD 00 [00:00:15]MH_I2C_Read... [00:00:15]Read from MH i2c: E2 FD 00 18 00 00 B5 04 AA 04 B1 04 6E 04 04 00 1D 00 00 00 69 04 9A 00 6F 04 04 00 1C 00 00 00 B1 04 03 00 D0 8C 07 70 04 03 00 40 46 06 72 04 03 00 90 46 01 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 3D CD 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 19 11 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 D4 AD 70 04 02 00 D4 AD 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 76 12 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 90 00 39 [00:00:15]RAPDU: B5 04 AA 04 B1 04 6E 04 04 00 1D 00 00 00 69 04 9A 00 6F 04 04 00 1C 00 00 00 B1 04 03 00 D0 8C 07 70 04 03 00 40 46 06 72 04 03 00 90 46 01 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 3D CD 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 19 11 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 D4 AD 70 04 02 00 D4 AD 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 76 12 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 90 00 [00:00:15]wFMCommunicate OK [00:00:15]wFMCommunicate request_size=4 [00:00:15]MH_SAM_APDU [00:00:15]CAPDU: 80 17 00 00 [00:00:15]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [00:00:15]Write i2c OK [00:00:15]MH_I2C_Read... [00:00:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:15]Read from MH i2c: E2 [00:00:15]MH_I2C_Read... [00:00:15]Read from MH i2c: E2 FD 00 [00:00:15]MH_I2C_Read... [00:00:15]Read from MH i2c: E2 FD 00 19 00 00 03 01 00 01 F7 03 02 00 89 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 44 [00:00:15]RAPDU: 03 01 00 01 F7 03 02 00 89 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:00:15]wFMCommunicate OK [00:00:15]wFMCommunicate request_size=4 [00:00:15]MH_SAM_APDU [00:00:15]CAPDU: 80 17 00 00 [00:00:15]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [00:00:15]Write i2c OK [00:00:15]MH_I2C_Read... [00:00:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:16]Read from MH i2c: E2 [00:00:16]MH_I2C_Read... [00:00:16]Read from MH i2c: E2 FD 00 [00:00:16]MH_I2C_Read... [00:00:16]Read from MH i2c: E2 FD 00 1A 00 00 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 90 00 57 [00:00:16]RAPDU: 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 90 00 [00:00:16]wFMCommunicate OK [00:00:16]wFMCommunicate request_size=4 [00:00:16]MH_SAM_APDU [00:00:16]CAPDU: 80 17 00 00 [00:00:16]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [00:00:16]Write i2c OK [00:00:16]MH_I2C_Read... [00:00:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:16]Read from MH i2c: E2 [00:00:16]MH_I2C_Read... [00:00:16]Read from MH i2c: E2 FD 00 [00:00:16]MH_I2C_Read... [00:00:16]Read from MH i2c: E2 FD 00 1B 00 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 90 00 13 [00:00:16]RAPDU: 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 90 00 [00:00:16]wFMCommunicate OK [00:00:16]wFMCommunicate request_size=4 [00:00:16]MH_SAM_APDU [00:00:16]CAPDU: 80 17 00 00 [00:00:16]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [00:00:16]Write i2c OK [00:00:16]MH_I2C_Read... [00:00:16]OFD Sender: No OFD packet to send [00:00:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 207! [00:00:16]Read from MH i2c: E2 [00:00:16]MH_I2C_Read... [00:00:16]Read from MH i2c: E2 D2 00 [00:00:16]MH_I2C_Read... [00:00:16]Read from MH i2c: E2 D2 00 1C 00 00 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7F [00:00:16]RAPDU: 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:00:16]wFMCommunicate OK [00:00:16]SAM_PROTO_GetShiftData done [00:00:16]requested_item shift.sale.total_cash is exist - process it [00:00:16]requested_item shift.sale_refund.total is exist - process it [00:00:16]requested_item shift.sale_refund.total_cash is exist - process it [00:00:16]requested_item shift.buy.total is exist - process it [00:00:16]requested_item shift.buy.total_cash is exist - process it [00:00:16]produce_requested_data done [00:00:16]produce_requested_data return {"fm.sale.total":9246903.21,"fm.sale_refund.total":51664.20,"fm.buy.total":0.00,"shift.sale.total":4948.00,"shift.sale.total_cash":4112.00,"shift.sale_refund.total":445.00,"shift.sale_refund.total_cash":445.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:00:16]process_action_free get_value [00:00:16]json_value_free [00:00:16]json_value_free done [00:00:16]process_json_proto returns [00:00:16]Send response to host [00:00:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":9246903.21,"fm.sale_refund.total":51664.20,"fm.buy.total":0.00,"shift.sale.total":4948.00,"shift.sale.total_cash":4112.00,"shift.sale_refund.total":445.00,"shift.sale_refund.total_cash":445.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:00:16]free response buf [00:00:16]execute_script done [00:00:16]execute_script returns [00:00:16]free content buf [00:00:16]Sock 9.Close socket [00:00:16]Sock 9.Thread stoped [00:00:18]accept exits with 8 [00:00:18]New connection [00:00:18]New thread 3066916196 created [00:00:18]Thread 3066772836 joined [00:00:18]Waiting for new connection... [00:00:18] Sock 8.Parse request [00:00:18]Sock 8.Check first char [00:00:18]Sock 8.First char is OK [00:00:18]request: POST /json_proto HTTP/1.0 [00:00:18]Method: POST [00:00:18]URL: /json_proto [00:00:18]Method is POST - this is cgi request [00:00:18]url: /json_proto [00:00:18]query_string will be loaded in cgi processing [00:00:18]execute_cgi json_proto POST (null) [00:00:18]execute_cgi path=json_proto method=POST [00:00:18]POST find Content-Length [00:00:18]Host: 172.17.43.132:8080 [00:00:18]Content-Length: 650 [00:00:18]Content-Type: application/json [00:00:18] [00:00:18]POST finish read [00:00:18]Found Content-Length = 650 [00:00:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183869", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:00:18]execute_script... [00:00:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183869", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:00:18]POST & json_proto [00:00:18]process_json_proto [00:00:18]json parsed OK: [00:00:18]protocol is kg_v1.0 [00:00:18]action value=close_receipt [00:00:18]process_action close_receipt [00:00:18]cmd_close_receipt [00:00:18]MH_GetDate [00:00:18]Write to MH i2c: F0 00 00 1D 00 0C [00:00:18]Write i2c OK [00:00:18]MH_I2C_Read... [00:00:18]Read from MH i2c: F0 [00:00:18]MH_I2C_Read... [00:00:18]Read from MH i2c: F0 09 00 [00:00:18]MH_I2C_Read... [00:00:18]Read from MH i2c: F0 09 00 1D 00 00 13 00 00 00 00 00 00 00 28 [00:00:18]GetLastDocTimeStamp 1722240604 [00:00:18]current date 19 [00:00:18]curdate о реализуемом товаре [08:33:53]line ИТОГО: 111.00 [08:33:53]line НСП 1% : 0.98 [08:33:53]line НДС 12% : 11.79 [08:33:53]line Наличными: 0.00 [08:33:53]line Безнал.: 111.00 [08:33:53]line Место: АЗС № 97 "Партнер Нефть" [08:33:53]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [08:33:53]line СНО: Общий режим [08:33:53]line Чек 29 29.07.2024 08:10 [08:33:53]line Смена: 427 ФФД: 1.0 [08:33:53]line ЗНМ: 0300000053 [08:33:53]line РНМ: 0000000000092626 [08:33:53]line Версия ККМ: 001 [08:33:53]line Платежная система: O! деньги [08:33:53]line ФМ: 0000000000874958 [08:33:53]line ФД: 41840 [08:33:53]line ФПД: 195927541349183 [08:33:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T081004&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41840&fm=195927541349183&tin=02508201610067®Number=0000000000092626&sum=11100 [08:33:53]line 0 [08:33:53]written 0, free lines is 4095 [08:33:53]Write to MH i2c: 01 00 00 5B 00 5B [08:33:53]Write i2c OK [08:33:53]MH_I2C_Read... [08:33:53]Read from MH i2c: 01 [08:33:53]MH_I2C_Read... [08:33:53]Read from MH i2c: 01 07 00 [08:33:53]MH_I2C_Read... [08:33:53]Read from MH i2c: 01 07 00 5B 00 00 00 00 00 00 F6 0C 64 [08:33:53]RasterBufferAndPrint [08:33:53]line [08:33:53]line [08:33:53]line [08:33:53]line [08:33:53]line [08:33:53]written 0, free lines is 3324 [08:33:53]MH_Cut [08:33:53]Write to MH i2c: D1 01 00 62 00 01 34 [08:33:53]Write i2c OK [08:33:53]MH_I2C_Read... [08:33:53]Read from MH i2c: D1 [08:33:53]MH_I2C_Read... [08:33:53]Read from MH i2c: D1 01 00 [08:33:53]MH_I2C_Read... [08:33:53]Read from MH i2c: D1 01 00 62 00 00 33 [08:33:53]Write to MH i2c: 01 00 00 63 00 63 [08:33:53]Write i2c OK [08:33:53]MH_I2C_Read... [08:33:53]OFD Sender: No OFD packet to send [08:33:54]*** Cut start [08:33:54]*** Partial cut [08:33:54]*** CUTSNS_PIN = 1 [08:33:54]*** CUTSNS_PIN = 0 [08:33:54]*** Brake cut motor [08:33:54]Read from MH i2c: 01 [08:33:54]MH_I2C_Read... [08:33:54]*** Stop cut motor [08:33:54]*** Cut end [08:33:54]Read from MH i2c: 01 07 00 [08:33:54]MH_I2C_Read... [08:33:54]Read from MH i2c: 01 07 00 63 00 00 00 00 00 00 FF 0F 78 [08:33:54]process_action print_doc done [08:33:54]no requested_data - finishing processing [08:33:54]process_action_free print_doc [08:33:54]json_value_free [08:33:54]json_value_free done [08:33:54]process_json_proto returns [08:33:54]Send response to host [08:33:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [08:33:54]free response buf [08:33:54]execute_script done [08:33:54]execute_script returns [08:33:54]free content buf [08:33:54]Sock 9.Close socket [08:33:54]Sock 9.Thread stoped [08:33:56]recv_with_timeout no data received [08:33:58]accept exits with 10 [08:33:58]New connection [08:33:58]New thread 3067080036 created [08:33:58]Thread 3067223396 joined [08:33:58]Waiting for new connection... [08:33:58] Sock 10.Parse request [08:33:58]Sock 10.Check first char [08:33:58]Sock 10.First char is OK [08:33:58]request: POST /json_proto HTTP/1.1 [08:33:58]Method: POST [08:33:58]URL: /json_proto [08:33:58]Method is POST - this is cgi request [08:33:58]url: /json_proto [08:33:58]query_string will be loaded in cgi processing [08:33:58]execute_cgi json_proto POST (null) [08:33:58]execute_cgi path=json_proto method=POST [08:33:58]POST find Content-Length [08:33:58]Host: 172.17.43.132:8080 [08:33:58]Connection: keep-alive [08:33:58]Content-Length: 105 [08:33:58]Accept: application/json, text/plain, */* [08:33:58]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36 [08:33:58]Content-Type: application/json [08:33:58]Origin: http://172.17.43.132:8080 [08:33:58]Referer: http://172.17.43.132:8080/testengine [08:33:58]Accept-Encoding: gzip, deflate [08:33:58]Accept-Language: ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7 [08:33:58] [08:33:58]POST finish read [08:33:58]Found Content-Length = 105 [08:33:58]post body = {"protocol":"kg_v1.0","request":{"action":"get_value","params":{},"requested_data":["config.timestamp"]}} [08:33:58]execute_script... [08:33:58]execute_script path=json_proto method=POST query_string={"protocol":"kg_v1.0","request":{"action":"get_value","params":{},"requested_data":["config.timestamp"]}} [08:33:58]POST & json_proto [08:33:58]process_json_proto [08:33:58]json parsed OK: [08:33:58]protocol is kg_v1.0 [08:33:58]action value=get_value [08:33:58]process_action get_value [08:33:58]cmd_get_value [08:33:58]process_action get_value done [08:33:58]requested_data is exist [08:33:58]produce_requested_data [08:33:58]requested_item config.timestamp is exist - process it [08:33:58]MH_GetDate [08:33:58]Write to MH i2c: F0 00 00 64 00 53 [08:33:58]Write i2c OK [08:33:58]MH_I2C_Read... [08:33:58]Read from MH i2c: F0 [08:33:58]MH_I2C_Read... [08:33:58]Read from MH i2c: F0 09 00 [08:33:58]MH_I2C_Read... [08:33:58]Read from MH i2c: F0 09 00 64 00 00 F6 53 A7 66 DE 53 A7 66 F0 [08:33:58]produce_requested_data done [08:33:58]produce_requested_data return {"config.timestamp":"1722242038"} [08:33:58]process_action_free get_value [08:33:58]json_value_free [08:33:58]json_value_free done [08:33:58]process_json_proto returns [08:33:58]Send response to host [08:33:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"config.timestamp":"1722242038"}}} [08:33:58]free response buf [08:33:58]execute_script done [08:33:58]execute_script returns [08:33:58]free content buf [08:33:58]Sock 10.Close socket [08:33:58]Sock 10.Thread stoped [08:33:58]OFD Sender: No OFD packet to send [08:34:00]accept exits with 7 [08:34:00]New connection [08:34:00]New thread 3067223396 created [08:34:00]Thread 3067080036 joined [08:34:00]Waiting for new connection... [08:34:00] Sock 7.Parse request [08:34:00]Sock 7.Check first char [08:34:00]Sock 7.First char is OK [08:34:00]request: POST /json_proto HTTP/1.1 [08:34:00]Method: POST [08:34:00]URL: /json_proto [08:34:00]Method is POST - this is cgi request [08:34:00]url: /json_proto [08:34:00]query_string will be loaded in cgi processing [08:34:00]execute_cgi json_proto POST (null) [08:34:00]execute_cgi path=json_proto method=POST [08:34:00]POST find Content-Length [08:34:00]Host: 172.17.43.132:8080 [08:34:00]Connection: keep-alive [08:34:00]Content-Length: 113 [08:34:00]Accept: application/json, text/plain, */* [08:34:00]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36 [08:34:00]Content-Type: application/json [08:34:00]Origin: http://172.17.43.132:8080 [08:34:00]Referer: http://172.17.43.132:8080/testengine [08:34:00]Accept-Encoding: gzip, deflate [08:34:00]Accept-Language: ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7 [08:34:00] [08:34:00]POST finish read [08:34:00]Found Content-Length = 113 [08:34:00]post body = {"protocol":"kg_v1.0","request":{"action":"set_value","params":{"name":"config.timestamp","value":"1722242040"}}} [08:34:00]execute_script... [08:34:00]execute_script path=json_proto method=POST query_string={"protocol":"kg_v1.0","request":{"action":"set_value","params":{"name":"config.timestamp","value":"1722242040"}}} [08:34:00]POST & json_proto [08:34:00]process_json_proto [08:34:00]json parsed OK: [08:34:00]protocol is kg_v1.0 [08:34:00]action value=set_value [08:34:00]process_action set_value [08:34:00]cmd_set_value [08:34:00]SetValue [08:34:00]group config [08:34:00]SetConfigValue timestamp=1722242040 [08:34:00]SettingCheckAndSetValue timestamp=1722242040 [08:34:00]store_timestamp [08:34:00]MH_GetDate [08:34:00]Write to MH i2c: F0 00 00 65 00 54 [08:34:00]Write i2c OK [08:34:00]MH_I2C_Read... [08:34:00]Read from MH i2c: F0 [08:34:00]MH_I2C_Read... [08:34:00]Read from MH i2c: F0 09 00 [08:34:00]MH_I2C_Read... [08:34:00]Read from MH i2c: F0 09 00 65 00 00 F8 53 A7 66 DE 53 A7 66 F3 [08:34:00]GetLastDocTimeStamp 1722240604 [08:34:00]cur date 1722242040 [08:34:00]tm 1722242040 [08:34:00]tm ok - set date [08:34:00]MH_SetDate [08:34:00]Write to MH i2c: F1 04 00 66 00 F8 53 A7 66 B2 [08:34:00]Write i2c OK [08:34:00]MH_I2C_Read... [08:34:00]Read from MH i2c: F1 [08:34:00]MH_I2C_Read... [08:34:00]Read from MH i2c: F1 01 00 [08:34:00]MH_I2C_Read... [08:34:00]Read from MH i2c: F1 01 00 66 00 00 57 [08:34:00]SetValue res=0 [08:34:00]process_action set_value done [08:34:00]no requested_data - finishing processing [08:34:00]process_action_free set_value [08:34:00]json_value_free [08:34:00]json_value_free done [08:34:00]process_json_proto returns [08:34:00]Send response to host [08:34:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [08:34:00]free response buf [08:34:00]execute_script done [08:34:00]execute_script returns [08:34:00]free content buf [08:34:00]Sock 7.Close socket [08:34:00]Sock 7.Thread stoped [08:34:00]accept exits with 9 [08:34:00]New connection [08:34:00]New thread 3067080036 created [08:34:00]Thread 3067223396 joined [08:34:00]Waiting for new connection... [08:34:00] Sock 9.Parse request [08:34:00]Sock 9.Check first char [08:34:00]Sock 9.First char is OK [08:34:00]request: POST /json_proto HTTP/1.1 [08:34:00]Method: POST [08:34:00]URL: /json_proto [08:34:00]Method is POST - this is cgi request [08:34:00]url: /json_proto [08:34:00]query_string will be loaded in cgi processing [08:34:00]execute_cgi json_proto POST (null) [08:34:00]execute_cgi path=json_proto method=POST [08:34:00]POST find Content-Length [08:34:00]Host: 172.17.43.132:8080 [08:34:00]Connection: keep-alive [08:34:00]Content-Length: 113 [08:34:00]Accept: application/json, text/plain, */* [08:34:00]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36 [08:34:00]Content-Type: application/json [08:34:00]Origin: http://172.17.43.132:8080 [08:34:00]Referer: http://172.17.43.132:8080/testengine [08:34:00]Accept-Encoding: gzip, deflate [08:34:00]Accept-Language: ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7 [08:34:00] [08:34:00]POST finish read [08:34:00]Found Content-Length = 113 [08:34:00]post body = {"protocol":"kg_v1.0","request":{"action":"set_value","params":{"name":"config.timestamp","value":"1722242040"}}} [08:34:00]execute_script... [08:34:00]execute_script path=json_proto method=POST query_string={"protocol":"kg_v1.0","request":{"action":"set_value","params":{"name":"config.timestamp","value":"1722242040"}}} [08:34:00]POST & json_proto [08:34:00]process_json_proto [08:34:00]json parsed OK: [08:34:00]protocol is kg_v1.0 [08:34:00]action value=set_value [08:34:00]process_action set_value [08:34:00]cmd_set_value [08:34:00]SetValue [08:34:00]group config [08:34:00]SetConfigValue timestamp=1722242040 [08:34:00]SettingCheckAndSetValue timestamp=1722242040 [08:34:00]store_timestamp [08:34:00]MH_GetDate [08:34:00]Write to MH i2c: F0 00 00 67 00 56 [08:34:00]Write i2c OK [08:34:00]MH_I2C_Read... [08:34:00]Read from MH i2c: F0 [08:34:00]MH_I2C_Read... [08:34:00]Read from MH i2c: F0 09 00 [08:34:00]MH_I2C_Read... [08:34:00]Read from MH i2c: F0 09 00 67 00 00 F8 53 A7 66 F8 53 A7 66 0F [08:34:00]GetLastDocTimeStamp 1722240604 [08:34:00]cur date 1722242040 [08:34:00]tm 1722242040 [08:34:00]tm ok - set date [08:34:00]MH_SetDate [08:34:00]Write to MH i2c: F1 04 00 68 00 F8 53 A7 66 B4 [08:34:00]Write i2c OK [08:34:00]MH_I2C_Read... [08:34:00]Read from MH i2c: F1 [08:34:00]MH_I2C_Read... [08:34:00]Read from MH i2c: F1 01 00 [08:34:00]MH_I2C_Read... [08:34:00]Read from MH i2c: F1 01 00 68 00 00 59 [08:34:00]SetValue res=0 [08:34:00]process_action set_value done [08:34:00]no requested_data - finishing processing [08:34:00]process_action_free set_value [08:34:00]json_value_free [08:34:00]json_value_free done [08:34:00]process_json_proto returns [08:34:00]Send response to host [08:34:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [08:34:00]free response buf [08:34:00]execute_script done [08:34:00]execute_script returns [08:34:00]free content buf [08:34:00]Sock 9.Close socket [08:34:00]Sock 9.Thread stoped [08:34:03]OFD Sender: No OFD packet to send [08:34:08]OFD Sender: No OFD packet to send [08:34:12]accept exits with 7 [08:34:12]New connection [08:34:12]New thread 3067223396 created [08:34:12]Thread 3067080036 joined [08:34:12]Waiting for new connection... [08:34:12] Sock 7.Parse request [08:34:12]Sock 7.Check first char [08:34:12]Sock 7.First char is OK [08:34:12]request: POST /json_proto HTTP/1.0 [08:34:12]Method: POST [08:34:12]URL: /json_proto [08:34:12]Method is POST - this is cgi request [08:34:12]url: /json_proto [08:34:12]query_string will be loaded in cgi processing [08:34:12]execute_cgi json_proto POST (null) [08:34:12]execute_cgi path=json_proto method=POST [08:34:12]POST find Content-Length [08:34:12]Host: 172.17.43.132:8080 [08:34:12]Content-Length: 215 [08:34:12]Content-Type: application/json [08:34:12] [08:34:12]POST finish read [08:34:12]Found Content-Length = 215 [08:34:12]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" ] } } [08:34:12]execute_script... [08:34:12]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" ] } } [08:34:12]POST & json_proto [08:34:12]process_json_proto [08:34:12]json parsed OK: [08:34:12]protocol is kg_v1.0 [08:34:12]action value=get_value [08:34:12]process_action get_value [08:34:12]cmd_get_value [08:34:12]process_action get_value done [08:34:12]requested_data is exist [08:34:12]produce_requested_data [08:34:12]requested_item kkm.sn is exist - process it [08:34:12]requested_item kkm.ver is exist - process it [08:34:12]requested_item fm.sn is exist - process it [08:34:12]wFMCommunicate request_size=4 [08:34:12]MH_SAM_APDU [08:34:12]CAPDU: 80 11 00 00 [08:34:12]Write to MH i2c: E2 08 00 69 00 80 11 00 00 00 00 00 00 E3 [08:34:12]Write i2c OK [08:34:12]MH_I2C_Read... [08:34:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:34:12]Read from MH i2c: E2 [08:34:12]MH_I2C_Read... [08:34:12]Read from MH i2c: E2 17 00 [08:34:12]MH_I2C_Read... [08:34:12]Read from MH i2c: E2 17 00 69 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 3F [08:34:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [08:34:12]wFMCommunicate OK [08:34:12]requested_item fd.num is exist - process it [08:34:12]SAM_PROTO_GetFieldsCounters [08:34:12]wFMCommunicate request_size=4 [08:34:12]MH_SAM_APDU [08:34:12]CAPDU: 80 13 00 00 [08:34:12]Write to MH i2c: E2 08 00 6A 00 80 13 00 00 00 00 00 00 E6 [08:34:12]Write i2c OK [08:34:12]MH_I2C_Read... [08:34:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:34:12]Read from MH i2c: E2 [08:34:12]MH_I2C_Read... [08:34:12]Read from MH i2c: E2 62 00 [08:34:12]MH_I2C_Read... [08:34:12]Read from MH i2c: E2 62 00 6A 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 70 A3 00 00 0E 04 04 00 AB 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 26 [08:34: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 70 A3 00 00 0E 04 04 00 AB 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 [08:34:12]wFMCommunicate OK [08:34:12]SAM_PROTO_GetFieldsCounters done [08:34:12]requested_item shift.num is exist - process it [08:34:12]requested_item shift.opened is exist - process it [08:34:12]req_shift_opened [08:34:12]FM_GetShiftState [08:34:12]SAM_PROTO_GetShiftState [08:34:12]wFMCommunicate request_size=4 [08:34:12]MH_SAM_APDU [08:34:12]CAPDU: 80 13 01 00 [08:34:12]Write to MH i2c: E2 08 00 6B 00 80 13 01 00 00 00 00 00 E8 [08:34:12]Write i2c OK [08:34:12]MH_I2C_Read... [08:34:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:34:12]Read from MH i2c: E2 [08:34:12]MH_I2C_Read... [08:34:12]Read from MH i2c: E2 0E 00 [08:34:12]MH_I2C_Read... [08:34:12]Read from MH i2c: E2 0E 00 6B 00 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 84 [08:34:12]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [08:34:12]wFMCommunicate OK [08:34:12]SAM_PROTO_GetShiftState done [08:34:12]FM_GetShiftState done [08:34:12]req_shift_opened done [08:34:12]requested_item shift.open_date is exist - process it [08:34:12]req_shift_open_date [08:34:12]req_shift_open_date done [08:34:12]produce_requested_data done [08:34:12]produce_requested_data return {"kkm.sn":"0300000053","kkm.ver":"001","fm.sn":"0000000000874958","fd.num":41840,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [08:34:12]process_action_free get_value [08:34:12]json_value_free [08:34:12]json_value_free done [08:34:12]process_json_proto returns [08:34:12]Send response to host [08:34:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000053","kkm.ver":"001","fm.sn":"0000000000874958","fd.num":41840,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [08:34:12]free response buf [08:34:12]execute_script done [08:34:12]execute_script returns [08:34:12]free content buf [08:34:12]Sock 7.Close socket [08:34:12]Sock 7.Thread stoped [08:34:12]accept exits with 10 [08:34:12]New connection [08:34:12]New thread 3067080036 created [08:34:12]Thread 3067223396 joined [08:34:12]Waiting for new connection... [08:34:12] Sock 10.Parse request [08:34:12]Sock 10.Check first char [08:34:12]Sock 10.First char is OK [08:34:12]request: POST /json_proto HTTP/1.0 [08:34:12]Method: POST [08:34:12]URL: /json_proto [08:34:12]Method is POST - this is cgi request [08:34:12]url: /json_proto [08:34:12]query_string will be loaded in cgi processing [08:34:12]execute_cgi json_proto POST (null) [08:34:12]execute_cgi path=json_proto method=POST [08:34:12]POST find Content-Length [08:34:12]Host: 172.17.43.132:8080 [08:34:12]Content-Length: 331 [08:34:12]Content-Type: application/json [08:34:12] [08:34:12]POST finish read [08:34:12]Found Content-Length = 331 [08:34:12]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" ] } } [08:34:12]execute_script... [08:34:12]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" ] } } [08:34:12]POST & json_proto [08:34:12]process_json_proto [08:34:12]json parsed OK: [08:34:12]protocol is kg_v1.0 [08:34:12]action value=get_value [08:34:12]process_action get_value [08:34:12]cmd_get_value [08:34:12]process_action get_value done [08:34:12]requested_data is exist [08:34:12]produce_requested_data [08:34:12]requested_item fm.sale.total is exist - process it [08:34:12]SAM_PROTO_GetFMData [08:34:12]wFMCommunicate request_size=4 [08:34:12]MH_SAM_APDU [08:34:12]CAPDU: 80 13 03 00 [08:34:12]Write to MH i2c: E2 08 00 6C 00 80 13 03 00 00 00 00 00 EB [08:34:12]Write i2c OK [08:34:12]MH_I2C_Read... [08:34:13]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [08:34:13]Read from MH i2c: E2 [08:34:13]MH_I2C_Read... [08:34:13]Read from MH i2c: E2 FD 00 [08:34:13]MH_I2C_Read... [08:34:13]Read from MH i2c: E2 FD 00 6C 00 00 C1 04 85 04 BD 04 6E 04 04 00 1A A0 00 00 69 04 A0 00 6F 04 04 00 80 9F 00 00 B1 04 04 00 91 A7 1D 37 70 04 04 00 40 ED C8 31 72 04 04 00 51 BA 54 05 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 BD 46 DA 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4A C7 7C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 9A 00 00 00 B1 04 03 00 54 D5 4E 70 04 03 00 58 C9 42 72 04 03 00 FC 0B 0C 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 13 5F 08 EF 03 09 00 F6 03 90 00 53 [08:34:13]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 1A A0 00 00 69 04 A0 00 6F 04 04 00 80 9F 00 00 B1 04 04 00 91 A7 1D 37 70 04 04 00 40 ED C8 31 72 04 04 00 51 BA 54 05 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 BD 46 DA 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4A C7 7C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 9A 00 00 00 B1 04 03 00 54 D5 4E 70 04 03 00 58 C9 42 72 04 03 00 FC 0B 0C 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 13 5F 08 EF 03 09 00 F6 03 90 00 [08:34:13]wFMCommunicate OK [08:34:13]wFMCommunicate request_size=4 [08:34:13]MH_SAM_APDU [08:34:13]CAPDU: 80 17 00 00 [08:34:13]Write to MH i2c: E2 08 00 6D 00 80 17 00 00 00 00 00 00 ED [08:34:13]Write i2c OK [08:34:13]MH_I2C_Read... [08:34:13]OFD Sender: No OFD packet to send [08:34:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:34:13]Read from MH i2c: E2 [08:34:13]MH_I2C_Read... [08:34:13]Read from MH i2c: E2 FD 00 [08:34:13]MH_I2C_Read... [08:34:13]Read from MH i2c: E2 FD 00 6D 00 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 4D [08:34:13]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 [08:34:13]wFMCommunicate OK [08:34:13]wFMCommunicate request_size=4 [08:34:13]MH_SAM_APDU [08:34:13]CAPDU: 80 17 00 00 [08:34:13]Write to MH i2c: E2 08 00 6E 00 80 17 00 00 00 00 00 00 EE [08:34:13]Write i2c OK [08:34:13]MH_I2C_Read... [08:34:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:34:13]Read from MH i2c: E2 [08:34:13]MH_I2C_Read... [08:34:13]Read from MH i2c: E2 FD 00 [08:34:13]MH_I2C_Read... [08:34:13]Read from MH i2c: E2 FD 00 6E 00 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 8E [08:34:13]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [08:34:13]wFMCommunicate OK [08:34:13]wFMCommunicate request_size=4 [08:34:13]MH_SAM_APDU [08:34:13]CAPDU: 80 17 00 00 [08:34:13]Write to MH i2c: E2 08 00 6F 00 80 17 00 00 00 00 00 00 EF [08:34:13]Write i2c OK [08:34:13]MH_I2C_Read... [08:34:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:34:14]Read from MH i2c: E2 [08:34:14]MH_I2C_Read... [08:34:14]Read from MH i2c: E2 FD 00 [08:34:14]MH_I2C_Read... [08:34:14]Read from MH i2c: E2 FD 00 6F 00 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 74 [08:34:14]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [08:34:14]wFMCommunicate OK [08:34:14]wFMCommunicate request_size=4 [08:34:14]MH_SAM_APDU [08:34:14]CAPDU: 80 17 00 00 [08:34:14]Write to MH i2c: E2 08 00 70 00 80 17 00 00 00 00 00 00 F0 [08:34:14]Write i2c OK [08:34:14]MH_I2C_Read... [08:34:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [08:34:14]Read from MH i2c: E2 [08:34:14]MH_I2C_Read... [08:34:14]Read from MH i2c: E2 DE 00 [08:34:14]MH_I2C_Read... [08:34:14]Read from MH i2c: E2 DE 00 70 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 CF [08:34:14]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [08:34:14]wFMCommunicate OK [08:34:14]SAM_PROTO_GetFMData done [08:34:14]requested_item fm.sale_refund.total is exist - process it [08:34:14]requested_item fm.buy.total is exist - process it [08:34:14]requested_item shift.sale.total is exist - process it [08:34:14]SAM_PROTO_GetShiftData [08:34:14]wFMCommunicate request_size=4 [08:34:14]MH_SAM_APDU [08:34:14]CAPDU: 80 13 02 00 [08:34:14]Write to MH i2c: E2 08 00 71 00 80 13 02 00 00 00 00 00 EF [08:34:14]Write i2c OK [08:34:14]MH_I2C_Read... [08:34:14]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [08:34:14]Read from MH i2c: E2 [08:34:14]MH_I2C_Read... [08:34:14]Read from MH i2c: E2 FD 00 [08:34:14]MH_I2C_Read... [08:34:14]Read from MH i2c: E2 FD 00 71 00 00 B5 04 AA 04 B1 04 6E 04 04 00 1D 00 00 00 69 04 9A 00 6F 04 04 00 1C 00 00 00 B1 04 03 00 D0 8C 07 70 04 03 00 40 46 06 72 04 03 00 90 46 01 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 3D CD 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 19 11 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 D4 AD 70 04 02 00 D4 AD 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 76 12 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 90 00 92 [08:34:14]RAPDU: B5 04 AA 04 B1 04 6E 04 04 00 1D 00 00 00 69 04 9A 00 6F 04 04 00 1C 00 00 00 B1 04 03 00 D0 8C 07 70 04 03 00 40 46 06 72 04 03 00 90 46 01 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 3D CD 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 19 11 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 D4 AD 70 04 02 00 D4 AD 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 76 12 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 90 00 [08:34:14]wFMCommunicate OK [08:34:14]wFMCommunicate request_size=4 [08:34:14]MH_SAM_APDU [08:34:14]CAPDU: 80 17 00 00 [08:34:14]Write to MH i2c: E2 08 00 72 00 80 17 00 00 00 00 00 00 F2 [08:34:14]Write i2c OK [08:34:14]MH_I2C_Read... [08:34:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:34:15]Read from MH i2c: E2 [08:34:15]MH_I2C_Read... [08:34:15]Read from MH i2c: E2 FD 00 [08:34:15]MH_I2C_Read... [08:34:15]Read from MH i2c: E2 FD 00 72 00 00 03 01 00 01 F7 03 02 00 89 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 9D [08:34:15]RAPDU: 03 01 00 01 F7 03 02 00 89 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [08:34:15]wFMCommunicate OK [08:34:15]wFMCommunicate request_size=4 [08:34:15]MH_SAM_APDU [08:34:15]CAPDU: 80 17 00 00 [08:34:15]Write to MH i2c: E2 08 00 73 00 80 17 00 00 00 00 00 00 F3 [08:34:15]Write i2c OK [08:34:15]MH_I2C_Read... [08:34:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:34:15]Read from MH i2c: E2 [08:34:15]MH_I2C_Read... [08:34:15]Read from MH i2c: E2 FD 00 [08:34:15]MH_I2C_Read... [08:34:15]Read from MH i2c: E2 FD 00 73 00 00 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 90 00 B0 [08:34:15]RAPDU: 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 90 00 [08:34:15]wFMCommunicate OK [08:34:15]wFMCommunicate request_size=4 [08:34:15]MH_SAM_APDU [08:34:15]CAPDU: 80 17 00 00 [08:34:15]Write to MH i2c: E2 08 00 74 00 80 17 00 00 00 00 00 00 F4 [08:34:15]Write i2c OK [08:34:15]MH_I2C_Read... [08:34:15]recv_with_timeout no data received [08:34:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:34:15]Read from MH i2c: E2 [08:34:15]MH_I2C_Read... [08:34:15]Read from MH i2c: E2 FD 00 [08:34:15]MH_I2C_Read... [08:34:15]Read from MH i2c: E2 FD 00 74 00 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 90 00 6C [08:34:15]RAPDU: 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 90 00 [08:34:15]wFMCommunicate OK [08:34:15]wFMCommunicate request_size=4 [08:34:15]MH_SAM_APDU [08:34:15]CAPDU: 80 17 00 00 [08:34:15]Write to MH i2c: E2 08 00 75 00 80 17 00 00 00 00 00 00 F5 [08:34:15]Write i2c OK [08:34:15]MH_I2C_Read... [08:34:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 207! [08:34:16]Read from MH i2c: E2 [08:34:16]MH_I2C_Read... [08:34:16]Read from MH i2c: E2 D2 00 [08:34:16]MH_I2C_Read... [08:34:16]Read from MH i2c: E2 D2 00 75 00 00 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 D8 [08:34:16]RAPDU: 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [08:34:16]wFMCommunicate OK [08:34:16]SAM_PROTO_GetShiftData done [08:34:16]requested_item shift.sale.total_cash is exist - process it [08:34:16]requested_item shift.sale_refund.total is exist - process it [08:34:16]requested_item shift.sale_refund.total_cash is exist - process it [08:34:16]requested_item shift.buy.total is exist - process it [08:34:16]requested_item shift.buy.total_cash is exist - process it [08:34:16]produce_requested_data done [08:34:16]produce_requested_data return {"fm.sale.total":9246903.21,"fm.sale_refund.total":51664.20,"fm.buy.total":0.00,"shift.sale.total":4948.00,"shift.sale.total_cash":4112.00,"shift.sale_refund.total":445.00,"shift.sale_refund.total_cash":445.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [08:34:16]process_action_free get_value [08:34:16]json_value_free [08:34:16]json_value_free done [08:34:16]process_json_proto returns [08:34:16]Send response to host [08:34:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":9246903.21,"fm.sale_refund.total":51664.20,"fm.buy.total":0.00,"shift.sale.total":4948.00,"shift.sale.total_cash":4112.00,"shift.sale_refund.total":445.00,"shift.sale_refund.total_cash":445.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [08:34:16]free response buf [08:34:16]execute_script done [08:34:16]execute_script returns [08:34:16]free content buf [08:34:16]Sock 10.Close socket [08:34:16]Sock 10.Thread stoped [08:34:17]accept exits with 7 [08:34:17]New connection [08:34:17]New thread 3067223396 created [08:34:17]Thread 3067080036 joined [08:34:17]Waiting for new connection... [08:34:17] Sock 7.Parse request [08:34:17]Sock 7.Check first char [08:34:17]Sock 7.First char is OK [08:34:17]request: POST /json_proto HTTP/1.0 [08:34:17]Method: POST [08:34:17]URL: /json_proto [08:34:17]Method is POST - this is cgi request [08:34:17]url: /json_proto [08:34:17]query_string will be loaded in cgi processing [08:34:17]execute_cgi json_proto POST (null) [08:34:17]execute_cgi path=json_proto method=POST [08:34:17]POST find Content-Length [08:34:17]Host: 172.17.43.132:8080 [08:34:17]Content-Length: 650 [08:34:17]Content-Type: application/json [08:34:17] [08:34:17]POST finish read [08:34:17]Found Content-Length = 650 [08:34:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183869", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:34:17]execute_script... [08:34: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 : (3)183869", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:34:17]POST & json_proto [08:34:17]process_json_proto [08:34:17]json parsed OK: [08:34:17]protocol is kg_v1.0 [08:34:17]action value=close_receipt [08:34:17]process_action close_receipt [08:34:17]cmd_close_receipt [08:34:17]MH_GetDate [08:34:17]Write to MH i2c: F0 00 00 76 00 65 [08:34:17]Write i2c OK [08:34:17]MH_I2C_Read... [08:34:17]Read from MH i2c: F0 [08:34:17]MH_I2C_Read... [08:34:17]Read from MH i2c: F0 09 00 [08:34:17]MH_I2C_Read... [08:34:17]Read from MH i2c: F0 09 00 76 00 00 09 54 A7 66 F8 53 A7 66 30 [08:34:17]GetLastDocTimeStamp 1722240604 [08:34:17]current date 1722242057 [08:34:17]FM_GetShiftState [08:34:17]SAM_PROTO_GetShiftState [08:34:17]wFMCommunicate request_size=4 [08:34:17]MH_SAM_APDU [08:34:17]CAPDU: 80 13 01 00 [08:34:17]Write to MH i2c: E2 08 00 77 00 80 13 01 00 00 00 00 00 F4 [08:34:17]Write i2c OK [08:34:17]MH_I2C_Read... [08:34:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:34:17]Read from MH i2c: E2 [08:34:17]MH_I2C_Read... [08:34:17]Read from MH i2c: E2 0E 00 [08:34:17]MH_I2C_Read... [08:34:17]Read from MH i2c: E2 0E 00 77 00 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 90 [08:34:17]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [08:34:17]wFMCommunicate OK [08:34:17]SAM_PROTO_GetShiftState done [08:34:17]FM_GetShiftState done [08:34:17]opened in 1722211496 [08:34:17]opened+sec_in_day 1722297896 [08:34:17]quantity*price = 10500 [08:34:17]sum+1 = 10501 [08:34:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 105.00 НСП 1% : 0.93 НДС 12% : 11.15 Наличными: 105.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 30 29.07.2024 08:34 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41841 ФПД: 160149877205524 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T083417&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41841&fm=160149877205524&tin=02508201610067®Number=0000000000092626&sum=10500 0 [08:34:18]StoreToDocumentArchive [08:34:18]shift 427 fd 41841 [08:34:18]save to /storage/0427/doc_00041841 [08:34:18]save last doc name /storage/0427/doc_00041841 to /storage/kkm_last_doc_name [08:34:18]save OK [08:34:18]Clear old archive folders... [08:34:18]ProcessDocumentItem done err = 0, tmpTLVsize=282 [08:34:18]tlvbuf is 005D27C0 [08:34:18]SAM_PROTO_ClearQueue [08:34:18]wFMCommunicate request_size=4 [08:34:18]MH_SAM_APDU [08:34:18]CAPDU: 80 09 00 00 [08:34:18]Write to MH i2c: E2 08 00 84 00 80 09 00 00 00 00 00 00 F6 [08:34:18]Write i2c OK [08:34:18]MH_I2C_Read... [08:34:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:34:18]Read from MH i2c: E2 [08:34:18]MH_I2C_Read... [08:34:18]Read from MH i2c: E2 03 00 [08:34:18]MH_I2C_Read... [08:34:18]Read from MH i2c: E2 03 00 84 00 00 90 00 F8 [08:34:18]RAPDU: 90 00 [08:34:18]wFMCommunicate OK [08:34:18]SAM_PROTO_ClearQueue done [08:34:18]KKMCreateOFDPacket [08:34:18]OFDProtocolAddRootSTLVToBuf [08:34:18]FM_MakeSignedData [08:34:18]FM_MakeSignedData [08:34:18]SAM_PROTO_SignData [08:34:18]wFMCommunicate request_size=4 [08:34:18]MH_SAM_APDU [08:34:18]CAPDU: 80 0D 01 02 [08:34:18]Write to MH i2c: E2 08 00 85 00 80 0D 01 02 00 00 00 00 FE [08:34:18]Write i2c OK [08:34:18]MH_I2C_Read... [08:34:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:34:18]Read from MH i2c: E2 [08:34:18]MH_I2C_Read... [08:34:18]Read from MH i2c: E2 03 00 [08:34:18]MH_I2C_Read... [08:34:19]Read from MH i2c: E2 03 00 85 00 00 90 00 F9 [08:34:19]RAPDU: 90 00 [08:34:19]wFMCommunicate OK [08:34:19]wFMCommunicate request_size=255 [08:34:19]MH_SAM_APDU [08:34:19]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 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 00 00 00 F4 03 04 00 09 54 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 [08:34:19]Write to MH i2c: E2 02 01 86 00 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 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 00 00 00 F4 03 04 00 09 54 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 00 00 FA [08:34:19]Write i2c OK [08:34:19]MH_I2C_Read... [08:34:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:34:19]Read from MH i2c: E2 [08:34:19]MH_I2C_Read... [08:34:19]Read from MH i2c: E2 03 00 [08:34:19]MH_I2C_Read... [08:34:19]Read from MH i2c: E2 03 00 86 00 00 90 00 FA [08:34:19]RAPDU: 90 00 [08:34:19]wFMCommunicate OK [08:34:19]wFMCommunicate request_size=41 [08:34:19]MH_SAM_APDU [08:34:19]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 71 A3 00 00 35 04 06 00 91 A7 CC 8A AA 14 [08:34:19]Write to MH i2c: E2 2C 00 87 00 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 71 A3 00 00 35 04 06 00 91 A7 CC 8A AA 14 00 00 39 [08:34:19]Write i2c OK [08:34:19]MH_I2C_Read... [08:34:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:34:19]Read from MH i2c: E2 [08:34:19]MH_I2C_Read... [08:34:19]Read from MH i2c: E2 03 00 [08:34:19]MH_I2C_Read... [08:34:19]Read from MH i2c: E2 03 00 87 00 00 90 00 FB [08:34:19]RAPDU: 90 00 [08:34:19]wFMCommunicate OK [08:34:19]wFMCommunicate request_size=4 [08:34:19]MH_SAM_APDU [08:34:19]CAPDU: 80 0D 03 02 [08:34:19]Write to MH i2c: E2 08 00 88 00 80 0D 03 02 00 00 00 00 03 [08:34:19]Write i2c OK [08:34:19]MH_I2C_Read... [08:34:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:34:19]Read from MH i2c: E2 [08:34:19]MH_I2C_Read... [08:34:19]Read from MH i2c: E2 0B 00 [08:34:19]MH_I2C_Read... [08:34:19]Read from MH i2c: E2 0B 00 88 00 00 18 E9 65 EE 3F A6 C1 9A 90 00 98 [08:34:19]RAPDU: 18 E9 65 EE 3F A6 C1 9A 90 00 [08:34:19]wFMCommunicate OK [08:34:19]SAM_PROTO_SignData done [08:34:19]FM_MakeSignedData done [08:34:19]CreateOFDProtocolMessage [08:34:19]wFMCommunicate request_size=4 [08:34:19]MH_SAM_APDU [08:34:19]CAPDU: 80 11 00 00 [08:34:19]Write to MH i2c: E2 08 00 89 00 80 11 00 00 00 00 00 00 03 [08:34:19]Write i2c OK [08:34:19]MH_I2C_Read... [08:34:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:34:19]Read from MH i2c: E2 [08:34:19]MH_I2C_Read... [08:34:19]Read from MH i2c: E2 17 00 [08:34:19]MH_I2C_Read... [08:34:19]Read from MH i2c: E2 17 00 89 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 5F [08:34:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [08:34:19]wFMCommunicate OK [08:34:19]CreateOFDProtocolMessage done [08:34:19]OFDSenderStorePacket 41841 [08:34:19]StoreOFDPacket docnum=41841 [08:34:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 2E 01 00 00 48 4E 26 01 E7 8E 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 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 00 00 00 F4 03 04 00 09 54 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 71 A3 00 00 35 04 06 00 91 A7 CC 8A AA 14 18 E9 65 EE 3F A6 C1 9A [08:34:19]CheckFolder [08:34:19]dirname=/storage/ofd_packets [08:34:19]CheckFolder done [08:34:19]ProducePacketName [08:34:19]name=ofd_packets/00041841 [08:34:19]NVStorageSaveData ofd_packets/00041841 [08:34:19]File name is /storage/ofd_packets/00041841 [08:34:19]Write 332 bytes [08:34:19]NVStorageSaveData done [08:34:19]OFDSenderStorePacket done [08:34:19]KKMCreateOFDPacket done [08:34:19]NVStorageSaveData kkm_last_timestamp [08:34:19]File name is /storage/kkm_last_timestamp [08:34:19]Write 4 bytes [08:34:19]NVStorageSaveData done [08:34:19]ExternCall_PrintAddStr [08:34:19]wPrintStart [08:34:19]Write to MH i2c: 01 00 00 8A 00 8A [08:34:19]Write i2c OK [08:34:19]MH_I2C_Read... [08:34:19]Read from MH i2c: 01 [08:34:19]MH_I2C_Read... [08:34:19]Read from MH i2c: 01 07 00 [08:34:19]MH_I2C_Read... [08:34:19]Read from MH i2c: 01 07 00 8A 00 00 00 00 00 00 FF 0F 9F [08:34:19]RasterBufferAndPrint [08:34:19]line Счет N : (3)183869 [08:34:19]line ИНН: 02508201610067 [08:34:19]line Контрольно-Кассовый Чек [08:34:19]line ПРОДАЖА [08:34:19]line Товар: 2000034730018 [08:34:19]line Кофе Американо (GABB TRADE) [08:34:19]line 1.000 * 105.00 [08:34:19]line = 105.00 [08:34:19]line НДС 12% НСП 1% [08:34:19]line > о реализуемом товаре [08:34:19]line ИТОГО: 105.00 [08:34:19]line НСП 1% : 0.93 [08:34:19]line НДС 12% : 11.15 [08:34:19]line Наличными: 105.00 [08:34:19]line Безнал.: 0.00 [08:34:19]line Место: АЗС № 97 "Партнер Нефть" [08:34:19]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [08:34:19]line СНО: Общий режим [08:34:19]line Чек 30 29.07.2024 08:34 [08:34:19]line Смена: 427 ФФД: 1.0 [08:34:19]line ЗНМ: 0300000053 [08:34:19]line РНМ: 0000000000092626 [08:34:19]line Версия ККМ: 001 [08:34:19]line ФМ: 0000000000874958 [08:34:19]line ФД: 41841 [08:34:19]line ФПД: 160149877205524 [08:34:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T083417&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41841&fm=160149877205524&tin=02508201610067®Number=0000000000092626&sum=10500 [08:34:19]line 0 [08:34:19]OFD Sender: Processing packet 41841 [packets to send 57, broken 56] [08:34:19]ProducePacketName [08:34:19]name=ofd_packets/00041841 [08:34:19]OFD Sender: To server: pG, [08:34:19]CommunicateWithHost lk.salyk.kg:30040 [08:34:19]ConnectInit lk.salyk.kg [08:34:19]written 0, free lines is 4095 [08:34:20]Write to MH i2c: 01 00 00 B3 00 B3 [08:34:20]Write i2c OK [08:34:20]MH_I2C_Read... [08:34:20]Read from MH i2c: 01 [08:34:20]MH_I2C_Read... [08:34:20]Read from MH i2c: 01 07 00 [08:34:20]MH_I2C_Read... [08:34:20]Read from MH i2c: 01 07 00 B3 00 00 00 00 00 00 02 0D C9 [08:34:20]RasterBufferAndPrint [08:34:20]line [08:34:20]line [08:34:20]line [08:34:20]line [08:34:20]line [08:34:20]written 0, free lines is 3357 [08:34:20]MH_Cut [08:34:20]Write to MH i2c: D1 01 00 BA 00 01 8C [08:34:20]Write i2c OK [08:34:20]MH_I2C_Read... [08:34:20]Read from MH i2c: D1 [08:34:20]MH_I2C_Read... [08:34:20]Read from MH i2c: D1 01 00 [08:34:20]MH_I2C_Read... [08:34:20]Read from MH i2c: D1 01 00 BA 00 00 8B [08:34:20]Write to MH i2c: 01 00 00 BB 00 BB [08:34:20]Write i2c OK [08:34:20]MH_I2C_Read... [08:34:20]Connected sock=10 [08:34: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 35 38 2E 01 00 00 48 4E 26 01 E7 8E 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 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 00 00 00 F4 03 04 00 09 54 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 71 A3 00 00 35 04 06 00 91 A7 CC 8A AA 14 18 E9 65 EE 3F A6 C1 9A [08:34:20]*** Cut start [08:34:20]*** Partial cut [08:34:20]*** CUTSNS_PIN = 1 [08:34:21]*** CUTSNS_PIN = 0 [08:34:21]*** Brake cut motor [08:34: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 35 38 4F 00 00 00 45 0B 47 00 0D 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 35 38 10 04 04 00 71 A3 00 00 F4 03 04 00 1F 00 A7 66 B6 04 01 00 00 A8 72 6F 12 19 D8 EB 6D [08:34:21]CommunicateWithHost err = 0 [08:34:21]CheckOFDResponse [08:34:21]1017 (14) - 77093643461234 [08:34:21]1041 (16) - 0000000000874958 [08:34:21]1040 (4) - 41841 [08:34:21]1012 (4) - 29.07.2024 02:36 [08:34:21]1206 (1) - 0 [08:34:21]OFD Sender: Remove packet 41841 [08:34:21]ProducePacketName [08:34:21]name=ofd_packets/00041841 [08:34:21]NVStorageDeleteData [08:34:21]Read from MH i2c: 01 [08:34:21]MH_I2C_Read... [08:34:21]*** Stop cut motor [08:34:21]*** Cut end [08:34:21]Read from MH i2c: 01 07 00 [08:34:21]MH_I2C_Read... [08:34:21]Read from MH i2c: 01 07 00 BB 00 00 00 00 00 00 FF 0F D0 [08:34:21]process_action close_receipt done [08:34:21]requested_data is exist [08:34:21]produce_requested_data [08:34:21]requested_item fm.sn is exist - process it [08:34:21]wFMCommunicate request_size=4 [08:34:21]MH_SAM_APDU [08:34:21]CAPDU: 80 11 00 00 [08:34:21]Write to MH i2c: E2 08 00 BC 00 80 11 00 00 00 00 00 00 36 [08:34:21]Write i2c OK [08:34:21]MH_I2C_Read... [08:34:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:34:21]Read from MH i2c: E2 [08:34:21]MH_I2C_Read... [08:34:21]Read from MH i2c: E2 17 00 [08:34:21]MH_I2C_Read... [08:34:21]Read from MH i2c: E2 17 00 BC 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 92 [08:34:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [08:34:21]wFMCommunicate OK [08:34:21]requested_item fd.num is exist - process it [08:34:21]SAM_PROTO_GetFieldsCounters [08:34:21]wFMCommunicate request_size=4 [08:34:21]MH_SAM_APDU [08:34:21]CAPDU: 80 13 00 00 [08:34:21]Write to MH i2c: E2 08 00 BD 00 80 13 00 00 00 00 00 00 39 [08:34:21]Write i2c OK [08:34:21]MH_I2C_Read... [08:34:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:34:21]Read from MH i2c: E2 [08:34:21]MH_I2C_Read... [08:34:21]Read from MH i2c: E2 62 00 [08:34:21]MH_I2C_Read... [08:34:21]Read from MH i2c: E2 62 00 BD 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 71 A3 00 00 0E 04 04 00 AB 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 7D [08:34: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 71 A3 00 00 0E 04 04 00 AB 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 [08:34:22]wFMCommunicate OK [08:34:22]SAM_PROTO_GetFieldsCounters done [08:34:22]requested_item shift.num is exist - process it [08:34:22]requested_item shift.opened is exist - process it [08:34:22]req_shift_opened [08:34:22]FM_GetShiftState [08:34:22]SAM_PROTO_GetShiftState [08:34:22]wFMCommunicate request_size=4 [08:34:22]MH_SAM_APDU [08:34:22]CAPDU: 80 13 01 00 [08:34:22]Write to MH i2c: E2 08 00 BE 00 80 13 01 00 00 00 00 00 3B [08:34:22]OFD Sender: No OFD packet to send [08:34:22]Write i2c OK [08:34:22]MH_I2C_Read... [08:34:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:34:22]Read from MH i2c: E2 [08:34:22]MH_I2C_Read... [08:34:22]Read from MH i2c: E2 0E 00 [08:34:22]MH_I2C_Read... [08:34:22]Read from MH i2c: E2 0E 00 BE 00 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 D7 [08:34:22]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [08:34:22]wFMCommunicate OK [08:34:22]SAM_PROTO_GetShiftState done [08:34:22]FM_GetShiftState done [08:34:22]req_shift_opened done [08:34:22]requested_item shift.open_date is exist - process it [08:34:22]req_shift_open_date [08:34:22]req_shift_open_date done [08:34:22]produce_requested_data done [08:34:22]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41841,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [08:34:22]process_action_free close_receipt [08:34:22]json_value_free [08:34:22]json_value_free done [08:34:22]process_json_proto returns [08:34:22]Send response to host [08:34:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41841,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [08:34:22]free response buf [08:34:22]execute_script done [08:34:22]execute_script returns [08:34:22]free content buf [08:34:22]Sock 7.Close socket [08:34:22]Sock 7.Thread stoped [08:34:23]accept exits with 9 [08:34:23]New connection [08:34:23]New thread 3067080036 created [08:34:23]Thread 3067223396 joined [08:34:23]Waiting for new connection... [08:34:23] Sock 9.Parse request [08:34:23]Sock 9.Check first char [08:34:23]Sock 9.First char is OK [08:34:23]request: POST /json_proto HTTP/1.0 [08:34:23]Method: POST [08:34:23]URL: /json_proto [08:34:23]Method is POST - this is cgi request [08:34:23]url: /json_proto [08:34:23]query_string will be loaded in cgi processing [08:34:23]execute_cgi json_proto POST (null) [08:34:23]execute_cgi path=json_proto method=POST [08:34:23]POST find Content-Length [08:34:23]Host: 172.17.43.132:8080 [08:34:23]Content-Length: 648 [08:34:23]Content-Type: application/json [08:34:23] [08:34:23]POST finish read [08:34:23]Found Content-Length = 648 [08:34:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183870", "tax_sys" : 0, "items" : [ { "code": "46227737", "name": "\u0420/\u0436 mentos pure fresh \u0430\u0440\u0431\u0443\u0437 \u0440\u043E\u043B\u043B 15,5\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 49.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:34:23]execute_script... [08:34: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 : (3)183870", "tax_sys" : 0, "items" : [ { "code": "46227737", "name": "\u0420/\u0436 mentos pure fresh \u0430\u0440\u0431\u0443\u0437 \u0440\u043E\u043B\u043B 15,5\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 49.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:34:23]POST & json_proto [08:34:23]process_json_proto [08:34:23]json parsed OK: [08:34:23]protocol is kg_v1.0 [08:34:23]action value=close_receipt [08:34:23]process_action close_receipt [08:34:23]cmd_close_receipt [08:34:23]MH_GetDate [08:34:23]Write to MH i2c: F0 00 00 BF 00 AE [08:34:23]Write i2c OK [08:34:23]MH_I2C_Read... [08:34:23]Read from MH i2c: F0 [08:34:23]MH_I2C_Read... [08:34:23]Read from MH i2c: F0 09 00 [08:34:23]MH_I2C_Read... [08:34:23]Read from MH i2c: F0 09 00 BF 00 00 0F 54 A7 66 F8 53 A7 66 7F [08:34:23]GetLastDocTimeStamp 1722242057 [08:34:23]current date 1722242063 [08:34:23]FM_GetShiftState [08:34:23]SAM_PROTO_GetShiftState [08:34:23]wFMCommunicate request_size=4 [08:34:23]MH_SAM_APDU [08:34:23]CAPDU: 80 13 01 00 [08:34:23]Write to MH i2c: E2 08 00 C0 00 80 13 01 00 00 00 00 00 3D [08:34:23]Write i2c OK [08:34:23]MH_I2C_Read... [08:34:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:34:23]Read from MH i2c: E2 [08:34:23]MH_I2C_Read... [08:34:23]Read from MH i2c: E2 0E 00 [08:34:23]MH_I2C_Read... [08:34:23]Read from MH i2c: E2 0E 00 C0 00 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 D9 [08:34:23]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [08:34:23]wFMCommunicate OK [08:34:23]SAM_PROTO_GetShiftState done [08:34:23]FM_GetShiftState done [08:34:23]opened in 1722211496 [08:34:23]opened+sec_in_day 1722297896 [08:34:23]quantity*price = 4900 [08:34:23]sum+1 = 4901 [08:34:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 49.00 НСП 1% : 0.43 НДС 12% : 5.20 Наличными: 49.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 31 29.07.2024 08:34 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41842 ФПД: 244122359052163 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T083423&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41842&fm=244122359052163&tin=02508201610067®Number=0000000000092626&sum=4900 0 [08:34:24]StoreToDocumentArchive [08:34:24]shift 427 fd 41842 [08:34:24]save to /storage/0427/doc_00041842 [08:34:24]save last doc name /storage/0427/doc_00041842 to /storage/kkm_last_doc_name [08:34:24]save OK [08:34:24]Clear old archive folders... [08:34:24]ProcessDocumentItem done err = 0, tmpTLVsize=287 [08:34:24]tlvbuf is 0063A850 [08:34:24]SAM_PROTO_ClearQueue [08:34:24]wFMCommunicate request_size=4 [08:34:24]MH_SAM_APDU [08:34:24]CAPDU: 80 09 00 00 [08:34:24]Write to MH i2c: E2 08 00 CD 00 80 09 00 00 00 00 00 00 3F [08:34:24]Write i2c OK [08:34:24]MH_I2C_Read... [08:34:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:34:24]Read from MH i2c: E2 [08:34:24]MH_I2C_Read... [08:34:24]Read from MH i2c: E2 03 00 [08:34:24]MH_I2C_Read... [08:34:24]Read from MH i2c: E2 03 00 CD 00 00 90 00 41 [08:34:24]RAPDU: 90 00 [08:34:24]wFMCommunicate OK [08:34:24]SAM_PROTO_ClearQueue done [08:34:24]KKMCreateOFDPacket [08:34:24]OFDProtocolAddRootSTLVToBuf [08:34:24]FM_MakeSignedData [08:34:24]FM_MakeSignedData [08:34:24]SAM_PROTO_SignData [08:34:24]wFMCommunicate request_size=4 [08:34:24]MH_SAM_APDU [08:34:24]CAPDU: 80 0D 01 02 [08:34:24]Write to MH i2c: E2 08 00 CE 00 80 0D 01 02 00 00 00 00 47 [08:34:24]Write i2c OK [08:34:24]MH_I2C_Read... [08:34:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:34:24]Read from MH i2c: E2 [08:34:24]MH_I2C_Read... [08:34:24]Read from MH i2c: E2 03 00 [08:34:24]MH_I2C_Read... [08:34:24]Read from MH i2c: E2 03 00 CE 00 00 90 00 42 [08:34:24]RAPDU: 90 00 [08:34:24]wFMCommunicate OK [08:34:24]wFMCommunicate request_size=255 [08:34:24]MH_SAM_APDU [08:34:24]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 08 00 34 36 32 32 37 37 33 37 06 04 32 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 66 72 65 73 68 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 20 D1 80 D0 BE D0 BB D0 BB 20 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 0F 54 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 [08:34:25]Write to MH i2c: E2 02 01 CF 00 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 08 00 34 36 32 32 37 37 33 37 06 04 32 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 66 72 65 73 68 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 20 D1 80 D0 BE D0 BB D0 BB 20 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 0F 54 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 00 00 AE [08:34:25]Write i2c OK [08:34:25]MH_I2C_Read... [08:34:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:34:25]Read from MH i2c: E2 [08:34:25]MH_I2C_Read... [08:34:25]Read from MH i2c: E2 03 00 [08:34:25]MH_I2C_Read... [08:34:25]Read from MH i2c: E2 03 00 CF 00 00 90 00 43 [08:34:25]RAPDU: 90 00 [08:34:25]wFMCommunicate OK [08:34:25]wFMCommunicate request_size=46 [08:34:25]MH_SAM_APDU [08:34:25]CAPDU: 80 0D 02 02 29 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 72 A3 00 00 35 04 06 00 DE 07 2A 7E 37 83 [08:34:25]Write to MH i2c: E2 31 00 D0 00 80 0D 02 02 29 00 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 72 A3 00 00 35 04 06 00 DE 07 2A 7E 37 83 00 00 3B [08:34:25]Write i2c OK [08:34:25]MH_I2C_Read... [08:34:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:34:25]Read from MH i2c: E2 [08:34:25]MH_I2C_Read... [08:34:25]Read from MH i2c: E2 03 00 [08:34:25]MH_I2C_Read... [08:34:25]Read from MH i2c: E2 03 00 D0 00 00 90 00 44 [08:34:25]RAPDU: 90 00 [08:34:25]wFMCommunicate OK [08:34:25]wFMCommunicate request_size=4 [08:34:25]MH_SAM_APDU [08:34:25]CAPDU: 80 0D 03 02 [08:34:25]Write to MH i2c: E2 08 00 D1 00 80 0D 03 02 00 00 00 00 4C [08:34:25]Write i2c OK [08:34:25]MH_I2C_Read... [08:34:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:34:25]Read from MH i2c: E2 [08:34:25]MH_I2C_Read... [08:34:25]Read from MH i2c: E2 0B 00 [08:34:25]MH_I2C_Read... [08:34:25]Read from MH i2c: E2 0B 00 D1 00 00 C4 6E B0 35 07 4C D9 CC 90 00 5C [08:34:25]RAPDU: C4 6E B0 35 07 4C D9 CC 90 00 [08:34:25]wFMCommunicate OK [08:34:25]SAM_PROTO_SignData done [08:34:25]FM_MakeSignedData done [08:34:25]CreateOFDProtocolMessage [08:34:25]wFMCommunicate request_size=4 [08:34:25]MH_SAM_APDU [08:34:25]CAPDU: 80 11 00 00 [08:34:25]Write to MH i2c: E2 08 00 D2 00 80 11 00 00 00 00 00 00 4C [08:34:25]Write i2c OK [08:34:25]MH_I2C_Read... [08:34:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:34:25]Read from MH i2c: E2 [08:34:25]MH_I2C_Read... [08:34:25]Read from MH i2c: E2 17 00 [08:34:25]MH_I2C_Read... [08:34:25]Read from MH i2c: E2 17 00 D2 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 A8 [08:34:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [08:34:25]wFMCommunicate OK [08:34:25]CreateOFDProtocolMessage done [08:34:25]OFDSenderStorePacket 41842 [08:34:25]StoreOFDPacket docnum=41842 [08:34:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 33 01 00 00 EB 93 2B 01 2D D9 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 08 00 34 36 32 32 37 37 33 37 06 04 32 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 66 72 65 73 68 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 20 D1 80 D0 BE D0 BB D0 BB 20 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 0F 54 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 72 A3 00 00 35 04 06 00 DE 07 2A 7E 37 83 C4 6E B0 35 07 4C D9 CC [08:34:25]CheckFolder [08:34:25]dirname=/storage/ofd_packets [08:34:25]CheckFolder done [08:34:25]ProducePacketName [08:34:25]name=ofd_packets/00041842 [08:34:25]NVStorageSaveData ofd_packets/00041842 [08:34:25]File name is /storage/ofd_packets/00041842 [08:34:25]Write 337 bytes [08:34:25]NVStorageSaveData done [08:34:25]OFDSenderStorePacket done [08:34:25]KKMCreateOFDPacket done [08:34:25]NVStorageSaveData kkm_last_timestamp [08:34:25]File name is /storage/kkm_last_timestamp [08:34:25]Write 4 bytes [08:34:25]NVStorageSaveData done [08:34:25]ExternCall_PrintAddStr [08:34:25]wPrintStart [08:34:25]Write to MH i2c: 01 00 00 D3 00 D3 [08:34:25]Write i2c OK [08:34:25]MH_I2C_Read... [08:34:25]Read from MH i2c: 01 [08:34:25]MH_I2C_Read... [08:34:25]Read from MH i2c: 01 07 00 [08:34:25]MH_I2C_Read... [08:34:25]Read from MH i2c: 01 07 00 D3 00 00 00 00 00 00 FF 0F E8 [08:34:25]RasterBufferAndPrint [08:34:25]line Счет N : (3)183870 [08:34:25]line ИНН: 02508201610067 [08:34:25]line Контрольно-Кассовый Чек [08:34:25]line ПРОДАЖА [08:34:25]line Товар: 46227737 [08:34:25]line Р/ж mentos pure fresh арбуз ролл 15,5г [08:34:25]line 1.000 * 49.00 [08:34:25]line = 49.00 [08:34:25]line НДС 12% НСП 1% [08:34:25]line > о реализуемом товаре [08:34:25]line ИТОГО: 49.00 [08:34:25]line НСП 1% : 0.43 [08:34:25]line НДС 12% : 5.20 [08:34:25]line Наличными: 49.00 [08:34:25]line Безнал.: 0.00 [08:34:25]line Место: АЗС № 97 "Партнер Нефть" [08:34:25]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [08:34:25]line СНО: Общий режим [08:34:25]line Чек 31 29.07.2024 08:34 [08:34:25]line Смена: 427 ФФД: 1.0 [08:34:25]line ЗНМ: 0300000053 [08:34:25]line РНМ: 0000000000092626 [08:34:25]line Версия ККМ: 001 [08:34:25]line ФМ: 0000000000874958 [08:34:25]line ФД: 41842 [08:34:25]line ФПД: 244122359052163 [08:34:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T083423&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41842&fm=244122359052163&tin=02508201610067®Number=0000000000092626&sum=4900 [08:34:25]line 0 [08:34:25]written 0, free lines is 4095 [08:34:25]OFD Sender: Processing packet 41842 [packets to send 57, broken 56] [08:34:25]ProducePacketName [08:34:25]name=ofd_packets/00041842 [08:34:25]OFD Sender: To server: pG, [08:34:25]CommunicateWithHost lk.salyk.kg:30040 [08:34:25]ConnectInit lk.salyk.kg [08:34:26]Write to MH i2c: 01 00 00 FC 00 FC [08:34:26]Write i2c OK [08:34:26]MH_I2C_Read... [08:34:26]Read from MH i2c: 01 [08:34:26]MH_I2C_Read... [08:34:26]Read from MH i2c: 01 07 00 [08:34:26]MH_I2C_Read... [08:34:26]Read from MH i2c: 01 07 00 FC 00 00 00 00 00 00 FF 0C 0E [08:34:26]RasterBufferAndPrint [08:34:26]line [08:34:26]line [08:34:26]line [08:34:26]line [08:34:26]line [08:34:26]written 0, free lines is 3363 [08:34:26]MH_Cut [08:34:26]Write to MH i2c: D1 01 00 03 01 01 D6 [08:34:26]Write i2c OK [08:34:26]MH_I2C_Read... [08:34:26]Read from MH i2c: D1 [08:34:26]MH_I2C_Read... [08:34:26]Read from MH i2c: D1 01 00 [08:34:26]MH_I2C_Read... [08:34:26]Read from MH i2c: D1 01 00 03 01 00 D5 [08:34:26]Write to MH i2c: 01 00 00 04 01 05 [08:34:26]Write i2c OK [08:34:26]MH_I2C_Read... [08:34:26]Connected sock=10 [08:34: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 35 38 33 01 00 00 EB 93 2B 01 2D D9 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 08 00 34 36 32 32 37 37 33 37 06 04 32 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 66 72 65 73 68 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 20 D1 80 D0 BE D0 BB D0 BB 20 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 0F 54 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 72 A3 00 00 35 04 06 00 DE 07 2A 7E 37 83 C4 6E B0 35 07 4C D9 CC [08:34:26]*** Cut start [08:34:26]*** Partial cut [08:34:26]*** CUTSNS_PIN = 1 [08:34:27]*** CUTSNS_PIN = 0 [08:34: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 35 38 4F 00 00 00 A7 0D 47 00 D3 92 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 72 A3 00 00 F4 03 04 00 25 00 A7 66 B6 04 01 00 00 FB B2 82 80 3F 4C D2 E5 [08:34:27]CommunicateWithHost err = 0 [08:34:27]CheckOFDResponse [08:34:27]1017 (14) - 77093643461234 [08:34:27]1041 (16) - 0000000000874958 [08:34:27]1040 (4) - 41842 [08:34:27]1012 (4) - 29.07.2024 02:36 [08:34:27]1206 (1) - 0 [08:34:27]OFD Sender: Remove packet 41842 [08:34:27]ProducePacketName [08:34:27]name=ofd_packets/00041842 [08:34:27]NVStorageDeleteData [08:34:27]*** Brake cut motor [08:34:27]OFD Sender: No OFD packet to send [08:34:27]Read from MH i2c: 01 [08:34:27]MH_I2C_Read... [08:34:27]*** Stop cut motor [08:34:27]*** Cut end [08:34:27]Read from MH i2c: 01 07 00 [08:34:27]MH_I2C_Read... [08:34:27]Read from MH i2c: 01 07 00 04 01 00 00 00 00 00 FF 0F 1A [08:34:27]process_action close_receipt done [08:34:27]requested_data is exist [08:34:27]produce_requested_data [08:34:27]requested_item fm.sn is exist - process it [08:34:27]wFMCommunicate request_size=4 [08:34:27]MH_SAM_APDU [08:34:27]CAPDU: 80 11 00 00 [08:34:27]Write to MH i2c: E2 08 00 05 01 80 11 00 00 00 00 00 00 80 [08:34:27]Write i2c OK [08:34:27]MH_I2C_Read... [08:34:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:34:27]Read from MH i2c: E2 [08:34:27]MH_I2C_Read... [08:34:27]Read from MH i2c: E2 17 00 [08:34:27]MH_I2C_Read... [08:34:27]Read from MH i2c: E2 17 00 05 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 DC [08:34:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [08:34:27]wFMCommunicate OK [08:34:27]requested_item fd.num is exist - process it [08:34:27]SAM_PROTO_GetFieldsCounters [08:34:27]wFMCommunicate request_size=4 [08:34:27]MH_SAM_APDU [08:34:27]CAPDU: 80 13 00 00 [08:34:27]Write to MH i2c: E2 08 00 06 01 80 13 00 00 00 00 00 00 83 [08:34:27]Write i2c OK [08:34:27]MH_I2C_Read... [08:34:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:34:28]Read from MH i2c: E2 [08:34:28]MH_I2C_Read... [08:34:28]Read from MH i2c: E2 62 00 [08:34:28]MH_I2C_Read... [08:34:28]Read from MH i2c: E2 62 00 06 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 72 A3 00 00 0E 04 04 00 AB 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 CB [08:34: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 72 A3 00 00 0E 04 04 00 AB 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 [08:34:28]wFMCommunicate OK [08:34:28]SAM_PROTO_GetFieldsCounters done [08:34:28]requested_item shift.num is exist - process it [08:34:28]requested_item shift.opened is exist - process it [08:34:28]req_shift_opened [08:34:28]FM_GetShiftState [08:34:28]SAM_PROTO_GetShiftState [08:34:28]wFMCommunicate request_size=4 [08:34:28]MH_SAM_APDU [08:34:28]CAPDU: 80 13 01 00 [08:34:28]Write to MH i2c: E2 08 00 07 01 80 13 01 00 00 00 00 00 85 [08:34:28]Write i2c OK [08:34:28]MH_I2C_Read... [08:34:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:34:28]Read from MH i2c: E2 [08:34:28]MH_I2C_Read... [08:34:28]Read from MH i2c: E2 0E 00 [08:34:28]MH_I2C_Read... [08:34:28]Read from MH i2c: E2 0E 00 07 01 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 21 [08:34:28]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [08:34:28]wFMCommunicate OK [08:34:28]SAM_PROTO_GetShiftState done [08:34:28]FM_GetShiftState done [08:34:28]req_shift_opened done [08:34:28]requested_item shift.open_date is exist - process it [08:34:28]req_shift_open_date [08:34:28]req_shift_open_date done [08:34:28]produce_requested_data done [08:34:28]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41842,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [08:34:28]process_action_free close_receipt [08:34:28]json_value_free [08:34:28]json_value_free done [08:34:28]process_json_proto returns [08:34:28]Send response to host [08:34:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41842,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [08:34:28]free response buf [08:34:28]execute_script done [08:34:28]execute_script returns [08:34:28]free content buf [08:34:28]Sock 9.Close socket [08:34:28]Sock 9.Thread stoped [08:34:29]accept exits with 7 [08:34:29]New connection [08:34:29]New thread 3067223396 created [08:34:29]Thread 3067080036 joined [08:34:29]Waiting for new connection... [08:34:29] Sock 7.Parse request [08:34:29]Sock 7.Check first char [08:34:29]Sock 7.First char is OK [08:34:29]request: POST /json_proto HTTP/1.0 [08:34:29]Method: POST [08:34:29]URL: /json_proto [08:34:29]Method is POST - this is cgi request [08:34:29]url: /json_proto [08:34:29]query_string will be loaded in cgi processing [08:34:29]execute_cgi json_proto POST (null) [08:34:29]execute_cgi path=json_proto method=POST [08:34:29]POST find Content-Length [08:34:29]Host: 172.17.43.132:8080 [08:34:29]Content-Length: 646 [08:34:29]Content-Type: application/json [08:34:29] [08:34:29]POST finish read [08:34:29]Found Content-Length = 646 [08:34:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183871", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:34:29]execute_script... [08:34:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183871", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:34:29]POST & json_proto [08:34:29]process_json_proto [08:34:29]json parsed OK: [08:34:29]protocol is kg_v1.0 [08:34:29]action value=close_receipt [08:34:29]process_action close_receipt [08:34:29]cmd_close_receipt [08:34:29]MH_GetDate [08:34:29]Write to MH i2c: F0 00 00 08 01 F8 [08:34:29]Write i2c OK [08:34:29]MH_I2C_Read... [08:34:29]Read from MH i2c: F0 [08:34:29]MH_I2C_Read... [08:34:29]Read from MH i2c: F0 09 00 [08:34:29]MH_I2C_Read... [08:34:29]Read from MH i2c: F0 09 00 08 01 00 15 54 A7 66 F8 53 A7 66 CF [08:34:29]GetLastDocTimeStamp 1722242063 [08:34:29]current date 1722242069 [08:34:29]FM_GetShiftState [08:34:29]SAM_PROTO_GetShiftState [08:34:29]wFMCommunicate request_size=4 [08:34:29]MH_SAM_APDU [08:34:29]CAPDU: 80 13 01 00 [08:34:29]Write to MH i2c: E2 08 00 09 01 80 13 01 00 00 00 00 00 87 [08:34:29]Write i2c OK [08:34:29]MH_I2C_Read... [08:34:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:34:29]Read from MH i2c: E2 [08:34:29]MH_I2C_Read... [08:34:29]Read from MH i2c: E2 0E 00 [08:34:29]MH_I2C_Read... [08:34:29]Read from MH i2c: E2 0E 00 09 01 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 23 [08:34:29]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [08:34:29]wFMCommunicate OK [08:34:29]SAM_PROTO_GetShiftState done [08:34:29]FM_GetShiftState done [08:34:29]opened in 1722211496 [08:34:29]opened+sec_in_day 1722297896 [08:34:29]quantity*price = 13000 [08:34:29]sum+1 = 13001 [08:34:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 32 29.07.2024 08:34 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41843 ФПД: 168658898355907 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T083429&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41843&fm=168658898355907&tin=02508201610067®Number=0000000000092626&sum=13000 0 [08:34:31]StoreToDocumentArchive [08:34:31]shift 427 fd 41843 [08:34:31]save to /storage/0427/doc_00041843 [08:34:31]save last doc name /storage/0427/doc_00041843 to /storage/kkm_last_doc_name [08:34:31]save OK [08:34:31]Clear old archive folders... [08:34:31]ProcessDocumentItem done err = 0, tmpTLVsize=282 [08:34:31]tlvbuf is 00662850 [08:34:31]SAM_PROTO_ClearQueue [08:34:31]wFMCommunicate request_size=4 [08:34:31]MH_SAM_APDU [08:34:31]CAPDU: 80 09 00 00 [08:34:31]Write to MH i2c: E2 08 00 16 01 80 09 00 00 00 00 00 00 89 [08:34:31]Write i2c OK [08:34:31]MH_I2C_Read... [08:34:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:34:31]Read from MH i2c: E2 [08:34:31]MH_I2C_Read... [08:34:31]Read from MH i2c: E2 03 00 [08:34:31]MH_I2C_Read... [08:34:31]Read from MH i2c: E2 03 00 16 01 00 90 00 8B [08:34:31]RAPDU: 90 00 [08:34:31]wFMCommunicate OK [08:34:31]SAM_PROTO_ClearQueue done [08:34:31]KKMCreateOFDPacket [08:34:31]OFDProtocolAddRootSTLVToBuf [08:34:31]FM_MakeSignedData [08:34:31]FM_MakeSignedData [08:34:31]SAM_PROTO_SignData [08:34:31]wFMCommunicate request_size=4 [08:34:31]MH_SAM_APDU [08:34:31]CAPDU: 80 0D 01 02 [08:34:31]Write to MH i2c: E2 08 00 17 01 80 0D 01 02 00 00 00 00 91 [08:34:31]Write i2c OK [08:34:31]MH_I2C_Read... [08:34:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:34:31]Read from MH i2c: E2 [08:34:31]MH_I2C_Read... [08:34:31]Read from MH i2c: E2 03 00 [08:34:31]MH_I2C_Read... [08:34:31]Read from MH i2c: E2 03 00 17 01 00 90 00 8C [08:34:31]RAPDU: 90 00 [08:34:31]wFMCommunicate OK [08:34:31]wFMCommunicate request_size=255 [08:34:31]MH_SAM_APDU [08:34:31]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 15 54 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 [08:34:31]Write to MH i2c: E2 02 01 18 01 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 15 54 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 00 00 E2 [08:34:31]Write i2c OK [08:34:31]MH_I2C_Read... [08:34:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:34:31]Read from MH i2c: E2 [08:34:31]MH_I2C_Read... [08:34:31]Read from MH i2c: E2 03 00 [08:34:31]MH_I2C_Read... [08:34:31]Read from MH i2c: E2 03 00 18 01 00 90 00 8D [08:34:31]RAPDU: 90 00 [08:34:31]wFMCommunicate OK [08:34:31]wFMCommunicate request_size=41 [08:34:31]MH_SAM_APDU [08:34:31]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 73 A3 00 00 35 04 06 00 99 64 F5 B9 86 C3 [08:34:31]Write to MH i2c: E2 2C 00 19 01 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 73 A3 00 00 35 04 06 00 99 64 F5 B9 86 C3 00 00 76 [08:34:31]Write i2c OK [08:34:31]MH_I2C_Read... [08:34:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:34:32]Read from MH i2c: E2 [08:34:32]MH_I2C_Read... [08:34:32]Read from MH i2c: E2 03 00 [08:34:32]MH_I2C_Read... [08:34:32]Read from MH i2c: E2 03 00 19 01 00 90 00 8E [08:34:32]RAPDU: 90 00 [08:34:32]wFMCommunicate OK [08:34:32]wFMCommunicate request_size=4 [08:34:32]MH_SAM_APDU [08:34:32]CAPDU: 80 0D 03 02 [08:34:32]Write to MH i2c: E2 08 00 1A 01 80 0D 03 02 00 00 00 00 96 [08:34:32]Write i2c OK [08:34:32]MH_I2C_Read... [08:34:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:34:32]Read from MH i2c: E2 [08:34:32]MH_I2C_Read... [08:34:32]Read from MH i2c: E2 0B 00 [08:34:32]MH_I2C_Read... [08:34:32]Read from MH i2c: E2 0B 00 1A 01 00 69 46 79 CB 87 03 E8 E2 90 00 DE [08:34:32]RAPDU: 69 46 79 CB 87 03 E8 E2 90 00 [08:34:32]wFMCommunicate OK [08:34:32]SAM_PROTO_SignData done [08:34:32]FM_MakeSignedData done [08:34:32]CreateOFDProtocolMessage [08:34:32]wFMCommunicate request_size=4 [08:34:32]MH_SAM_APDU [08:34:32]CAPDU: 80 11 00 00 [08:34:32]Write to MH i2c: E2 08 00 1B 01 80 11 00 00 00 00 00 00 96 [08:34:32]Write i2c OK [08:34:32]MH_I2C_Read... [08:34:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:34:32]Read from MH i2c: E2 [08:34:32]MH_I2C_Read... [08:34:32]Read from MH i2c: E2 17 00 [08:34:32]MH_I2C_Read... [08:34:32]Read from MH i2c: E2 17 00 1B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 F2 [08:34:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [08:34:32]wFMCommunicate OK [08:34:32]CreateOFDProtocolMessage done [08:34:32]OFDSenderStorePacket 41843 [08:34:32]StoreOFDPacket docnum=41843 [08:34:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 2E 01 00 00 DC 52 26 01 9C 64 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 15 54 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 73 A3 00 00 35 04 06 00 99 64 F5 B9 86 C3 69 46 79 CB 87 03 E8 E2 [08:34:32]CheckFolder [08:34:32]dirname=/storage/ofd_packets [08:34:32]CheckFolder done [08:34:32]ProducePacketName [08:34:32]name=ofd_packets/00041843 [08:34:32]NVStorageSaveData ofd_packets/00041843 [08:34:32]File name is /storage/ofd_packets/00041843 [08:34:32]Write 332 bytes [08:34:32]NVStorageSaveData done [08:34:32]OFDSenderStorePacket done [08:34:32]KKMCreateOFDPacket done [08:34:32]NVStorageSaveData kkm_last_timestamp [08:34:32]File name is /storage/kkm_last_timestamp [08:34:32]Write 4 bytes [08:34:32]NVStorageSaveData done [08:34:32]ExternCall_PrintAddStr [08:34:32]wPrintStart [08:34:32]Write to MH i2c: 01 00 00 1C 01 1D [08:34:32]OFD Sender: Processing packet 41843 [packets to send 57, broken 56] [08:34:32]ProducePacketName [08:34:32]name=ofd_packets/00041843 [08:34:32]OFD Sender: To server: pG, [08:34:32]CommunicateWithHost lk.salyk.kg:30040 [08:34:32]ConnectInit lk.salyk.kg [08:34:32]Write i2c OK [08:34:32]MH_I2C_Read... [08:34:32]Read from MH i2c: 01 [08:34:32]MH_I2C_Read... [08:34:32]Read from MH i2c: 01 07 00 [08:34:32]MH_I2C_Read... [08:34:32]Read from MH i2c: 01 07 00 1C 01 00 00 00 00 00 FF 0F 32 [08:34:32]RasterBufferAndPrint [08:34:32]line Счет N : (3)183871 [08:34:32]line ИНН: 02508201610067 [08:34:32]line Контрольно-Кассовый Чек [08:34:32]line ПРОДАЖА [08:34:32]line Товар: 2000036220012 [08:34:32]line Кофе Капучино XL(GABB TRADE) [08:34:32]line 1.000 * 130.00 [08:34:32]line = 130.00 [08:34:32]line НДС 12% НСП 1% [08:34:32]line > о реализуемом товаре [08:34:32]line ИТОГО: 130.00 [08:34:32]line НСП 1% : 1.15 [08:34:32]line НДС 12% : 13.80 [08:34:32]line Наличными: 130.00 [08:34:32]line Безнал.: 0.00 [08:34:32]line Место: АЗС № 97 "Партнер Нефть" [08:34:32]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [08:34:32]line СНО: Общий режим [08:34:32]line Чек 32 29.07.2024 08:34 [08:34:32]line Смена: 427 ФФД: 1.0 [08:34:32]line ЗНМ: 0300000053 [08:34:32]line РНМ: 0000000000092626 [08:34:32]line Версия ККМ: 001 [08:34:32]line ФМ: 0000000000874958 [08:34:32]line ФД: 41843 [08:34:32]line ФПД: 168658898355907 [08:34:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T083429&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41843&fm=168658898355907&tin=02508201610067®Number=0000000000092626&sum=13000 [08:34:32]line 0 [08:34:32]written 0, free lines is 4095 [08:34:32]Write to MH i2c: 01 00 00 45 01 46 [08:34:32]Write i2c OK [08:34:32]MH_I2C_Read... [08:34:32]Read from MH i2c: 01 [08:34:32]MH_I2C_Read... [08:34:32]Read from MH i2c: 01 07 00 [08:34:32]MH_I2C_Read... [08:34:32]Read from MH i2c: 01 07 00 45 01 00 00 00 00 00 0B 0D 65 [08:34:32]RasterBufferAndPrint [08:34:32]line [08:34:32]line [08:34:32]line [08:34:32]line [08:34:32]line [08:34:32]written 0, free lines is 3378 [08:34:32]MH_Cut [08:34:32]Write to MH i2c: D1 01 00 4C 01 01 1F [08:34:32]Write i2c OK [08:34:32]MH_I2C_Read... [08:34:32]Read from MH i2c: D1 [08:34:32]MH_I2C_Read... [08:34:32]Read from MH i2c: D1 01 00 [08:34:32]MH_I2C_Read... [08:34:32]Read from MH i2c: D1 01 00 4C 01 00 1E [08:34:32]Write to MH i2c: 01 00 00 4D 01 4E [08:34:32]Write i2c OK [08:34:32]MH_I2C_Read... [08:34:33]*** Cut start [08:34:33]*** Partial cut [08:34:33]*** CUTSNS_PIN = 1 [08:34:33]*** CUTSNS_PIN = 0 [08:34:33]*** Brake cut motor [08:34:33]Connected sock=11 [08:34: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 35 38 2E 01 00 00 DC 52 26 01 9C 64 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 15 54 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 73 A3 00 00 35 04 06 00 99 64 F5 B9 86 C3 69 46 79 CB 87 03 E8 E2 [08:34:34]Read from MH i2c: 01 [08:34:34]MH_I2C_Read... [08:34:34]*** Stop cut motor [08:34:34]*** Cut end [08:34:34]Read from MH i2c: 01 07 00 [08:34:34]MH_I2C_Read... [08:34:34]Read from MH i2c: 01 07 00 4D 01 00 00 00 00 00 FF 0F 63 [08:34:34]process_action close_receipt done [08:34:34]requested_data is exist [08:34:34]produce_requested_data [08:34:34]requested_item fm.sn is exist - process it [08:34:34]wFMCommunicate request_size=4 [08:34:34]MH_SAM_APDU [08:34:34]CAPDU: 80 11 00 00 [08:34:34]Write to MH i2c: E2 08 00 4E 01 80 11 00 00 00 00 00 00 C9 [08:34:34]Write i2c OK [08:34:34]MH_I2C_Read... [08:34:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:34:34]Read from MH i2c: E2 [08:34:34]MH_I2C_Read... [08:34:34]Read from MH i2c: E2 17 00 [08:34:34]MH_I2C_Read... [08:34:34]Read from MH i2c: E2 17 00 4E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 25 [08:34:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [08:34:34]wFMCommunicate OK [08:34:34]requested_item fd.num is exist - process it [08:34:34]SAM_PROTO_GetFieldsCounters [08:34:34]wFMCommunicate request_size=4 [08:34:34]MH_SAM_APDU [08:34:34]CAPDU: 80 13 00 00 [08:34:34]Write to MH i2c: E2 08 00 4F 01 80 13 00 00 00 00 00 00 CC [08:34:34]Write i2c OK [08:34:34]MH_I2C_Read... [08:34:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:34:34]Read from MH i2c: E2 [08:34:34]MH_I2C_Read... [08:34:34]Read from MH i2c: E2 62 00 [08:34:34]MH_I2C_Read... [08:34:34]Read from MH i2c: E2 62 00 4F 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 73 A3 00 00 0E 04 04 00 AB 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 18 [08:34:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 73 A3 00 00 0E 04 04 00 AB 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 [08:34:34]wFMCommunicate OK [08:34:34]SAM_PROTO_GetFieldsCounters done [08:34:34]requested_item shift.num is exist - process it [08:34:34]requested_item shift.opened is exist - process it [08:34:34]req_shift_opened [08:34:34]FM_GetShiftState [08:34:34]SAM_PROTO_GetShiftState [08:34:34]wFMCommunicate request_size=4 [08:34:34]MH_SAM_APDU [08:34:34]CAPDU: 80 13 01 00 [08:34:34]Write to MH i2c: E2 08 00 50 01 80 13 01 00 00 00 00 00 CE [08:34:34]Write i2c OK [08:34:34]MH_I2C_Read... [08:34:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:34:34]Read from MH i2c: E2 [08:34:34]MH_I2C_Read... [08:34:34]Read from MH i2c: E2 0E 00 [08:34:34]MH_I2C_Read... [08:34:34]Read from MH i2c: E2 0E 00 50 01 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 6A [08:34:34]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [08:34:34]wFMCommunicate OK [08:34:34]SAM_PROTO_GetShiftState done [08:34:34]FM_GetShiftState done [08:34:34]req_shift_opened done [08:34:34]requested_item shift.open_date is exist - process it [08:34:34]req_shift_open_date [08:34:34]req_shift_open_date done [08:34:34]produce_requested_data done [08:34:34]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41843,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [08:34:34]process_action_free close_receipt [08:34:34]json_value_free [08:34:34]json_value_free done [08:34:34]process_json_proto returns [08:34:34]Send response to host [08:34:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41843,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [08:34:34]free response buf [08:34:34]execute_script done [08:34:34]execute_script returns [08:34:34]free content buf [08:34:34]Sock 7.Close socket [08:34:34]Sock 7.Thread stoped [08:34: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 35 38 4F 00 00 00 4A 62 47 00 82 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 73 A3 00 00 F4 03 04 00 2C 00 A7 66 B6 04 01 00 00 FA 77 50 4C E3 28 CE D3 [08:34:36]CommunicateWithHost err = 0 [08:34:36]CheckOFDResponse [08:34:36]1017 (14) - 77093643461234 [08:34:36]1041 (16) - 0000000000874958 [08:34:36]1040 (4) - 41843 [08:34:36]1012 (4) - 29.07.2024 02:36 [08:34:36]1206 (1) - 0 [08:34:36]OFD Sender: Remove packet 41843 [08:34:36]ProducePacketName [08:34:36]name=ofd_packets/00041843 [08:34:36]NVStorageDeleteData [08:34:37]OFD Sender: No OFD packet to send [08:34:42]OFD Sender: No OFD packet to send [08:34:47]OFD Sender: No OFD packet to send [08:34:52]OFD Sender: No OFD packet to send [08:34:57]OFD Sender: No OFD packet to send [08:35:02]OFD Sender: No OFD packet to send [08:35:07]OFD Sender: No OFD packet to send [08:35:12]OFD Sender: No OFD packet to send [08:35:17]OFD Sender: No OFD packet to send [08:35:22]OFD Sender: No OFD packet to send [08:35:27]OFD Sender: No OFD packet to send [08:35:32]OFD Sender: No OFD packet to send [08:35:37]OFD Sender: No OFD packet to send [08:35:42]OFD Sender: No OFD packet to send [08:35:47]OFD Sender: No OFD packet to send [08:35:52]OFD Sender: No OFD packet to send [08:35:57]OFD Sender: No OFD packet to send [08:36:02]OFD Sender: No OFD packet to send [08:36:07]OFD Sender: No OFD packet to send [08:36:12]OFD Sender: No OFD packet to send [08:36:17]OFD Sender: No OFD packet to send [08:36:22]OFD Sender: No OFD packet to send [08:36:27]OFD Sender: No OFD packet to send [08:36:32]OFD Sender: No OFD packet to send [08:36:37]OFD Sender: No OFD packet to send [08:36:42]OFD Sender: No OFD packet to send [08:36:47]OFD Sender: No OFD packet to send [08:36:51]recv_with_timeout no data received [08:36:52]OFD Sender: No OFD packet to send [08:36:57]OFD Sender: No OFD packet to send [08:37:02]OFD Sender: No OFD packet to send [08:37:07]OFD Sender: No OFD packet to send [08:37:12]recv_with_timeout no data received [08:37:12]OFD Sender: No OFD packet to send [08:38:12]OFD Sender: No OFD packet to send [08:38:14]ConnectInit Can't connect to host [08:38:17]OFD Sender: No OFD packet to send [08:38:22]OFD Sender: No OFD packet to send [08:38:27]OFD Sender: No OFD packet to send [08:38:32]OFD Sender: No OFD packet to send [08:38:37]OFD Sender: No OFD packet to send [08:38:42]OFD Sender: No OFD packet to send [08:38:47]OFD Sender: No OFD packet to send [08:38:48]recv_with_timeout no data received [08:38:52]OFD Sender: No OFD packet to send [08:38:57]OFD Sender: No OFD packet to send [08:39:02]OFD Sender: No OFD packet to send [08:39:07]OFD Sender: No OFD packet to send [08:39:12]OFD Sender: No OFD packet to send [08:39:17]OFD Sender: No OFD packet to send [08:39:21]recv_with_timeout no data received [08:39:22]OFD Sender: No OFD packet to send [08:39:27]OFD Sender: No OFD packet to send [08:39:32]OFD Sender: No OFD packet to send [08:39:37]OFD Sender: No OFD packet to send [08:39:40]recv_with_timeout no data received [08:39:42]OFD Sender: No OFD packet to send [08:39:47]OFD Sender: No OFD packet to send [08:39:52]OFD Sender: No OFD packet to send [08:39:57]OFD Sender: No OFD packet to send [08:40:02]OFD Sender: No OFD packet to send [08:40:07]OFD Sender: No OFD packet to send [08:40:12]OFD Sender: No OFD packet to send [08:40:17]OFD Sender: No OFD packet to send [08:40:22]OFD Sender: No OFD packet to send [08:40:27]OFD Sender: No OFD packet to send [08:40:32]OFD Sender: No OFD packet to send [08:40:37]OFD Sender: No OFD packet to send [08:40:42]OFD Sender: No OFD packet to send [08:40:47]OFD Sender: No OFD packet to send [08:40:52]OFD Sender: No OFD packet to send [08:40:57]OFD Sender: No OFD packet to send [08:41:02]OFD Sender: No OFD packet to send [08:41: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]recv_with_timeout no data received [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:44]recv_with_timeout no data received [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:06]accept exits with 9 [08:42:06]New connection [08:42:06]New thread 3067080036 created [08:42:06]Thread 3067223396 joined [08:42:06]Waiting for new connection... [08:42:06] Sock 9.Parse request [08:42:06]Sock 9.Check first char [08:42:06]Sock 9.First char is OK [08:42:06]request: POST /json_proto HTTP/1.0 [08:42:06]Method: POST [08:42:06]URL: /json_proto [08:42:06]Method is POST - this is cgi request [08:42:06]url: /json_proto [08:42:06]query_string will be loaded in cgi processing [08:42:06]execute_cgi json_proto POST (null) [08:42:06]execute_cgi path=json_proto method=POST [08:42:06]POST find Content-Length [08:42:06]Host: 172.17.43.132:8080 [08:42:06]Content-Length: 1149 [08:42:06]Content-Type: application/json [08:42:06] [08:42:06]POST finish read [08:42:06]Found Content-Length = 1149 [08:42:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183872", "tax_sys" : 0, "items" : [ { "code": "4780022460452", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 Yumiko gold 1\u043A\u0433", "price" : 148.00, "quantity" : 1.000, "sum" : 148.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "6931280300549", "name": "\u0417\u0430\u0436\u0438\u0433\u0430\u043B\u043A\u0430 Cricket \u041F\u041D \u043F\u044C\u0435\u0437\u043E", "price" : 67.00, "quantity" : 1.000, "sum" : 67.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 355.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:42:06]execute_script... [08:42:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183872", "tax_sys" : 0, "items" : [ { "code": "4780022460452", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 Yumiko gold 1\u043A\u0433", "price" : 148.00, "quantity" : 1.000, "sum" : 148.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "6931280300549", "name": "\u0417\u0430\u0436\u0438\u0433\u0430\u043B\u043A\u0430 Cricket \u041F\u041D \u043F\u044C\u0435\u0437\u043E", "price" : 67.00, "quantity" : 1.000, "sum" : 67.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 355.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:42:06]POST & json_proto [08:42:06]process_json_proto [08:42:06]json parsed OK: [08:42:06]protocol is kg_v1.0 [08:42:06]action value=close_receipt [08:42:06]process_action close_receipt [08:42:06]cmd_close_receipt [08:42:06]MH_GetDate [08:42:06]Write to MH i2c: F0 00 00 51 01 41 [08:42:06]Write i2c OK [08:42:06]MH_I2C_Read... [08:42:06]Read from MH i2c: F0 [08:42:06]MH_I2C_Read... [08:42:06]Read from MH i2c: F0 09 00 [08:42:06]MH_I2C_Read... [08:42:06]Read from MH i2c: F0 09 00 51 01 00 DE 55 A7 66 F8 53 A7 66 E2 [08:42:06]GetLastDocTimeStamp 1722242069 [08:42:06]current date 1722242526 [08:42:06]FM_GetShiftState [08:42:06]SAM_PROTO_GetShiftState [08:42:06]wFMCommunicate request_size=4 [08:42:06]MH_SAM_APDU [08:42:06]CAPDU: 80 13 01 00 [08:42:06]Write to MH i2c: E2 08 00 52 01 80 13 01 00 00 00 00 00 D0 [08:42:06]Write i2c OK [08:42:06]MH_I2C_Read... [08:42:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:42:06]Read from MH i2c: E2 [08:42:06]MH_I2C_Read... [08:42:06]Read from MH i2c: E2 0E 00 [08:42:06]MH_I2C_Read... [08:42:06]Read from MH i2c: E2 0E 00 52 01 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 6C [08:42:06]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [08:42:06]wFMCommunicate OK [08:42:06]SAM_PROTO_GetShiftState done [08:42:06]FM_GetShiftState done [08:42:06]opened in 1722211496 [08:42:06]opened+sec_in_day 1722297896 [08:42:06]quantity*price = 14800 [08:42:06]sum+1 = 14801 [08:42:06]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 34 29.07.2024 08:45 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41845 ФПД: 34739902262122 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T084511&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41845&fm=34739902262122&tin=02508201610067®Number=0000000000092626&sum=9500 0 [08:45:12]StoreToDocumentArchive [08:45:12]shift 427 fd 41845 [08:45:12]save to /storage/0427/doc_00041845 [08:45:12]save last doc name /storage/0427/doc_00041845 to /storage/kkm_last_doc_name [08:45:12]save OK [08:45:12]Clear old archive folders... [08:45:12]ProcessDocumentItem done err = 0, tmpTLVsize=302 [08:45:12]tlvbuf is 006555B0 [08:45:12]SAM_PROTO_ClearQueue [08:45:12]wFMCommunicate request_size=4 [08:45:12]MH_SAM_APDU [08:45:12]CAPDU: 80 09 00 00 [08:45:12]Write to MH i2c: E2 08 00 B4 01 80 09 00 00 00 00 00 00 27 [08:45:12]Write i2c OK [08:45:12]MH_I2C_Read... [08:45:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:45:12]Read from MH i2c: E2 [08:45:12]MH_I2C_Read... [08:45:12]Read from MH i2c: E2 03 00 [08:45:12]MH_I2C_Read... [08:45:12]Read from MH i2c: E2 03 00 B4 01 00 90 00 29 [08:45:12]RAPDU: 90 00 [08:45:12]wFMCommunicate OK [08:45:12]SAM_PROTO_ClearQueue done [08:45:12]KKMCreateOFDPacket [08:45:12]OFDProtocolAddRootSTLVToBuf [08:45:12]FM_MakeSignedData [08:45:12]FM_MakeSignedData [08:45:12]SAM_PROTO_SignData [08:45:12]wFMCommunicate request_size=4 [08:45:12]MH_SAM_APDU [08:45:12]CAPDU: 80 0D 01 02 [08:45:12]Write to MH i2c: E2 08 00 B5 01 80 0D 01 02 00 00 00 00 2F [08:45:12]Write i2c OK [08:45:12]MH_I2C_Read... [08:45:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:45:12]Read from MH i2c: E2 [08:45:12]MH_I2C_Read... [08:45:12]Read from MH i2c: E2 03 00 [08:45:12]MH_I2C_Read... [08:45:12]Read from MH i2c: E2 03 00 B5 01 00 90 00 2A [08:45:12]RAPDU: 90 00 [08:45:12]wFMCommunicate OK [08:45:12]wFMCommunicate request_size=255 [08:45:12]MH_SAM_APDU [08:45:12]CAPDU: 80 0D 02 02 FA 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 34 30 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 20 D0 B3 D0 B0 D0 B7 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 97 56 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 [08:45:12]Write to MH i2c: E2 02 01 B6 01 80 0D 02 02 FA 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 34 30 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 20 D0 B3 D0 B0 D0 B7 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 97 56 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 00 00 19 [08:45:12]Write i2c OK [08:45:12]MH_I2C_Read... [08:45:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:45:12]Read from MH i2c: E2 [08:45:12]MH_I2C_Read... [08:45:12]Read from MH i2c: E2 03 00 [08:45:12]MH_I2C_Read... [08:45:12]Read from MH i2c: E2 03 00 B6 01 00 90 00 2B [08:45:12]RAPDU: 90 00 [08:45:12]wFMCommunicate OK [08:45:12]wFMCommunicate request_size=61 [08:45:12]MH_SAM_APDU [08:45:12]CAPDU: 80 0D 02 02 38 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 75 A3 00 00 35 04 06 00 1F 98 83 88 AB 6A [08:45:12]Write to MH i2c: E2 40 00 B7 01 80 0D 02 02 38 00 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 75 A3 00 00 35 04 06 00 1F 98 83 88 AB 6A 00 00 5F [08:45:12]Write i2c OK [08:45:12]MH_I2C_Read... [08:45:13]*** iso7816_exchange 80 0D 02 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 B7 01 00 90 00 2C [08:45:13]RAPDU: 90 00 [08:45:13]wFMCommunicate OK [08:45:13]wFMCommunicate request_size=4 [08:45:13]MH_SAM_APDU [08:45:13]CAPDU: 80 0D 03 02 [08:45:13]Write to MH i2c: E2 08 00 B8 01 80 0D 03 02 00 00 00 00 34 [08:45:13]Write i2c OK [08:45:13]MH_I2C_Read... [08:45:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:45:13]Read from MH i2c: E2 [08:45:13]MH_I2C_Read... [08:45:13]Read from MH i2c: E2 0B 00 [08:45:13]MH_I2C_Read... [08:45:13]Read from MH i2c: E2 0B 00 B8 01 00 CE CA 86 D1 95 C2 C2 CA 90 00 07 [08:45:13]RAPDU: CE CA 86 D1 95 C2 C2 CA 90 00 [08:45:13]wFMCommunicate OK [08:45:13]SAM_PROTO_SignData done [08:45:13]FM_MakeSignedData done [08:45:13]CreateOFDProtocolMessage [08:45:13]wFMCommunicate request_size=4 [08:45:13]MH_SAM_APDU [08:45:13]CAPDU: 80 11 00 00 [08:45:13]Write to MH i2c: E2 08 00 B9 01 80 11 00 00 00 00 00 00 34 [08:45:13]Write i2c OK [08:45:13]MH_I2C_Read... [08:45:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:45:13]Read from MH i2c: E2 [08:45:13]MH_I2C_Read... [08:45:13]Read from MH i2c: E2 17 00 [08:45:13]MH_I2C_Read... [08:45:13]Read from MH i2c: E2 17 00 B9 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 90 [08:45:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [08:45:13]wFMCommunicate OK [08:45:13]CreateOFDProtocolMessage done [08:45:13]OFDSenderStorePacket 41845 [08:45:13]StoreOFDPacket docnum=41845 [08:45:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 42 01 00 00 D6 DF 3A 01 C8 3F 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 34 30 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 20 D0 B3 D0 B0 D0 B7 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 97 56 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 75 A3 00 00 35 04 06 00 1F 98 83 88 AB 6A CE CA 86 D1 95 C2 C2 CA [08:45:13]CheckFolder [08:45:13]dirname=/storage/ofd_packets [08:45:13]CheckFolder done [08:45:13]ProducePacketName [08:45:13]name=ofd_packets/00041845 [08:45:13]NVStorageSaveData ofd_packets/00041845 [08:45:13]File name is /storage/ofd_packets/00041845 [08:45:13]Write 352 bytes [08:45:13]NVStorageSaveData done [08:45:13]OFDSenderStorePacket done [08:45:13]KKMCreateOFDPacket done [08:45:13]NVStorageSaveData kkm_last_timestamp [08:45:13]File name is /storage/kkm_last_timestamp [08:45:13]Write 4 bytes [08:45:13]NVStorageSaveData done [08:45:13]ExternCall_PrintAddStr [08:45:13]wPrintStart [08:45:13]Write to MH i2c: 01 00 00 BA 01 BB [08:45:13]Write i2c OK [08:45:13]MH_I2C_Read... [08:45:13]Read from MH i2c: 01 [08:45:13]MH_I2C_Read... [08:45:13]Read from MH i2c: 01 07 00 [08:45:13]MH_I2C_Read... [08:45:13]Read from MH i2c: 01 07 00 BA 01 00 00 00 00 00 FF 0F D0 [08:45:13]RasterBufferAndPrint [08:45:13]line Счет N : (3)183873 [08:45:13]line ИНН: 02508201610067 [08:45:13]line Контрольно-Кассовый Чек [08:45:13]line ПРОДАЖА [08:45:13]line Товар: 4700000482740 [08:45:13]line Напиток Nitro Fr газ апельсин ж/б 0,45л [08:45:13]line 1.000 * 95.00 [08:45:13]line = 95.00 [08:45:13]line НДС 12% НСП 1% [08:45:13]line > о реализуемом товаре [08:45:13]line ИТОГО: 95.00 [08:45:13]line НСП 1% : 0.84 [08:45:13]line НДС 12% : 10.09 [08:45:13]line Наличными: 95.00 [08:45:13]line Безнал.: 0.00 [08:45:13]line Место: АЗС № 97 "Партнер Нефть" [08:45:13]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [08:45:13]line СНО: Общий режим [08:45:13]line Чек 34 29.07.2024 08:45 [08:45:13]line Смена: 427 ФФД: 1.0 [08:45:13]line ЗНМ: 0300000053 [08:45:13]line РНМ: 0000000000092626 [08:45:13]line Версия ККМ: 001 [08:45:13]line ФМ: 0000000000874958 [08:45:13]line ФД: 41845 [08:45:13]line ФПД: 34739902262122 [08:45:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T084511&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41845&fm=34739902262122&tin=02508201610067®Number=0000000000092626&sum=9500 [08:45:13]line 0 [08:45:13]OFD Sender: Processing packet 41845 [packets to send 57, broken 56] [08:45:13]ProducePacketName [08:45:13]name=ofd_packets/00041845 [08:45:13]OFD Sender: To server: pG, [08:45:13]CommunicateWithHost lk.salyk.kg:30040 [08:45:13]ConnectInit lk.salyk.kg [08:45:13]written 0, free lines is 4095 [08:45:13]Write to MH i2c: 01 00 00 E3 01 E4 [08:45:13]Write i2c OK [08:45:13]MH_I2C_Read... [08:45:13]Read from MH i2c: 01 [08:45:13]MH_I2C_Read... [08:45:13]Read from MH i2c: 01 07 00 [08:45:13]MH_I2C_Read... [08:45:13]Read from MH i2c: 01 07 00 E3 01 00 00 00 00 00 F6 0C ED [08:45:13]RasterBufferAndPrint [08:45:13]line [08:45:13]line [08:45:13]line [08:45:13]line [08:45:13]line [08:45:13]written 0, free lines is 3324 [08:45:13]MH_Cut [08:45:13]Write to MH i2c: D1 01 00 EA 01 01 BD [08:45:13]Write i2c OK [08:45:13]MH_I2C_Read... [08:45:13]Read from MH i2c: D1 [08:45:13]MH_I2C_Read... [08:45:13]Read from MH i2c: D1 01 00 [08:45:13]MH_I2C_Read... [08:45:13]Read from MH i2c: D1 01 00 EA 01 00 BC [08:45:13]Write to MH i2c: 01 00 00 EB 01 EC [08:45:13]Write i2c OK [08:45:13]MH_I2C_Read... [08:45:13]Connected sock=9 [08:45: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 35 38 42 01 00 00 D6 DF 3A 01 C8 3F 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 34 30 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 20 D0 B3 D0 B0 D0 B7 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 97 56 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 75 A3 00 00 35 04 06 00 1F 98 83 88 AB 6A CE CA 86 D1 95 C2 C2 CA [08:45:14]*** Cut start [08:45:14]*** Partial cut [08:45:14]*** CUTSNS_PIN = 1 [08:45:14]*** CUTSNS_PIN = 0 [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 35 38 4F 00 00 00 09 6C 47 00 EB 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 35 38 10 04 04 00 75 A3 00 00 F4 03 04 00 AC 02 A7 66 B6 04 01 00 00 75 0E 02 4F EE DC 5F 81 [08:45:14]CommunicateWithHost err = 0 [08:45:14]CheckOFDResponse [08:45:14]1017 (14) - 77093643461234 [08:45:14]1041 (16) - 0000000000874958 [08:45:14]1040 (4) - 41845 [08:45:14]1012 (4) - 29.07.2024 02:47 [08:45:14]1206 (1) - 0 [08:45:14]OFD Sender: Remove packet 41845 [08:45:14]ProducePacketName [08:45:14]name=ofd_packets/00041845 [08:45:14]NVStorageDeleteData [08:45:14]*** Brake cut motor [08:45:15]Read from MH i2c: 01 [08:45:15]MH_I2C_Read... [08:45:15]*** Stop cut motor [08:45:15]*** Cut end [08:45:15]Read from MH i2c: 01 07 00 [08:45:15]MH_I2C_Read... [08:45:15]Read from MH i2c: 01 07 00 EB 01 00 00 00 00 00 FF 0F 01 [08:45:15]process_action close_receipt done [08:45:15]requested_data is exist [08:45:15]produce_requested_data [08:45:15]requested_item fm.sn is exist - process it [08:45:15]wFMCommunicate request_size=4 [08:45:15]MH_SAM_APDU [08:45:15]CAPDU: 80 11 00 00 [08:45:15]Write to MH i2c: E2 08 00 EC 01 80 11 00 00 00 00 00 00 67 [08:45:15]Write i2c OK [08:45:15]MH_I2C_Read... [08:45:15]OFD Sender: No OFD packet to send [08:45:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:45:15]Read from MH i2c: E2 [08:45:15]MH_I2C_Read... [08:45:15]Read from MH i2c: E2 17 00 [08:45:15]MH_I2C_Read... [08:45:15]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 35 38 90 00 C3 [08:45:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [08:45:15]wFMCommunicate OK [08:45:15]requested_item fd.num is exist - process it [08:45:15]SAM_PROTO_GetFieldsCounters [08:45:15]wFMCommunicate request_size=4 [08:45:15]MH_SAM_APDU [08:45:15]CAPDU: 80 13 00 00 [08:45:15]Write to MH i2c: E2 08 00 ED 01 80 13 00 00 00 00 00 00 6A [08:45:15]Write i2c OK [08:45:15]MH_I2C_Read... [08:45:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:45:15]Read from MH i2c: E2 [08:45:15]MH_I2C_Read... [08:45:15]Read from MH i2c: E2 62 00 [08:45:15]MH_I2C_Read... [08:45:15]Read from MH i2c: E2 62 00 ED 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 75 A3 00 00 0E 04 04 00 AB 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 BE [08:45: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 75 A3 00 00 0E 04 04 00 AB 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 [08:45:15]wFMCommunicate OK [08:45:15]SAM_PROTO_GetFieldsCounters done [08:45:15]requested_item shift.num is exist - process it [08:45:15]requested_item shift.opened is exist - process it [08:45:15]req_shift_opened [08:45:15]FM_GetShiftState [08:45:15]SAM_PROTO_GetShiftState [08:45:15]wFMCommunicate request_size=4 [08:45:15]MH_SAM_APDU [08:45:15]CAPDU: 80 13 01 00 [08:45:15]Write to MH i2c: E2 08 00 EE 01 80 13 01 00 00 00 00 00 6C [08:45:15]Write i2c OK [08:45:15]MH_I2C_Read... [08:45:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:45:15]Read from MH i2c: E2 [08:45:15]MH_I2C_Read... [08:45:15]Read from MH i2c: E2 0E 00 [08:45:15]MH_I2C_Read... [08:45:15]Read from MH i2c: E2 0E 00 EE 01 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 08 [08:45:15]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [08:45:15]wFMCommunicate OK [08:45:15]SAM_PROTO_GetShiftState done [08:45:15]FM_GetShiftState done [08:45:15]req_shift_opened done [08:45:15]requested_item shift.open_date is exist - process it [08:45:15]req_shift_open_date [08:45:15]req_shift_open_date done [08:45:15]produce_requested_data done [08:45:15]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41845,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [08:45:15]process_action_free close_receipt [08:45:15]json_value_free [08:45:15]json_value_free done [08:45:15]process_json_proto returns [08:45:15]Send response to host [08:45:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41845,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [08:45:15]free response buf [08:45:15]execute_script done [08:45:15]execute_script returns [08:45:15]free content buf [08:45:15]Sock 10.Close socket [08:45:15]Sock 10.Thread stoped [08:45:20]OFD Sender: No OFD packet to send [08:45:21]recv_with_timeout no data received [08:45:25]OFD Sender: No OFD packet to send [08:45:30]OFD Sender: No OFD packet to send [08:45:31]recv_with_timeout no data received [08:45:35]OFD Sender: No OFD packet to send [08:45:40]OFD Sender: No OFD packet to send [08:45:45]OFD Sender: No OFD packet to send [08:45:50]OFD Sender: No OFD packet to send [08:45:55]OFD Sender: No OFD packet to send [08:46:00]OFD Sender: No OFD packet to send [08:46:05]OFD Sender: No OFD packet to send [08:46:10]OFD Sender: No OFD packet to send [08:46:15]OFD Sender: No OFD packet to send [08:46:20]OFD Sender: No OFD packet to send [08:46:25]OFD Sender: No OFD packet to send [08:46:30]OFD Sender: No OFD packet to send [08:46:35]OFD Sender: No OFD packet to send [08:46:40]OFD Sender: No OFD packet to send [08:46:45]OFD Sender: No OFD packet to send [08:46:50]OFD Sender: No OFD packet to send [08:46:55]OFD Sender: No OFD packet to send [08:47:00]OFD Sender: No OFD packet to send [08:47:02]accept exits with 7 [08:47:02]New connection [08:47:02]New thread 3067080036 created [08:47:02]Thread 3067223396 joined [08:47:02]Waiting for new connection... [08:47:02] Sock 7.Parse request [08:47:02]Sock 7.Check first char [08:47:02]Sock 7.First char is OK [08:47:02]request: POST /json_proto HTTP/1.0 [08:47:02]Method: POST [08:47:02]URL: /json_proto [08:47:02]Method is POST - this is cgi request [08:47:02]url: /json_proto [08:47:02]query_string will be loaded in cgi processing [08:47:02]execute_cgi json_proto POST (null) [08:47:02]execute_cgi path=json_proto method=POST [08:47:02]POST find Content-Length [08:47:02]Host: 172.17.43.132:8080 [08:47:02]Content-Length: 632 [08:47:02]Content-Type: application/json [08:47:02] [08:47:02]POST finish read [08:47:02]Found Content-Length = 632 [08:47:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183874", "tax_sys" : 0, "items" : [ { "code": "4780022460452", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 Yumiko gold 1\u043A\u0433", "price" : 148.00, "quantity" : 1.000, "sum" : 148.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 148.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:47:02]execute_script... [08:47:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183874", "tax_sys" : 0, "items" : [ { "code": "4780022460452", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 Yumiko gold 1\u043A\u0433", "price" : 148.00, "quantity" : 1.000, "sum" : 148.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 148.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:47:02]POST & json_proto [08:47:02]process_json_proto [08:47:02]json parsed OK: [08:47:02]protocol is kg_v1.0 [08:47:02]action value=close_receipt [08:47:02]process_action close_receipt [08:47:02]cmd_close_receipt [08:47:02]MH_GetDate [08:47:02]Write to MH i2c: F0 00 00 EF 01 DF [08:47:02]Write i2c OK [08:47:02]MH_I2C_Read... [08:47:02]Read from MH i2c: F0 [08:47:02]MH_I2C_Read... [08:47:02]Read from MH i2c: F0 09 00 [08:47:02]MH_I2C_Read... [08:47:02]Read from MH i2c: F0 09 00 EF 01 00 06 57 A7 66 F8 53 A7 66 AA [08:47:02]GetLastDocTimeStamp 1722242711 [08:47:02]current date 1722242822 [08:47:02]FM_GetShiftState [08:47:02]SAM_PROTO_GetShiftState [08:47:02]wFMCommunicate request_size=4 [08:47:02]MH_SAM_APDU [08:47:02]CAPDU: 80 13 01 00 [08:47:02]Write to MH i2c: E2 08 00 F0 01 80 13 01 00 00 00 00 00 6E [08:47:02]Write i2c OK [08:47:02]MH_I2C_Read... [08:47:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:47:02]Read from MH i2c: E2 [08:47:02]MH_I2C_Read... [08:47:02]Read from MH i2c: E2 0E 00 [08:47:02]MH_I2C_Read... [08:47:02]Read from MH i2c: E2 0E 00 F0 01 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 0A [08:47:02]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [08:47:02]wFMCommunicate OK [08:47:02]SAM_PROTO_GetShiftState done [08:47:02]FM_GetShiftState done [08:47:02]opened in 1722211496 [08:47:02]opened+sec_in_day 1722297896 [08:47:02]quantity*price = 14800 [08:47:02]sum+1 = 14801 [08:47:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 148.00 НСП 1% : 1.31 НДС 12% : 15.72 Наличными: 148.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 35 29.07.2024 08:47 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41846 ФПД: 146441093381079 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T084702&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41846&fm=146441093381079&tin=02508201610067®Number=0000000000092626&sum=14800 0 [08:47:03]StoreToDocumentArchive [08:47:03]shift 427 fd 41846 [08:47:03]save to /storage/0427/doc_00041846 [08:47:03]save last doc name /storage/0427/doc_00041846 to /storage/kkm_last_doc_name [08:47:03]save OK [08:47:03]Clear old archive folders... [08:47:03]ProcessDocumentItem done err = 0, tmpTLVsize=276 [08:47:03]tlvbuf is 00650860 [08:47:03]SAM_PROTO_ClearQueue [08:47:03]wFMCommunicate request_size=4 [08:47:03]MH_SAM_APDU [08:47:03]CAPDU: 80 09 00 00 [08:47:03]Write to MH i2c: E2 08 00 FD 01 80 09 00 00 00 00 00 00 70 [08:47:03]Write i2c OK [08:47:03]MH_I2C_Read... [08:47:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:47:03]Read from MH i2c: E2 [08:47:03]MH_I2C_Read... [08:47:03]Read from MH i2c: E2 03 00 [08:47:03]MH_I2C_Read... [08:47:03]Read from MH i2c: E2 03 00 FD 01 00 90 00 72 [08:47:03]RAPDU: 90 00 [08:47:03]wFMCommunicate OK [08:47:03]SAM_PROTO_ClearQueue done [08:47:03]KKMCreateOFDPacket [08:47:03]OFDProtocolAddRootSTLVToBuf [08:47:03]FM_MakeSignedData [08:47:03]FM_MakeSignedData [08:47:03]SAM_PROTO_SignData [08:47:03]wFMCommunicate request_size=4 [08:47:03]MH_SAM_APDU [08:47:03]CAPDU: 80 0D 01 02 [08:47:03]Write to MH i2c: E2 08 00 FE 01 80 0D 01 02 00 00 00 00 78 [08:47:03]Write i2c OK [08:47:03]MH_I2C_Read... [08:47:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:47:03]Read from MH i2c: E2 [08:47:03]MH_I2C_Read... [08:47:03]Read from MH i2c: E2 03 00 [08:47:03]MH_I2C_Read... [08:47:03]Read from MH i2c: E2 03 00 FE 01 00 90 00 73 [08:47:03]RAPDU: 90 00 [08:47:03]wFMCommunicate OK [08:47:03]wFMCommunicate request_size=255 [08:47:03]MH_SAM_APDU [08:47:03]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 34 35 32 06 04 22 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 59 75 6D 69 6B 6F 20 67 6F 6C 64 20 31 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 39 00 00 00 00 13 04 06 00 D0 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 39 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 83 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 06 00 00 00 00 07 04 06 00 D0 39 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 06 57 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 [08:47:03]Write to MH i2c: E2 02 01 FF 01 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 34 35 32 06 04 22 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 59 75 6D 69 6B 6F 20 67 6F 6C 64 20 31 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 39 00 00 00 00 13 04 06 00 D0 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 39 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 83 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 06 00 00 00 00 07 04 06 00 D0 39 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 06 57 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 00 00 79 [08:47:03]Write i2c OK [08:47:03]MH_I2C_Read... [08:47:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:47:03]Read from MH i2c: E2 [08:47:03]MH_I2C_Read... [08:47:03]Read from MH i2c: E2 03 00 [08:47:03]MH_I2C_Read... [08:47:03]Read from MH i2c: E2 03 00 FF 01 00 90 00 74 [08:47:03]RAPDU: 90 00 [08:47:03]wFMCommunicate OK [08:47:03]wFMCommunicate request_size=35 [08:47:03]MH_SAM_APDU [08:47:03]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 76 A3 00 00 35 04 06 00 85 2F F9 59 FB D7 [08:47:04]Write to MH i2c: E2 26 00 00 02 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 76 A3 00 00 35 04 06 00 85 2F F9 59 FB D7 00 00 69 [08:47:04]Write i2c OK [08:47:04]MH_I2C_Read... [08:47:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:47:04]Read from MH i2c: E2 [08:47:04]MH_I2C_Read... [08:47:04]Read from MH i2c: E2 03 00 [08:47:04]MH_I2C_Read... [08:47:04]Read from MH i2c: E2 03 00 00 02 00 90 00 76 [08:47:04]RAPDU: 90 00 [08:47:04]wFMCommunicate OK [08:47:04]wFMCommunicate request_size=4 [08:47:04]MH_SAM_APDU [08:47:04]CAPDU: 80 0D 03 02 [08:47:04]Write to MH i2c: E2 08 00 01 02 80 0D 03 02 00 00 00 00 7E [08:47:04]Write i2c OK [08:47:04]MH_I2C_Read... [08:47:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:47:04]Read from MH i2c: E2 [08:47:04]MH_I2C_Read... [08:47:04]Read from MH i2c: E2 0B 00 [08:47:04]MH_I2C_Read... [08:47:04]Read from MH i2c: E2 0B 00 01 02 00 59 19 62 EF 16 A0 90 1F 90 00 A7 [08:47:04]RAPDU: 59 19 62 EF 16 A0 90 1F 90 00 [08:47:04]wFMCommunicate OK [08:47:04]SAM_PROTO_SignData done [08:47:04]FM_MakeSignedData done [08:47:04]CreateOFDProtocolMessage [08:47:04]wFMCommunicate request_size=4 [08:47:04]MH_SAM_APDU [08:47:04]CAPDU: 80 11 00 00 [08:47:04]Write to MH i2c: E2 08 00 02 02 80 11 00 00 00 00 00 00 7E [08:47:04]Write i2c OK [08:47:04]MH_I2C_Read... [08:47:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:47:04]Read from MH i2c: E2 [08:47:04]MH_I2C_Read... [08:47:04]Read from MH i2c: E2 17 00 [08:47:04]MH_I2C_Read... [08:47:04]Read from MH i2c: E2 17 00 02 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 DA [08:47:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [08:47:04]wFMCommunicate OK [08:47:04]CreateOFDProtocolMessage done [08:47:04]OFDSenderStorePacket 41846 [08:47:04]StoreOFDPacket docnum=41846 [00:00:11] *** EcrCore started. Build 196 *** [00:00:11]/dev/ttyS4 opened [00:00:11]MH_InterfaceInit /dev/i2c-1 [00:00:11]Malloc ok [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 01 00 00 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 81 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 26 [00:00:11]Are we in boot? [00:00:11]We are in boot - try to switch [00:00:11]Write to MH i2c: A0 00 00 02 00 A1 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: A0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: A0 01 00 [00:00:11]MH_I2C_Read... [00:00:11]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:11]Read from MH i2c: *** [00:00:11]A0 01 00 02 00 00 A2 [00:00:11]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:11]*** Waiting for read because exit forced [00:00:11]*** 10 ms more... [00:00:11]*** MH1903S init start (LINUX_LIGHT) [00:00:11]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:11]*** Serial: 3139303353513838 5400000000572581 (1903SQ88T) [00:00:11]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:11]*** step 0: 5000 (2650, 2350 REF) [00:00:11]*** step 1: 4835 (2500, 2335 REF) [00:00:11]*** step 2: 4676 (2440, 2236 REF) [00:00:11]*** step 3: 4523 (2280, 2243 REF) [00:00:11]*** step 4: 4376 (2160, 2216 REF) [00:00:11]*** step 5: 4235 (2050, 2185 REF) [00:00:11]*** step 6: 4098 (1950, 2148 REF) [00:00:11]*** step 7: 3967 (1870, 2097 REF) [00:00:11]*** step 8: 3840 (1828, 2012 REF) [00:00:11]*** step 9: 3719 (1728, 1991 REF) [00:00:11]*** step 10: 3601 (1675, 1926 REF) [00:00:11]*** step 11: 3488 (1635, 1853 REF) [00:00:11]*** step 12: 3379 (1595, 1784 REF) [00:00:11]*** step 13: 3275 (1565, 1710 REF) [00:00:11]*** step 14: 3174 (1543, 1631 REF) [00:00:11]*** step 15: 3077 (1523, 1554 REF) [00:00:11]*** step 16: 2983 (1503, 1480 REF) [00:00:11]*** step 17: 2893 (1486, 1407 REF) [00:00:11]*** step 18: 2806 (1466, 1340 REF) [00:00:11]*** step 19: 2723 (1426, 1297 REF) [00:00:11]*** step 20: 2642 (1406, 1236 REF) [00:00:11]*** step 21: 2565 (1384, 1181 REF) [00:00:11]*** step 22: 2490 (1364, 1126 REF) [00:00:11]*** step 23: 2418 (1344, 1074 REF) [00:00:11]*** step 24: 2349 (1322, 1027 REF) [00:00:11]*** step 25: 2283 (1302, 981 REF) [00:00:11]*** step 26: 2218 (1282, 936 REF) [00:00:11]*** step 27: 2157 (1262, 895 REF) [00:00:11]*** step 28: 2097 (1242, 855 REF) [00:00:11]*** step 29: 2040 (1222, 818 REF) [00:00:11]*** step 30: 1985 (1202, 783 REF) [00:00:11]*** step 31: 1932 (1191, 741 REF) [00:00:11]*** step 32: 1880 (1181, 699 REF) [00:00:11]*** step 33: 1831 (1171, 660 REF) [00:00:11]*** step 34: 1784 (1161, 623 REF) [00:00:11]*** step 35: 1738 (1151, 587 REF) [00:00:11]*** step 36: 1694 (1141, 553 REF) [00:00:11]*** step 37: 1652 (1131, 521 REF) [00:00:11]*** step 38: 1611 (1121, 490 REF) [00:00:11]*** step 39: 1572 (1111, 461 REF) [00:00:11]*** step 40: 1534 (1103, 431 REF) [00:00:11]*** step 41: 1497 (1093, 404 REF) [00:00:11]*** step 42: 1462 (1083, 379 REF) [00:00:11]*** step 43: 1428 (1073, 355 REF) [00:00:11]*** step 44: 1396 (1063, 333 REF) [00:00:11]*** step 45: 1365 (1053, 312 REF) [00:00:11]*** step 46: 1334 (1043, 291 REF) [00:00:11]*** step 47: 1305 (1033, 272 REF) [00:00:11]*** step 48: 1277 (1023, 254 REF) [00:00:11]*** step 49: 1250 (1013, 237 REF) [00:00:11]*** step 50: 1224 (990, 234 REF) [00:00:11]*** step 51: 1199 (980, 219 REF) [00:00:11]*** step 52: 1175 (970, 205 REF) [00:00:11]*** step 53: 1152 (960, 192 REF) [00:00:11]*** step 54: 1130 (950, 180 REF) [00:00:11]*** step 55: 1108 (940, 168 REF) [00:00:11]*** step 56: 1088 (930, 158 REF) [00:00:11]*** step 57: 1068 (920, 148 REF) [00:00:11]*** step 58: 1049 (910, 139 REF) [00:00:11]*** step 59: 1030 (900, 130 REF) [00:00:11]*** step 60: 1012 (890, 122 REF) [00:00:11]*** step 61: 995 (880, 115 REF) [00:00:11]*** step 62: 979 (870, 109 REF) [00:00:11]*** step 63: 963 (860, 103 REF) [00:00:11]*** step 64: 948 (850, 98 REF) [00:00:11]*** step 65: 933 (840, 93 REF) [00:00:11]*** step 66: 919 (830, 89 REF) [00:00:11]*** step 67: 905 (820, 85 REF) [00:00:11]*** step 68: 892 (810, 82 REF) [00:00:11]*** step 69: 879 (800, 79 REF) [00:00:11]*** step 70: 867 (790, 77 REF) [00:00:11]*** step 71: 855 (780, 75 REF) [00:00:11]*** step 72: 844 (770, 74 REF) [00:00:11]*** step 73: 833 (760, 73 REF) [00:00:11]*** step 74: 822 (750, 72 REF) [00:00:11]*** step 75: 812 (740, 72 REF) [00:00:11]*** step 76: 803 (730, 73 REF) [00:00:11]*** step 77: 793 (720, 73 REF) [00:00:11]*** step 78: 784 (710, 74 REF) [00:00:11]*** step 79: 776 (700, 76 REF) [00:00:11]*** step 80: 767 (690, 77 REF) [00:00:11]*** step 81: 759 (680, 79 REF) [00:00:11]*** step 82: 751 (670, 81 REF) [00:00:11]*** step 83: 744 (660, 84 REF) [00:00:11]*** step 84: 737 (650, 87 REF) [00:00:11]*** step 85: 730 (640, 90 REF) [00:00:11]*** step 86: 723 (630, 93 REF) [00:00:11]*** step 87: 717 (620, 97 REF) [00:00:11]*** step 88: 710 (610, 100 REF) [00:00:11]*** step 89: 705 (600, 105 REF) [00:00:11]*** step 90: 699 [00:00:11]*** step 91: 693 [00:00:11]*** step 92: 688 [00:00:11]*** step 93: 683 [00:00:11]*** step 94: 678 [00:00:11]*** step 95: 673 [00:00:11]*** step 96: 669 [00:00:11]*** step 97: 664 [00:00:11]*** step 98: 660 [00:00:11]*** step 99: 656 [00:00:11]*** step 100: 652 [00:00:11]*** step 101: 648 [00:00:11]*** step 102: 644 [00:00:11]*** step 103: 641 [00:00:11]*** step 104: 638 [00:00:11]*** step 105: 634 [00:00:11]*** step 106: 631 [00:00:11]*** step 107: 628 [00:00:11]*** step 108: 625 [00:00:11]*** step 109: 622 [00:00:11]*** step 110: 620 [00:00:11]*** step 111: 617 [00:00:11]*** step 112: 615 [00:00:11]*** step 113: 612 [00:00:11]*** step 114: 610 [00:00:11]*** step 115: 608 [00:00:11]*** step 116: 605 [00:00:11]*** step 117: 603 [00:00:11]*** step 118: 601 [00:00:11]*** step 119: 599 [00:00:11]*** printer: Printer HW initialized [00:00:11]*** initSamCard finished [00:00:11]*** RTC: 5134+1722242040=1722247174 [00:00:11]*** BPK Status Register BPK_RDY = 0x0 [00:00:11]*** SEN State Register SEN_STATE = 0x20ff [00:00:11]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:11]*** Analog Control Register 0 SEN_ANA0 = 0x33540624 [00:00:11]*** Is cutter blocked? [00:00:12]MH_GetMetrics [00:00:12]Write to MH i2c: 00 00 00 03 00 02 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 29 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 81 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 27 [00:00:12]Are we in boot? [00:00:12]We are not in boot now [00:00:12]Write to MH i2c: 01 00 00 04 00 04 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 07 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:12]Model is 3 [00:00:12]MH firmware is 30620 [00:00:12]MH boot firmware is 3 [00:00:12]MH_SetPrinterDots 448 [00:00:12]HeadWidthInBytes 56 [00:00:12]maxmasksize 7 [00:00:12]Write to MH i2c: D6 06 00 05 00 41 00 60 00 FF FF 7F [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 01 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:12]Write to MH i2c: D5 00 00 06 00 DA [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 01 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]ExternCall_SetCallbacks [00:00:12]NVStorageInit [00:00:12]MH_GetDate [00:00:12]Write to MH i2c: F0 00 00 07 00 F6 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 09 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 09 00 07 00 00 06 68 A7 66 F8 53 A7 66 D2 [09:59:34]Current date/time: 29.07.2024 09:59 [09:59:34]FM_Init [09:59:34]wFMConnect [09:59:34]MH_SAM_On [09:59:34]Write to MH i2c: E0 00 00 08 00 E7 [09:59:34]Write i2c OK [09:59:34]MH_I2C_Read... [09:59:34]*** iso7816_init finished! [09:59:34]*** atr: [09:59:34]*** 0F 3B D5 18 FF 81 91 FE [09:59:34]*** 1F C3 80 73 C8 21 10 0A [09:59:34]*** 00 00 00 00 00 00 00 00 [09:59:34]*** 00 00 00 00 00 00 00 00 [09:59:34]*** 00 00 00 00 00 00 00 00 [09:59:34]*** 00 00 00 00 00 00 00 00 [09:59:34]*** 00 00 00 00 00 00 00 00 [09:59:34]*** 00 00 00 00 00 00 00 00 [09:59:34]Read from MH i2c: E0 [09:59:34]MH_I2C_Read... [09:59:34]Read from MH i2c: E0 10 00 [09:59:34]MH_I2C_Read... [09:59:34]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [09:59:34]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [09:59:34]wFMCommunicate request_size=10 [09:59:34]MH_SAM_APDU [09:59:34]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [09:59:34]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [09:59:34]Write i2c OK [09:59:34]MH_I2C_Read... [09:59:34]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [09:59:34]Read from MH i2c: E2 [09:59:34]MH_I2C_Read... [09:59:34]Read from MH i2c: E2 03 00 [09:59:34]MH_I2C_Read... [09:59:34]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [09:59:34]RAPDU: 90 00 [09:59:34]wFMCommunicate OK [09:59:34]wFMCommunicate request_size=4 [09:59:34]MH_SAM_APDU [09:59:34]CAPDU: 80 11 00 00 [09:59:34]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [09:59:34]Write i2c OK [09:59:34]MH_I2C_Read... [09:59:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:34]Read from MH i2c: E2 [09:59:34]MH_I2C_Read... [09:59:34]Read from MH i2c: E2 17 00 [09:59:34]MH_I2C_Read... [09:59:34]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 E0 [09:59:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [09:59:34]wFMCommunicate OK [09:59:34]Detected FM SN is 0000000000874958 [09:59:34]Stored FM SN is 0000000000874958 [09:59:34]wFMCommunicate request_size=9 [09:59:34]MH_SAM_APDU [09:59:34]CAPDU: 80 16 00 00 04 FB 29 00 00 [09:59:34]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 FB 29 00 00 00 00 B6 [09:59:34]Write i2c OK [09:59:34]MH_I2C_Read... [09:59:34]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [09:59:34]Read from MH i2c: E2 [09:59:34]MH_I2C_Read... [09:59:34]Read from MH i2c: E2 03 00 [09:59:34]MH_I2C_Read... [09:59:34]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [09:59:34]RAPDU: 90 00 [09:59:34]wFMCommunicate OK [09:59:34]FM PIN OK [09:59:34]wFMCommunicate request_size=8 [09:59:34]MH_SAM_APDU [09:59:34]CAPDU: 80 14 04 00 03 02 00 01 [09:59:34]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [09:59:34]Write i2c OK [09:59:34]MH_I2C_Read... [09:59:34]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [09:59:34]Read from MH i2c: E2 [09:59:34]MH_I2C_Read... [09:59:34]Read from MH i2c: E2 03 00 [09:59:34]MH_I2C_Read... [09:59:34]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [09:59:34]RAPDU: 90 00 [09:59:34]wFMCommunicate OK [09:59:34]wFMCommunicate request_size=13 [09:59:34]MH_SAM_APDU [09:59:34]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [09:59:34]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [09:59:34]Write i2c OK [09:59:34]MH_I2C_Read... [09:59:34]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [09:59:34]Read from MH i2c: E2 [09:59:34]MH_I2C_Read... [09:59:34]Read from MH i2c: E2 03 00 [09:59:34]MH_I2C_Read... [09:59:34]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [09:59:34]RAPDU: 90 00 [09:59:34]wFMCommunicate OK [09:59:34]wFMCommunicate request_size=4 [09:59:34]MH_SAM_APDU [09:59:34]CAPDU: 80 11 00 00 [09:59:34]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [09:59:34]Write i2c OK [09:59:34]MH_I2C_Read... [09:59:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:34]Read from MH i2c: E2 [09:59:34]MH_I2C_Read... [09:59:34]Read from MH i2c: E2 17 00 [09:59:34]MH_I2C_Read... [09:59:34]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 E4 [09:59:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [09:59:34]wFMCommunicate OK [09:59:34]DocumentArchiveInit [09:59:34]Start Httpd... [09:59:34]Httpd thread 3067735396 created [09:59:34]Write to MH i2c: 01 00 00 0F 00 0F [09:59:34]Write i2c OK [09:59:34]MH_I2C_Read... [09:59:34]Read from MH i2c: 01 [09:59:34]MH_I2C_Read... [09:59:34]Read from MH i2c: 01 07 00 [09:59:34]MH_I2C_Read... [09:59:34]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [09:59:34]MH Int Process started [09:59:34]Allocated Socket 6 [09:59:34]Bind OK [09:59:34]Listen OK [09:59:34]httpd running on port 8080 [09:59:34]Waiting for new connection... [09:59:34]OFD Sender: Processing packet 41846 [packets to send 57, broken 56] [09:59:34]ProducePacketName [09:59:34]name=ofd_packets/00041846 [09:59:34]OFD Sender: To server: pG, [09:59:34]CommunicateWithHost lk.salyk.kg:30040 [09:59:34]ConnectInit lk.salyk.kg [09:59:36]Connected sock=9 [09:59:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 28 01 00 00 9F 63 20 01 77 56 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 34 35 32 06 04 22 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 59 75 6D 69 6B 6F 20 67 6F 6C 64 20 31 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 39 00 00 00 00 13 04 06 00 D0 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 39 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 83 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 06 00 00 00 00 07 04 06 00 D0 39 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 06 57 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 76 A3 00 00 35 04 06 00 85 2F F9 59 FB D7 59 19 62 EF 16 A0 90 1F [09:59:36]accept exits with 8 [09:59:36]New connection [09:59:36]New thread 3067448676 created [09:59:36]Waiting for new connection... [09:59:36] Sock 8.Parse request [09:59:36]Sock 8.Check first char [09:59:36]Sock 8.First char is OK [09:59:36]request: POST /json_proto HTTP/1.0 [09:59:36]Method: POST [09:59:36]URL: /json_proto [09:59:36]Method is POST - this is cgi request [09:59:36]url: /json_proto [09:59:36]query_string will be loaded in cgi processing [09:59:36]execute_cgi json_proto POST (null) [09:59:36]execute_cgi path=json_proto method=POST [09:59:36]POST find Content-Length [09:59:36]Host: 172.17.43.132:8080 [09:59:36]Content-Length: 215 [09:59:36]Content-Type: application/json [09:59:36] [09:59:36]POST finish read [09:59:36]Found Content-Length = 215 [09:59:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:59:36]execute_script... [09:59:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:59:36]POST & json_proto [09:59:36]process_json_proto [09:59:36]json parsed OK: [09:59:36]protocol is kg_v1.0 [09:59:36]action value=get_value [09:59:36]process_action get_value [09:59:36]cmd_get_value [09:59:36]process_action get_value done [09:59:36]requested_data is exist [09:59:36]produce_requested_data [09:59:36]requested_item kkm.sn is exist - process it [09:59:36]requested_item kkm.ver is exist - process it [09:59:36]requested_item fm.sn is exist - process it [09:59:36]wFMCommunicate request_size=4 [09:59:36]MH_SAM_APDU [09:59:36]CAPDU: 80 11 00 00 [09:59:36]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [09:59:36]Write i2c OK [09:59:36]MH_I2C_Read... [09:59:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:36]Read from MH i2c: E2 [09:59:36]MH_I2C_Read... [09:59:36]Read from MH i2c: E2 17 00 [09:59:36]MH_I2C_Read... [09:59:36]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 35 38 90 00 E6 [09:59:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [09:59:36]wFMCommunicate OK [09:59:36]requested_item fd.num is exist - process it [09:59:36]SAM_PROTO_GetFieldsCounters [09:59:36]wFMCommunicate request_size=4 [09:59:36]MH_SAM_APDU [09:59:36]CAPDU: 80 13 00 00 [09:59:36]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [09:59:36]Write i2c OK [09:59:36]MH_I2C_Read... [09:59:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:59:36]Read from MH i2c: E2 [09:59:36]MH_I2C_Read... [09:59:36]Read from MH i2c: E2 62 00 [09:59:36]MH_I2C_Read... [09:59:36]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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 76 A3 00 00 0E 04 04 00 AB 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 E5 [09:59: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 76 A3 00 00 0E 04 04 00 AB 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 [09:59:36]wFMCommunicate OK [09:59:36]SAM_PROTO_GetFieldsCounters done [09:59:36]requested_item shift.num is exist - process it [09:59:36]requested_item shift.opened is exist - process it [09:59:36]req_shift_opened [09:59:36]FM_GetShiftState [09:59:36]SAM_PROTO_GetShiftState [09:59:36]wFMCommunicate request_size=4 [09:59:36]MH_SAM_APDU [09:59:36]CAPDU: 80 13 01 00 [09:59:36]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [09:59:36]Write i2c OK [09:59:36]MH_I2C_Read... [09:59:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:36]Read from MH i2c: E2 [09:59:36]MH_I2C_Read... [09:59:36]Read from MH i2c: E2 0E 00 [09:59:36]MH_I2C_Read... [09:59:36]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 2B [09:59:36]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [09:59:36]wFMCommunicate OK [09:59:36]SAM_PROTO_GetShiftState done [09:59:36]FM_GetShiftState done [09:59:36]req_shift_opened done [09:59:36]requested_item shift.open_date is exist - process it [09:59:36]req_shift_open_date [09:59:36]req_shift_open_date done [09:59:36]produce_requested_data done [09:59:41]Malloc new data [09:59:41]Malloc new data [09:59:41]free (receipt_item_data.pre_item_text) [09:59:41]free (receipt_item_data.post_item_text) [09:59:41]done [09:59:41]Malloc new data [09:59:41]Malloc new data [09:59:41]Malloc new data [09:59:41]KKMSetReceiptData OK [09:59:41]ProcessDocumentItem done err = 0, tmpTLVsize=111 [09:59:41]tlvbuf is 00725A20 [09:59:41]KKMLoadAndSignReceiptData [09:59:41]SAM_PROTO_ProcessDocument [09:59:41]wFMCommunicate request_size=9 [09:59:41]MH_SAM_APDU [09:59:41]CAPDU: 80 15 01 00 04 03 00 6F 00 [09:59:41]Write to MH i2c: E2 0C 00 20 00 80 15 01 00 04 00 03 00 6F 00 00 00 19 [09:59:41]Write i2c OK [09:59:41]MH_I2C_Read... [09:59:41]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [09:59:41]Read from MH i2c: E2 [09:59:41]MH_I2C_Read... [09:59:41]Read from MH i2c: E2 03 00 [09:59:41]MH_I2C_Read... [09:59:41]Read from MH i2c: E2 03 00 20 00 00 90 00 94 [09:59:41]RAPDU: 90 00 [09:59:41]wFMCommunicate OK [09:59:41]wFMCommunicate request_size=10 [09:59:41]MH_SAM_APDU [09:59:41]CAPDU: 80 15 02 00 05 1E 04 01 00 01 [09:59:41]Write to MH i2c: E2 0D 00 21 00 80 15 02 00 05 00 1E 04 01 00 01 00 00 CF [09:59:41]Write i2c OK [09:59:41]MH_I2C_Read... [09:59:41]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [09:59:41]Read from MH i2c: E2 [09:59:41]MH_I2C_Read... [09:59:41]Read from MH i2c: E2 03 00 [09:59:41]MH_I2C_Read... [09:59:41]Read from MH i2c: E2 03 00 21 00 00 90 00 95 [09:59:41]RAPDU: 90 00 [09:59:41]wFMCommunicate OK [09:59:41]wFMCommunicate request_size=15 [09:59:41]MH_SAM_APDU [09:59:41]CAPDU: 80 15 02 00 0A FC 03 06 00 C8 32 00 00 00 00 [09:59:41]Write to MH i2c: E2 12 00 22 00 80 15 02 00 0A 00 FC 03 06 00 C8 32 00 00 00 00 00 00 B5 [09:59:41]Write i2c OK [09:59:41]MH_I2C_Read... [09:59:41]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [09:59:41]Read from MH i2c: E2 [09:59:41]MH_I2C_Read... [09:59:41]Read from MH i2c: E2 03 00 [09:59:41]MH_I2C_Read... [09:59:41]Read from MH i2c: E2 03 00 22 00 00 90 00 96 [09:59:41]RAPDU: 90 00 [09:59:41]wFMCommunicate OK [09:59:41]wFMCommunicate request_size=47 [09:59:41]MH_SAM_APDU [09:59:41]CAPDU: 80 15 02 00 2A EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 [09:59:41]Write to MH i2c: E2 32 00 23 00 80 15 02 00 2A 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 00 00 D6 [09:59:41]Write i2c OK [09:59:41]MH_I2C_Read... [09:59:41]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [09:59:41]Read from MH i2c: E2 [09:59:41]MH_I2C_Read... [09:59:41]Read from MH i2c: E2 03 00 [09:59:41]MH_I2C_Read... [09:59:41]Read from MH i2c: E2 03 00 23 00 00 90 00 97 [09:59:41]RAPDU: 90 00 [09:59:41]wFMCommunicate OK [09:59:41]wFMCommunicate request_size=15 [09:59:41]MH_SAM_APDU [09:59:41]CAPDU: 80 15 02 00 0A 07 04 06 00 C8 32 00 00 00 00 [09:59:41]Write to MH i2c: E2 12 00 24 00 80 15 02 00 0A 00 07 04 06 00 C8 32 00 00 00 00 00 00 C3 [09:59:41]Write i2c OK [09:59:41]MH_I2C_Read... [09:59:41]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [09:59:41]Read from MH i2c: E2 [09:59:41]MH_I2C_Read... [09:59:41]Read from MH i2c: E2 03 00 [09:59:41]MH_I2C_Read... [09:59:41]Read from MH i2c: E2 03 00 24 00 00 90 00 98 [09:59:41]RAPDU: 90 00 [09:59:41]wFMCommunicate OK [09:59:41]wFMCommunicate request_size=15 [09:59:41]MH_SAM_APDU [09:59:41]CAPDU: 80 15 02 00 0A 39 04 06 00 00 00 00 00 00 00 [09:59:41]Write to MH i2c: E2 12 00 25 00 80 15 02 00 0A 00 39 04 06 00 00 00 00 00 00 00 00 00 FC [09:59:41]Write i2c OK [09:59:41]MH_I2C_Read... [09:59:41]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [09:59:41]Read from MH i2c: E2 [09:59:41]MH_I2C_Read... [09:59:41]Read from MH i2c: E2 03 00 [09:59:41]MH_I2C_Read... [09:59:41]Read from MH i2c: E2 03 00 25 00 00 90 00 99 [09:59:41]RAPDU: 90 00 [09:59:41]wFMCommunicate OK [09:59:41]wFMCommunicate request_size=11 [09:59:41]MH_SAM_APDU [09:59:41]CAPDU: 80 15 02 00 06 1F 04 02 00 01 00 [09:59:41]Write to MH i2c: E2 0E 00 26 00 80 15 02 00 06 00 1F 04 02 00 01 00 00 00 D8 [09:59:41]Write i2c OK [09:59:41]MH_I2C_Read... [09:59:41]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [09:59:41]Read from MH i2c: E2 [09:59:41]MH_I2C_Read... [09:59:41]Read from MH i2c: E2 03 00 [09:59:41]MH_I2C_Read... [09:59:41]Read from MH i2c: E2 03 00 26 00 00 90 00 9A [09:59:41]RAPDU: 90 00 [09:59:41]wFMCommunicate OK [09:59:41]wFMCommunicate request_size=13 [09:59:41]MH_SAM_APDU [09:59:41]CAPDU: 80 15 02 00 08 F4 03 04 00 0D 68 A7 66 [09:59:41]Write to MH i2c: E2 10 00 27 00 80 15 02 00 08 00 F4 03 04 00 0D 68 A7 66 00 00 34 [09:59:41]Write i2c OK [09:59:41]MH_I2C_Read... [09:59:41]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [09:59:41]Read from MH i2c: E2 [09:59:41]MH_I2C_Read... [09:59:41]Read from MH i2c: E2 03 00 [09:59:41]MH_I2C_Read... [09:59:41]Read from MH i2c: E2 03 00 27 00 00 90 00 9B [09:59:41]RAPDU: 90 00 [09:59:41]wFMCommunicate OK [09:59:41]wFMCommunicate request_size=25 [09:59:41]MH_SAM_APDU [09:59:41]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 [09:59:41]Write to MH i2c: E2 1C 00 28 00 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 00 00 0A [09:59:41]Write i2c OK [09:59:41]MH_I2C_Read... [09:59:41]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [09:59:41]Read from MH i2c: E2 [09:59:41]MH_I2C_Read... [09:59:41]Read from MH i2c: E2 03 00 [09:59:41]MH_I2C_Read... [09:59:41]Read from MH i2c: E2 03 00 28 00 00 90 00 9C [09:59:41]RAPDU: 90 00 [09:59:41]wFMCommunicate OK [09:59:41]wFMCommunicate request_size=4 [09:59:41]MH_SAM_APDU [09:59:41]CAPDU: 80 15 03 00 [09:59:41]Write to MH i2c: E2 08 00 29 00 80 15 03 00 00 00 00 00 AA [09:59:41]Write i2c OK [09:59:41]MH_I2C_Read... [09:59:42]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [09:59:42]Read from MH i2c: E2 [09:59:42]MH_I2C_Read... [09:59:42]Read from MH i2c: E2 40 00 [09:59:42]MH_I2C_Read... [09:59:42]Read from MH i2c: E2 40 00 29 00 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 77 A3 00 00 0E 04 04 00 AB 01 00 00 12 04 04 00 24 00 00 00 35 04 06 00 AD 03 DE B4 6A 05 90 00 44 [09:59:42]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 77 A3 00 00 0E 04 04 00 AB 01 00 00 12 04 04 00 24 00 00 00 35 04 06 00 AD 03 DE B4 6A 05 90 00 [09:59:42]wFMCommunicate OK [09:59:42]SAM_PROTO_ProcessDocument answer len = 59 [09:59:42]SAM_PROTO_ProcessDocument done [09:59:42]SetTLVBufToDocument [09:59:42]Processing tag 1209 (04B9) [09:59:42]Malloc new data [09:59:42]Processing tag 1041 (0411) [09:59:42]Processing tag 1040 (0410) [09:59:42]Malloc new data [09:59:42]Processing tag 1038 (040E) [09:59:42]Malloc new data [09:59:42]Processing tag 1042 (0412) [09:59:42]Malloc new data [09:59:42]Processing tag 1077 (0435) [09:59:42]Malloc new data [09:59:42]SetTLVBufToDocument err=0 [09:59:42]KKMLoadAndSignReceiptData store KKM data [09:59:42]KKMLoadAndSignReceiptData err=0 [09:59:42]wFMCommunicate request_size=4 [09:59:42]MH_SAM_APDU [09:59:42]CAPDU: 80 11 00 00 [09:59:42]Write to MH i2c: E2 08 00 2A 00 80 11 00 00 00 00 00 00 A4 [09:59:42]Write i2c OK [09:59:42]MH_I2C_Read... [09:59:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:42]Read from MH i2c: E2 [09:59:42]MH_I2C_Read... [09:59:42]Read from MH i2c: E2 17 00 [09:59:42]MH_I2C_Read... [09:59:42]Read from MH i2c: E2 17 00 2A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 00 [09:59:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [09:59:42]wFMCommunicate OK [09:59:42]Счет N : (3)183875 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА Товар: 48742078 Сигареты LD Silver 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 36 29.07.2024 09:59 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41847 ФПД: 190232132872709 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T095941&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41847&fm=190232132872709&tin=02508201610067®Number=0000000000092626&sum=13000 0 [09:59:42]StoreToDocumentArchive [09:59:42]shift 427 fd 41847 [09:59:42]save to /storage/0427/doc_00041847 [09:59:42]save last doc name /storage/0427/doc_00041847 to /storage/kkm_last_doc_name [09:59:42]save OK [09:59:42]Clear old archive folders... [09:59:42]ProcessDocumentItem done err = 0, tmpTLVsize=263 [09:59:42]tlvbuf is 00737E20 [09:59:42]SAM_PROTO_ClearQueue [09:59:42]wFMCommunicate request_size=4 [09:59:42]MH_SAM_APDU [09:59:42]CAPDU: 80 09 00 00 [09:59:42]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [09:59:42]Write i2c OK [09:59:42]MH_I2C_Read... [09:59:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:59:42]Read from MH i2c: E2 [09:59:42]MH_I2C_Read... [09:59:42]Read from MH i2c: E2 03 00 [09:59:42]MH_I2C_Read... [09:59:42]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [09:59:42]RAPDU: 90 00 [09:59:42]wFMCommunicate OK [09:59:42]SAM_PROTO_ClearQueue done [09:59:42]KKMCreateOFDPacket [09:59:42]OFDProtocolAddRootSTLVToBuf [09:59:42]FM_MakeSignedData [09:59:42]FM_MakeSignedData [09:59:42]SAM_PROTO_SignData [09:59:42]wFMCommunicate request_size=4 [09:59:42]MH_SAM_APDU [09:59:42]CAPDU: 80 0D 01 02 [09:59:42]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [09:59:42]Write i2c OK [09:59:42]MH_I2C_Read... [09:59:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:59:42]Read from MH i2c: E2 [09:59:42]MH_I2C_Read... [09:59:42]Read from MH i2c: E2 03 00 [09:59:42]MH_I2C_Read... [09:59:42]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [09:59:42]RAPDU: 90 00 [09:59:42]wFMCommunicate OK [09:59:42]wFMCommunicate request_size=255 [09:59:42]MH_SAM_APDU [09:59:42]CAPDU: 80 0D 02 02 FA 03 00 07 01 1E 04 01 00 01 23 04 59 00 8A 04 08 00 34 38 37 34 32 30 37 38 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 0D 68 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 [09:59:42]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 07 01 1E 04 01 00 01 23 04 59 00 8A 04 08 00 34 38 37 34 32 30 37 38 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 0D 68 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 00 00 97 [09:59:42]Write i2c OK [09:59:42]MH_I2C_Read... [09:59:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:42]Read from MH i2c: E2 [09:59:42]MH_I2C_Read... [09:59:42]Read from MH i2c: E2 03 00 [09:59:42]MH_I2C_Read... [09:59:42]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [09:59:42]RAPDU: 90 00 [09:59:42]wFMCommunicate OK [09:59:42]wFMCommunicate request_size=22 [09:59:42]MH_SAM_APDU [09:59:42]CAPDU: 80 0D 02 02 11 04 04 00 77 A3 00 00 35 04 06 00 AD 03 DE B4 6A 05 [09:59:42]Write to MH i2c: E2 19 00 2E 00 80 0D 02 02 11 00 04 04 00 77 A3 00 00 35 04 06 00 AD 03 DE B4 6A 05 00 00 DC [09:59:42]Write i2c OK [09:59:42]MH_I2C_Read... [09:59:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:42]Read from MH i2c: E2 [09:59:42]MH_I2C_Read... [09:59:42]Read from MH i2c: E2 03 00 [09:59:42]MH_I2C_Read... [09:59:42]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [09:59:42]RAPDU: 90 00 [09:59:42]wFMCommunicate OK [09:59:42]wFMCommunicate request_size=4 [09:59:42]MH_SAM_APDU [09:59:42]CAPDU: 80 0D 03 02 [09:59:42]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [09:59:42]Write i2c OK [09:59:42]MH_I2C_Read... [09:59:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:59:43]Read from MH i2c: E2 [09:59:43]MH_I2C_Read... [09:59:43]Read from MH i2c: E2 0B 00 [09:59:43]MH_I2C_Read... [09:59:43]Read from MH i2c: E2 0B 00 2F 00 00 93 53 A9 14 F8 35 51 0E 90 00 DA [09:59:43]RAPDU: 93 53 A9 14 F8 35 51 0E 90 00 [09:59:43]wFMCommunicate OK [09:59:43]SAM_PROTO_SignData done [09:59:43]FM_MakeSignedData done [09:59:43]CreateOFDProtocolMessage [09:59:43]wFMCommunicate request_size=4 [09:59:43]MH_SAM_APDU [09:59:43]CAPDU: 80 11 00 00 [09:59:43]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [09:59:43]Write i2c OK [09:59:43]MH_I2C_Read... [09:59:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:43]Read from MH i2c: E2 [09:59:43]MH_I2C_Read... [09:59:43]Read from MH i2c: E2 17 00 [09:59:43]MH_I2C_Read... [09:59:43]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 35 38 90 00 06 [09:59:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [09:59:43]wFMCommunicate OK [09:59:43]CreateOFDProtocolMessage done [09:59:43]OFDSenderStorePacket 41847 [09:59:43]StoreOFDPacket docnum=41847 [09:59:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 1B 01 00 00 B6 1F 13 01 C6 60 5A 03 01 00 03 00 07 01 1E 04 01 00 01 23 04 59 00 8A 04 08 00 34 38 37 34 32 30 37 38 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 0D 68 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 77 A3 00 00 35 04 06 00 AD 03 DE B4 6A 05 93 53 A9 14 F8 35 51 0E [09:59:43]CheckFolder [09:59:43]dirname=/storage/ofd_packets [09:59:43]CheckFolder done [09:59:43]ProducePacketName [09:59:43]name=ofd_packets/00041847 [09:59:43]NVStorageSaveData ofd_packets/00041847 [09:59:43]File name is /storage/ofd_packets/00041847 [09:59:43]Write 313 bytes [09:59:43]NVStorageSaveData done [09:59:43]OFDSenderStorePacket done [09:59:43]KKMCreateOFDPacket done [09:59:43]NVStorageSaveData kkm_last_timestamp [09:59:43]File name is /storage/kkm_last_timestamp [09:59:43]Write 4 bytes [09:59:43]NVStorageSaveData done [09:59:43]ExternCall_PrintAddStr [09:59:43]wPrintStart [09:59:43]Write to MH i2c: 01 00 00 31 00 31 [09:59:43]Write i2c OK [09:59:43]MH_I2C_Read... [09:59:43]Read from MH i2c: 01 [09:59:43]MH_I2C_Read... [09:59:43]Read from MH i2c: 01 07 00 [09:59:43]MH_I2C_Read... [09:59:43]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [09:59:43]RasterBufferAndPrint [09:59:43]line Счет N : (3)183875 [09:59:43]line ИНН: 02508201610067 [09:59:43]line Контрольно-Кассовый Чек [09:59:43]line ПРОДАЖА [09:59:43]line Товар: 48742078 [09:59:43]line Сигареты LD Silver [09:59:43]line 1.000 * 130.00 [09:59:43]line = 130.00 [09:59:43]line НДС 12% НСП 1% [09:59:43]line > о реализуемом товаре [09:59:43]line ИТОГО: 130.00 [09:59:43]line НСП 1% : 1.15 [09:59:43]line НДС 12% : 13.80 [09:59:43]line Наличными: 130.00 [09:59:43]line Безнал.: 0.00 [09:59:43]line Место: АЗС № 97 "Партнер Нефть" [09:59:43]OFD Sender: Processing packet 41847 [packets to send 57, broken 56] [09:59:43]ProducePacketName [09:59:43]name=ofd_packets/00041847 [09:59:43]OFD Sender: To server: pG, [09:59:43]CommunicateWithHost lk.salyk.kg:30040 [09:59:43]ConnectInit lk.salyk.kg [09:59:43]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [09:59:43]line СНО: Общий режим [09:59:43]line Чек 36 29.07.2024 09:59 [09:59:43]line Смена: 427 ФФД: 1.0 [09:59:43]line ЗНМ: 0300000053 [09:59:43]line РНМ: 0000000000092626 [09:59:43]line Версия ККМ: 001 [09:59:43]line ФМ: 0000000000874958 [09:59:43]line ФД: 41847 [09:59:43]line ФПД: 190232132872709 [09:59:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T095941&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41847&fm=190232132872709&tin=02508201610067®Number=0000000000092626&sum=13000 [09:59:43]line 0 [09:59:43]written 0, free lines is 4095 [09:59:43]Write to MH i2c: 01 00 00 59 00 59 [09:59:43]Write i2c OK [09:59:43]MH_I2C_Read... [09:59:43]Read from MH i2c: 01 [09:59:43]MH_I2C_Read... [09:59:43]Read from MH i2c: 01 07 00 [09:59:43]MH_I2C_Read... [09:59:43]Read from MH i2c: 01 07 00 59 00 00 00 00 00 00 12 0D 7F [09:59:43]RasterBufferAndPrint [09:59:43]line [09:59:43]line [09:59:43]line [09:59:43]line [09:59:43]line [09:59:43]written 0, free lines is 3368 [09:59:43]MH_Cut [09:59:43]Write to MH i2c: D1 01 00 60 00 01 32 [09:59:43]Write i2c OK [09:59:43]MH_I2C_Read... [09:59:43]Read from MH i2c: D1 [09:59:43]MH_I2C_Read... [09:59:43]Read from MH i2c: D1 01 00 [09:59:43]MH_I2C_Read... [09:59:43]Read from MH i2c: D1 01 00 60 00 00 31 [09:59:43]Write to MH i2c: 01 00 00 61 00 61 [09:59:43]recv_with_timeout no data received [09:59:43]Write i2c OK [09:59:43]MH_I2C_Read... [09:59:44]*** Cut start [09:59:44]*** Partial cut [09:59:44]*** CUTSNS_PIN = 1 [09:59:44]*** CUTSNS_PIN = 0 [09:59:44]*** Brake cut motor [09:59:44]Read from MH i2c: 01 [09:59:44]MH_I2C_Read... [09:59:44]*** Stop cut motor [09:59:44]*** Cut end [09:59:44]Read from MH i2c: 01 07 00 [09:59:44]MH_I2C_Read... [09:59:44]Read from MH i2c: 01 07 00 61 00 00 00 00 00 00 FF 0F 76 [09:59:44]process_action close_receipt done [09:59:44]requested_data is exist [09:59:44]produce_requested_data [09:59:44]requested_item fm.sn is exist - process it [09:59:44]wFMCommunicate request_size=4 [09:59:44]MH_SAM_APDU [09:59:44]CAPDU: 80 11 00 00 [09:59:44]Write to MH i2c: E2 08 00 62 00 80 11 00 00 00 00 00 00 DC [09:59:45]Write i2c OK [09:59:45]MH_I2C_Read... [09:59:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:45]Read from MH i2c: E2 [09:59:45]MH_I2C_Read... [09:59:45]Read from MH i2c: E2 17 00 [09:59:45]MH_I2C_Read... [09:59:45]Read from MH i2c: E2 17 00 62 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 38 [09:59:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [09:59:45]wFMCommunicate OK [09:59:45]requested_item fd.num is exist - process it [09:59:45]SAM_PROTO_GetFieldsCounters [09:59:45]wFMCommunicate request_size=4 [09:59:45]MH_SAM_APDU [09:59:45]CAPDU: 80 13 00 00 [09:59:45]Write to MH i2c: E2 08 00 63 00 80 13 00 00 00 00 00 00 DF [09:59:45]Write i2c OK [09:59:45]MH_I2C_Read... [09:59:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:59:45]Read from MH i2c: E2 [09:59:45]MH_I2C_Read... [09:59:45]Read from MH i2c: E2 62 00 [09:59:45]MH_I2C_Read... [09:59:45]Read from MH i2c: E2 62 00 63 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 77 A3 00 00 0E 04 04 00 AB 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 3B [09:59:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 77 A3 00 00 0E 04 04 00 AB 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 [09:59:45]wFMCommunicate OK [09:59:45]SAM_PROTO_GetFieldsCounters done [09:59:45]requested_item shift.num is exist - process it [09:59:45]requested_item shift.opened is exist - process it [09:59:45]req_shift_opened [09:59:45]FM_GetShiftState [09:59:45]SAM_PROTO_GetShiftState [09:59:45]wFMCommunicate request_size=4 [09:59:45]MH_SAM_APDU [09:59:45]CAPDU: 80 13 01 00 [09:59:45]Write to MH i2c: E2 08 00 64 00 80 13 01 00 00 00 00 00 E1 [09:59:45]Write i2c OK [09:59:45]MH_I2C_Read... [09:59:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:45]Read from MH i2c: E2 [09:59:45]MH_I2C_Read... [09:59:45]Read from MH i2c: E2 0E 00 [09:59:45]MH_I2C_Read... [09:59:45]Read from MH i2c: E2 0E 00 64 00 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 7D [09:59:45]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [09:59:45]wFMCommunicate OK [09:59:45]SAM_PROTO_GetShiftState done [09:59:45]FM_GetShiftState done [09:59:45]req_shift_opened done [09:59:45]requested_item shift.open_date is exist - process it [09:59:45]req_shift_open_date [09:59:45]req_shift_open_date done [09:59:45]produce_requested_data done [09:59:45]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41847,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [09:59:45]process_action_free close_receipt [09:59:45]json_value_free [09:59:45]json_value_free done [09:59:45]process_json_proto returns [09:59:45]Send response to host [09:59:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41847,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [09:59:45]free response buf [09:59:45]execute_script done [09:59:45]execute_script returns [09:59:45]free content buf [09:59:45]Sock 8.Close socket [09:59:45]Sock 8.Thread stoped [09:59:46]accept exits with 10 [09:59:46]New connection [09:59:46]New thread 3067305316 created [09:59:46]Thread 3067448676 joined [09:59:46]Waiting for new connection... [09:59:46] Sock 10.Parse request [09:59:46]Sock 10.Check first char [09:59:46]Sock 10.First char is OK [09:59:46]request: POST /json_proto HTTP/1.0 [09:59:46]Method: POST [09:59:46]URL: /json_proto [09:59:46]Method is POST - this is cgi request [09:59:46]url: /json_proto [09:59:46]query_string will be loaded in cgi processing [09:59:46]execute_cgi json_proto POST (null) [09:59:46]execute_cgi path=json_proto method=POST [09:59:46]POST find Content-Length [09:59:46]Host: 172.17.43.132:8080 [09:59:46]Content-Length: 655 [09:59:46]Content-Type: application/json [09:59:46] [09:59:46]POST finish read [09:59:46]Found Content-Length = 655 [09:59:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183876", "tax_sys" : 0, "items" : [ { "code": "4860019001414", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,75\u043B \u041F\u042D\u0422", "price" : 127.00, "quantity" : 1.000, "sum" : 127.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 127.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:59:46]execute_script... [09:59: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 : (3)183876", "tax_sys" : 0, "items" : [ { "code": "4860019001414", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,75\u043B \u041F\u042D\u0422", "price" : 127.00, "quantity" : 1.000, "sum" : 127.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 127.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:59:46]POST & json_proto [09:59:46]process_json_proto [09:59:46]json parsed OK: [09:59:46]protocol is kg_v1.0 [09:59:46]action value=close_receipt [09:59:46]process_action close_receipt [09:59:46]cmd_close_receipt [09:59:46]MH_GetDate [09:59:46]Write to MH i2c: F0 00 00 65 00 54 [09:59:46]Write i2c OK [09:59:46]MH_I2C_Read... [09:59:46]Read from MH i2c: F0 [09:59:46]MH_I2C_Read... [09:59:46]Read from MH i2c: F0 09 00 [09:59:46]MH_I2C_Read... [09:59:46]Read from MH i2c: F0 09 00 65 00 00 13 68 A7 66 F8 53 A7 66 3D [09:59:46]GetLastDocTimeStamp 1722247181 [09:59:46]current date 1722247187 [09:59:46]FM_GetShiftState [09:59:46]SAM_PROTO_GetShiftState [09:59:46]wFMCommunicate request_size=4 [09:59:46]MH_SAM_APDU [09:59:46]CAPDU: 80 13 01 00 [09:59:46]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [09:59:46]Write i2c OK [09:59:46]MH_I2C_Read... [09:59:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:46]Read from MH i2c: E2 [09:59:46]MH_I2C_Read... [09:59:46]Read from MH i2c: E2 0E 00 [09:59:46]MH_I2C_Read... [09:59:46]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 7F [09:59:46]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [09:59:46]wFMCommunicate OK [09:59:46]SAM_PROTO_GetShiftState done [09:59:46]FM_GetShiftState done [09:59:46]opened in 1722211496 [09:59:46]opened+sec_in_day 1722297896 [09:59:46]quantity*price = 12700 [09:59:46]sum+1 = 12701 [09:59:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 127.00 НСП 1% : 1.12 НДС 12% : 13.49 Наличными: 127.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 37 29.07.2024 09:59 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41848 ФПД: 278099484372072 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T095947&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41848&fm=278099484372072&tin=02508201610067®Number=0000000000092626&sum=12700 0 [09:59:48]StoreToDocumentArchive [09:59:48]shift 427 fd 41848 [09:59:48]save to /storage/0427/doc_00041848 [09:59:48]save last doc name /storage/0427/doc_00041848 to /storage/kkm_last_doc_name [09:59:48]save OK [09:59:48]Clear old archive folders... [09:59:48]ProcessDocumentItem done err = 0, tmpTLVsize=279 [09:59:48]tlvbuf is 007681A0 [09:59:48]SAM_PROTO_ClearQueue [09:59:48]wFMCommunicate request_size=4 [09:59:48]MH_SAM_APDU [09:59:48]CAPDU: 80 09 00 00 [09:59:48]Write to MH i2c: E2 08 00 73 00 80 09 00 00 00 00 00 00 E5 [09:59:48]Write i2c OK [09:59:48]MH_I2C_Read... [09:59:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:59:48]Read from MH i2c: E2 [09:59:48]MH_I2C_Read... [09:59:48]Read from MH i2c: E2 03 00 [09:59:48]MH_I2C_Read... [09:59:48]Read from MH i2c: E2 03 00 73 00 00 90 00 E7 [09:59:48]RAPDU: 90 00 [09:59:48]wFMCommunicate OK [09:59:48]SAM_PROTO_ClearQueue done [09:59:48]KKMCreateOFDPacket [09:59:48]OFDProtocolAddRootSTLVToBuf [09:59:48]FM_MakeSignedData [09:59:48]FM_MakeSignedData [09:59:48]SAM_PROTO_SignData [09:59:48]wFMCommunicate request_size=4 [09:59:48]MH_SAM_APDU [09:59:48]CAPDU: 80 0D 01 02 [09:59:48]Write to MH i2c: E2 08 00 74 00 80 0D 01 02 00 00 00 00 ED [09:59:48]Write i2c OK [09:59:48]MH_I2C_Read... [09:59:48]ConnectInit Can't take IP for lk.salyk.kg [09:59:48]CommunicateWithHost connect error [09:59:48]CommunicateWithHost err = -1 [09:59:48]OFD Sender: Server communicate error [09:59:48]Read from MH i2c: E2 [09:59:48]MH_I2C_Read... [09:59:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:59:48]Read from MH i2c: E2 03 00 [09:59:48]MH_I2C_Read... [09:59:48]Read from MH i2c: E2 03 00 74 00 00 90 00 E8 [09:59:48]RAPDU: 90 00 [09:59:48]wFMCommunicate OK [09:59:48]wFMCommunicate request_size=255 [09:59:48]MH_SAM_APDU [09:59:48]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 34 31 34 06 04 25 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 37 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 9C 31 00 00 00 00 13 04 06 00 9C 31 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 31 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 05 00 00 00 00 07 04 06 00 9C 31 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 13 68 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 [09:59:48]Write to MH i2c: E2 02 01 75 00 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 34 31 34 06 04 25 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 37 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 9C 31 00 00 00 00 13 04 06 00 9C 31 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 31 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 05 00 00 00 00 07 04 06 00 9C 31 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 13 68 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 00 00 CC [09:59:48]Write i2c OK [09:59:48]MH_I2C_Read... [09:59:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:48]Read from MH i2c: E2 [09:59:48]MH_I2C_Read... [09:59:48]Read from MH i2c: E2 03 00 [09:59:48]MH_I2C_Read... [09:59:48]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [09:59:48]RAPDU: 90 00 [09:59:48]wFMCommunicate OK [09:59:48]wFMCommunicate request_size=38 [09:59:48]MH_SAM_APDU [09:59:48]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 78 A3 00 00 35 04 06 00 FC EE 14 FA 6C 68 [09:59:48]Write to MH i2c: E2 29 00 76 00 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 78 A3 00 00 35 04 06 00 FC EE 14 FA 6C 68 00 00 69 [09:59:48]Write i2c OK [09:59:48]MH_I2C_Read... [09:59:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:48]Read from MH i2c: E2 [09:59:48]MH_I2C_Read... [09:59:48]Read from MH i2c: E2 03 00 [09:59:48]MH_I2C_Read... [09:59:48]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [09:59:48]RAPDU: 90 00 [09:59:48]wFMCommunicate OK [09:59:48]wFMCommunicate request_size=4 [09:59:48]MH_SAM_APDU [09:59:48]CAPDU: 80 0D 03 02 [09:59:48]Write to MH i2c: E2 08 00 77 00 80 0D 03 02 00 00 00 00 F2 [09:59:48]Write i2c OK [09:59:48]MH_I2C_Read... [09:59:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:59:48]Read from MH i2c: E2 [09:59:48]MH_I2C_Read... [09:59:48]Read from MH i2c: E2 0B 00 [09:59:48]MH_I2C_Read... [09:59:48]Read from MH i2c: E2 0B 00 77 00 00 00 B6 FD BE EC 3B ED C9 90 00 41 [09:59:48]RAPDU: 00 B6 FD BE EC 3B ED C9 90 00 [09:59:48]wFMCommunicate OK [09:59:48]SAM_PROTO_SignData done [09:59:48]FM_MakeSignedData done [09:59:48]CreateOFDProtocolMessage [09:59:48]wFMCommunicate request_size=4 [09:59:48]MH_SAM_APDU [09:59:48]CAPDU: 80 11 00 00 [09:59:48]Write to MH i2c: E2 08 00 78 00 80 11 00 00 00 00 00 00 F2 [09:59:48]Write i2c OK [09:59:48]MH_I2C_Read... [09:59:48]Read from MH i2c: *** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:48]E2 [09:59:48]MH_I2C_Read... [09:59:48]Read from MH i2c: E2 17 00 [09:59:48]MH_I2C_Read... [09:59:48]Read from MH i2c: E2 17 00 78 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 4E [09:59:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [09:59:48]wFMCommunicate OK [09:59:48]CreateOFDProtocolMessage done [09:59:48]OFDSenderStorePacket 41848 [09:59:48]StoreOFDPacket docnum=41848 [09:59:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 2B 01 00 00 D1 77 23 01 A1 3D 5A 03 01 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 34 31 34 06 04 25 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 37 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 9C 31 00 00 00 00 13 04 06 00 9C 31 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 31 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 05 00 00 00 00 07 04 06 00 9C 31 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 13 68 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 78 A3 00 00 35 04 06 00 FC EE 14 FA 6C 68 00 B6 FD BE EC 3B ED C9 [09:59:48]CheckFolder [09:59:48]dirname=/storage/ofd_packets [09:59:48]CheckFolder done [09:59:48]ProducePacketName [09:59:48]name=ofd_packets/00041848 [09:59:48]NVStorageSaveData ofd_packets/00041848 [09:59:48]File name is /storage/ofd_packets/00041848 [09:59:48]Write 329 bytes [09:59:48]NVStorageSaveData done [09:59:48]OFDSenderStorePacket done [09:59:48]KKMCreateOFDPacket done [09:59:48]NVStorageSaveData kkm_last_timestamp [09:59:48]File name is /storage/kkm_last_timestamp [09:59:48]Write 4 bytes [09:59:48]OFD Sender: Processing packet 41847 [packets to send 58, broken 56] [09:59:48]NVStorageSaveData done [09:59:48]ProducePacketName [09:59:48]name=ofd_packets/00041847 [09:59:48]OFD Sender: To server: pG, [09:59:48]CommunicateWithHost lk.salyk.kg:30040 [09:59:48]ExternCall_PrintAddStr [09:59:48]ConnectInit lk.salyk.kg [09:59:48]wPrintStart [09:59:48]Write to MH i2c: 01 00 00 79 00 79 [09:59:48]Write i2c OK [09:59:48]MH_I2C_Read... [09:59:48]Read from MH i2c: 01 [09:59:48]MH_I2C_Read... [09:59:48]Read from MH i2c: 01 07 00 [09:59:48]MH_I2C_Read... [09:59:48]Read from MH i2c: 01 07 00 79 00 00 00 00 00 00 FF 0F 8E [09:59:49]RasterBufferAndPrint [09:59:49]line Счет N : (3)183876 [09:59:49]line ИНН: 02508201610067 [09:59:49]line Контрольно-Кассовый Чек [09:59:49]line ПРОДАЖА [09:59:49]line Товар: 4860019001414 [09:59:49]line Вода Боржоми 0,75л ПЭТ [09:59:49]line 1.000 * 127.00 [09:59:49]line = 127.00 [09:59:49]line НДС 12% НСП 1% [09:59:49]line > о реализуемом товаре [09:59:49]line ИТОГО: 127.00 [09:59:49]line НСП 1% : 1.12 [09:59:49]line НДС 12% : 13.49 [09:59:49]line Наличными: 127.00 [09:59:49]line Безнал.: 0.00 [09:59:49]line Место: АЗС № 97 "Партнер Нефть" [09:59:49]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [09:59:49]line СНО: Общий режим [09:59:49]line Чек 37 29.07.2024 09:59 [09:59:49]line Смена: 427 ФФД: 1.0 [09:59:49]line ЗНМ: 0300000053 [09:59:49]line РНМ: 0000000000092626 [09:59:49]line Версия ККМ: 001 [09:59:49]line ФМ: 0000000000874958 [09:59:49]line ФД: 41848 [09:59:49]line ФПД: 278099484372072 [09:59:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T095947&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41848&fm=278099484372072&tin=02508201610067®Number=0000000000092626&sum=12700 [09:59:49]line 0 [09:59:49]written 0, free lines is 4095 [09:59:49]Write to MH i2c: 01 00 00 A1 00 A1 [09:59:49]Write i2c OK [09:59:49]MH_I2C_Read... [09:59:49]Read from MH i2c: 01 [09:59:49]MH_I2C_Read... [09:59:49]Read from MH i2c: 01 07 00 [09:59:49]MH_I2C_Read... [09:59:49]Read from MH i2c: 01 07 00 A1 00 00 00 00 00 00 15 0D CA [09:59:49]RasterBufferAndPrint [09:59:49]line [09:59:49]line [09:59:49]line [09:59:49]line [09:59:49]line [09:59:49]written 0, free lines is 3378 [09:59:49]MH_Cut [09:59:49]Write to MH i2c: D1 01 00 A8 00 01 7A [09:59:49]Write i2c OK [09:59:49]MH_I2C_Read... [09:59:49]Read from MH i2c: D1 [09:59:49]MH_I2C_Read... [09:59:49]Read from MH i2c: D1 01 00 [09:59:49]MH_I2C_Read... [09:59:49]Read from MH i2c: D1 01 00 A8 00 00 79 [09:59:49]Write to MH i2c: 01 00 00 A9 00 A9 [09:59:49]Write i2c OK [09:59:49]MH_I2C_Read... [09:59:50]*** Cut start [09:59:50]*** Partial cut [09:59:50]*** CUTSNS_PIN = 1 [09:59:50]*** CUTSNS_PIN = 0 [09:59:50]*** Brake cut motor [09:59:50]Read from MH i2c: *** Stop cut motor [09:59:50]01 *** Cut end [09:59:50] [09:59:50]MH_I2C_Read... [09:59:50]Read from MH i2c: 01 07 00 [09:59:50]MH_I2C_Read... [09:59:50]Read from MH i2c: 01 07 00 A9 00 00 00 00 00 00 FF 0F BE [09:59:50]process_action close_receipt done [09:59:50]requested_data is exist [09:59:50]produce_requested_data [09:59:50]requested_item fm.sn is exist - process it [09:59:50]wFMCommunicate request_size=4 [09:59:50]MH_SAM_APDU [09:59:50]CAPDU: 80 11 00 00 [09:59:50]Write to MH i2c: E2 08 00 AA 00 80 11 00 00 00 00 00 00 24 [09:59:50]Write i2c OK [09:59:50]MH_I2C_Read... [09:59:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:50]Read from MH i2c: E2 [09:59:50]MH_I2C_Read... [09:59:50]Read from MH i2c: E2 17 00 [09:59:50]MH_I2C_Read... [09:59:50]Read from MH i2c: E2 17 00 AA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 80 [09:59:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [09:59:50]wFMCommunicate OK [09:59:50]requested_item fd.num is exist - process it [09:59:50]SAM_PROTO_GetFieldsCounters [09:59:50]wFMCommunicate request_size=4 [09:59:50]MH_SAM_APDU [09:59:50]CAPDU: 80 13 00 00 [09:59:50]Write to MH i2c: E2 08 00 AB 00 80 13 00 00 00 00 00 00 27 [09:59:50]Write i2c OK [09:59:50]MH_I2C_Read... [09:59:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:59:51]Read from MH i2c: E2 [09:59:51]MH_I2C_Read... [09:59:51]Read from MH i2c: E2 62 00 [09:59:51]MH_I2C_Read... [09:59:51]Read from MH i2c: E2 62 00 AB 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 78 A3 00 00 0E 04 04 00 AB 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 87 [09:59: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 78 A3 00 00 0E 04 04 00 AB 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 [09:59:51]wFMCommunicate OK [09:59:51]SAM_PROTO_GetFieldsCounters done [09:59:51]requested_item shift.num is exist - process it [09:59:51]requested_item shift.opened is exist - process it [09:59:51]req_shift_opened [09:59:51]FM_GetShiftState [09:59:51]SAM_PROTO_GetShiftState [09:59:51]wFMCommunicate request_size=4 [09:59:51]MH_SAM_APDU [09:59:51]CAPDU: 80 13 01 00 [09:59:51]Write to MH i2c: E2 08 00 AC 00 80 13 01 00 00 00 00 00 29 [09:59:51]Write i2c OK [09:59:51]MH_I2C_Read... [09:59:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:51]Read from MH i2c: E2 [09:59:51]MH_I2C_Read... [09:59:51]Read from MH i2c: E2 0E 00 [09:59:51]MH_I2C_Read... [09:59:51]Read from MH i2c: E2 0E 00 AC 00 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 C5 [09:59:51]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [09:59:51]wFMCommunicate OK [09:59:51]SAM_PROTO_GetShiftState done [09:59:51]FM_GetShiftState done [09:59:51]req_shift_opened done [09:59:51]requested_item shift.open_date is exist - process it [09:59:51]req_shift_open_date [09:59:51]req_shift_open_date done [09:59:51]produce_requested_data done [09:59:51]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41848,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [09:59:51]process_action_free close_receipt [09:59:51]json_value_free [09:59:51]json_value_free done [09:59:51]process_json_proto returns [09:59:51]Send response to host [09:59:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41848,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [09:59:51]free response buf [09:59:51]execute_script done [09:59:51]execute_script returns [09:59:51]free content buf [09:59:51]Sock 10.Close socket [09:59:51]Sock 10.Thread stoped [09:59:53]ConnectInit Can't take IP for lk.salyk.kg [09:59:53]CommunicateWithHost connect error [09:59:53]CommunicateWithHost err = -1 [09:59:53]OFD Sender: Server communicate error [09:59:55]accept exits with 8 [09:59:55]New connection [09:59:55]New thread 3067448676 created [09:59:55]Thread 3067305316 joined [09:59:55]Waiting for new connection... [09:59:55] Sock 8.Parse request [09:59:55]Sock 8.Check first char [09:59:55]Sock 8.First char is OK [09:59:55]request: POST /json_proto HTTP/1.0 [09:59:55]Method: POST [09:59:55]URL: /json_proto [09:59:55]Method is POST - this is cgi request [09:59:55]url: /json_proto [09:59:55]query_string will be loaded in cgi processing [09:59:55]execute_cgi json_proto POST (null) [09:59:55]execute_cgi path=json_proto method=POST [09:59:55]POST find Content-Length [09:59:55]Host: 172.17.43.132:8080 [09:59:55]Content-Length: 622 [09:59:55]Content-Type: application/json [09:59:55] [09:59:55]POST finish read [09:59:55]Found Content-Length = 622 [09:59:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183877", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:59:55]execute_script... [09:59:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183877", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:59:55]POST & json_proto [09:59:55]process_json_proto [09:59:55]json parsed OK: [09:59:55]protocol is kg_v1.0 [09:59:55]action value=close_receipt [09:59:55]process_action close_receipt [09:59:55]cmd_close_receipt [09:59:55]MH_GetDate [09:59:55]Write to MH i2c: F0 00 00 AD 00 9C [09:59:55]Write i2c OK [09:59:55]MH_I2C_Read... [09:59:55]Read from MH i2c: F0 [09:59:55]MH_I2C_Read... [09:59:55]Read from MH i2c: F0 09 00 [09:59:55]MH_I2C_Read... [09:59:55]Read from MH i2c: F0 09 00 AD 00 00 1C 68 A7 66 F8 53 A7 66 8E [09:59:55]GetLastDocTimeStamp 1722247187 [09:59:55]current date 1722247196 [09:59:55]FM_GetShiftState [09:59:55]SAM_PROTO_GetShiftState [09:59:55]wFMCommunicate request_size=4 [09:59:55]MH_SAM_APDU [09:59:55]CAPDU: 80 13 01 00 [09:59:55]Write to MH i2c: E2 08 00 AE 00 80 13 01 00 00 00 00 00 2B [09:59:55]Write i2c OK [09:59:55]MH_I2C_Read... [09:59:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:55]Read from MH i2c: E2 [09:59:55]MH_I2C_Read... [09:59:55]Read from MH i2c: E2 0E 00 [09:59:55]MH_I2C_Read... [09:59:55]Read from MH i2c: E2 0E 00 AE 00 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 C7 [09:59:55]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [09:59:55]wFMCommunicate OK [09:59:55]SAM_PROTO_GetShiftState done [09:59:55]FM_GetShiftState done [09:59:55]opened in 1722211496 [09:59:55]opened+sec_in_day 1722297896 [09:59:55]quantity*price = 15100 [09:59:55]sum+1 = 15101 [09:59:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 151.00 НСП 1% : 1.34 НДС 12% : 16.03 Наличными: 151.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 38 29.07.2024 09:59 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41849 ФПД: 2335429657024 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T095956&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41849&fm=2335429657024&tin=02508201610067®Number=0000000000092626&sum=15100 0 [09:59:57]StoreToDocumentArchive [09:59:57]shift 427 fd 41849 [09:59:57]save to /storage/0427/doc_00041849 [09:59:57]save last doc name /storage/0427/doc_00041849 to /storage/kkm_last_doc_name [09:59:57]save OK [09:59:57]Clear old archive folders... [09:59:57]ProcessDocumentItem done err = 0, tmpTLVsize=274 [09:59:57]tlvbuf is 00768080 [09:59:57]SAM_PROTO_ClearQueue [09:59:57]wFMCommunicate request_size=4 [09:59:57]MH_SAM_APDU [09:59:57]CAPDU: 80 09 00 00 [09:59:57]Write to MH i2c: E2 08 00 BB 00 80 09 00 00 00 00 00 00 2D [09:59:57]Write i2c OK [09:59:57]MH_I2C_Read... [09:59:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:59:57]Read from MH i2c: E2 [09:59:57]MH_I2C_Read... [09:59:57]Read from MH i2c: E2 03 00 [09:59:57]MH_I2C_Read... [09:59:57]Read from MH i2c: E2 03 00 BB 00 00 90 00 2F [09:59:57]RAPDU: 90 00 [09:59:57]wFMCommunicate OK [09:59:57]SAM_PROTO_ClearQueue done [09:59:57]KKMCreateOFDPacket [09:59:57]OFDProtocolAddRootSTLVToBuf [09:59:57]FM_MakeSignedData [09:59:57]FM_MakeSignedData [09:59:57]SAM_PROTO_SignData [09:59:57]wFMCommunicate request_size=4 [09:59:57]MH_SAM_APDU [09:59:57]CAPDU: 80 0D 01 02 [09:59:57]Write to MH i2c: E2 08 00 BC 00 80 0D 01 02 00 00 00 00 35 [09:59:57]Write i2c OK [09:59:57]MH_I2C_Read... [09:59:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:59:57]Read from MH i2c: E2 [09:59:57]MH_I2C_Read... [09:59:57]Read from MH i2c: E2 03 00 [09:59:57]MH_I2C_Read... [09:59:57]Read from MH i2c: E2 03 00 BC 00 00 90 00 30 [09:59:57]RAPDU: 90 00 [09:59:57]wFMCommunicate OK [09:59:57]wFMCommunicate request_size=255 [09:59:57]MH_SAM_APDU [09:59:57]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 1C 68 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 [09:59:57]Write to MH i2c: E2 02 01 BD 00 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 1C 68 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 00 00 61 [09:59:57]Write i2c OK [09:59:57]MH_I2C_Read... [09:59:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:57]Read from MH i2c: E2 [09:59:57]MH_I2C_Read... [09:59:57]Read from MH i2c: E2 03 00 [09:59:57]MH_I2C_Read... [09:59:57]Read from MH i2c: E2 03 00 BD 00 00 90 00 31 [09:59:57]RAPDU: 90 00 [09:59:57]wFMCommunicate OK [09:59:57]wFMCommunicate request_size=33 [09:59:57]MH_SAM_APDU [09:59:57]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 39 35 38 10 04 04 00 79 A3 00 00 35 04 06 00 02 1F C2 74 81 C0 [09:59:57]Write to MH i2c: E2 24 00 BE 00 80 0D 02 02 1C 00 30 30 30 30 38 37 34 39 35 38 10 04 04 00 79 A3 00 00 35 04 06 00 02 1F C2 74 81 C0 00 00 84 [09:59:57]Write i2c OK [09:59:57]MH_I2C_Read... [09:59:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:57]Read from MH i2c: E2 [09:59:57]MH_I2C_Read... [09:59:57]Read from MH i2c: E2 03 00 [09:59:57]MH_I2C_Read... [09:59:57]Read from MH i2c: E2 03 00 BE 00 00 90 00 32 [09:59:57]RAPDU: 90 00 [09:59:57]wFMCommunicate OK [09:59:57]wFMCommunicate request_size=4 [09:59:57]MH_SAM_APDU [09:59:57]CAPDU: 80 0D 03 02 [09:59:57]Write to MH i2c: E2 08 00 BF 00 80 0D 03 02 00 00 00 00 3A [09:59:57]Write i2c OK [09:59:57]MH_I2C_Read... [09:59:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:59:57]Read from MH i2c: E2 [09:59:57]MH_I2C_Read... [09:59:57]Read from MH i2c: E2 0B 00 [09:59:57]MH_I2C_Read... [09:59:57]Read from MH i2c: E2 0B 00 BF 00 00 C5 60 80 10 C2 E0 CC 3B 90 00 99 [09:59:57]RAPDU: C5 60 80 10 C2 E0 CC 3B 90 00 [09:59:57]wFMCommunicate OK [09:59:57]SAM_PROTO_SignData done [09:59:57]FM_MakeSignedData done [09:59:57]CreateOFDProtocolMessage [09:59:57]wFMCommunicate request_size=4 [09:59:57]MH_SAM_APDU [09:59:57]CAPDU: 80 11 00 00 [09:59:57]Write to MH i2c: E2 08 00 C0 00 80 11 00 00 00 00 00 00 3A [09:59:57]Write i2c OK [09:59:57]MH_I2C_Read... [09:59:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:58]Read from MH i2c: E2 [09:59:58]MH_I2C_Read... [09:59:58]Read from MH i2c: E2 17 00 [09:59:58]MH_I2C_Read... [09:59:58]Read from MH i2c: E2 17 00 C0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 96 [09:59:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [09:59:58]wFMCommunicate OK [09:59:58]CreateOFDProtocolMessage done [09:59:58]OFDSenderStorePacket 41849 [09:59:58]StoreOFDPacket docnum=41849 [09:59:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 26 01 00 00 40 5A 1E 01 18 56 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 1C 68 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 79 A3 00 00 35 04 06 00 02 1F C2 74 81 C0 C5 60 80 10 C2 E0 CC 3B [09:59:58]CheckFolder [09:59:58]dirname=/storage/ofd_packets [09:59:58]CheckFolder done [09:59:58]ProducePacketName [09:59:58]name=ofd_packets/00041849 [09:59:58]NVStorageSaveData ofd_packets/00041849 [09:59:58]File name is /storage/ofd_packets/00041849 [09:59:58]Write 324 bytes [09:59:58]NVStorageSaveData done [09:59:58]OFDSenderStorePacket done [09:59:58]KKMCreateOFDPacket done [09:59:58]NVStorageSaveData kkm_last_timestamp [09:59:58]File name is /storage/kkm_last_timestamp [09:59:58]Write 4 bytes [09:59:58]NVStorageSaveData done [09:59:58]ExternCall_PrintAddStr [09:59:58]wPrintStart [09:59:58]Write to MH i2c: 01 00 00 C1 00 C1 [09:59:58]Write i2c OK [09:59:58]MH_I2C_Read... [09:59:58]Read from MH i2c: 01 [09:59:58]MH_I2C_Read... [09:59:58]Read from MH i2c: 01 07 00 [09:59:58]MH_I2C_Read... [09:59:58]Read from MH i2c: 01 07 00 C1 00 00 00 00 00 00 FF 0F D6 [09:59:58]RasterBufferAndPrint [09:59:58]line Счет N : (3)183877 [09:59:58]line ИНН: 02508201610067 [09:59:58]line Контрольно-Кассовый Чек [09:59:58]line ПРОДАЖА [09:59:58]line Товар: 48741958 [09:59:58]line Сигареты Parliament Aqua Blue [09:59:58]line 1.000 * 151.00 [09:59:58]line = 151.00 [09:59:58]line НДС 12% НСП 1% [09:59:58]line > о реализуемом товаре [09:59:58]line ИТОГО: 151.00 [09:59:58]line НСП 1% : 1.34 [09:59:58]line НДС 12% : 16.03 [09:59:58]line Наличными: 151.00 [09:59:58]line Безнал.: 0.00 [09:59:58]line Место: АЗС № 97 "Партнер Нефть" [09:59:58]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [09:59:58]line СНО: Общий режим [09:59:58]line Чек 38 29.07.2024 09:59 [09:59:58]line Смена: 427 ФФД: 1.0 [09:59:58]line ЗНМ: 0300000053 [09:59:58]line РНМ: 0000000000092626 [09:59:58]line Версия ККМ: 001 [09:59:58]line ФМ: 0000000000874958 [09:59:58]line ФД: 41849 [09:59:58]line ФПД: 2335429657024 [09:59:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T095956&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41849&fm=2335429657024&tin=02508201610067®Number=0000000000092626&sum=15100 [09:59:58]line 0 [09:59:58]written 0, free lines is 4095 [09:59:58]OFD Sender: Processing packet 41847 [packets to send 59, broken 56] [09:59:58]ProducePacketName [09:59:58]name=ofd_packets/00041847 [09:59:58]OFD Sender: To server: pG, [09:59:58]CommunicateWithHost lk.salyk.kg:30040 [09:59:58]ConnectInit lk.salyk.kg [09:59:58]Write to MH i2c: 01 00 00 EA 00 EA [09:59:58]Write i2c OK [09:59:58]MH_I2C_Read... [09:59:58]Read from MH i2c: 01 [09:59:58]MH_I2C_Read... [09:59:58]Read from MH i2c: 01 07 00 [09:59:58]MH_I2C_Read... [09:59:58]Read from MH i2c: 01 07 00 EA 00 00 00 00 00 00 FA 0C F7 [09:59:58]RasterBufferAndPrint [09:59:58]line [09:59:58]line [09:59:58]line [09:59:58]line [09:59:58]line [09:59:58]written 0, free lines is 3357 [09:59:58]MH_Cut [09:59:58]Write to MH i2c: D1 01 00 F1 00 01 C3 [09:59:58]Write i2c OK [09:59:58]MH_I2C_Read... [09:59:58]Read from MH i2c: D1 [09:59:58]MH_I2C_Read... [09:59:58]Read from MH i2c: D1 01 00 [09:59:58]MH_I2C_Read... [09:59:58]Read from MH i2c: D1 01 00 F1 00 00 C2 [09:59:58]Write to MH i2c: 01 00 00 F2 00 F2 [09:59:58]Write i2c OK [09:59:58]MH_I2C_Read... [09:59:59]*** Cut start [09:59:59]*** Partial cut [09:59:59]*** CUTSNS_PIN = 1 [09:59:59]*** CUTSNS_PIN = 0 [09:59:59]*** Brake cut motor [09:59:59]Read from MH i2c: 01 [09:59:59]MH_I2C_Read... [09:59:59]*** Stop cut motor [09:59:59]*** Cut end [09:59:59]Read from MH i2c: 01 07 00 [09:59:59]MH_I2C_Read... [09:59:59]Read from MH i2c: 01 07 00 F2 00 00 00 00 00 00 FF 0F 07 [09:59:59]process_action close_receipt done [09:59:59]requested_data is exist [09:59:59]produce_requested_data [09:59:59]requested_item fm.sn is exist - process it [09:59:59]wFMCommunicate request_size=4 [09:59:59]MH_SAM_APDU [09:59:59]CAPDU: 80 11 00 00 [09:59:59]Write to MH i2c: E2 08 00 F3 00 80 11 00 00 00 00 00 00 6D [09:59:59]Write i2c OK [09:59:59]MH_I2C_Read... [10:00:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:00]Read from MH i2c: E2 [10:00:00]MH_I2C_Read... [10:00:00]Read from MH i2c: E2 17 00 [10:00:00]MH_I2C_Read... [10:00:00]Read from MH i2c: E2 17 00 F3 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 C9 [10:00:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [10:00:00]wFMCommunicate OK [10:00:00]requested_item fd.num is exist - process it [10:00:00]SAM_PROTO_GetFieldsCounters [10:00:00]wFMCommunicate request_size=4 [10:00:00]MH_SAM_APDU [10:00:00]CAPDU: 80 13 00 00 [10:00:00]Write to MH i2c: E2 08 00 F4 00 80 13 00 00 00 00 00 00 70 [10:00:00]Write i2c OK [10:00:00]MH_I2C_Read... [10:00:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:00:00]Read from MH i2c: E2 [10:00:00]MH_I2C_Read... [10:00:00]Read from MH i2c: E2 62 00 [10:00:00]MH_I2C_Read... [10:00:00]Read from MH i2c: E2 62 00 F4 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 79 A3 00 00 0E 04 04 00 AB 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 D4 [10:00: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 79 A3 00 00 0E 04 04 00 AB 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:00:00]wFMCommunicate OK [10:00:00]SAM_PROTO_GetFieldsCounters done [10:00:00]requested_item shift.num is exist - process it [10:00:00]requested_item shift.opened is exist - process it [10:00:00]req_shift_opened [10:00:00]FM_GetShiftState [10:00:00]SAM_PROTO_GetShiftState [10:00:00]wFMCommunicate request_size=4 [10:00:00]MH_SAM_APDU [10:00:00]CAPDU: 80 13 01 00 [10:00:00]Write to MH i2c: E2 08 00 F5 00 80 13 01 00 00 00 00 00 72 [10:00:00]Write i2c OK [10:00:00]MH_I2C_Read... [10:00:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:00]Read from MH i2c: E2 [10:00:00]MH_I2C_Read... [10:00:00]Read from MH i2c: E2 0E 00 [10:00:00]MH_I2C_Read... [10:00:00]Read from MH i2c: E2 0E 00 F5 00 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 0E [10:00:00]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [10:00:00]wFMCommunicate OK [10:00:00]SAM_PROTO_GetShiftState done [10:00:00]FM_GetShiftState done [10:00:00]req_shift_opened done [10:00:00]requested_item shift.open_date is exist - process it [10:00:00]req_shift_open_date [10:00:00]req_shift_open_date done [10:00:00]produce_requested_data done [10:00:00]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41849,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [10:00:00]process_action_free close_receipt [10:00:00]json_value_free [10:00:00]json_value_free done [10:00:00]process_json_proto returns [10:00:00]Send response to host [10:00:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41849,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [10:00:00]free response buf [10:00:00]execute_script done [10:00:00]execute_script returns [10:00:00]free content buf [10:00:00]Sock 8.Close socket [10:00:00]Sock 8.Thread stoped [10:00:02]accept exits with 10 [10:00:02]New connection [10:00:02]New thread 3067305316 created [10:00:02]Thread 3067448676 joined [10:00:02]Waiting for new connection... [10:00:02] Sock 10.Parse request [10:00:02]Sock 10.Check first char [10:00:02]Sock 10.First char is OK [10:00:02]request: POST /json_proto HTTP/1.0 [10:00:02]Method: POST [10:00:02]URL: /json_proto [10:00:02]Method is POST - this is cgi request [10:00:02]url: /json_proto [10:00:02]query_string will be loaded in cgi processing [10:00:02]execute_cgi json_proto POST (null) [10:00:02]execute_cgi path=json_proto method=POST [10:00:02]POST find Content-Length [10:00:02]Host: 172.17.43.132:8080 [10:00:02]Content-Length: 1085 [10:00:02]Content-Type: application/json [10:00:02] [10:00:02]POST finish read [10:00:02]Found Content-Length = 1085 [10:00:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183878", "tax_sys" : 0, "items" : [ { "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "7622210309396", "name": "\u041F\u0435\u0447\u0435\u043D\u044C\u0435 \"OREO\" 38 \u0433\u0440", "price" : 65.00, "quantity" : 1.000, "sum" : 65.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" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:02]execute_script... [10:00:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183878", "tax_sys" : 0, "items" : [ { "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "7622210309396", "name": "\u041F\u0435\u0447\u0435\u043D\u044C\u0435 \"OREO\" 38 \u0433\u0440", "price" : 65.00, "quantity" : 1.000, "sum" : 65.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" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:02]POST & json_proto [10:00:02]process_json_proto [10:00:02]json parsed OK: [10:00:02]protocol is kg_v1.0 [10:00:02]action value=close_receipt [10:00:02]process_action close_receipt [10:00:02]cmd_close_receipt [10:00:02]MH_GetDate [10:00:02]Write to MH i2c: F0 00 00 F6 00 E5 [10:00:02]Write i2c OK [10:00:02]MH_I2C_Read... [10:00:02]Read from MH i2c: F0 [10:00:02]MH_I2C_Read... [10:00:02]Read from MH i2c: F0 09 00 [10:00:02]MH_I2C_Read... [10:00:02]Read from MH i2c: F0 09 00 F6 00 00 22 68 A7 66 F8 53 A7 66 DD [10:00:02]GetLastDocTimeStamp 1722247196 [10:00:02]current date 1722247202 [10:00:02]FM_GetShiftState [10:00:02]SAM_PROTO_GetShiftState [10:00:02]wFMCommunicate request_size=4 [10:00:02]MH_SAM_APDU [10:00:02]CAPDU: 80 13 01 00 [10:00:02]Write to MH i2c: E2 08 00 F7 00 80 13 01 00 00 00 00 00 74 [10:00:02]Write i2c OK [10:00:02]MH_I2C_Read... [10:00:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:02]Read from MH i2c: E2 [10:00:02]MH_I2C_Read... [10:00:02]Read from MH i2c: E2 0E 00 [10:00:02]MH_I2C_Read... [10:00:02]Read from MH i2c: E2 0E 00 F7 00 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 10 [10:00:02]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [10:00:02]wFMCommunicate OK [10:00:02]SAM_PROTO_GetShiftState done [10:00:02]FM_GetShiftState done [10:00:02]opened in 1722211496 [10:00:02]opened+sec_in_day 1722297896 [10:00:02]quantity*price = 7500 [10:00:02]sum+1 = 7501 [10:00:02]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 7622210309396 Печенье "OREO" 38 гр 1.000 * 65.00 = 65.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.23 НДС 12% : 14.86 Наличными: 0.00 Безнал.: 140.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 39 29.07.2024 10:00 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874958 ФД: 41850 ФПД: 105715202188696 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T100002&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41850&fm=105715202188696&tin=02508201610067®Number=0000000000092626&sum=14000 0 [10:00:03]StoreToDocumentArchive [10:00:03]shift 427 fd 41850 [10:00:03]save to /storage/0427/doc_00041850 [10:00:03]save last doc name /storage/0427/doc_00041850 to /storage/kkm_last_doc_name [10:00:03]save OK [10:00:03]Clear old archive folders... [10:00:03]ProcessDocumentItem done err = 0, tmpTLVsize=396 [10:00:03]tlvbuf is 0076C480 [10:00:03]SAM_PROTO_ClearQueue [10:00:03]wFMCommunicate request_size=4 [10:00:03]MH_SAM_APDU [10:00:03]CAPDU: 80 09 00 00 [10:00:03]Write to MH i2c: E2 08 00 04 01 80 09 00 00 00 00 00 00 77 [10:00:03]Write i2c OK [10:00:03]MH_I2C_Read... [10:00:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:00:03]Read from MH i2c: E2 [10:00:03]MH_I2C_Read... [10:00:03]Read from MH i2c: E2 03 00 [10:00:03]MH_I2C_Read... [10:00:03]Read from MH i2c: E2 03 00 04 01 00 90 00 79 [10:00:03]RAPDU: 90 00 [10:00:03]wFMCommunicate OK [10:00:03]SAM_PROTO_ClearQueue done [10:00:03]KKMCreateOFDPacket [10:00:03]OFDProtocolAddRootSTLVToBuf [10:00:03]FM_MakeSignedData [10:00:03]FM_MakeSignedData [10:00:03]SAM_PROTO_SignData [10:00:03]wFMCommunicate request_size=4 [10:00:03]MH_SAM_APDU [10:00:03]CAPDU: 80 0D 01 02 [10:00:03]Write to MH i2c: E2 08 00 05 01 80 0D 01 02 00 00 00 00 7F [10:00:03]Write i2c OK [10:00:03]MH_I2C_Read... [10:00:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:00:04]Read from MH i2c: E2 [10:00:04]MH_I2C_Read... [10:00:04]Read from MH i2c: E2 03 00 [10:00:04]MH_I2C_Read... [10:00:04]Read from MH i2c: E2 03 00 05 01 00 90 00 7A [10:00:04]RAPDU: 90 00 [10:00:04]wFMCommunicate OK [10:00:04]wFMCommunicate request_size=255 [10:00:04]MH_SAM_APDU [10:00:04]CAPDU: 80 0D 02 02 FA 03 00 8C 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 37 36 32 32 32 31 30 33 30 39 33 39 36 06 04 1D 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 22 4F 52 45 4F 22 20 33 38 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF [10:00:04]Write to MH i2c: E2 02 01 06 01 80 0D 02 02 FA 00 03 00 8C 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 37 36 32 32 32 31 30 33 30 39 33 39 36 06 04 1D 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 22 4F 52 45 4F 22 20 33 38 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 00 00 AF [10:00:04]Write i2c OK [10:00:04]MH_I2C_Read... [10:00:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:04]Read from MH i2c: E2 [10:00:04]MH_I2C_Read... [10:00:04]Read from MH i2c: E2 03 00 [10:00:04]MH_I2C_Read... [10:00:04]Read from MH i2c: E2 03 00 06 01 00 90 00 7B [10:00:04]RAPDU: 90 00 [10:00:04]wFMCommunicate OK [10:00:04]wFMCommunicate request_size=155 [10:00:04]MH_SAM_APDU [10:00:04]CAPDU: 80 0D 02 02 96 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 22 68 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 7A A3 00 00 35 04 06 00 60 25 BD 12 E5 98 [10:00:04]Write to MH i2c: E2 9E 00 07 01 80 0D 02 02 96 00 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 22 68 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 7A A3 00 00 35 04 06 00 60 25 BD 12 E5 98 00 00 7D [10:00:04]Write i2c OK [10:00:04]MH_I2C_Read... [10:00:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:05]Read from MH i2c: E2 [10:00:05]MH_I2C_Read... [10:00:05]Read from MH i2c: E2 03 00 [10:00:05]MH_I2C_Read... [10:00:05]Read from MH i2c: E2 03 00 07 01 00 90 00 7C [10:00:05]RAPDU: 90 00 [10:00:05]wFMCommunicate OK [10:00:05]wFMCommunicate request_size=4 [10:00:05]MH_SAM_APDU [10:00:05]CAPDU: 80 0D 03 02 [10:00:05]Write to MH i2c: E2 08 00 08 01 80 0D 03 02 00 00 00 00 84 [10:00:05]Write i2c OK [10:00:05]MH_I2C_Read... [10:00:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:00:05]Read from MH i2c: E2 [10:00:05]MH_I2C_Read... [10:00:05]Read from MH i2c: E2 0B 00 [10:00:05]MH_I2C_Read... [10:00:05]Read from MH i2c: E2 0B 00 08 01 00 83 E0 DE A8 82 36 74 2C 90 00 C6 [10:00:05]RAPDU: 83 E0 DE A8 82 36 74 2C 90 00 [10:00:05]wFMCommunicate OK [10:00:05]SAM_PROTO_SignData done [10:00:05]FM_MakeSignedData done [10:00:05]CreateOFDProtocolMessage [10:00:05]wFMCommunicate request_size=4 [10:00:05]MH_SAM_APDU [10:00:05]CAPDU: 80 11 00 00 [10:00:05]Write to MH i2c: E2 08 00 09 01 80 11 00 00 00 00 00 00 84 [10:00:05]Write i2c OK [10:00:05]MH_I2C_Read... [10:00:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:05]Read from MH i2c: E2 [10:00:05]MH_I2C_Read... [10:00:05]Read from MH i2c: E2 17 00 [10:00:05]MH_I2C_Read... [10:00:05]Read from MH i2c: E2 17 00 09 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 E0 [10:00:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [10:00:05]wFMCommunicate OK [10:00:05]CreateOFDProtocolMessage done [10:00:05]OFDSenderStorePacket 41850 [10:00:05]StoreOFDPacket docnum=41850 [10:00:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 A0 01 00 00 43 DC 98 01 5C CC 5A 03 01 00 03 00 8C 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 37 36 32 32 32 31 30 33 30 39 33 39 36 06 04 1D 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 22 4F 52 45 4F 22 20 33 38 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 22 68 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 7A A3 00 00 35 04 06 00 60 25 BD 12 E5 98 83 E0 DE A8 82 36 74 2C [10:00:05]CheckFolder [10:00:05]dirname=/storage/ofd_packets [10:00:05]CheckFolder done [10:00:05]ProducePacketName [10:00:05]name=ofd_packets/00041850 [10:00:05]NVStorageSaveData ofd_packets/00041850 [10:00:05]File name is /storage/ofd_packets/00041850 [10:00:05]Write 446 bytes [10:00:05]NVStorageSaveData done [10:00:05]OFDSenderStorePacket done [10:00:05]KKMCreateOFDPacket done [10:00:05]NVStorageSaveData kkm_last_timestamp [10:00:05]File name is /storage/kkm_last_timestamp [10:00:05]Write 4 bytes [10:00:05]NVStorageSaveData done [10:00:05]ExternCall_PrintAddStr [10:00:05]wPrintStart [10:00:05]Write to MH i2c: 01 00 00 0A 01 0B [10:00:05]Write i2c OK [10:00:05]MH_I2C_Read... [10:00:05]Read from MH i2c: 01 [10:00:05]MH_I2C_Read... [10:00:05]Read from MH i2c: 01 07 00 [10:00:05]MH_I2C_Read... [10:00:05]Read from MH i2c: 01 07 00 0A 01 00 00 00 00 00 FF 0F 20 [10:00:05]RasterBufferAndPrint [10:00:05]line Счет N : (3)183878 [10:00:05]line ИНН: 02508201610067 [10:00:05]line Контрольно-Кассовый Чек [10:00:05]line ПРОДАЖА [10:00:05]line Товар: 5449000027450 [10:00:05]line Напиток FuzeTea чай манго,ром 0,5л [10:00:05]line 1.000 * 75.00 [10:00:05]line = 75.00 [10:00:05]line НДС 12% НСП 1% [10:00:05]line > о реализуемом товаре [10:00:05]line Товар: 7622210309396 [10:00:05]line Печенье "OREO" 38 гр [10:00:05]line 1.000 * 65.00 [10:00:05]line = 65.00 [10:00:05]line НДС 12% НСП 1% [10:00:05]line > о реализуемом товаре [10:00:05]line ИТОГО: 140.00 [10:00:05]line НСП 1% : 1.23 [10:00:05]line НДС 12% : 14.86 [10:00:05]line Наличными: 0.00 [10:00:05]line Безнал.: 140.00 [10:00:05]line Место: АЗС № 97 "Партнер Нефть" [10:00:05]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [10:00:05]line СНО: Общий режим [10:00:05]line Чек 39 29.07.2024 10:00 [10:00:05]line Смена: 427 ФФД: 1.0 [10:00:05]line ЗНМ: 0300000053 [10:00:05]line РНМ: 0000000000092626 [10:00:05]line Версия ККМ: 001 [10:00:05]line Платежная система: O! деньги [10:00:05]line ФМ: 0000000000874958 [10:00:05]line ФД: 41850 [10:00:05]line ФПД: 105715202188696 [10:00:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T100002&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41850&fm=105715202188696&tin=02508201610067®Number=0000000000092626&sum=14000 [10:00:05]line 0 [10:00:05]written 0, free lines is 4095 [10:00:05]OFD Sender: Processing packet 41847 [packets to send 60, broken 56] [10:00:05]ProducePacketName [10:00:05]name=ofd_packets/00041847 [10:00:05]OFD Sender: To server: pG, [10:00:05]CommunicateWithHost lk.salyk.kg:30040 [10:00:05]ConnectInit lk.salyk.kg [10:00:05]Write to MH i2c: 01 00 00 3B 01 3C [10:00:05]Write i2c OK [10:00:05]MH_I2C_Read... [10:00:05]Read from MH i2c: 01 [10:00:05]MH_I2C_Read... [10:00:05]Read from MH i2c: 01 07 00 [10:00:05]MH_I2C_Read... [10:00:05]Read from MH i2c: 01 07 00 3B 01 00 00 00 00 00 9B 0C EA [10:00:05]RasterBufferAndPrint [10:00:05]line [10:00:05]line [10:00:05]line [10:00:05]line [10:00:05]line [10:00:05]written 0, free lines is 3272 [10:00:05]MH_Cut [10:00:05]Write to MH i2c: D1 01 00 42 01 01 15 [10:00:05]Write i2c OK [10:00:05]MH_I2C_Read... [10:00:05]Read from MH i2c: D1 [10:00:05]MH_I2C_Read... [10:00:05]Read from MH i2c: D1 01 00 [10:00:05]MH_I2C_Read... [10:00:05]Read from MH i2c: D1 01 00 42 01 00 14 [10:00:05]Write to MH i2c: 01 00 00 43 01 44 [10:00:05]Write i2c OK [10:00:05]MH_I2C_Read... [10:00:06]*** Cut start [10:00:06]*** Partial cut [10:00:06]*** CUTSNS_PIN = 1 [10:00:06]*** CUTSNS_PIN = 0 [10:00:06]*** Brake cut motor [10:00:07]Read from MH i2c: 01 [10:00:07]MH_I2C_Read... [10:00:07]*** Stop cut motor [10:00:07]*** Cut end [10:00:07]Read from MH i2c: 01 07 00 [10:00:07]MH_I2C_Read... [10:00:07]Read from MH i2c: 01 07 00 43 01 00 00 00 00 00 FF 0F 59 [10:00:07]process_action close_receipt done [10:00:07]requested_data is exist [10:00:07]produce_requested_data [10:00:07]requested_item fm.sn is exist - process it [10:00:07]wFMCommunicate request_size=4 [10:00:07]MH_SAM_APDU [10:00:07]CAPDU: 80 11 00 00 [10:00:07]Write to MH i2c: E2 08 00 44 01 80 11 00 00 00 00 00 00 BF [10:00:07]Write i2c OK [10:00:07]MH_I2C_Read... [10:00:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:07]Read from MH i2c: E2 [10:00:07]MH_I2C_Read... [10:00:07]Read from MH i2c: E2 17 00 [10:00:07]MH_I2C_Read... [10:00:07]Read from MH i2c: E2 17 00 44 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 1B [10:00:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [10:00:07]wFMCommunicate OK [10:00:07]requested_item fd.num is exist - process it [10:00:07]SAM_PROTO_GetFieldsCounters [10:00:07]wFMCommunicate request_size=4 [10:00:07]MH_SAM_APDU [10:00:07]CAPDU: 80 13 00 00 [10:00:07]Write to MH i2c: E2 08 00 45 01 80 13 00 00 00 00 00 00 C2 [10:00:07]Write i2c OK [10:00:07]MH_I2C_Read... [10:00:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:00:07]Read from MH i2c: E2 [10:00:07]MH_I2C_Read... [10:00:07]Read from MH i2c: E2 62 00 [10:00:07]MH_I2C_Read... [10:00:07]Read from MH i2c: E2 62 00 45 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 7A A3 00 00 0E 04 04 00 AB 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 2A [10:00: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 7A A3 00 00 0E 04 04 00 AB 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:00:07]wFMCommunicate OK [10:00:07]SAM_PROTO_GetFieldsCounters done [10:00:07]requested_item shift.num is exist - process it [10:00:07]requested_item shift.opened is exist - process it [10:00:07]req_shift_opened [10:00:07]FM_GetShiftState [10:00:07]SAM_PROTO_GetShiftState [10:00:07]wFMCommunicate request_size=4 [10:00:07]MH_SAM_APDU [10:00:07]CAPDU: 80 13 01 00 [10:00:07]Write to MH i2c: E2 08 00 46 01 80 13 01 00 00 00 00 00 C4 [10:00:07]Write i2c OK [10:00:07]MH_I2C_Read... [10:00:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:07]Read from MH i2c: E2 [10:00:07]MH_I2C_Read... [10:00:07]Read from MH i2c: E2 0E 00 [10:00:07]MH_I2C_Read... [10:00:07]Read from MH i2c: E2 0E 00 46 01 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 60 [10:00:07]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [10:00:07]wFMCommunicate OK [10:00:07]SAM_PROTO_GetShiftState done [10:00:07]FM_GetShiftState done [10:00:07]req_shift_opened done [10:00:07]requested_item shift.open_date is exist - process it [10:00:07]req_shift_open_date [10:00:07]req_shift_open_date done [10:00:07]produce_requested_data done [10:00:07]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41850,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [10:00:07]process_action_free close_receipt [10:00:07]json_value_free [10:00:07]json_value_free done [10:00:07]process_json_proto returns [10:00:07]Send response to host [10:00:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41850,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [10:00:07]free response buf [10:00:07]execute_script done [10:00:07]execute_script returns [10:00:07]free content buf [10:00:07]Sock 10.Close socket [10:00:07]Sock 10.Thread stoped [10:00:08]accept exits with 8 [10:00:08]New connection [10:00:08]New thread 3067448676 created [10:00:08]Thread 3067305316 joined [10:00:08]Waiting for new connection... [10:00:08] Sock 8.Parse request [10:00:08]Sock 8.Check first char [10:00:08]Sock 8.First char is OK [10:00:08]request: POST /json_proto HTTP/1.0 [10:00:08]Method: POST [10:00:08]URL: /json_proto [10:00:08]Method is POST - this is cgi request [10:00:08]url: /json_proto [10:00:08]query_string will be loaded in cgi processing [10:00:08]execute_cgi json_proto POST (null) [10:00:08]execute_cgi path=json_proto method=POST [10:00:08]POST find Content-Length [10:00:08]Host: 172.17.43.132:8080 [10:00:08]Content-Length: 646 [10:00:08]Content-Type: application/json [10:00:08] [10:00:08]POST finish read [10:00:08]Found Content-Length = 646 [10:00:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183879", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:08]execute_script... [10:00:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183879", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:08]POST & json_proto [10:00:08]process_json_proto [10:00:08]json parsed OK: [10:00:08]protocol is kg_v1.0 [10:00:08]action value=close_receipt [10:00:08]process_action close_receipt [10:00:08]cmd_close_receipt [10:00:08]MH_GetDate [10:00:08]Write to MH i2c: F0 00 00 47 01 37 [10:00:08]Write i2c OK [10:00:08]MH_I2C_Read... [10:00:08]Read from MH i2c: F0 [10:00:08]MH_I2C_Read... [10:00:08]Read from MH i2c: F0 09 00 [10:00:08]MH_I2C_Read... [10:00:08]Read from MH i2c: F0 09 00 47 01 00 29 68 A7 66 F8 53 A7 66 36 [10:00:08]GetLastDocTimeStamp 1722247202 [10:00:08]current date 1722247209 [10:00:08]FM_GetShiftState [10:00:08]SAM_PROTO_GetShiftState [10:00:08]wFMCommunicate request_size=4 [10:00:08]MH_SAM_APDU [10:00:08]CAPDU: 80 13 01 00 [10:00:08]Write to MH i2c: E2 08 00 48 01 80 13 01 00 00 00 00 00 C6 [10:00:08]Write i2c OK [10:00:08]MH_I2C_Read... [10:00:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:08]Read from MH i2c: E2 [10:00:08]MH_I2C_Read... [10:00:08]Read from MH i2c: E2 0E 00 [10:00:08]MH_I2C_Read... [10:00:08]Read from MH i2c: E2 0E 00 48 01 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 62 [10:00:08]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [10:00:08]wFMCommunicate OK [10:00:08]SAM_PROTO_GetShiftState done [10:00:08]FM_GetShiftState done [10:00:08]opened in 1722211496 [10:00:08]opened+sec_in_day 1722297896 [10:00:08]quantity*price = 26000 [10:00:08]sum+1 = 26001 [10:00:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 40 29.07.2024 10:00 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41851 ФПД: 137802690915339 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T100009&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41851&fm=137802690915339&tin=02508201610067®Number=0000000000092626&sum=26000 0 [10:00:10]StoreToDocumentArchive [10:00:10]shift 427 fd 41851 [10:00:10]save to /storage/0427/doc_00041851 [10:00:10]save last doc name /storage/0427/doc_00041851 to /storage/kkm_last_doc_name [10:00:10]save OK [10:00:10]Clear old archive folders... [10:00:10]ProcessDocumentItem done err = 0, tmpTLVsize=282 [10:00:10]tlvbuf is 006D1490 [10:00:10]SAM_PROTO_ClearQueue [10:00:10]wFMCommunicate request_size=4 [10:00:10]MH_SAM_APDU [10:00:10]CAPDU: 80 09 00 00 [10:00:10]Write to MH i2c: E2 08 00 55 01 80 09 00 00 00 00 00 00 C8 [10:00:10]Write i2c OK [10:00:10]MH_I2C_Read... [10:00:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:00:10]Read from MH i2c: E2 [10:00:10]MH_I2C_Read... [10:00:10]Read from MH i2c: E2 03 00 [10:00:10]MH_I2C_Read... [10:00:10]Read from MH i2c: E2 03 00 55 01 00 90 00 CA [10:00:10]RAPDU: 90 00 [10:00:10]wFMCommunicate OK [10:00:10]SAM_PROTO_ClearQueue done [10:00:10]KKMCreateOFDPacket [10:00:10]OFDProtocolAddRootSTLVToBuf [10:00:10]FM_MakeSignedData [10:00:10]FM_MakeSignedData [10:00:10]SAM_PROTO_SignData [10:00:10]wFMCommunicate request_size=4 [10:00:10]MH_SAM_APDU [10:00:10]CAPDU: 80 0D 01 02 [10:00:10]Write to MH i2c: E2 08 00 56 01 80 0D 01 02 00 00 00 00 D0 [10:00:10]Write i2c OK [10:00:10]MH_I2C_Read... [10:00:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:00:11]Read from MH i2c: E2 [10:00:11]MH_I2C_Read... [10:00:11]Read from MH i2c: E2 03 00 [10:00:11]MH_I2C_Read... [10:00:11]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [10:00:11]RAPDU: 90 00 [10:00:11]wFMCommunicate OK [10:00:11]wFMCommunicate request_size=255 [10:00:11]MH_SAM_APDU [10:00:11]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 29 68 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 [10:00:11]Write to MH i2c: E2 02 01 57 01 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 29 68 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 00 00 0B [10:00:11]Write i2c OK [10:00:11]MH_I2C_Read... [10:00:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:11]Read from MH i2c: E2 [10:00:11]MH_I2C_Read... [10:00:11]Read from MH i2c: E2 03 00 [10:00:11]MH_I2C_Read... [10:00:11]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [10:00:11]RAPDU: 90 00 [10:00:11]wFMCommunicate OK [10:00:11]wFMCommunicate request_size=41 [10:00:11]MH_SAM_APDU [10:00:11]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 7B A3 00 00 35 04 06 00 7D 54 B0 70 EC 0B [10:00:11]Write to MH i2c: E2 2C 00 58 01 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 7B A3 00 00 35 04 06 00 7D 54 B0 70 EC 0B 00 00 B1 [10:00:11]Write i2c OK [10:00:11]MH_I2C_Read... [10:00:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:11]Read from MH i2c: E2 [10:00:11]MH_I2C_Read... [10:00:11]Read from MH i2c: E2 03 00 [10:00:11]MH_I2C_Read... [10:00:11]Read from MH i2c: E2 03 00 58 01 00 90 00 CD [10:00:11]RAPDU: 90 00 [10:00:11]wFMCommunicate OK [10:00:11]wFMCommunicate request_size=4 [10:00:11]MH_SAM_APDU [10:00:11]CAPDU: 80 0D 03 02 [10:00:11]Write to MH i2c: E2 08 00 59 01 80 0D 03 02 00 00 00 00 D5 [10:00:11]Write i2c OK [10:00:11]MH_I2C_Read... [10:00:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:00:11]Read from MH i2c: E2 [10:00:11]MH_I2C_Read... [10:00:11]Read from MH i2c: E2 0B 00 [10:00:11]MH_I2C_Read... [10:00:11]Read from MH i2c: E2 0B 00 59 01 00 9E 71 7A A7 DB E2 79 FA 90 00 36 [10:00:11]RAPDU: 9E 71 7A A7 DB E2 79 FA 90 00 [10:00:11]wFMCommunicate OK [10:00:11]SAM_PROTO_SignData done [10:00:11]FM_MakeSignedData done [10:00:11]CreateOFDProtocolMessage [10:00:11]wFMCommunicate request_size=4 [10:00:11]MH_SAM_APDU [10:00:11]CAPDU: 80 11 00 00 [10:00:11]Write to MH i2c: E2 08 00 5A 01 80 11 00 00 00 00 00 00 D5 [10:00:11]Write i2c OK [10:00:11]MH_I2C_Read... [10:00:12]Read from MH i2c: E2 [10:00:12]MH_I2C_Read... [10:00:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:12]Read from MH i2c: E2 17 00 [10:00:12]MH_I2C_Read... [10:00:12]Read from MH i2c: E2 17 00 5A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 31 [10:00:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [10:00:12]wFMCommunicate OK [10:00:12]CreateOFDProtocolMessage done [10:00:12]OFDSenderStorePacket 41851 [10:00:12]StoreOFDPacket docnum=41851 [10:00:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 2E 01 00 00 CA 84 26 01 24 E9 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 29 68 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 7B A3 00 00 35 04 06 00 7D 54 B0 70 EC 0B 9E 71 7A A7 DB E2 79 FA [10:00:12]CheckFolder [10:00:12]dirname=/storage/ofd_packets [10:00:12]CheckFolder done [10:00:12]ProducePacketName [10:00:12]name=ofd_packets/00041851 [10:00:12]NVStorageSaveData ofd_packets/00041851 [10:00:12]File name is /storage/ofd_packets/00041851 [10:00:12]Write 332 bytes [10:00:12]NVStorageSaveData done [10:00:12]OFDSenderStorePacket done [10:00:12]KKMCreateOFDPacket done [10:00:12]NVStorageSaveData kkm_last_timestamp [10:00:12]File name is /storage/kkm_last_timestamp [10:00:12]Write 4 bytes [10:00:12]NVStorageSaveData done [10:00:12]ExternCall_PrintAddStr [10:00:12]wPrintStart [10:00:12]Write to MH i2c: 01 00 00 5B 01 5C [10:00:12]Write i2c OK [10:00:12]MH_I2C_Read... [10:00:12]Read from MH i2c: 01 [10:00:12]MH_I2C_Read... [10:00:12]Read from MH i2c: 01 07 00 [10:00:12]MH_I2C_Read... [10:00:12]Read from MH i2c: 01 07 00 5B 01 00 00 00 00 00 FF 0F 71 [10:00:12]RasterBufferAndPrint [10:00:12]line Счет N : (3)183879 [10:00:12]line ИНН: 02508201610067 [10:00:12]line Контрольно-Кассовый Чек [10:00:12]line ПРОДАЖА [10:00:12]line Товар: 2000036220012 [10:00:12]line Кофе Капучино XL(GABB TRADE) [10:00:12]line 2.000 * 130.00 [10:00:12]line = 260.00 [10:00:12]line НДС 12% НСП 1% [10:00:12]line > о реализуемом товаре [10:00:12]line ИТОГО: 260.00 [10:00:12]line НСП 1% : 2.30 [10:00:12]line НДС 12% : 27.61 [10:00:12]line Наличными: 260.00 [10:00:12]line Безнал.: 0.00 [10:00:12]line Место: АЗС № 97 "Партнер Нефть" [10:00:12]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [10:00:12]line СНО: Общий режим [10:00:12]line Чек 40 29.07.2024 10:00 [10:00:12]line Смена: 427 ФФД: 1.0 [10:00:12]line ЗНМ: 0300000053 [10:00:12]line РНМ: 0000000000092626 [10:00:12]line Версия ККМ: 001 [10:00:12]line ФМ: 0000000000874958 [10:00:12]line ФД: 41851 [10:00:12]line ФПД: 137802690915339 [10:00:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T100009&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41851&fm=137802690915339&tin=02508201610067®Number=0000000000092626&sum=26000 [10:00:12]line 0 [10:00:12]OFD Sender: Processing packet 41847 [packets to send 61, broken 56] [10:00:12]ProducePacketName [10:00:12]name=ofd_packets/00041847 [10:00:12]OFD Sender: To server: pG, [10:00:12]CommunicateWithHost lk.salyk.kg:30040 [10:00:12]ConnectInit lk.salyk.kg [10:00:12]written 0, free lines is 4095 [10:00:12]Write to MH i2c: 01 00 00 84 01 85 [10:00:12]Write i2c OK [10:00:12]MH_I2C_Read... [10:00:12]Read from MH i2c: 01 [10:00:12]MH_I2C_Read... [10:00:12]Read from MH i2c: 01 07 00 [10:00:12]MH_I2C_Read... [10:00:12]Read from MH i2c: 01 07 00 84 01 00 00 00 00 00 0E 0D A7 [10:00:12]RasterBufferAndPrint [10:00:12]line [10:00:12]line [10:00:12]line [10:00:12]line [10:00:12]line [10:00:12]written 0, free lines is 3389 [10:00:12]MH_Cut [10:00:12]Write to MH i2c: D1 01 00 8B 01 01 5E [10:00:12]Write i2c OK [10:00:12]MH_I2C_Read... [10:00:12]Read from MH i2c: D1 [10:00:12]MH_I2C_Read... [10:00:12]Read from MH i2c: D1 01 00 [10:00:12]MH_I2C_Read... [10:00:12]Read from MH i2c: D1 01 00 8B 01 00 5D [10:00:12]Write to MH i2c: 01 00 00 8C 01 8D [10:00:12]Write i2c OK [10:00:12]MH_I2C_Read... [10:00:13]*** Cut start [10:00:13]*** Partial cut [10:00:13]*** CUTSNS_PIN = 1 [10:00:13]*** CUTSNS_PIN = 0 [10:00:13]*** Brake cut motor [10:00:14]Read from MH i2c: 01 [10:00:14]MH_I2C_Read... [10:00:14]*** Stop cut motor [10:00:14]*** Cut end [10:00:14]Read from MH i2c: 01 07 00 [10:00:14]MH_I2C_Read... [10:00:14]Read from MH i2c: 01 07 00 8C 01 00 00 00 00 00 FF 0F A2 [10:00:14]process_action close_receipt done [10:00:14]requested_data is exist [10:00:14]produce_requested_data [10:00:14]requested_item fm.sn is exist - process it [10:00:14]wFMCommunicate request_size=4 [10:00:14]MH_SAM_APDU [10:00:14]CAPDU: 80 11 00 00 [10:00:14]Write to MH i2c: E2 08 00 8D 01 80 11 00 00 00 00 00 00 08 [10:00:14]Write i2c OK [10:00:14]MH_I2C_Read... [10:00:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:14]Read from MH i2c: E2 [10:00:14]MH_I2C_Read... [10:00:14]Read from MH i2c: E2 17 00 [10:00:14]MH_I2C_Read... [10:00:14]Read from MH i2c: E2 17 00 8D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 64 [10:00:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [10:00:14]wFMCommunicate OK [10:00:14]requested_item fd.num is exist - process it [10:00:14]SAM_PROTO_GetFieldsCounters [10:00:14]wFMCommunicate request_size=4 [10:00:14]MH_SAM_APDU [10:00:14]CAPDU: 80 13 00 00 [10:00:14]Write to MH i2c: E2 08 00 8E 01 80 13 00 00 00 00 00 00 0B [10:00:14]Write i2c OK [10:00:14]MH_I2C_Read... [10:00:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:00:14]Read from MH i2c: E2 [10:00:14]MH_I2C_Read... [10:00:14]Read from MH i2c: E2 62 00 [10:00:14]MH_I2C_Read... [10:00:14]Read from MH i2c: E2 62 00 8E 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 7B A3 00 00 0E 04 04 00 AB 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 77 [10:00:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 7B A3 00 00 0E 04 04 00 AB 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:00:14]wFMCommunicate OK [10:00:14]SAM_PROTO_GetFieldsCounters done [10:00:14]requested_item shift.num is exist - process it [10:00:14]requested_item shift.opened is exist - process it [10:00:14]req_shift_opened [10:00:14]FM_GetShiftState [10:00:14]SAM_PROTO_GetShiftState [10:00:14]wFMCommunicate request_size=4 [10:00:14]MH_SAM_APDU [10:00:14]CAPDU: 80 13 01 00 [10:00:14]Write to MH i2c: E2 08 00 8F 01 80 13 01 00 00 00 00 00 0D [10:00:14]Write i2c OK [10:00:14]MH_I2C_Read... [10:00:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:14]Read from MH i2c: E2 [10:00:14]MH_I2C_Read... [10:00:14]Read from MH i2c: E2 0E 00 [10:00:14]MH_I2C_Read... [10:00:14]Read from MH i2c: E2 0E 00 8F 01 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 A9 [10:00:14]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [10:00:14]wFMCommunicate OK [10:00:14]SAM_PROTO_GetShiftState done [10:00:14]FM_GetShiftState done [10:00:14]req_shift_opened done [10:00:14]requested_item shift.open_date is exist - process it [10:00:14]req_shift_open_date [10:00:14]req_shift_open_date done [10:00:14]produce_requested_data done [10:00:14]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41851,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [10:00:14]process_action_free close_receipt [10:00:14]json_value_free [10:00:14]json_value_free done [10:00:14]process_json_proto returns [10:00:14]Send response to host [10:00:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41851,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [10:00:14]free response buf [10:00:14]execute_script done [10:00:14]execute_script returns [10:00:14]free content buf [10:00:14]Sock 8.Close socket [10:00:14]Sock 8.Thread stoped [10:00:17]ConnectInit Can't take IP for lk.salyk.kg [10:00:17]CommunicateWithHost connect error [10:00:17]CommunicateWithHost err = -1 [10:00:17]OFD Sender: Server communicate error [10:00:22]OFD Sender: Processing packet 41847 [packets to send 61, broken 56] [10:00:22]ProducePacketName [10:00:22]name=ofd_packets/00041847 [10:00:22]OFD Sender: To server: pG, [10:00:22]CommunicateWithHost lk.salyk.kg:30040 [10:00:22]ConnectInit lk.salyk.kg [10:00:27]ConnectInit Can't take IP for lk.salyk.kg [10:00:27]CommunicateWithHost connect error [10:00:27]CommunicateWithHost err = -1 [10:00:27]OFD Sender: Server communicate error [10:00:32]OFD Sender: Processing packet 41847 [packets to send 61, broken 56] [10:00:32]ProducePacketName [10:00:32]name=ofd_packets/00041847 [10:00:32]OFD Sender: To server: pG, [10:00:32]CommunicateWithHost lk.salyk.kg:30040 [10:00:32]ConnectInit lk.salyk.kg [10:00:37]ConnectInit Can't take IP for lk.salyk.kg [10:00:37]CommunicateWithHost connect error [10:00:37]CommunicateWithHost err = -1 [10:00:37]OFD Sender: Server communicate error [10:00:40]recv_with_timeout no data received [10:00:42]OFD Sender: Processing packet 41847 [packets to send 61, broken 56] [10:00:42]ProducePacketName [10:00:42]name=ofd_packets/00041847 [10:00:42]OFD Sender: To server: pG, [10:00:42]CommunicateWithHost lk.salyk.kg:30040 [10:00:42]ConnectInit lk.salyk.kg [10:00:47]ConnectInit Can't take IP for lk.salyk.kg [10:00:47]CommunicateWithHost connect error [10:00:47]CommunicateWithHost err = -1 [10:00:47]OFD Sender: Server communicate error [10:00:52]OFD Sender: Processing packet 41847 [packets to send 61, broken 56] [10:00:52]ProducePacketName [10:00:52]name=ofd_packets/00041847 [10:00:52]OFD Sender: To server: pG, [10:00:52]CommunicateWithHost lk.salyk.kg:30040 [10:00:52]ConnectInit lk.salyk.kg [10:00:55]recv_with_timeout no data received [10:00:57]ConnectInit Can't take IP for lk.salyk.kg [10:00:57]CommunicateWithHost connect error [10:00:57]CommunicateWithHost err = -1 [10:00:57]OFD Sender: Server communicate error [10:01:02]OFD Sender: Processing packet 41847 [packets to send 61, broken 56] [10:01:02]ProducePacketName [10:01:02]name=ofd_packets/00041847 [10:01:02]OFD Sender: To server: pG, [10:01:02]CommunicateWithHost lk.salyk.kg:30040 [10:01:02]ConnectInit lk.salyk.kg [10:01:07]ConnectInit Can't take IP for lk.salyk.kg [10:01:07]CommunicateWithHost connect error [10:01:07]CommunicateWithHost err = -1 [10:01:07]OFD Sender: Server communicate error [10:01:12]OFD Sender: Processing packet 41847 [packets to send 61, broken 56] [10:01:12]ProducePacketName [10:01:12]name=ofd_packets/00041847 [10:01:12]OFD Sender: To server: pG, [10:01:12]CommunicateWithHost lk.salyk.kg:30040 [10:01:12]ConnectInit lk.salyk.kg [10:01:17]ConnectInit Can't take IP for lk.salyk.kg [10:01:17]CommunicateWithHost connect error [10:01:17]CommunicateWithHost err = -1 [10:01:17]OFD Sender: Server communicate error [10:01:22]OFD Sender: Processing packet 41847 [packets to send 61, broken 56] [10:01:22]ProducePacketName [10:01:22]name=ofd_packets/00041847 [10:01:22]OFD Sender: To server: pG, [10:01:22]CommunicateWithHost lk.salyk.kg:30040 [10:01:22]ConnectInit lk.salyk.kg [10:01:27]ConnectInit Can't take IP for lk.salyk.kg [10:01:27]CommunicateWithHost connect error [10:01:27]CommunicateWithHost err = -1 [10:01:27]OFD Sender: Server communicate error [10:01:32]OFD Sender: Processing packet 41847 [packets to send 61, broken 56] [10:01:32]ProducePacketName [10:01:32]name=ofd_packets/00041847 [10:01:32]OFD Sender: To server: pG, [10:01:32]CommunicateWithHost lk.salyk.kg:30040 [10:01:32]ConnectInit lk.salyk.kg [10:01:33]accept exits with 12 [10:01:33]New connection [10:01:33]New thread 3067305316 created [10:01:33]Thread 3067448676 joined [10:01:33]Waiting for new connection... [10:01:33] Sock 12.Parse request [10:01:33]Sock 12.Check first char [10:01:33]Sock 12.First char is OK [10:01:33]request: POST /json_proto HTTP/1.0 [10:01:33]Method: POST [10:01:33]URL: /json_proto [10:01:33]Method is POST - this is cgi request [10:01:33]url: /json_proto [10:01:33]query_string will be loaded in cgi processing [10:01:33]execute_cgi json_proto POST (null) [10:01:33]execute_cgi path=json_proto method=POST [10:01:33]POST find Content-Length [10:01:33]Host: 172.17.43.132:8080 [10:01:33]Content-Length: 630 [10:01:33]Content-Type: application/json [10:01:33] [10:01:33]POST finish read [10:01:33]Found Content-Length = 630 [10:01:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183880", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:33]execute_script... [10:01:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183880", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:33]POST & json_proto [10:01:33]process_json_proto [10:01:33]json parsed OK: [10:01:33]protocol is kg_v1.0 [10:01:33]action value=close_receipt [10:01:33]process_action close_receipt [10:01:33]cmd_close_receipt [10:01:33]MH_GetDate [10:01:33]Write to MH i2c: F0 00 00 90 01 80 [10:01:33]Write i2c OK [10:01:33]MH_I2C_Read... [10:01:33]Read from MH i2c: F0 [10:01:33]MH_I2C_Read... [10:01:33]Read from MH i2c: F0 09 00 [10:01:33]MH_I2C_Read... [10:01:33]Read from MH i2c: F0 09 00 90 01 00 7E 68 A7 66 F8 53 A7 66 D4 [10:01:33]GetLastDocTimeStamp 1722247209 [10:01:33]current date 1722247294 [10:01:33]FM_GetShiftState [10:01:33]SAM_PROTO_GetShiftState [10:01:33]wFMCommunicate request_size=4 [10:01:33]MH_SAM_APDU [10:01:33]CAPDU: 80 13 01 00 [10:01:33]Write to MH i2c: E2 08 00 91 01 80 13 01 00 00 00 00 00 0F [10:01:33]Write i2c OK [10:01:33]MH_I2C_Read... [10:01:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:33]Read from MH i2c: E2 [10:01:33]MH_I2C_Read... [10:01:33]Read from MH i2c: E2 0E 00 [10:01:33]MH_I2C_Read... [10:01:33]Read from MH i2c: E2 0E 00 91 01 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 AB [10:01:34]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [10:01:34]wFMCommunicate OK [10:01:34]SAM_PROTO_GetShiftState done [10:01:34]FM_GetShiftState done [10:01:34]opened in 1722211496 [10:01:34]opened+sec_in_day 1722297896 [10:01:34]quantity*price = 5000 [10:01:34]sum+1 = 5001 [10:01:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 41 29.07.2024 10:01 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41852 ФПД: 99155971884192 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T100134&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41852&fm=99155971884192&tin=02508201610067®Number=0000000000092626&sum=5000 0 [10:01:35]StoreToDocumentArchive [10:01:35]shift 427 fd 41852 [10:01:35]save to /storage/0427/doc_00041852 [10:01:35]save last doc name /storage/0427/doc_00041852 to /storage/kkm_last_doc_name [10:01:35]save OK [10:01:35]Clear old archive folders... [10:01:35]ProcessDocumentItem done err = 0, tmpTLVsize=269 [10:01:35]tlvbuf is 006D2B30 [10:01:35]SAM_PROTO_ClearQueue [10:01:35]wFMCommunicate request_size=4 [10:01:35]MH_SAM_APDU [10:01:35]CAPDU: 80 09 00 00 [10:01:35]Write to MH i2c: E2 08 00 9E 01 80 09 00 00 00 00 00 00 11 [10:01:35]Write i2c OK [10:01:35]MH_I2C_Read... [10:01:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:01:35]Read from MH i2c: E2 [10:01:35]MH_I2C_Read... [10:01:35]Read from MH i2c: E2 03 00 [10:01:35]MH_I2C_Read... [10:01:35]Read from MH i2c: E2 03 00 9E 01 00 90 00 13 [10:01:35]RAPDU: 90 00 [10:01:35]wFMCommunicate OK [10:01:35]SAM_PROTO_ClearQueue done [10:01:35]KKMCreateOFDPacket [10:01:35]OFDProtocolAddRootSTLVToBuf [10:01:35]FM_MakeSignedData [10:01:35]FM_MakeSignedData [10:01:35]SAM_PROTO_SignData [10:01:35]wFMCommunicate request_size=4 [10:01:35]MH_SAM_APDU [10:01:35]CAPDU: 80 0D 01 02 [10:01:35]Write to MH i2c: E2 08 00 9F 01 80 0D 01 02 00 00 00 00 19 [10:01:35]Write i2c OK [10:01:35]MH_I2C_Read... [10:01:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:01:35]Read from MH i2c: E2 [10:01:35]MH_I2C_Read... [10:01:35]Read from MH i2c: E2 03 00 [10:01:35]MH_I2C_Read... [10:01:35]Read from MH i2c: E2 03 00 9F 01 00 90 00 14 [10:01:35]RAPDU: 90 00 [10:01:35]wFMCommunicate OK [10:01:35]wFMCommunicate request_size=255 [10:01:35]MH_SAM_APDU [10:01:35]CAPDU: [10:07:54]ConnectInit Can't connect to host [10:07:55]OFD Sender: No OFD packet to send [10:08:00]OFD Sender: No OFD packet to send [10:08:05]OFD Sender: No OFD packet to send [10:08:10]OFD Sender: No OFD packet to send [10:08:14]recv_with_timeout no data received [10:08:15]OFD Sender: No OFD packet to send [10:08:20]OFD Sender: No OFD packet to send [10:08:25]OFD Sender: No OFD packet to send [10:08:30]OFD Sender: No OFD packet to send [10:08:35]OFD Sender: No OFD packet to send [10:08:40]OFD Sender: No OFD packet to send [10:08:45]OFD Sender: No OFD packet to send [10:08:50]OFD Sender: No OFD packet to send [10:08:55]OFD Sender: No OFD packet to send [10:09:00]OFD Sender: No OFD packet to send [10:09:05]OFD Sender: No OFD packet to send [10:09:10]OFD Sender: No OFD packet to send [10:09:15]OFD Sender: No OFD packet to send [10:09:20]OFD Sender: No OFD packet to send [10:09:25]OFD Sender: No OFD packet to send [10:09:30]OFD Sender: No OFD packet to send [10:09:35]OFD Sender: No OFD packet to send [10:09:40]OFD Sender: No OFD packet to send [10:09:45]OFD Sender: No OFD packet to send [10:09:47]recv_with_timeout no data received [10:09:50]OFD Sender: No OFD packet to send [10:09:55]OFD Sender: No OFD packet to send [10:10:00]OFD Sender: No OFD packet to send [10:10:05]OFD Sender: No OFD packet to send [10:10:10]OFD Sender: No OFD packet to send [10:10:15]OFD Sender: No OFD packet to send [10:10:20]OFD Sender: No OFD packet to send [10:10:25]OFD Sender: No OFD packet to send [10:10:30]OFD Sender: No OFD packet to send [10:10:35]OFD Sender: No OFD packet to send [10:10:40]OFD Sender: No OFD packet to send [10:10:41]recv_with_timeout no data received [10:10:45]OFD Sender: No OFD packet to send [10:10:50]OFD Sender: No OFD packet to send [10:10:55]recv_with_timeout no data received [10:10:55]OFD Sender: No OFD packet to send [10:11:00]OFD Sender: No OFD packet to send [10:11:05]OFD Sender: No OFD packet to send [10:11:10]OFD Sender: No OFD packet to send [10:11:15]OFD Sender: No OFD packet to send [10:11:20]OFD Sender: No OFD packet to send [10:11:25]OFD Sender: No OFD packet to send [10:11:30]OFD Sender: No OFD packet to send [10:11:32]recv_with_timeout no data received [10:11:36]OFD Sender: No OFD packet to send 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 7E 68 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [10:01:35]Write to MH i2c: E2 02 01 A0 01 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03[10:11:46]OFD Sender: No OFD packet to send [10:11:51]OFD Sender: No OFD packet to send [10:11:56]OFD Sender: No OFD packet to send [10:12:01]OFD Sender: No OFD packet to send [10:12:05]recv_with_timeout no data received [10:12:06]OFD Sender: No OFD packet to send [10:12:11]OFD Sender: No OFD packet to send [10:12:16]OFD Sender: No OFD packet to send [10:12:21]OFD Sender: No OFD packet to send [10:12:26]OFD Sender: No OFD packet to send [10:12:31]OFD Sender: No OFD packet to send [10:12:36]OFD Sender: No OFD packet to send [10:12:41]OFD Sender: No OFD packet to send [10:12:46]OFD Sender: No OFD packet to send [10:12:51]OFD Sender: No OFD packet to send [10:12:56]OFD Sender: No OFD packet to send [10:13:01]OFD Sender: No OFD packet to send [10:13:06]OFD Sender: No OFD packet to send [10:13:11]OFD Sender: No OFD packet to send [10:13:13]recv_with_timeout no data received [10:13:16]OFD Sender: No OFD packet to send [10:13:21]OFD Sender: No OFD packet to send [10:13:26]OFD Sender: No OFD packet to send [10:13:31]OFD Sender: No OFD packet to send [10:13:36]OFD Sender: No OFD packet to send [10:13:41]OFD Sender: No OFD packet to send [10:13:45]recv_with_timeout no data received [10:13:46]OFD Sender: No OFD packet to send [10:13:51]OFD Sender: No OFD packet to send [10:13:56]OFD Sender: No OFD packet to send [10:14:01]OFD Sender: No OFD packet to send [10:14:06]OFD Sender: No OFD packet to send [10:14:11]OFD Sender: No OFD packet to send [10:14:16]OFD Sender: No OFD packet to send [10:14:21]OFD Sender: No OFD packet to send [10:14:21]recv_with_timeout no data received [10:14:26]OFD Sender: No OFD packet to send [10:14:31]OFD Sender: No OFD packet to send [10:14:36]OFD Sender: No OFD packet to send [10:14:41]OFD Sender: No OFD packet to send [10:14:46]OFD Sender: No OFD packet to send [10:14:51]OFD Sender: No OFD packet to send [10:14:56]OFD Sender: No OFD packet to send [10:15:01]OFD Sender: No OFD packet to send [10:15:06]OFD Sender: No OFD packet to send [10:15:26]OFD Sender: No OFD packet to send [10:15:31]OFD Sender: No OFD packet to send [10:15:36]OFD Sender: No OFD packet to send [10:15:41]OFD Sender: No OFD packet to send [10:15:46]OFD Sender: No OFD packet to send [10:15:51]OFD Sender: No OFD packet to send [10:15:56]OFD Sender: No OFD packet to send [10:16:01]OFD Sender: No OFD packet to send [10:16:06]OFD Sender: No OFD packet to send [10:16:09]recv_with_timeout no data received [10:16:11]OFD Sender: No OFD packet to send [10:17:32]ConnectInit Can't connect to host [10:17:36]OFD Sender: No OFD packet to send [10:17:41]OFD Sender: No OFD packet to send [10:17:44]recv_with_timeout no data received [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:30]accept exits with 11 [10:18:30]New connection [10:18:30]New thread 3067448676 created [10:18:30]Thread 3067305316 joined [10:18:30]Waiting for new connection... [10:18:30] Sock 11.Parse request [10:18:30]Sock 11.Check first char [10:18:30]Sock 11.First char is OK [10:18:30]request: POST /json_proto HTTP/1.0 [10:18:30]Method: POST [10:18:30]URL: /json_proto [10:18:30]Method is POST - this is cgi request [10:18:30]url: /json_proto [10:18:30]query_string will be loaded in cgi processing [10:18:30]execute_cgi json_proto POST (null) [10:18:30]execute_cgi path=json_proto method=POST [10:18:30]POST find Content-Length [10:18:30]Host: 172.17.43.132:8080 [10:18:30]Content-Length: 630 [10:18:30]Content-Type: application/json [10:18:30] [10:18:30]POST finish read [10:18:30]Found Content-Length = 630 [10:18:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183881", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:18:30]execute_script... [10:18: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 : (3)183881", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:18:30]POST & json_proto [10:18:30]process_json_proto [10:18:30]json parsed OK: [10:18:30]protocol is kg_v1.0 [10:18:30]action value=close_receipt [10:18:30]process_action close_receipt [10:18:30]cmd_close_receipt [10:18:30]MH_GetDate [10:18:30]Write to MH i2c: F0 00 00 D8 01 C8 [10:18:30]Write i2c OK [10:18:30]MH_I2C_Read... [10:18:30]Read from MH i2c: F0 [10:18:30]MH_I2C_Read... [10:18:30]Read from MH i2c: F0 09 00 [10:18:30]MH_I2C_Read... [10:18:30]Read from MH i2c: F0 09 00 D8 01 00 77 6C A7 66 F8 53 A7 66 19 [10:18:30]GetLastDocTimeStamp 1722247294 [10:18:30]current date 1722248311 [10:18:30]FM_GetShiftState [10:18:30]SAM_PROTO_GetShiftState [10:18:30]wFMCommunicate request_size=4 [10:18:30]MH_SAM_APDU [10:18:30]CAPDU: 80 13 01 00 [10:18:30]Write to MH i2c: E2 08 00 D9 01 80 13 01 00 00 00 00 00 57 [10:18:30]Write i2c OK [10:18:30]MH_I2C_Read... [10:18:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:18:30]Read from MH i2c: E2 [10:18:30]MH_I2C_Read... [10:18:30]Read from MH i2c: E2 0E 00 [10:18:30]MH_I2C_Read... [10:18:30]Read from MH i2c: E2 0E 00 D9 01 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 F3 [10:18:30]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [10:18:30]wFMCommunicate OK [10:18:30]SAM_PROTO_GetShiftState done [10:18:30]FM_GetShiftState done [10:18:30]opened in 1722211496 [10:18:30]opened+sec_in_day 1722297896 [10:18:30]quantity*price = 5000 [10:18:30]sum+1 = 5001 [10:18:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 42 29.07.2024 10:18 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41853 ФПД: 234363305229127 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T101831&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41853&fm=234363305229127&tin=02508201610067®Number=0000000000092626&sum=5000 0 [10:18:31]StoreToDocumentArchive [10:18:31]shift 427 fd 41853 [10:18:31]save to /storage/0427/doc_00041853 [10:18:31]save last doc name /storage/0427/doc_00041853 to /storage/kkm_last_doc_name [10:18:31]save OK [10:18:31]Clear old archive folders... [10:18:31]ProcessDocumentItem done err = 0, tmpTLVsize=269 [10:18:31]tlvbuf is 0074CD10 [10:18:31]SAM_PROTO_ClearQueue [10:18:31]wFMCommunicate request_size=4 [10:18:31]MH_SAM_APDU [10:18:31]CAPDU: 80 09 00 00 [10:18:31]Write to MH i2c: E2 08 00 E6 01 80 09 00 00 00 00 00 00 59 [10:18:31]Write i2c OK [10:18:31]MH_I2C_Read... [10:18:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:18:31]Read from MH i2c: E2 [10:18:31]MH_I2C_Read... [10:18:31]Read from MH i2c: E2 03 00 [10:18:31]MH_I2C_Read... [10:18:31]Read from MH i2c: E2 03 00 E6 01 00 90 00 5B [10:18:31]RAPDU: 90 00 [10:18:31]wFMCommunicate OK [10:18:31]SAM_PROTO_ClearQueue done [10:18:31]KKMCreateOFDPacket [10:18:31]OFDProtocolAddRootSTLVToBuf [10:18:31]FM_MakeSignedData [10:18:31]FM_MakeSignedData [10:18:31]SAM_PROTO_SignData [10:18:31]wFMCommunicate request_size=4 [10:18:31]MH_SAM_APDU [10:18:31]CAPDU: 80 0D 01 02 [10:18:31]Write to MH i2c: E2 08 00 E7 01 80 0D 01 02 00 00 00 00 61 [10:18:31]Write i2c OK [10:18:31]MH_I2C_Read... [10:18:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:18:31]Read from MH i2c: E2 [10:18:31]MH_I2C_Read... [10:18:31]Read from MH i2c: E2 03 00 [10:18:31]MH_I2C_Read... [10:18:31]Read from MH i2c: E2 03 00 E7 01 00 90 00 5C [10:18:31]RAPDU: 90 00 [10:18:31]wFMCommunicate OK [10:18:31]wFMCommunicate request_size=255 [10:18:31]MH_SAM_APDU [10:18:31]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 77 6C A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [10:18:31]Write to MH i2c: E2 02 01 E8 01 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 77 6C A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 3E [10:18:31]Write i2c OK [10:18:31]MH_I2C_Read... [10:18:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:32]Read from MH i2c: E2 [10:18:32]MH_I2C_Read... [10:18:32]Read from MH i2c: E2 03 00 [10:18:32]MH_I2C_Read... [10:18:32]Read from MH i2c: E2 03 00 E8 01 00 90 00 5D [10:18:32]RAPDU: 90 00 [10:18:32]wFMCommunicate OK [10:18:32]wFMCommunicate request_size=28 [10:18:32]MH_SAM_APDU [10:18:32]CAPDU: 80 0D 02 02 17 37 34 39 35 38 10 04 04 00 7D A3 00 00 35 04 06 00 D5 26 F5 8E 7B 47 [10:18:32]Write to MH i2c: E2 1F 00 E9 01 80 0D 02 02 17 00 37 34 39 35 38 10 04 04 00 7D A3 00 00 35 04 06 00 D5 26 F5 8E 7B 47 00 00 5A [10:18:32]Write i2c OK [10:18:32]MH_I2C_Read... [10:18:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:32]Read from MH i2c: E2 [10:18:32]MH_I2C_Read... [10:18:32]Read from MH i2c: E2 03 00 [10:18:32]MH_I2C_Read... [10:18:32]Read from MH i2c: E2 03 00 E9 01 00 90 00 5E [10:18:32]RAPDU: 90 00 [10:18:32]wFMCommunicate OK [10:18:32]wFMCommunicate request_size=4 [10:18:32]MH_SAM_APDU [10:18:32]CAPDU: 80 0D 03 02 [10:18:32]Write to MH i2c: E2 08 00 EA 01 80 0D 03 02 00 00 00 00 66 [10:18:32]Write i2c OK [10:18:32]MH_I2C_Read... [10:18:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:18:32]Read from MH i2c: E2 [10:18:32]MH_I2C_Read... [10:18:32]Read from MH i2c: E2 0B 00 [10:18:32]MH_I2C_Read... [10:18:32]Read from MH i2c: E2 0B 00 EA 01 00 BF B2 C0 03 22 3F F1 BC 90 00 A9 [10:18:32]RAPDU: BF B2 C0 03 22 3F F1 BC 90 00 [10:18:32]wFMCommunicate OK [10:18:32]SAM_PROTO_SignData done [10:18:32]FM_MakeSignedData done [10:18:32]CreateOFDProtocolMessage [10:18:32]wFMCommunicate request_size=4 [10:18:32]MH_SAM_APDU [10:18:32]CAPDU: 80 11 00 00 [10:18:32]Write to MH i2c: E2 08 00 EB 01 80 11 00 00 00 00 00 00 66 [10:18:32]Write i2c OK [10:18:32]MH_I2C_Read... [10:18:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:18:32]Read from MH i2c: E2 [10:18:32]MH_I2C_Read... [10:18:32]Read from MH i2c: E2 17 00 [10:18:32]MH_I2C_Read... [10:18:32]Read from MH i2c: E2 17 00 EB 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 C2 [10:18:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [10:18:32]wFMCommunicate OK [10:18:32]CreateOFDProtocolMessage done [10:18:32]OFDSenderStorePacket 41853 [10:18:32]StoreOFDPacket docnum=41853 [10:18:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 21 01 00 00 D4 AC 19 01 02 27 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 77 6C A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 7D A3 00 00 35 04 06 00 D5 26 F5 8E 7B 47 BF B2 C0 03 22 3F F1 BC [10:18:32]CheckFolder [10:18:32]dirname=/storage/ofd_packets [10:18:32]CheckFolder done [10:18:32]ProducePacketName [10:18:32]name=ofd_packets/00041853 [10:18:32]NVStorageSaveData ofd_packets/00041853 [10:18:32]File name is /storage/ofd_packets/00041853 [10:18:32]Write 319 bytes [10:18:32]NVStorageSaveData done [10:18:32]OFDSenderStorePacket done [10:18:32]KKMCreateOFDPacket done [10:18:32]NVStorageSaveData kkm_last_timestamp [10:18:32]File name is /storage/kkm_last_timestamp [10:18:32]Write 4 bytes [10:18:32]NVStorageSaveData done [10:18:32]ExternCall_PrintAddStr [10:18:32]wPrintStart [10:18:32]Write to MH i2c: 01 00 00 EC 01 ED [10:18:32]Write i2c OK [10:18:32]MH_I2C_Read... [10:18:32]Read from MH i2c: 01 [10:18:32]MH_I2C_Read... [10:18:32]Read from MH i2c: 01 07 00 [10:18:32]MH_I2C_Read... [10:18:32]Read from MH i2c: 01 07 00 EC 01 00 00 00 00 00 FF 0F 02 [10:18:32]RasterBufferAndPrint [10:18:32]line Счет N : (3)183881 [10:18:32]line ИНН: 02508201610067 [10:18:32]line Контрольно-Кассовый Чек [10:18:32]line ПРОДАЖА [10:18:32]line Товар: 4700000160358 [10:18:32]line Вода Легенда 1л [10:18:32]line 1.000 * 50.00 [10:18:32]line = 50.00 [10:18:32]line НДС 12% НСП 1% [10:18:32]line > о реализуемом товаре [10:18:32]line ИТОГО: 50.00 [10:18:32]line НСП 1% : 0.44 [10:18:32]line НДС 12% : 5.31 [10:18:32]line Наличными: 50.00 [10:18:32]line Безнал.: 0.00 [10:18:32]line Место: АЗС № 97 "Партнер Нефть" [10:18:32]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [10:18:32]line СНО: Общий режим [10:18:32]line Чек 42 29.07.2024 10:18 [10:18:32]line Смена: 427 ФФД: 1.0 [10:18:32]line ЗНМ: 0300000053 [10:18:32]line РНМ: 0000000000092626 [10:18:32]line Версия ККМ: 001 [10:18:32]line ФМ: 0000000000874958 [10:18:32]line ФД: 41853 [10:18:32]line ФПД: 234363305229127 [10:18:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T101831&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41853&fm=234363305229127&tin=02508201610067®Number=0000000000092626&sum=5000 [10:18:32]OFD Sender: Processing packet 41853 [packets to send 57, broken 56] [10:18:32]ProducePacketName [10:18:32]name=ofd_packets/00041853 [10:18:32]OFD Sender: To server: pG, [10:18:32]CommunicateWithHost lk.salyk.kg:30040 [10:18:32]ConnectInit lk.salyk.kg [10:18:32]line 0 [10:18:32]written 0, free lines is 4095 [10:18:32]Write to MH i2c: 01 00 00 14 02 16 [10:18:32]Write i2c OK [10:18:32]MH_I2C_Read... [10:18:32]Read from MH i2c: 01 [10:18:32]MH_I2C_Read... [10:18:32]Read from MH i2c: 01 07 00 [10:18:32]MH_I2C_Read... [10:18:32]Read from MH i2c: 01 07 00 14 02 00 00 00 00 00 07 0D 31 [10:18:32]RasterBufferAndPrint [10:18:32]line [10:18:32]line [10:18:32]line [10:18:32]line [10:18:32]line [10:18:32]written 0, free lines is 3341 [10:18:32]MH_Cut [10:18:32]Write to MH i2c: D1 01 00 1B 02 01 EF [10:18:33]Write i2c OK [10:18:33]MH_I2C_Read... [10:18:33]Read from MH i2c: D1 [10:18:33]MH_I2C_Read... [10:18:33]Read from MH i2c: D1 01 00 [10:18:33]MH_I2C_Read... [10:18:33]Read from MH i2c: D1 01 00 1B 02 00 EE [10:18:33]Write to MH i2c: 01 00 00 1C 02 1E [10:18:33]Write i2c OK [10:18:33]MH_I2C_Read... [10:18:33]*** Cut start [10:18:33]*** Partial cut [10:18:33]*** CUTSNS_PIN = 1 [10:18:33]*** CUTSNS_PIN = 0 [10:18:34]*** Brake cut motor [10:18:34]Read from MH i2c: 01 [10:18:34]MH_I2C_Read... [10:18:34]*** Stop cut motor [10:18:34]*** Cut end [10:18:34]Read from MH i2c: 01 07 00 [10:18:34]MH_I2C_Read... [10:18:34]Read from MH i2c: 01 07 00 1C 02 00 00 00 00 00 FF 0F 33 [10:18:34]process_action close_receipt done [10:18:34]requested_data is exist [10:18:34]produce_requested_data [10:18:34]requested_item fm.sn is exist - process it [10:18:34]wFMCommunicate request_size=4 [10:18:34]MH_SAM_APDU [10:18:34]CAPDU: 80 11 00 00 [10:18:34]Write to MH i2c: E2 08 00 1D 02 80 11 00 00 00 00 00 00 99 [10:18:34]Write i2c OK [10:18:34]MH_I2C_Read... [10:18:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:18:34]Read from MH i2c: E2 [10:18:34]MH_I2C_Read... [10:18:34]Read from MH i2c: E2 17 00 [10:18:34]MH_I2C_Read... [10:18:34]Read from MH i2c: E2 17 00 1D 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 F5 [10:18:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [10:18:34]wFMCommunicate OK [10:18:34]requested_item fd.num is exist - process it [10:18:34]SAM_PROTO_GetFieldsCounters [10:18:34]wFMCommunicate request_size=4 [10:18:34]MH_SAM_APDU [10:18:34]CAPDU: 80 13 00 00 [10:18:34]Write to MH i2c: E2 08 00 1E 02 80 13 00 00 00 00 00 00 9C [10:18:34]Write i2c OK [10:18:34]MH_I2C_Read... [10:18:34]Connected sock=8 [10: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 35 38 21 01 00 00 D4 AC 19 01 02 27 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 77 6C A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 7D A3 00 00 35 04 06 00 D5 26 F5 8E 7B 47 BF B2 C0 03 22 3F F1 BC [10:18:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:18:34]Read from MH i2c: E2 [10:18:34]MH_I2C_Read... [10:18:34]Read from MH i2c: E2 62 00 [10:18:34]MH_I2C_Read... [10:18:34]Read from MH i2c: E2 62 00 1E 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 7D A3 00 00 0E 04 04 00 AB 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 10 [10:18: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 7D A3 00 00 0E 04 04 00 AB 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:18:34]wFMCommunicate OK [10:18:34]SAM_PROTO_GetFieldsCounters done [10:18:34]requested_item shift.num is exist - process it [10:18:34]requested_item shift.opened is exist - process it [10:18:34]req_shift_opened [10:18:34]FM_GetShiftState [10:18:34]SAM_PROTO_GetShiftState [10:18:34]wFMCommunicate request_size=4 [10:18:34]MH_SAM_APDU [10:18:34]CAPDU: 80 13 01 00 [10:18:34]Write to MH i2c: E2 08 00 1F 02 80 13 01 00 00 00 00 00 9E [10:18:34]Write i2c OK [10:18:34]MH_I2C_Read... [10:18:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:18:34]Read from MH i2c: E2 [10:18:34]MH_I2C_Read... [10:18:34]Read from MH i2c: E2 0E 00 [10:18:34]MH_I2C_Read... [10:18:34]Read from MH i2c: E2 0E 00 1F 02 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 3A [10:18:34]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [10:18:34]wFMCommunicate OK [10:18:34]SAM_PROTO_GetShiftState done [10:18:34]FM_GetShiftState done [10:18:34]req_shift_opened done [10:18:34]requested_item shift.open_date is exist - process it [10:18:34]req_shift_open_date [10:18:34]req_shift_open_date done [10:18:34]produce_requested_data done [10:18:34]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41853,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [10:18:34]process_action_free close_receipt [10:18:34]json_value_free [10:18:34]json_value_free done [10:18:34]process_json_proto returns [10:18:34]Send response to host [10:18:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41853,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [10:18:34]free response buf [10:18:34]execute_script done [10:18:34]execute_script returns [10:18:34]free content buf [10:18:34]Sock 11.Close socket [10:18:34]Sock 11.Thread stoped [10:18: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 35 38 4F 00 00 00 7A 73 47 00 CE 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 35 38 10 04 04 00 7D A3 00 00 F4 03 04 00 8E 18 A7 66 B6 04 01 00 00 AC 3F 8B D2 07 C2 E4 FB [10:18:35]CommunicateWithHost err = 0 [10:18:35]CheckOFDResponse [10:18:35]1017 (14) - 77093643461234 [10:18:35]1041 (16) - 0000000000874958 [10:18:35]1040 (4) - 41853 [10:18:35]1012 (4) - 29.07.2024 04:20 [10:18:35]1206 (1) - 0 [10:18:35]OFD Sender: Remove packet 41853 [10:18:35]ProducePacketName [10:18:35]name=ofd_packets/00041853 [10:18:35]NVStorageDeleteData [10:18:35]OFD Sender: No OFD packet to send [10:18:40]OFD Sender: No OFD packet to send [10:18:45]OFD Sender: No OFD packet to send [10:18:50]OFD Sender: No OFD packet to send [10:18:55]accept exits with 9 [10:18:55]New connection [10:18:55]New thread 3067305316 created [10:18:55]Thread 3067448676 joined [10:18:55]Waiting for new connection... [10:18:55] Sock 9.Parse request [10:18:55]Sock 9.Check first char [10:18:55]Sock 9.First char is OK [10:18:55]request: POST /json_proto HTTP/1.0 [10:18:55]Method: POST [10:18:55]URL: /json_proto [10:18:55]Method is POST - this is cgi request [10:18:55]url: /json_proto [10:18:55]query_string will be loaded in cgi processing [10:18:55]execute_cgi json_proto POST (null) [10:18:55]execute_cgi path=json_proto method=POST [10:18:55]POST find Content-Length [10:18:55]Host: 172.17.43.132:8080 [10:18:55]Content-Length: 655 [10:18:55]Content-Type: application/json [10:18:55] [10:18:55]POST finish read [10:18:55]Found Content-Length = 655 [10:18:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183882", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:18:55]execute_script... [10:18:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183882", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:18:55]POST & json_proto [10:18:55]process_json_proto [10:18:55]json parsed OK: [10:18:55]protocol is kg_v1.0 [10:18:55]action value=close_receipt [10:18:55]process_action close_receipt [10:18:55]cmd_close_receipt [10:18:55]MH_GetDate [10:18:55]Write to MH i2c: F0 00 00 20 02 11 [10:18:55]Write i2c OK [10:18:55]MH_I2C_Read... [10:18:55]Read from MH i2c: F0 [10:18:55]MH_I2C_Read... [10:18:55]Read from MH i2c: F0 09 00 [10:18:55]MH_I2C_Read... [10:18:55]Read from MH i2c: F0 09 00 20 02 00 90 6C A7 66 F8 53 A7 66 7B [10:18:55]GetLastDocTimeStamp 1722248311 [10:18:55]current date 1722248336 [10:18:55]FM_GetShiftState [10:18:55]SAM_PROTO_GetShiftState [10:18:55]wFMCommunicate request_size=4 [10:18:55]MH_SAM_APDU [10:18:55]CAPDU: 80 13 01 00 [10:18:55]Write to MH i2c: E2 08 00 21 02 80 13 01 00 00 00 00 00 A0 [10:18:55]Write i2c OK [10:18:55]MH_I2C_Read... [10:18:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:18:55]Read from MH i2c: E2 [10:18:55]MH_I2C_Read... [10:18:55]Read from MH i2c: E2 0E 00 [10:18:55]MH_I2C_Read... [10:18:55]Read from MH i2c: E2 0E 00 21 02 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 3C [10:18:55]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [10:18:55]wFMCommunicate OK [10:18:55]SAM_PROTO_GetShiftState done [10:18:55]FM_GetShiftState done [10:18:55]opened in 1722211496 [10:18:55]opened+sec_in_day 1722297896 [10:18:55]quantity*price = 8500 [10:18:55]sum+1 = 8501 [10:18:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 85.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 43 29.07.2024 10:18 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41854 ФПД: 214729661409928 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T101856&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41854&fm=214729661409928&tin=02508201610067®Number=0000000000092626&sum=8500 0 [10:18:56]StoreToDocumentArchive [10:18:56]shift 427 fd 41854 [10:18:56]save to /storage/0427/doc_00041854 [10:18:56]save last doc name /storage/0427/doc_00041854 to /storage/kkm_last_doc_name [10:18:56]save OK [10:18:56]Clear old archive folders... [10:18:56]ProcessDocumentItem done err = 0, tmpTLVsize=294 [10:18:56]tlvbuf is 0075DFB0 [10:18:56]SAM_PROTO_ClearQueue [10:18:56]wFMCommunicate request_size=4 [10:18:56]MH_SAM_APDU [10:18:56]CAPDU: 80 09 00 00 [10:18:56]Write to MH i2c: E2 08 00 2E 02 80 09 00 00 00 00 00 00 A2 [10:18:56]Write i2c OK [10:18:56]MH_I2C_Read... [10:18:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:18:56]Read from MH i2c: E2 [10:18:56]MH_I2C_Read... [10:18:56]Read from MH i2c: E2 03 00 [10:18:56]MH_I2C_Read... [10:18:56]Read from MH i2c: E2 03 00 2E 02 00 90 00 A4 [10:18:56]RAPDU: 90 00 [10:18:56]wFMCommunicate OK [10:18:56]SAM_PROTO_ClearQueue done [10:18:56]KKMCreateOFDPacket [10:18:56]OFDProtocolAddRootSTLVToBuf [10:18:56]FM_MakeSignedData [10:18:56]FM_MakeSignedData [10:18:56]SAM_PROTO_SignData [10:18:56]wFMCommunicate request_size=4 [10:18:56]MH_SAM_APDU [10:18:56]CAPDU: 80 0D 01 02 [10:18:56]Write to MH i2c: E2 08 00 2F 02 80 0D 01 02 00 00 00 00 AA [10:18:56]Write i2c OK [10:18:56]MH_I2C_Read... [10:18:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:18:56]Read from MH i2c: E2 [10:18:56]MH_I2C_Read... [10:18:56]Read from MH i2c: E2 03 00 [10:18:56]MH_I2C_Read... [10:18:56]Read from MH i2c: E2 03 00 2F 02 00 90 00 A5 [10:18:56]RAPDU: 90 00 [10:18:56]wFMCommunicate OK [10:18:56]wFMCommunicate request_size=255 [10:18:56]MH_SAM_APDU [10:18:56]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 90 6C A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [10:18:56]Write to MH i2c: E2 02 01 30 02 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 90 6C A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 6E [10:18:56]Write i2c OK [10:18:56]MH_I2C_Read... [10:18:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:57]Read from MH i2c: E2 [10:18:57]MH_I2C_Read... [10:18:57]Read from MH i2c: E2 03 00 [10:18:57]MH_I2C_Read... [10:18:57]Read from MH i2c: E2 03 00 30 02 00 90 00 A6 [10:18:57]RAPDU: 90 00 [10:18:57]wFMCommunicate OK [10:18:57]wFMCommunicate request_size=53 [10:18:57]MH_SAM_APDU [10:18:57]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 7E A3 00 00 35 04 06 00 C3 4B A5 30 EA 88 [10:18:57]Write to MH i2c: E2 38 00 31 02 80 0D 02 02 30 00 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 7E A3 00 00 35 04 06 00 C3 4B A5 30 EA 88 00 00 21 [10:18:57]Write i2c OK [10:18:57]MH_I2C_Read... [10:18:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:57]Read from MH i2c: E2 [10:18:57]MH_I2C_Read... [10:18:57]Read from MH i2c: E2 03 00 [10:18:57]MH_I2C_Read... [10:18:57]Read from MH i2c: E2 03 00 31 02 00 90 00 A7 [10:18:57]RAPDU: 90 00 [10:18:57]wFMCommunicate OK [10:18:57]wFMCommunicate request_size=4 [10:18:57]MH_SAM_APDU [10:18:57]CAPDU: 80 0D 03 02 [10:18:57]Write to MH i2c: E2 08 00 32 02 80 0D 03 02 00 00 00 00 AF [10:18:57]Write i2c OK [10:18:57]MH_I2C_Read... [10:18:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:18:57]Read from MH i2c: E2 [10:18:57]MH_I2C_Read... [10:18:57]Read from MH i2c: E2 0B 00 [10:18:57]MH_I2C_Read... [10:18:57]Read from MH i2c: E2 0B 00 32 02 00 C7 8D 01 51 62 4C 3E 88 90 00 CA [10:18:57]RAPDU: C7 8D 01 51 62 4C 3E 88 90 00 [10:18:57]wFMCommunicate OK [10:18:57]SAM_PROTO_SignData done [10:18:57]FM_MakeSignedData done [10:18:57]CreateOFDProtocolMessage [10:18:57]wFMCommunicate request_size=4 [10:18:57]MH_SAM_APDU [10:18:57]CAPDU: 80 11 00 00 [10:18:57]Write to MH i2c: E2 08 00 33 02 80 11 00 00 00 00 00 00 AF [10:18:57]Write i2c OK [10:18:57]MH_I2C_Read... [10:18:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:18:57]Read from MH i2c: E2 [10:18:57]MH_I2C_Read... [10:18:57]Read from MH i2c: E2 17 00 [10:18:57]MH_I2C_Read... [10:18:57]Read from MH i2c: E2 17 00 33 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 0B [10:18:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [10:18:57]wFMCommunicate OK [10:18:57]CreateOFDProtocolMessage done [10:18:57]OFDSenderStorePacket 41854 [10:18:57]StoreOFDPacket docnum=41854 [10:18:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 3A 01 00 00 4F 07 32 01 F2 36 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 90 6C A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 7E A3 00 00 35 04 06 00 C3 4B A5 30 EA 88 C7 8D 01 51 62 4C 3E 88 [10:18:57]CheckFolder [10:18:57]dirname=/storage/ofd_packets [10:18:57]CheckFolder done [10:18:57]ProducePacketName [10:18:57]name=ofd_packets/00041854 [10:18:57]NVStorageSaveData ofd_packets/00041854 [10:18:57]File name is /storage/ofd_packets/00041854 [10:18:57]Write 344 bytes [10:18:57]NVStorageSaveData done [10:18:57]OFDSenderStorePacket done [10:18:57]KKMCreateOFDPacket done [10:18:57]NVStorageSaveData kkm_last_timestamp [10:18:57]File name is /storage/kkm_last_timestamp [10:18:57]Write 4 bytes [10:18:57]NVStorageSaveData done [10:18:57]ExternCall_PrintAddStr [10:18:57]wPrintStart [10:18:57]Write to MH i2c: 01 00 00 34 02 36 [10:18:57]Write i2c OK [10:18:57]MH_I2C_Read... [10:18:57]Read from MH i2c: 01 [10:18:57]MH_I2C_Read... [10:18:57]Read from MH i2c: 01 07 00 [10:18:57]MH_I2C_Read... [10:18:57]Read from MH i2c: 01 07 00 34 02 00 00 00 00 00 FF 0F 4B [10:18:57]RasterBufferAndPrint [10:18:57]line Счет N : (3)183882 [10:18:57]line ИНН: 02508201610067 [10:18:57]line Контрольно-Кассовый Чек [10:18:57]line ПРОДАЖА [10:18:57]line Товар: 4600682557456 [10:18:57]line Напиток FLash up energy эн ж/б 0,5/0,45л [10:18:57]line 1.000 * 85.00 [10:18:57]line = 85.00 [10:18:57]line НДС 12% НСП 1% [10:18:57]line > о реализуемом товаре [10:18:57]line ИТОГО: 85.00 [10:18:57]line НСП 1% : 0.75 [10:18:57]line НДС 12% : 9.03 [10:18:57]line Наличными: 85.00 [10:18:57]line Безнал.: 0.00 [10:18:57]line Место: АЗС № 97 "Партнер Нефть" [10:18:57]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [10:18:57]line СНО: Общий режим [10:18:57]line Чек 43 29.07.2024 10:18 [10:18:57]line Смена: 427 ФФД: 1.0 [10:18:57]line ЗНМ: 0300000053 [10:18:57]line РНМ: 0000000000092626 [10:18:57]line Версия ККМ: 001 [10:18:57]line ФМ: 0000000000874958 [10:18:57]line ФД: 41854 [10:18:57]line ФПД: 214729661409928 [10:18:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T101856&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41854&fm=214729661409928&tin=02508201610067®Number=0000000000092626&sum=8500 [10:18:57]OFD Sender: Processing packet 41854 [packets to send 57, broken 56] [10:18:57]ProducePacketName [10:18:57]name=ofd_packets/00041854 [10:18:57]OFD Sender: To server: pG, [10:18:57]CommunicateWithHost lk.salyk.kg:30040 [10:18:57]ConnectInit lk.salyk.kg [10:18:57]line 0 [10:18:57]written 0, free lines is 4095 [10:18:58]Connected sock=8 [10:18: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 35 38 3A 01 00 00 4F 07 32 01 F2 36 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 90 6C A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 7E A3 00 00 35 04 06 00 C3 4B A5 30 EA 88 C7 8D 01 51 62 4C 3E 88 [10:18:58]Write to MH i2c: 01 00 00 5D 02 5F [10:18:58]Write i2c OK [10:18:58]MH_I2C_Read... [10:18:58]Read from MH i2c: 01 [10:18:58]MH_I2C_Read... [10:18:58]Read from MH i2c: 01 07 00 [10:18:58]MH_I2C_Read... [10:18:58]Read from MH i2c: 01 07 00 5D 02 00 00 00 00 00 0F 0D 82 [10:18:58]RasterBufferAndPrint [10:18:58]line [10:18:58]line [10:18:58]line [10:18:58]line [10:18:58]line [10:18:58]written 0, free lines is 3349 [10:18:58]MH_Cut [10:18:58]Write to MH i2c: D1 01 00 64 02 01 38 [10:18:58]Write i2c OK [10:18:58]MH_I2C_Read... [10:18:58]Read from MH i2c: D1 [10:18:58]MH_I2C_Read... [10:18:58]Read from MH i2c: D1 01 00 [10:18:58]MH_I2C_Read... [10:18:58]Read from MH i2c: D1 01 00 64 02 00 37 [10:18:58]Write to MH i2c: 01 00 00 65 02 67 [10:18:58]Write i2c OK [10:18:58]MH_I2C_Read... [10:18: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 35 38 4F 00 00 00 6D 5E 47 00 77 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 35 38 10 04 04 00 7E A3 00 00 F4 03 04 00 A5 18 A7 66 B6 04 01 00 00 DE CD 47 63 0A B6 73 39 [10:18:58]CommunicateWithHost err = 0 [10:18:58]CheckOFDResponse [10:18:58]1017 (14) - 77093643461234 [10:18:58]1041 (16) - 0000000000874958 [10:18:58]1040 (4) - 41854 [10:18:58]1012 (4) - 29.07.2024 04:20 [10:18:58]1206 (1) - 0 [10:18:58]OFD Sender: Remove packet 41854 [10:18:58]ProducePacketName [10:18:58]name=ofd_packets/00041854 [10:18:58]NVStorageDeleteData [10:18:58]*** Cut start [10:18:58]*** Partial cut [10:18:58]*** CUTSNS_PIN = 1 [10:18:58]*** CUTSNS_PIN = 0 [10:18:59]*** Brake cut motor [10:18:59]OFD Sender: No OFD packet to send [10:18:59]Read from MH i2c: 01 [10:18:59]MH_I2C_Read... [10:18:59]*** Stop cut motor [10:18:59]*** Cut end [10:18:59]Read from MH i2c: 01 07 00 [10:18:59]MH_I2C_Read... [10:18:59]Read from MH i2c: 01 07 00 65 02 00 00 00 00 00 FF 0F 7C [10:18:59]process_action close_receipt done [10:18:59]requested_data is exist [10:18:59]produce_requested_data [10:18:59]requested_item fm.sn is exist - process it [10:18:59]wFMCommunicate request_size=4 [10:18:59]MH_SAM_APDU [10:18:59]CAPDU: 80 11 00 00 [10:18:59]Write to MH i2c: E2 08 00 66 02 80 11 00 00 00 00 00 00 E2 [10:18:59]Write i2c OK [10:18:59]MH_I2C_Read... [10:18:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:18:59]Read from MH i2c: E2 [10:18:59]MH_I2C_Read... [10:18:59]Read from MH i2c: E2 17 00 [10:18:59]MH_I2C_Read... [10:18:59]Read from MH i2c: E2 17 00 66 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 3E [10:18:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [10:18:59]wFMCommunicate OK [10:18:59]requested_item fd.num is exist - process it [10:18:59]SAM_PROTO_GetFieldsCounters [10:18:59]wFMCommunicate request_size=4 [10:18:59]MH_SAM_APDU [10:18:59]CAPDU: 80 13 00 00 [10:18:59]Write to MH i2c: E2 08 00 67 02 80 13 00 00 00 00 00 00 E5 [10:18:59]Write i2c OK [10:18:59]MH_I2C_Read... [10:18:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:18:59]Read from MH i2c: E2 [10:18:59]MH_I2C_Read... [10:18:59]Read from MH i2c: E2 62 00 [10:18:59]MH_I2C_Read... [10:18:59]Read from MH i2c: E2 62 00 67 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 7E A3 00 00 0E 04 04 00 AB 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 5D [10:18: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 7E A3 00 00 0E 04 04 00 AB 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:18:59]wFMCommunicate OK [10:18:59]SAM_PROTO_GetFieldsCounters done [10:18:59]requested_item shift.num is exist - process it [10:18:59]requested_item shift.opened is exist - process it [10:18:59]req_shift_opened [10:18:59]FM_GetShiftState [10:18:59]SAM_PROTO_GetShiftState [10:18:59]wFMCommunicate request_size=4 [10:18:59]MH_SAM_APDU [10:18:59]CAPDU: 80 13 01 00 [10:18:59]Write to MH i2c: E2 08 00 68 02 80 13 01 00 00 00 00 00 E7 [10:18:59]Write i2c OK [10:18:59]MH_I2C_Read... [10:18:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:18:59]Read from MH i2c: E2 [10:18:59]MH_I2C_Read... [10:18:59]Read from MH i2c: E2 0E 00 [10:18:59]MH_I2C_Read... [10:18:59]Read from MH i2c: E2 0E 00 68 02 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 83 [10:18:59]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [10:18:59]wFMCommunicate OK [10:18:59]SAM_PROTO_GetShiftState done [10:18:59]FM_GetShiftState done [10:18:59]req_shift_opened done [10:18:59]requested_item shift.open_date is exist - process it [10:18:59]req_shift_open_date [10:18:59]req_shift_open_date done [10:18:59]produce_requested_data done [10:18:59]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41854,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [10:18:59]process_action_free close_receipt [10:18:59]json_value_free [10:18:59]json_value_free done [10:18:59]process_json_proto returns [10:18:59]Send response to host [10:18:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41854,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [10:18:59]free response buf [10:18:59]execute_script done [10:18:59]execute_script returns [10:18:59]free content buf [10:18:59]Sock 9.Close socket [10:18:59]Sock 9.Thread stoped [10:19:04]OFD Sender: No OFD packet to send [10:19:09]OFD Sender: No OFD packet to send [10:19:14]OFD Sender: No OFD packet to send [10:19:19]OFD Sender: No OFD packet to send [10:19:19]recv_with_timeout no data received [10:19:24]OFD Sender: No OFD packet to send [10:19:29]OFD Sender: No OFD packet to send [10:19:32]recv_with_timeout no data received [10:19:34]OFD Sender: No OFD packet to send [10:19:39]OFD Sender: No OFD packet to send [10:19:44]OFD Sender: No OFD packet to send [10:19:49]OFD Sender: No OFD packet to send [10:19:54]OFD Sender: No OFD packet to send [10:19:59]OFD Sender: No OFD packet to send [10:20:04]OFD Sender: No OFD packet to send [10:20:07]recv_with_timeout no data received [10:20:09]OFD Sender: No OFD packet to send [10:20:14]OFD Sender: No OFD packet to send [10:20:19]OFD Sender: No OFD packet to send [10:20:21]accept exits with 10 [10:20:21]New connection [10:20:21]New thread 3067448676 created [10:20:21]Thread 3067305316 joined [10:20:21]Waiting for new connection... [10:20:21] Sock 10.Parse request [10:20:21]Sock 10.Check first char [10:20:21]Sock 10.First char is OK [10:20:21]request: POST /json_proto HTTP/1.0 [10:20:21]Method: POST [10:20:21]URL: /json_proto [10:20:21]Method is POST - this is cgi request [10:20:21]url: /json_proto [10:20:21]query_string will be loaded in cgi processing [10:20:21]execute_cgi json_proto POST (null) [10:20:21]execute_cgi path=json_proto method=POST [10:20:21]POST find Content-Length [10:20:21]Host: 172.17.43.132:8080 [10:20:21]Content-Length: 732 [10:20:21]Content-Type: application/json [10:20:21] [10:20:21]POST finish read [10:20:21]Found Content-Length = 732 [10:20:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183883", "tax_sys" : 0, "items" : [ { "code": "47000405990016", "name": "\u0423\u0433\u043E\u043B\u044C \u0434\u0440\u0435\u0432\u0435\u0441\u043D\u044B\u0439 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C 3\u043A\u0433", "price" : 395.00, "quantity" : 1.000, "sum" : 395.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 395.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:20:21]execute_script... [10:20: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 : (3)183883", "tax_sys" : 0, "items" : [ { "code": "47000405990016", "name": "\u0423\u0433\u043E\u043B\u044C \u0434\u0440\u0435\u0432\u0435\u0441\u043D\u044B\u0439 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C 3\u043A\u0433", "price" : 395.00, "quantity" : 1.000, "sum" : 395.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 395.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:20:21]POST & json_proto [10:20:21]process_json_proto [10:20:21]json parsed OK: [10:20:21]protocol is kg_v1.0 [10:20:21]action value=close_receipt [10:20:21]process_action close_receipt [10:20:21]cmd_close_receipt [10:20:21]MH_GetDate [10:20:21]Write to MH i2c: F0 00 00 69 02 5A [10:20:21]Write i2c OK [10:20:21]MH_I2C_Read... [10:20:21]Read from MH i2c: F0 [10:20:21]MH_I2C_Read... [10:20:21]Read from MH i2c: F0 09 00 [10:20:21]MH_I2C_Read... [10:20:21]Read from MH i2c: F0 09 00 69 02 00 E5 6C A7 66 F8 53 A7 66 19 [10:20:21]GetLastDocTimeStamp 1722248336 [10:20:21]current date 1722248421 [10:20:21]FM_GetShiftState [10:20:21]SAM_PROTO_GetShiftState [10:20:21]wFMCommunicate request_size=4 [10:20:21]MH_SAM_APDU [10:20:21]CAPDU: 80 13 01 00 [10:20:21]Write to MH i2c: E2 08 00 6A 02 80 13 01 00 00 00 00 00 E9 [10:20:21]Write i2c OK [10:20:21]MH_I2C_Read... [10:20:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:21]Read from MH i2c: E2 [10:20:21]MH_I2C_Read... [10:20:21]Read from MH i2c: E2 0E 00 [10:20:21]MH_I2C_Read... [10:20:21]Read from MH i2c: E2 0E 00 6A 02 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 85 [10:20:21]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [10:20:21]wFMCommunicate OK [10:20:21]SAM_PROTO_GetShiftState done [10:20:21]FM_GetShiftState done [10:20:21]opened in 1722211496 [10:20:21]opened+sec_in_day 1722297896 [10:20:21]quantity*price = 39500 [10:20:21]sum+1 = 39501 [10:20:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 395.00 НСП 1% : 3.50 НДС 12% : 41.95 Наличными: 395.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 44 29.07.2024 10:20 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41855 ФПД: 79235581277186 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T102021&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41855&fm=79235581277186&tin=02508201610067®Number=0000000000092626&sum=39500 0 [10:20:22]StoreToDocumentArchive [10:20:22]shift 427 fd 41855 [10:20:22]save to /storage/0427/doc_00041855 [10:20:22]save last doc name /storage/0427/doc_00041855 to /storage/kkm_last_doc_name [10:20:22]save OK [10:20:22]Clear old archive folders... [10:20:22]ProcessDocumentItem done err = 0, tmpTLVsize=304 [10:20:22]tlvbuf is 006CBF50 [10:20:22]SAM_PROTO_ClearQueue [10:20:22]wFMCommunicate request_size=4 [10:20:22]MH_SAM_APDU [10:20:22]CAPDU: 80 09 00 00 [10:20:22]Write to MH i2c: E2 08 00 77 02 80 09 00 00 00 00 00 00 EB [10:20:22]Write i2c OK [10:20:22]MH_I2C_Read... [10:20:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:20:22]Read from MH i2c: E2 [10:20:22]MH_I2C_Read... [10:20:22]Read from MH i2c: E2 03 00 [10:20:22]MH_I2C_Read... [10:20:22]Read from MH i2c: E2 03 00 77 02 00 90 00 ED [10:20:22]RAPDU: 90 00 [10:20:22]wFMCommunicate OK [10:20:22]SAM_PROTO_ClearQueue done [10:20:22]KKMCreateOFDPacket [10:20:22]OFDProtocolAddRootSTLVToBuf [10:20:22]FM_MakeSignedData [10:20:22]FM_MakeSignedData [10:20:22]SAM_PROTO_SignData [10:20:22]wFMCommunicate request_size=4 [10:20:22]MH_SAM_APDU [10:20:22]CAPDU: 80 0D 01 02 [10:20:22]Write to MH i2c: E2 08 00 78 02 80 0D 01 02 00 00 00 00 F3 [10:20:22]Write i2c OK [10:20:22]MH_I2C_Read... [10:20:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:20:22]Read from MH i2c: E2 [10:20:22]MH_I2C_Read... [10:20:22]Read from MH i2c: E2 03 00 [10:20:22]MH_I2C_Read... [10:20:22]Read from MH i2c: E2 03 00 78 02 00 90 00 EE [10:20:22]RAPDU: 90 00 [10:20:22]wFMCommunicate OK [10:20:22]wFMCommunicate request_size=255 [10:20:22]MH_SAM_APDU [10:20:22]CAPDU: 80 0D 02 02 FA 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0E 00 34 37 30 30 30 34 30 35 39 39 30 30 31 36 06 04 3D 00 D0 A3 D0 B3 D0 BE D0 BB D1 8C 20 D0 B4 D1 80 D0 B5 D0 B2 D0 B5 D1 81 D0 BD D1 8B D0 B9 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 20 33 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 9A 00 00 00 00 13 04 06 00 4C 9A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 9A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 10 00 00 00 00 07 04 06 00 4C 9A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 E5 6C A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 [10:20:22]Write to MH i2c: E2 02 01 79 02 80 0D 02 02 FA 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0E 00 34 37 30 30 30 34 30 35 39 39 30 30 31 36 06 04 3D 00 D0 A3 D0 B3 D0 BE D0 BB D1 8C 20 D0 B4 D1 80 D0 B5 D0 B2 D0 B5 D1 81 D0 BD D1 8B D0 B9 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 20 33 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 9A 00 00 00 00 13 04 06 00 4C 9A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 9A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 10 00 00 00 00 07 04 06 00 4C 9A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 E5 6C A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 00 00 EF [10:20:22]Write i2c OK [10:20:22]MH_I2C_Read... [10:20:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:22]Read from MH i2c: E2 [10:20:22]MH_I2C_Read... [10:20:22]Read from MH i2c: E2 03 00 [10:20:22]MH_I2C_Read... [10:20:22]Read from MH i2c: E2 03 00 79 02 00 90 00 EF [10:20:22]RAPDU: 90 00 [10:20:22]wFMCommunicate OK [10:20:22]wFMCommunicate request_size=63 [10:20:22]MH_SAM_APDU [10:20:22]CAPDU: 80 0D 02 02 3A 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 7F A3 00 00 35 04 06 00 48 10 78 AC F4 02 [10:20:22]Write to MH i2c: E2 42 00 7A 02 80 0D 02 02 3A 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 7F A3 00 00 35 04 06 00 48 10 78 AC F4 02 00 00 DD [10:20:22]Write i2c OK [10:20:22]MH_I2C_Read... [10:20:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:22]Read from MH i2c: E2 [10:20:22]MH_I2C_Read... [10:20:22]Read from MH i2c: E2 03 00 [10:20:22]MH_I2C_Read... [10:20:22]Read from MH i2c: E2 03 00 7A 02 00 90 00 F0 [10:20:22]RAPDU: 90 00 [10:20:22]wFMCommunicate OK [10:20:22]wFMCommunicate request_size=4 [10:20:22]MH_SAM_APDU [10:20:22]CAPDU: 80 0D 03 02 [10:20:22]Write to MH i2c: E2 08 00 7B 02 80 0D 03 02 00 00 00 00 F8 [10:20:22]Write i2c OK [10:20:22]MH_I2C_Read... [10:20:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:20:22]Read from MH i2c: E2 [10:20:22]MH_I2C_Read... [10:20:22]Read from MH i2c: E2 0B 00 [10:20:22]MH_I2C_Read... [10:20:22]Read from MH i2c: E2 0B 00 7B 02 00 B2 BF 19 9C B4 91 9B 1F 90 00 1E [10:20:22]RAPDU: B2 BF 19 9C B4 91 9B 1F 90 00 [10:20:22]wFMCommunicate OK [10:20:22]SAM_PROTO_SignData done [10:20:22]FM_MakeSignedData done [10:20:22]CreateOFDProtocolMessage [10:20:22]wFMCommunicate request_size=4 [10:20:22]MH_SAM_APDU [10:20:22]CAPDU: 80 11 00 00 [10:20:22]Write to MH i2c: E2 08 00 7C 02 80 11 00 00 00 00 00 00 F8 [10:20:22]Write i2c OK [10:20:22]MH_I2C_Read... [10:20:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:22]Read from MH i2c: E2 [10:20:22]MH_I2C_Read... [10:20:22]Read from MH i2c: E2 17 00 [10:20:22]MH_I2C_Read... [10:20:22]Read from MH i2c: E2 17 00 7C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 54 [10:20:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [10:20:22]wFMCommunicate OK [10:20:22]CreateOFDProtocolMessage done [10:20:22]OFDSenderStorePacket 41855 [10:20:22]StoreOFDPacket docnum=41855 [10:20:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 44 01 00 00 F1 9B 3C 01 D9 23 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0E 00 34 37 30 30 30 34 30 35 39 39 30 30 31 36 06 04 3D 00 D0 A3 D0 B3 D0 BE D0 BB D1 8C 20 D0 B4 D1 80 D0 B5 D0 B2 D0 B5 D1 81 D0 BD D1 8B D0 B9 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 20 33 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 9A 00 00 00 00 13 04 06 00 4C 9A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 9A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 10 00 00 00 00 07 04 06 00 4C 9A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 E5 6C A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 7F A3 00 00 35 04 06 00 48 10 78 AC F4 02 B2 BF 19 9C B4 91 9B 1F [10:20:22]CheckFolder [10:20:22]dirname=/storage/ofd_packets [10:20:22]CheckFolder done [10:20:22]ProducePacketName [10:20:22]name=ofd_packets/00041855 [10:20:22]NVStorageSaveData ofd_packets/00041855 [10:20:22]File name is /storage/ofd_packets/00041855 [10:20:22]Write 354 bytes [10:20:22]NVStorageSaveData done [10:20:22]OFDSenderStorePacket done [10:20:22]KKMCreateOFDPacket done [10:20:22]NVStorageSaveData kkm_last_timestamp [10:20:22]File name is /storage/kkm_last_timestamp [10:20:22]Write 4 bytes [10:20:22]NVStorageSaveData done [10:20:22]ExternCall_PrintAddStr [10:20:22]wPrintStart [10:20:22]Write to MH i2c: 01 00 00 7D 02 7F [10:20:22]Write i2c OK [10:20:22]MH_I2C_Read... [10:20:22]Read from MH i2c: 01 [10:20:22]MH_I2C_Read... [10:20:22]Read from MH i2c: 01 07 00 [10:20:22]MH_I2C_Read... [10:20:22]Read from MH i2c: 01 07 00 7D 02 00 00 00 00 00 FF 0F 94 [10:20:22]RasterBufferAndPrint [10:20:22]line Счет N : (3)183883 [10:20:22]line ИНН: 02508201610067 [10:20:22]line Контрольно-Кассовый Чек [10:20:22]line ПРОДАЖА [10:20:22]line Товар: 47000405990016 [10:20:22]line Уголь древесный Партнер Нефть 3кг [10:20:22]line 1.000 * 395.00 [10:20:22]line = 395.00 [10:20:22]line НДС 12% НСП 1% [10:20:22]line > о реализуемом товаре [10:20:22]line ИТОГО: 395.00 [10:20:22]line НСП 1% : 3.50 [10:20:22]line НДС 12% : 41.95 [10:20:22]line Наличными: 395.00 [10:20:22]line Безнал.: 0.00 [10:20:22]line Место: АЗС № 97 "Партнер Нефть" [10:20:22]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [10:20:22]line СНО: Общий режим [10:20:22]line Чек 44 29.07.2024 10:20 [10:20:22]line Смена: 427 ФФД: 1.0 [10:20:22]line ЗНМ: 0300000053 [10:20:22]line РНМ: 0000000000092626 [10:20:22]line Версия ККМ: 001 [10:20:22]line ФМ: 0000000000874958 [10:20:22]line ФД: 41855 [10:20:22]line ФПД: 79235581277186 [10:20:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T102021&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41855&fm=79235581277186&tin=02508201610067®Number=0000000000092626&sum=39500 [10:20:23]line 0 [10:20:23]OFD Sender: Processing packet 41855 [packets to send 57, broken 56] [10:20:23]ProducePacketName [10:20:23]name=ofd_packets/00041855 [10:20:23]OFD Sender: To server: pG, [10:20:23]CommunicateWithHost lk.salyk.kg:30040 [10:20:23]ConnectInit lk.salyk.kg [10:20:23]written 0, free lines is 4095 [10:20:23]Write to MH i2c: 01 00 00 A6 02 A8 [10:20:23]Write i2c OK [10:20:23]MH_I2C_Read... [10:20:23]Read from MH i2c: 01 [10:20:23]MH_I2C_Read... [10:20:23]Read from MH i2c: 01 07 00 [10:20:23]MH_I2C_Read... [10:20:23]Read from MH i2c: 01 07 00 A6 02 00 00 00 00 00 01 0D BD [10:20:23]RasterBufferAndPrint [10:20:23]line [10:20:23]line [10:20:23]line [10:20:23]line [10:20:23]line [10:20:23]written 0, free lines is 3335 [10:20:23]MH_Cut [10:20:23]Write to MH i2c: D1 01 00 AD 02 01 81 [10:20:23]Write i2c OK [10:20:23]MH_I2C_Read... [10:20:23]Read from MH i2c: D1 [10:20:23]MH_I2C_Read... [10:20:23]Read from MH i2c: D1 01 00 [10:20:23]MH_I2C_Read... [10:20:23]Read from MH i2c: D1 01 00 AD 02 00 80 [10:20:23]Write to MH i2c: 01 00 00 AE 02 B0 [10:20:23]Write i2c OK [10:20:23]MH_I2C_Read... [10:20:23]Connected sock=9 [10:20: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 35 38 44 01 00 00 F1 9B 3C 01 D9 23 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0E 00 34 37 30 30 30 34 30 35 39 39 30 30 31 36 06 04 3D 00 D0 A3 D0 B3 D0 BE D0 BB D1 8C 20 D0 B4 D1 80 D0 B5 D0 B2 D0 B5 D1 81 D0 BD D1 8B D0 B9 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 20 33 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 9A 00 00 00 00 13 04 06 00 4C 9A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 9A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 10 00 00 00 00 07 04 06 00 4C 9A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 E5 6C A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 7F A3 00 00 35 04 06 00 48 10 78 AC F4 02 B2 BF 19 9C B4 91 9B 1F [10:20:24]*** Cut start [10:20:24]*** Partial cut [10:20:24]*** CUTSNS_PIN = 1 [10:20:24]*** CUTSNS_PIN = 0 [10:20:24]*** Brake cut motor [10:20: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 35 38 4F 00 00 00 35 6C 47 00 24 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 35 38 10 04 04 00 7F A3 00 00 F4 03 04 00 FB 18 A7 66 B6 04 01 00 00 90 0C C2 8C 1F BF 82 E8 [10:20:24]CommunicateWithHost err = 0 [10:20:24]CheckOFDResponse [10:20:24]1017 (14) - 77093643461234 [10:20:24]1041 (16) - 0000000000874958 [10:20:24]1040 (4) - 41855 [10:20:24]1012 (4) - 29.07.2024 04:22 [10:20:24]1206 (1) - 0 [10:20:24]OFD Sender: Remove packet 41855 [10:20:24]ProducePacketName [10:20:24]name=ofd_packets/00041855 [10:20:24]NVStorageDeleteData [10:20:24]Read from MH i2c: 01 [10:20:24]MH_I2C_Read... [10:20:24]*** Stop cut motor [10:20:24]*** Cut end [10:20:24]Read from MH i2c: 01 07 00 [10:20:24]MH_I2C_Read... [10:20:24]Read from MH i2c: 01 07 00 AE 02 00 00 00 00 00 FF 0F C5 [10:20:24]process_action close_receipt done [10:20:24]requested_data is exist [10:20:24]produce_requested_data [10:20:24]requested_item fm.sn is exist - process it [10:20:24]wFMCommunicate request_size=4 [10:20:24]MH_SAM_APDU [10:20:24]CAPDU: 80 11 00 00 [10:20:24]Write to MH i2c: E2 08 00 AF 02 80 11 00 00 00 00 00 00 2B [10:20:24]Write i2c OK [10:20:24]MH_I2C_Read... [10:20:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:25]Read from MH i2c: E2 [10:20:25]MH_I2C_Read... [10:20:25]Read from MH i2c: E2 17 00 [10:20:25]MH_I2C_Read... [10:20:25]Read from MH i2c: E2 17 00 AF 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 87 [10:20:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [10:20:25]wFMCommunicate OK [10:20:25]requested_item fd.num is exist - process it [10:20:25]SAM_PROTO_GetFieldsCounters [10:20:25]wFMCommunicate request_size=4 [10:20:25]MH_SAM_APDU [10:20:25]CAPDU: 80 13 00 00 [10:20:25]Write to MH i2c: E2 08 00 B0 02 80 13 00 00 00 00 00 00 2E [10:20:25]Write i2c OK [10:20:25]MH_I2C_Read... [10:20:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:20:25]Read from MH i2c: E2 [10:20:25]MH_I2C_Read... [10:20:25]Read from MH i2c: E2 62 00 [10:20:25]MH_I2C_Read... [10:20:25]Read from MH i2c: E2 62 00 B0 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 7F A3 00 00 0E 04 04 00 AB 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 AA [10:20: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 7F A3 00 00 0E 04 04 00 AB 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:20:25]wFMCommunicate OK [10:20:25]SAM_PROTO_GetFieldsCounters done [10:20:25]requested_item shift.num is exist - process it [10:20:25]requested_item shift.opened is exist - process it [10:20:25]req_shift_opened [10:20:25]FM_GetShiftState [10:20:25]SAM_PROTO_GetShiftState [10:20:25]wFMCommunicate request_size=4 [10:20:25]MH_SAM_APDU [10:20:25]CAPDU: 80 13 01 00 [10:20:25]Write to MH i2c: E2 08 00 B1 02 80 13 01 00 00 00 00 00 30 [10:20:25]Write i2c OK [10:20:25]MH_I2C_Read... [10:20:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:25]Read from MH i2c: E2 [10:20:25]MH_I2C_Read... [10:20:25]Read from MH i2c: E2 0E 00 [10:20:25]MH_I2C_Read... [10:20:25]Read from MH i2c: E2 0E 00 B1 02 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 CC [10:20:25]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [10:20:25]wFMCommunicate OK [10:20:25]SAM_PROTO_GetShiftState done [10:20:25]FM_GetShiftState done [10:20:25]req_shift_opened done [10:20:25]requested_item shift.open_date is exist - process it [10:20:25]req_shift_open_date [10:20:25]req_shift_open_date done [10:20:25]produce_requested_data done [10:20:25]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41855,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [10:20:25]process_action_free close_receipt [10:20:25]json_value_free [10:20:25]json_value_free done [10:20:25]process_json_proto returns [10:20:25]Send response to host [10:20:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41855,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [10:20:25]free response buf [10:20:25]execute_script done [10:20:25]execute_script returns [10:20:25]free content buf [10:20:25]Sock 10.Close socket [10:20:25]Sock 10.Thread stoped [10:20:25]OFD Sender: No OFD packet to send [10:20:30]OFD Sender: No OFD packet to send [10:20:30]recv_with_timeout no data received [10:20:35]OFD Sender: No OFD packet to send [10:20:40]OFD Sender: No OFD packet to send [10:20:45]OFD Sender: No OFD packet to send [10:20:50]OFD Sender: No OFD packet to send [10:20:55]OFD Sender: No OFD packet to send [10:21:00]OFD Sender: No OFD packet to send [10:21:05]OFD Sender: No OFD packet to send [10:21:10]OFD Sender: No OFD packet to send [10:21:15]OFD Sender: No OFD packet to send [10:21:20]OFD Sender: No OFD packet to send [10:21:22]recv_with_timeout no data received [10:21:25]OFD Sender: No OFD packet to send [10:21:30]OFD Sender: No OFD packet to send [10:21:33]recv_with_timeout no data received [10:21:35]OFD Sender: No OFD packet to send [10:21:40]OFD Sender: No OFD packet to send [10:21:45]OFD Sender: No OFD packet to send [10:21:50]OFD Sender: No OFD packet to send [10:21:55]OFD Sender: No OFD packet to send [10:22:00]OFD Sender: No OFD packet to send [10:22:05]OFD Sender: No OFD packet to send [10:22:10]OFD Sender: No OFD packet to send [10:22:15]OFD Sender: No OFD packet to send [10:22:20]OFD Sender: No OFD packet to send [10:22:25]OFD Sender: No OFD packet to send [10:22:30]OFD Sender: No OFD packet to send [10:22:35]OFD Sender: No OFD packet to send [10:22:40]OFD Sender: No OFD packet to send [10:22:45]OFD Sender: No OFD packet to send [10:22:50]OFD Sender: No OFD packet to send [10:22:55]OFD Sender: No OFD packet to send [10:23:00]OFD Sender: No OFD packet to send [10:23:05]OFD Sender: No OFD packet to send [10:23:10]OFD Sender: No OFD packet to send [10:23:15]OFD Sender: No OFD packet to send [10:23:20]OFD Sender: No OFD packet to send [10:23:25]OFD Sender: No OFD packet to send [10:23:30]OFD Sender: No OFD packet to send [10:23:35]OFD Sender: No OFD packet to send [10:23:40]OFD Sender: No OFD packet to send [10:23:45]OFD Sender: No OFD packet to send [10:23:50]OFD Sender: No OFD packet to send [10:23:55]OFD Sender: No OFD packet to send [10:24:00]OFD Sender: No OFD packet to send [10:24:01]recv_with_timeout no data received [10:24:01]accept exits with 8 [10:24:01]New connection [10:24:01]New thread 3067305316 created [10:24:01]Thread 3067448676 joined [10:24:01]Waiting for new connection... [10:24:01] Sock 8.Parse request [10:24:01]Sock 8.Check first char [10:24:01]Sock 8.First char is OK [10:24:01]request: POST /json_proto HTTP/1.0 [10:24:01]Method: POST [10:24:01]URL: /json_proto [10:24:01]Method is POST - this is cgi request [10:24:01]url: /json_proto [10:24:01]query_string will be loaded in cgi processing [10:24:01]execute_cgi json_proto POST (null) [10:24:01]execute_cgi path=json_proto method=POST [10:24:01]POST find Content-Length [10:24:01]Host: 172.17.43.132:8080 [10:24:01]Content-Length: 824 [10:24:01]Content-Type: application/json [10:24:01] [10:24:01]POST finish read [10:24:01]Found Content-Length = 824 [10:24:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183884", "tax_sys" : 0, "items" : [ { "code": "4607120854177", "name": "\u0421\u043D\u0435\u043A \u041E\u0440\u0435\u0445\u0438 BEERKa \u0410\u0440\u0430\u0445\u0438\u0441 30\u0433", "price" : 25.00, "quantity" : 1.000, "sum" : 25.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" : 25.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:24:01]execute_script... [10:24:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183884", "tax_sys" : 0, "items" : [ { "code": "4607120854177", "name": "\u0421\u043D\u0435\u043A \u041E\u0440\u0435\u0445\u0438 BEERKa \u0410\u0440\u0430\u0445\u0438\u0441 30\u0433", "price" : 25.00, "quantity" : 1.000, "sum" : 25.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" : 25.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:24:01]POST & json_proto [10:24:01]process_json_proto [10:24:01]json parsed OK: [10:24:01]protocol is kg_v1.0 [10:24:01]action value=close_receipt [10:24:01]process_action close_receipt [10:24:01]cmd_close_receipt [10:24:01]MH_GetDate [10:24:01]Write to MH i2c: F0 00 00 B2 02 A3 [10:24:01]Write i2c OK [10:24:01]MH_I2C_Read... [10:24:01]Read from MH i2c: F0 [10:24:01]MH_I2C_Read... [10:24:01]Read from MH i2c: F0 09 00 [10:24:01]MH_I2C_Read... [10:24:01]Read from MH i2c: F0 09 00 B2 02 00 C2 6D A7 66 F8 53 A7 66 40 [10:24:01]GetLastDocTimeStamp 1722248421 [10:24:01]current date 1722248642 [10:24:01]FM_GetShiftState [10:24:01]SAM_PROTO_GetShiftState [10:24:01]wFMCommunicate request_size=4 [10:24:01]MH_SAM_APDU [10:24:01]CAPDU: 80 13 01 00 [10:24:01]Write to MH i2c: E2 08 00 B3 02 80 13 01 00 00 00 00 00 32 [10:24:01]Write i2c OK [10:24:01]MH_I2C_Read... [10:24:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:01]Read from MH i2c: E2 [10:24:01]MH_I2C_Read... [10:24:01]Read from MH i2c: E2 0E 00 [10:24:01]MH_I2C_Read... [10:24:01]Read from MH i2c: E2 0E 00 B3 02 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 CE [10:24:01]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [10:24:01]wFMCommunicate OK [10:24:01]SAM_PROTO_GetShiftState done [10:24:01]FM_GetShiftState done [10:24:01]opened in 1722211496 [10:24:01]opened+sec_in_day 1722297896 [10:24:01]quantity*price = 2500 [10:24:01]sum+1 = 2501 [10:24:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 25.00 НСП 1% : 0.22 НДС 12% : 2.65 Наличными: 0.00 Безнал.: 25.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 45 29.07.2024 10:24 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874958 ФД: 41856 ФПД: 96910957452358 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T102402&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41856&fm=96910957452358&tin=02508201610067®Number=0000000000092626&sum=2500 0 [10:24:03]StoreToDocumentArchive [10:24:03]shift 427 fd 41856 [10:24:03]save to /storage/0427/doc_00041856 [10:24:03]save last doc name /storage/0427/doc_00041856 to /storage/kkm_last_doc_name [10:24:03]save OK [10:24:03]Clear old archive folders... [10:24:03]ProcessDocumentItem done err = 0, tmpTLVsize=286 [10:24:03]tlvbuf is 007518C0 [10:24:03]SAM_PROTO_ClearQueue [10:24:03]wFMCommunicate request_size=4 [10:24:03]MH_SAM_APDU [10:24:03]CAPDU: 80 09 00 00 [10:24:03]Write to MH i2c: E2 08 00 C0 02 80 09 00 00 00 00 00 00 34 [10:24:03]Write i2c OK [10:24:03]MH_I2C_Read... [10:24:03]Read from MH i2c: E2 [10:24:03]MH_I2C_Read... [10:24:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:24:03]Read from MH i2c: E2 03 00 [10:24:03]MH_I2C_Read... [10:24:03]Read from MH i2c: E2 03 00 C0 02 00 90 00 36 [10:24:03]RAPDU: 90 00 [10:24:03]wFMCommunicate OK [10:24:03]SAM_PROTO_ClearQueue done [10:24:03]KKMCreateOFDPacket [10:24:03]OFDProtocolAddRootSTLVToBuf [10:24:03]FM_MakeSignedData [10:24:03]FM_MakeSignedData [10:24:03]SAM_PROTO_SignData [10:24:03]wFMCommunicate request_size=4 [10:24:03]MH_SAM_APDU [10:24:03]CAPDU: 80 0D 01 02 [10:24:03]Write to MH i2c: E2 08 00 C1 02 80 0D 01 02 00 00 00 00 3C [10:24:03]Write i2c OK [10:24:03]MH_I2C_Read... [10:24:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:24:03]Read from MH i2c: E2 [10:24:03]MH_I2C_Read... [10:24:03]Read from MH i2c: E2 03 00 [10:24:03]MH_I2C_Read... [10:24:03]Read from MH i2c: E2 03 00 C1 02 00 90 00 37 [10:24:03]RAPDU: 90 00 [10:24:03]wFMCommunicate OK [10:24:03]wFMCommunicate request_size=255 [10:24:03]MH_SAM_APDU [10:24:03]CAPDU: 80 0D 02 02 FA 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 34 31 37 37 06 04 2C 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 33 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 09 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 09 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 09 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 C2 6D A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 [10:24:03]Write to MH i2c: E2 02 01 C2 02 80 0D 02 02 FA 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 34 31 37 37 06 04 2C 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 33 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 09 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 09 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 09 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 C2 6D A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 00 00 F6 [10:24:03]Write i2c OK [10:24:03]MH_I2C_Read... [10:24:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:03]Read from MH i2c: E2 [10:24:03]MH_I2C_Read... [10:24:03]Read from MH i2c: E2 03 00 [10:24:03]MH_I2C_Read... [10:24:03]Read from MH i2c: E2 03 00 C2 02 00 90 00 38 [10:24:03]RAPDU: 90 00 [10:24:03]wFMCommunicate OK [10:24:03]wFMCommunicate request_size=45 [10:24:03]MH_SAM_APDU [10:24:03]CAPDU: 80 0D 02 02 28 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 80 A3 00 00 35 04 06 00 58 23 D7 31 9C 46 [10:24:03]Write to MH i2c: E2 30 00 C3 02 80 0D 02 02 28 00 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 80 A3 00 00 35 04 06 00 58 23 D7 31 9C 46 00 00 24 [10:24:03]Write i2c OK [10:24:03]MH_I2C_Read... [10:24:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:03]Read from MH i2c: E2 [10:24:03]MH_I2C_Read... [10:24:03]Read from MH i2c: E2 03 00 [10:24:03]MH_I2C_Read... [10:24:03]Read from MH i2c: E2 03 00 C3 02 00 90 00 39 [10:24:03]RAPDU: 90 00 [10:24:03]wFMCommunicate OK [10:24:03]wFMCommunicate request_size=4 [10:24:03]MH_SAM_APDU [10:24:03]CAPDU: 80 0D 03 02 [10:24:03]Write to MH i2c: E2 08 00 C4 02 80 0D 03 02 00 00 00 00 41 [10:24:03]Write i2c OK [10:24:03]MH_I2C_Read... [10:24:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:24:03]Read from MH i2c: E2 [10:24:03]MH_I2C_Read... [10:24:03]Read from MH i2c: E2 0B 00 [10:24:03]MH_I2C_Read... [10:24:03]Read from MH i2c: E2 0B 00 C4 02 00 15 DE 0E 0B 95 08 C3 B9 90 00 67 [10:24:03]RAPDU: 15 DE 0E 0B 95 08 C3 B9 90 00 [10:24:03]wFMCommunicate OK [10:24:03]SAM_PROTO_SignData done [10:24:03]FM_MakeSignedData done [10:24:03]CreateOFDProtocolMessage [10:24:03]wFMCommunicate request_size=4 [10:24:03]MH_SAM_APDU [10:24:03]CAPDU: 80 11 00 00 [10:24:03]Write to MH i2c: E2 08 00 C5 02 80 11 00 00 00 00 00 00 41 [10:24:03]Write i2c OK [10:24:03]MH_I2C_Read... [10:24:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:03]Read from MH i2c: E2 [10:24:03]MH_I2C_Read... [10:24:03]Read from MH i2c: E2 17 00 [10:24:03]MH_I2C_Read... [10:24:03]Read from MH i2c: E2 17 00 C5 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 9D [10:24:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [10:24:03]wFMCommunicate OK [10:24:03]CreateOFDProtocolMessage done [10:24:03]OFDSenderStorePacket 41856 [10:24:03]StoreOFDPacket docnum=41856 [10:24:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 32 01 00 00 9D 9F 2A 01 5E 94 5A 03 01 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 34 31 37 37 06 04 2C 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 33 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 09 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 09 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 09 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 C2 6D A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 80 A3 00 00 35 04 06 00 58 23 D7 31 9C 46 15 DE 0E 0B 95 08 C3 B9 [10:24:03]CheckFolder [10:24:03]dirname=/storage/ofd_packets [10:24:03]CheckFolder done [10:24:03]ProducePacketName [10:24:03]name=ofd_packets/00041856 [10:24:03]NVStorageSaveData ofd_packets/00041856 [10:24:03]File name is /storage/ofd_packets/00041856 [10:24:03]Write 336 bytes [10:24:03]NVStorageSaveData done [10:24:03]OFDSenderStorePacket done [10:24:03]KKMCreateOFDPacket done [10:24:03]NVStorageSaveData kkm_last_timestamp [10:24:03]File name is /storage/kkm_last_timestamp [10:24:03]Write 4 bytes [10:24:03]NVStorageSaveData done [10:24:03]ExternCall_PrintAddStr [10:24:03]wPrintStart [10:24:03]Write to MH i2c: 01 00 00 C6 02 C8 [10:24:03]Write i2c OK [10:24:03]MH_I2C_Read... [10:24:03]Read from MH i2c: 01 [10:24:03]MH_I2C_Read... [10:24:03]Read from MH i2c: 01 07 00 [10:24:03]MH_I2C_Read... [10:24:03]Read from MH i2c: 01 07 00 C6 02 00 00 00 00 00 FF 0F DD [10:24:03]RasterBufferAndPrint [10:24:03]line Счет N : (3)183884 [10:24:03]line ИНН: 02508201610067 [10:24:03]line Контрольно-Кассовый Чек [10:24:03]line ПРОДАЖА [10:24:03]line Товар: 4607120854177 [10:24:03]line Снек Орехи BEERKa Арахис 30г [10:24:03]line 1.000 * 25.00 [10:24:03]line = 25.00 [10:24:03]line НДС 12% НСП 1% [10:24:03]line > о реализуемом товаре [10:24:03]line ИТОГО: 25.00 [10:24:03]line НСП 1% : 0.22 [10:24:03]line НДС 12% : 2.65 [10:24:03]line Наличными: 0.00 [10:24:03]line Безнал.: 25.00 [10:24:03]line Место: АЗС № 97 "Партнер Нефть" [10:24:03]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [10:24:03]line СНО: Общий режим [10:24:03]line Чек 45 29.07.2024 10:24 [10:24:03]line Смена: 427 ФФД: 1.0 [10:24:03]line ЗНМ: 0300000053 [10:24:03]line РНМ: 0000000000092626 [10:24:03]line Версия ККМ: 001 [10:24:03]line Платежная система: O! деньги [10:24:03]line ФМ: 0000000000874958 [10:24:03]line ФД: 41856 [10:24:03]line ФПД: 96910957452358 [10:24:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T102402&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41856&fm=96910957452358&tin=02508201610067®Number=0000000000092626&sum=2500 [10:24:03]line 0 [10:24:03]OFD Sender: Processing packet 41856 [packets to send 57, broken 56] [10:24:03]ProducePacketName [10:24:03]name=ofd_packets/00041856 [10:24:03]OFD Sender: To server: pG, [10:24:03]CommunicateWithHost lk.salyk.kg:30040 [10:24:03]ConnectInit lk.salyk.kg [10:24:03]written 0, free lines is 4095 [10:24:04]Write to MH i2c: 01 00 00 F1 02 F3 [10:24:04]Write i2c OK [10:24:04]MH_I2C_Read... [10:24:04]Read from MH i2c: 01 [10:24:04]MH_I2C_Read... [10:24:04]Read from MH i2c: 01 07 00 [10:24:04]MH_I2C_Read... [10:24:04]Read from MH i2c: 01 07 00 F1 02 00 00 00 00 00 D8 0C DE [10:24:04]RasterBufferAndPrint [10:24:04]line [10:24:04]line [10:24:04]line [10:24:04]line [10:24:04]line [10:24:04]written 0, free lines is 3294 [10:24:04]MH_Cut [10:24:04]Write to MH i2c: D1 01 00 F8 02 01 CC [10:24:04]Write i2c OK [10:24:04]MH_I2C_Read... [10:24:04]Read from MH i2c: D1 [10:24:04]MH_I2C_Read... [10:24:04]Read from MH i2c: D1 01 00 [10:24:04]MH_I2C_Read... [10:24:04]Read from MH i2c: D1 01 00 F8 02 00 CB [10:24:04]Write to MH i2c: 01 00 00 F9 02 FB [10:24:04]Write i2c OK [10:24:04]MH_I2C_Read... [10:24:05]*** Cut start [10:24:05]*** Partial cut [10:24:05]*** CUTSNS_PIN = 1 [10:24:05]*** CUTSNS_PIN = 0 [10:24:05]*** Brake cut motor [10:24:05]Read from MH i2c: 01 [10:24:05]MH_I2C_Read... [10:24:05]*** Stop cut motor [10:24:05]*** Cut end [10:24:05]Read from MH i2c: 01 07 00 [10:24:05]MH_I2C_Read... [10:24:05]Read from MH i2c: 01 07 00 F9 02 00 00 00 00 00 FF 0F 10 [10:24:05]process_action close_receipt done [10:24:05]requested_data is exist [10:24:05]produce_requested_data [10:24:05]requested_item fm.sn is exist - process it [10:24:05]wFMCommunicate request_size=4 [10:24:05]MH_SAM_APDU [10:24:05]CAPDU: 80 11 00 00 [10:24:05]Write to MH i2c: E2 08 00 FA 02 80 11 00 00 00 00 00 00 76 [10:24:05]Write i2c OK [10:24:05]MH_I2C_Read... [10:24:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:05]Read from MH i2c: E2 [10:24:05]MH_I2C_Read... [10:24:05]Read from MH i2c: E2 17 00 [10:24:05]MH_I2C_Read... [10:24:05]Read from MH i2c: E2 17 00 FA 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 D2 [10:24:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [10:24:05]wFMCommunicate OK [10:24:05]requested_item fd.num is exist - process it [10:24:05]SAM_PROTO_GetFieldsCounters [10:24:05]wFMCommunicate request_size=4 [10:24:05]MH_SAM_APDU [10:24:05]CAPDU: 80 13 00 00 [10:24:05]Write to MH i2c: E2 08 00 FB 02 80 13 00 00 00 00 00 00 79 [10:24:05]Write i2c OK [10:24:05]MH_I2C_Read... [10:24:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:24:05]Read from MH i2c: E2 [10:24:05]MH_I2C_Read... [10:24:05]Read from MH i2c: E2 62 00 [10:24:05]MH_I2C_Read... [10:24:05]Read from MH i2c: E2 62 00 FB 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 80 A3 00 00 0E 04 04 00 AB 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 F9 [10:24: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 80 A3 00 00 0E 04 04 00 AB 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:24:05]wFMCommunicate OK [10:24:05]SAM_PROTO_GetFieldsCounters done [10:24:05]requested_item shift.num is exist - process it [10:24:05]requested_item shift.opened is exist - process it [10:24:05]req_shift_opened [10:24:05]FM_GetShiftState [10:24:05]SAM_PROTO_GetShiftState [10:24:05]wFMCommunicate request_size=4 [10:24:05]MH_SAM_APDU [10:24:05]CAPDU: 80 13 01 00 [10:24:05]Write to MH i2c: E2 08 00 FC 02 80 13 01 00 00 00 00 00 7B [10:24:05]Write i2c OK [10:24:05]MH_I2C_Read... [10:24:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:06]Read from MH i2c: E2 [10:24:06]MH_I2C_Read... [10:24:06]Read from MH i2c: E2 0E 00 [10:24:06]MH_I2C_Read... [10:24:06]Read from MH i2c: E2 0E 00 FC 02 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 17 [10:24:06]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [10:24:06]wFMCommunicate OK [10:24:06]SAM_PROTO_GetShiftState done [10:24:06]FM_GetShiftState done [10:24:06]req_shift_opened done [10:24:06]requested_item shift.open_date is exist - process it [10:24:06]req_shift_open_date [10:24:06]req_shift_open_date done [10:24:06]produce_requested_data done [10:24:06]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41856,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [10:24:06]process_action_free close_receipt [10:24:06]json_value_free [10:24:06]json_value_free done [10:24:06]process_json_proto returns [10:24:06]Send response to host [10:24:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41856,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [10:24:06]free response buf [10:24:06]execute_script done [10:24:06]execute_script returns [10:24:06]free content buf [10:24:06]Sock 8.Close socket [10:24:06]Sock 8.Thread stoped [10:25:45]accept exits with 9 [10:25:46]New connection [10:25:46]New thread 3067448676 created [10:25:46]Thread 3067305316 joined [10:25:46]Waiting for new connection... [10:25:46] Sock 9.Parse request [10:25:46]Sock 9.Check first char [10:25:46]Sock 9.First char is OK [10:25:46]request: POST /json_proto HTTP/1.0 [10:25:46]Method: POST [10:25:46]URL: /json_proto [10:25:46]Method is POST - this is cgi request [10:25:46]url: /json_proto [10:25:46]query_string will be loaded in cgi processing [10:25:46]execute_cgi json_proto POST (null) [10:25:46]execute_cgi path=json_proto method=POST [10:25:46]POST find Content-Length [10:25:46]Host: 172.17.43.132:8080 [10:25:46]Content-Length: 1078 [10:25:46]Content-Type: application/json [10:25:46] [10:25:46]POST finish read [10:25:46]Found Content-Length = 1078 [10:25:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183885", "tax_sys" : 0, "items" : [ { "code": "4700003010353", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u0433\u0440\u0443\u0448\u0430 \u041F\u042D\u0422 1\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 220.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:25:46]execute_script... [10:25: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 : (3)183885", "tax_sys" : 0, "items" : [ { "code": "4700003010353", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u0433\u0440\u0443\u0448\u0430 \u041F\u042D\u0422 1\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 220.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:25:46]POST & json_proto [10:25:46]process_json_proto [10:25:46]json parsed OK: [10:25:46]protocol is kg_v1.0 [10:25:46]action value=close_receipt [10:25:46]process_action close_receipt [10:25:46]cmd_close_receipt [10:25:46]MH_GetDate [10:25:46]Write to MH i2c: F0 00 00 FD 02 EE [10:25:46]Write i2c OK [10:25:46]MH_I2C_Read... [10:25:46]Read from MH i2c: F0 [10:25:46]MH_I2C_Read... [10:25:46]Read from MH i2c: F0 09 00 [10:25:46]MH_I2C_Read... [10:25:46]Read from MH i2c: F0 09 00 FD 02 00 2A 6E A7 66 F8 53 A7 66 F4 [10:25:46]GetLastDocTimeStamp 1722248642 [10:25:46]current date 1722248746 [10:25:46]FM_GetShiftState [10:25:46]SAM_PROTO_GetShiftState [10:25:46]wFMCommunicate request_size=4 [10:25:46]MH_SAM_APDU [10:25:46]CAPDU: 80 13 01 00 [10:25:46]Write to MH i2c: E2 08 00 FE 02 80 13 01 00 00 00 00 00 7D [10:25:46]Write i2c OK [10:25:46]MH_I2C_Read... [10:25:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:46]Read from MH i2c: E2 [10:25:46]MH_I2C_Read... [10:25:46]Read from MH i2c: E2 0E 00 [10:25:46]MH_I2C_Read... [10:25:46]Read from MH i2c: E2 0E 00 FE 02 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 19 [10:25:46]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [10:25:46]wFMCommunicate OK [10:25:46]SAM_PROTO_GetShiftState done [10:25:46]FM_GetShiftState done [10:25:46]opened in 1722211496 [10:25:46]opened+sec_in_day 1722297896 [10:25:46]quantity*price = 8000 [10:25:46]sum+1 = 8001 [10:25:46]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48743570 Сигареты Winston XStyle Blue 1.000 * 140.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 220.00 НСП 1% : 1.95 НДС 12% : 23.37 Наличными: 0.00 Безнал.: 220.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 46 29.07.2024 10:25 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874958 ФД: 41857 ФПД: 148800933216322 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T102546&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41857&fm=148800933216322&tin=02508201610067®Number=0000000000092626&sum=22000 0 [10:25:47]StoreToDocumentArchive [10:25:47]shift 427 fd 41857 [10:25:47]save to /storage/0427/doc_00041857 [10:25:47]save last doc name /storage/0427/doc_00041857 to /storage/kkm_last_doc_name [10:25:47]save OK [10:25:47]Clear old archive folders... [10:25:47]ProcessDocumentItem done err = 0, tmpTLVsize=397 [10:25:47]tlvbuf is 0074EED0 [10:25:47]SAM_PROTO_ClearQueue [10:25:47]wFMCommunicate request_size=4 [10:25:47]MH_SAM_APDU [10:25:47]CAPDU: 80 09 00 00 [10:25:47]Write to MH i2c: E2 08 00 0B 03 80 09 00 00 00 00 00 00 80 [10:25:47]Write i2c OK [10:25:47]MH_I2C_Read... [10:25:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:25:47]Read from MH i2c: E2 [10:25:47]MH_I2C_Read... [10:25:47]Read from MH i2c: E2 03 00 [10:25:47]MH_I2C_Read... [10:25:47]Read from MH i2c: E2 03 00 0B 03 00 90 00 82 [10:25:47]RAPDU: 90 00 [10:25:47]wFMCommunicate OK [10:25:47]SAM_PROTO_ClearQueue done [10:25:47]KKMCreateOFDPacket [10:25:47]OFDProtocolAddRootSTLVToBuf [10:25:47]FM_MakeSignedData [10:25:47]FM_MakeSignedData [10:25:47]SAM_PROTO_SignData [10:25:47]wFMCommunicate request_size=4 [10:25:47]MH_SAM_APDU [10:25:47]CAPDU: 80 0D 01 02 [10:25:47]Write to MH i2c: E2 08 00 0C 03 80 0D 01 02 00 00 00 00 88 [10:25:47]Write i2c OK [10:25:47]MH_I2C_Read... [10:25:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:25:47]Read from MH i2c: E2 [10:25:47]MH_I2C_Read... [10:25:47]Read from MH i2c: E2 03 00 [10:25:47]MH_I2C_Read... [10:25:47]Read from MH i2c: E2 03 00 0C 03 00 90 00 83 [10:25:47]RAPDU: 90 00 [10:25:47]wFMCommunicate OK [10:25:47]wFMCommunicate request_size=255 [10:25:47]MH_SAM_APDU [10:25:47]CAPDU: 80 0D 02 02 FA 03 00 8D 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 [10:25:47]Write to MH i2c: E2 02 01 0D 03 80 0D 02 02 FA 00 03 00 8D 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 00 00 D6 [10:25:47]Write i2c OK [10:25:47]MH_I2C_Read... [10:25:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:47]Read from MH i2c: E2 [10:25:47]MH_I2C_Read... [10:25:47]Read from MH i2c: E2 03 00 [10:25:47]MH_I2C_Read... [10:25:47]Read from MH i2c: E2 03 00 0D 03 00 90 00 84 [10:25:47]RAPDU: 90 00 [10:25:47]wFMCommunicate OK [10:25:47]wFMCommunicate request_size=156 [10:25:47]MH_SAM_APDU [10:25:47]CAPDU: 80 0D 02 02 97 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 21 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 55 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 2A 6E A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 81 A3 00 00 35 04 06 00 87 55 6A C4 40 42 [10:25:47]Write to MH i2c: E2 9F 00 0E 03 80 0D 02 02 97 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 21 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 55 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 2A 6E A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 81 A3 00 00 35 04 06 00 87 55 6A C4 40 42 00 00 4C [10:25:47]Write i2c OK [10:25:47]MH_I2C_Read... [10:25:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:47]Read from MH i2c: E2 [10:25:47]MH_I2C_Read... [10:25:47]Read from MH i2c: E2 03 00 [10:25:47]MH_I2C_Read... [10:25:47]Read from MH i2c: E2 03 00 0E 03 00 90 00 85 [10:25:47]RAPDU: 90 00 [10:25:47]wFMCommunicate OK [10:25:47]wFMCommunicate request_size=4 [10:25:47]MH_SAM_APDU [10:25:47]CAPDU: 80 0D 03 02 [10:25:47]Write to MH i2c: E2 08 00 0F 03 80 0D 03 02 00 00 00 00 8D [10:25:47]Write i2c OK [10:25:47]MH_I2C_Read... [10:25:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:25:47]Read from MH i2c: E2 [10:25:47]MH_I2C_Read... [10:25:47]Read from MH i2c: E2 0B 00 [10:25:47]MH_I2C_Read... [10:25:47]Read from MH i2c: E2 0B 00 0F 03 00 73 70 46 53 7F C7 CD 8D 90 00 AA [10:25:47]RAPDU: 73 70 46 53 7F C7 CD 8D 90 00 [10:25:47]wFMCommunicate OK [10:25:47]SAM_PROTO_SignData done [10:25:47]FM_MakeSignedData done [10:25:47]CreateOFDProtocolMessage [10:25:47]wFMCommunicate request_size=4 [10:25:47]MH_SAM_APDU [10:25:47]CAPDU: 80 11 00 00 [10:25:47]Write to MH i2c: E2 08 00 10 03 80 11 00 00 00 00 00 00 8D [10:25:47]Write i2c OK [10:25:47]MH_I2C_Read... [10:25:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:47]Read from MH i2c: E2 [10:25:47]MH_I2C_Read... [10:25:47]Read from MH i2c: E2 17 00 [10:25:47]MH_I2C_Read... [10:25:47]Read from MH i2c: E2 17 00 10 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 E9 [10:25:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [10:25:47]wFMCommunicate OK [10:25:47]CreateOFDProtocolMessage done [10:25:47]OFDSenderStorePacket 41857 [10:25:47]StoreOFDPacket docnum=41857 [10:25:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 A1 01 00 00 58 0F 99 01 F9 DC 5A 03 01 00 03 00 8D 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 21 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 55 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 2A 6E A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 81 A3 00 00 35 04 06 00 87 55 6A C4 40 42 73 70 46 53 7F C7 CD 8D [10:25:47]CheckFolder [10:25:47]dirname=/storage/ofd_packets [10:25:47]CheckFolder done [10:25:47]ProducePacketName [10:25:47]name=ofd_packets/00041857 [10:25:48]NVStorageSaveData ofd_packets/00041857 [10:25:48]File name is /storage/ofd_packets/00041857 [10:25:48]Write 447 bytes [10:25:48]NVStorageSaveData done [10:25:48]OFDSenderStorePacket done [10:25:48]KKMCreateOFDPacket done [10:25:48]NVStorageSaveData kkm_last_timestamp [10:25:48]File name is /storage/kkm_last_timestamp [10:25:48]Write 4 bytes [10:25:48]NVStorageSaveData done [10:25:48]ExternCall_PrintAddStr [10:25:48]wPrintStart [10:25:48]Write to MH i2c: 01 00 00 11 03 14 [10:25:48]Write i2c OK [10:25:48]MH_I2C_Read... [10:25:48]Read from MH i2c: 01 [10:25:48]MH_I2C_Read... [10:25:48]Read from MH i2c: 01 07 00 [10:25:48]MH_I2C_Read... [10:25:48]Read from MH i2c: 01 07 00 11 03 00 00 00 00 00 FF 0F 29 [10:25:48]RasterBufferAndPrint [10:25:48]line Счет N : (3)183885 [10:25:48]line ИНН: 02508201610067 [10:25:48]line Контрольно-Кассовый Чек [10:25:48]line ПРОДАЖА [10:25:48]line Товар: 4700003010353 [10:25:48]line Напиток Let`s Go! с/с груша ПЭТ 1л [10:25:48]line 1.000 * 80.00 [10:25:48]line = 80.00 [10:25:48]line НДС 12% НСП 1% [10:25:48]line > о реализуемом товаре [10:25:48]line Товар: 48743570 [10:25:48]line Сигареты Winston XStyle Blue [10:25:48]line 1.000 * 140.00 [10:25:48]line = 140.00 [10:25:48]line НДС 12% НСП 1% [10:25:48]line > о реализуемом товаре [10:25:48]line ИТОГО: 220.00 [10:25:48]line НСП 1% : 1.95 [10:25:48]line НДС 12% : 23.37 [10:25:48]line Наличными: 0.00 [10:25:48]line Безнал.: 220.00 [10:25:48]line Место: АЗС № 97 "Партнер Нефть" [10:25:48]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [10:25:48]line СНО: Общий режим [10:25:48]line Чек 46 29.07.2024 10:25 [10:25:48]line Смена: 427 ФФД: 1.0 [10:25:48]line ЗНМ: 0300000053 [10:25:48]line РНМ: 0000000000092626 [10:25:48]line Версия ККМ: 001 [10:25:48]line Платежная система: O! деньги [10:25:48]line ФМ: 0000000000874958 [10:25:48]line ФД: 41857 [10:25:48]line ФПД: 148800933216322 [10:25:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T102546&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41857&fm=148800933216322&tin=02508201610067®Number=0000000000092626&sum=22000 [10:25:48]line 0 [10:25:48]written 0, free lines is 4095 [10:25:48]Write to MH i2c: 01 00 00 42 03 45 [10:25:48]Write i2c OK [10:25:48]MH_I2C_Read... [10:25:48]Read from MH i2c: 01 [10:25:48]MH_I2C_Read... [10:25:48]Read from MH i2c: 01 07 00 [10:25:48]MH_I2C_Read... [10:25:48]Read from MH i2c: 01 07 00 42 03 00 00 00 00 00 9A 0C F2 [10:25:48]RasterBufferAndPrint [10:25:48]line [10:25:48]line [10:25:48]line [10:25:48]line [10:25:48]line [10:25:48]written 0, free lines is 3233 [10:25:48]MH_Cut [10:25:48]Write to MH i2c: D1 01 00 49 03 01 1E [10:25:48]Write i2c OK [10:25:48]MH_I2C_Read... [10:25:48]Read from MH i2c: D1 [10:25:48]MH_I2C_Read... [10:25:48]Read from MH i2c: D1 01 00 [10:25:48]MH_I2C_Read... [10:25:48]Read from MH i2c: D1 01 00 49 03 00 1D [10:25:48]Write to MH i2c: 01 00 00 4A 03 4D [10:25:48]Write i2c OK [10:25:48]MH_I2C_Read... [10:25:49]*** Cut start [10:25:49]*** Partial cut [10:25:49]*** CUTSNS_PIN = 1 [10:25:49]*** CUTSNS_PIN = 0 [10:25:49]*** Brake cut motor [10:25:50]Read from MH i2c: 01 [10:25:50]MH_I2C_Read... [10:25:50]*** Stop cut motor [10:25:50]*** Cut end [10:25:50]Read from MH i2c: 01 07 00 [10:25:50]MH_I2C_Read... [10:25:50]Read from MH i2c: 01 07 00 4A 03 00 00 00 00 00 FF 0F 62 [10:25:50]process_action close_receipt done [10:25:50]requested_data is exist [10:25:50]produce_requested_data [10:25:50]requested_item fm.sn is exist - process it [10:25:50]wFMCommunicate request_size=4 [10:25:50]MH_SAM_APDU [10:25:50]CAPDU: 80 11 00 00 [10:25:50]Write to MH i2c: E2 08 00 4B 03 80 11 00 00 00 00 00 00 C8 [10:25:50]Write i2c OK [10:25:50]MH_I2C_Read... [10:25:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:50]Read from MH i2c: E2 [10:25:50]MH_I2C_Read... [10:25:50]Read from MH i2c: E2 17 00 [10:25:50]MH_I2C_Read... [10:25:50]Read from MH i2c: E2 17 00 4B 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 24 [10:25:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [10:25:50]wFMCommunicate OK [10:25:50]requested_item fd.num is exist - process it [10:25:50]SAM_PROTO_GetFieldsCounters [10:25:50]wFMCommunicate request_size=4 [10:25:50]MH_SAM_APDU [10:25:50]CAPDU: 80 13 00 00 [10:25:50]Write to MH i2c: E2 08 00 4C 03 80 13 00 00 00 00 00 00 CB [10:25:50]Write i2c OK [10:25:50]MH_I2C_Read... [10:25:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:25:50]Read from MH i2c: E2 [10:25:50]MH_I2C_Read... [10:25:50]Read from MH i2c: E2 62 00 [10:25:50]MH_I2C_Read... [10:25:50]Read from MH i2c: E2 62 00 4C 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 81 A3 00 00 0E 04 04 00 AB 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 4F [10:25: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 81 A3 00 00 0E 04 04 00 AB 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:25:50]wFMCommunicate OK [10:25:50]SAM_PROTO_GetFieldsCounters done [10:25:50]requested_item shift.num is exist - process it [10:25:50]requested_item shift.opened is exist - process it [10:25:50]req_shift_opened [10:25:50]FM_GetShiftState [10:25:50]SAM_PROTO_GetShiftState [10:25:50]wFMCommunicate request_size=4 [10:25:50]MH_SAM_APDU [10:25:50]CAPDU: 80 13 01 00 [10:25:50]Write to MH i2c: E2 08 00 4D 03 80 13 01 00 00 00 00 00 CD [10:25:50]Write i2c OK [10:25:50]MH_I2C_Read... [10:25:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:50]Read from MH i2c: E2 [10:25:50]MH_I2C_Read... [10:25:50]Read from MH i2c: E2 0E 00 [10:25:50]MH_I2C_Read... [10:25:50]Read from MH i2c: E2 0E 00 4D 03 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 69 [10:25:50]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [10:25:50]wFMCommunicate OK [10:25:50]SAM_PROTO_GetShiftState done [10:25:50]FM_GetShiftState done [10:25:50]req_shift_opened done [10:25:50]requested_item shift.open_date is exist - process it [10:25:50]req_shift_open_date [10:25:50]req_shift_open_date done [10:25:50]produce_requested_data done [10:25:50]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41857,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [10:25:50]process_action_free close_receipt [10:25:50]json_value_free [10:25:50]json_value_free done [10:25:50]process_json_proto returns [10:25:50]Send response to host [10:25:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41857,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [10:25:50]free response buf [10:25:50]execute_script done [10:25:50]execute_script returns [10:25:50]free content buf [10:25:50]Sock 9.Close socket [10:25:50]Sock 9.Thread stoped [10:25:52]recv_with_timeout no data received [10:26:21]ConnectInit Can't connect to host [10:26:21]CommunicateWithHost connect error [10:26:21]CommunicateWithHost err = -1 [10:26:21]OFD Sender: Server communicate error [10:26:21]OFD Sender: Processing packet 41856 [packets to send 58, broken 56] [10:26:21]ProducePacketName [10:26:21]name=ofd_packets/00041856 [10:26:21]OFD Sender: To server: pG, [10:26:21]CommunicateWithHost lk.salyk.kg:30040 [10:26:21]ConnectInit lk.salyk.kg [10:26:21]Connected sock=9 [10:26: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 35 38 32 01 00 00 9D 9F 2A 01 5E 94 5A 03 01 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 34 31 37 37 06 04 2C 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 33 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 09 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 09 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 09 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 C2 6D A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 80 A3 00 00 35 04 06 00 58 23 D7 31 9C 46 15 DE 0E 0B 95 08 C3 B9 [10:26: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 35 38 4F 00 00 00 2D DE 47 00 05 B6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 80 A3 00 00 F4 03 04 00 61 1A A7 66 B6 04 01 00 00 BF FD F2 74 0E 4B DD 26 [10:26:22]CommunicateWithHost err = 0 [10:26:22]CheckOFDResponse [10:26:22]1017 (14) - 77093643461234 [10:26:22]1041 (16) - 0000000000874958 [10:26:22]1040 (4) - 41856 [10:26:22]1012 (4) - 29.07.2024 04:28 [10:26:22]1206 (1) - 0 [10:26:22]OFD Sender: Remove packet 41856 [10:26:22]ProducePacketName [10:26:22]name=ofd_packets/00041856 [10:26:22]NVStorageDeleteData [10:26:22]OFD Sender: Processing packet 41857 [packets to send 57, broken 56] [10:26:22]ProducePacketName [10:26:22]name=ofd_packets/00041857 [10:26:22]OFD Sender: To server: pG, [10:26:22]CommunicateWithHost lk.salyk.kg:30040 [10:26:22]ConnectInit lk.salyk.kg [10:26:23]Connected sock=9 [10: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 35 38 A1 01 00 00 58 0F 99 01 F9 DC 5A 03 01 00 03 00 8D 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 21 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 55 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 2A 6E A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 81 A3 00 00 35 04 06 00 87 55 6A C4 40 42 73 70 46 53 7F C7 CD 8D [10:26: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 35 38 4F 00 00 00 F6 CA 47 00 58 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 81 A3 00 00 F4 03 04 00 63 1A A7 66 B6 04 01 00 00 17 EA BE E6 BD DF DC F5 [10:26:25]CommunicateWithHost err = 0 [10:26:25]CheckOFDResponse [10:26:25]1017 (14) - 77093643461234 [10:26:25]1041 (16) - 0000000000874958 [10:26:25]1040 (4) - 41857 [10:26:25]1012 (4) - 29.07.2024 04:28 [10:26:25]1206 (1) - 0 [10:26:25]OFD Sender: Remove packet 41857 [10:26:25]ProducePacketName [10:26:25]name=ofd_packets/00041857 [10:26:25]NVStorageDeleteData [10:26:25]OFD Sender: No OFD packet to send [10:26:30]OFD Sender: No OFD packet to send [10:26:35]OFD Sender: No OFD packet to send [10:26:39]accept exits with 8 [10:26:39]New connection [10:26:39]New thread 3067305316 created [10:26:39]Thread 3067448676 joined [10:26:39]Waiting for new connection... [10:26:39] Sock 8.Parse request [10:26:39]Sock 8.Check first char [10:26:39]Sock 8.First char is OK [10:26:39]request: POST /json_proto HTTP/1.0 [10:26:39]Method: POST [10:26:39]URL: /json_proto [10:26:39]Method is POST - this is cgi request [10:26:39]url: /json_proto [10:26:39]query_string will be loaded in cgi processing [10:26:39]execute_cgi json_proto POST (null) [10:26:39]execute_cgi path=json_proto method=POST [10:26:39]POST find Content-Length [10:26:39]Host: 172.17.43.132:8080 [10:26:39]Content-Length: 875 [10:26:39]Content-Type: application/json [10:26:39] [10:26:39]POST finish read [10:26:39]Found Content-Length = 875 [10:26:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183886", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003610560", "name": "\u0412\u043E\u0434\u0430 \u042D\u043D\u0435\u0441\u0430\u0439 5\u043B.", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:26:39]execute_script... [10:26: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 : (3)183886", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003610560", "name": "\u0412\u043E\u0434\u0430 \u042D\u043D\u0435\u0441\u0430\u0439 5\u043B.", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:26:39]POST & json_proto [10:26:39]process_json_proto [10:26:39]json parsed OK: [10:26:39]protocol is kg_v1.0 [10:26:39]action value=close_receipt [10:26:39]process_action close_receipt [10:26:39]cmd_close_receipt [10:26:39]MH_GetDate [10:26:39]Write to MH i2c: F0 00 00 4E 03 40 [10:26:39]Write i2c OK [10:26:39]MH_I2C_Read... [10:26:39]Read from MH i2c: F0 [10:26:39]MH_I2C_Read... [10:26:39]Read from MH i2c: F0 09 00 [10:26:39]MH_I2C_Read... [10:26:39]Read from MH i2c: F0 09 00 4E 03 00 60 6E A7 66 F8 53 A7 66 7C [10:26:39]GetLastDocTimeStamp 1722248746 [10:26:39]current date 1722248800 [10:26:39]FM_GetShiftState [10:26:39]SAM_PROTO_GetShiftState [10:26:39]wFMCommunicate request_size=4 [10:26:39]MH_SAM_APDU [10:26:39]CAPDU: 80 13 01 00 [10:26:39]Write to MH i2c: E2 08 00 4F 03 80 13 01 00 00 00 00 00 CF [10:26:39]Write i2c OK [10:26:39]MH_I2C_Read... [10:26:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:40]Read from MH i2c: E2 [10:26:40]MH_I2C_Read... [10:26:40]Read from MH i2c: E2 0E 00 [10:26:40]MH_I2C_Read... [10:26:40]Read from MH i2c: E2 0E 00 4F 03 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 6B [10:26:40]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [10:26:40]wFMCommunicate OK [10:26:40]SAM_PROTO_GetShiftState done [10:26:40]FM_GetShiftState done [10:26:40]opened in 1722211496 [10:26:40]opened+sec_in_day 1722297896 [10:26:40]quantity*price = 4000 [10:26:40]sum+1 = 4001 [10:26:40]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 85.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 48 29.07.2024 11:00 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41859 ФПД: 184082704922438 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T110007&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41859&fm=184082704922438&tin=02508201610067®Number=0000000000092626&sum=8500 0 [11:00:08]StoreToDocumentArchive [11:00:08]shift 427 fd 41859 [11:00:08]save to /storage/0427/doc_00041859 [11:00:08]save last doc name /storage/0427/doc_00041859 to /storage/kkm_last_doc_name [11:00:08]save OK [11:00:08]Clear old archive folders... [11:00:08]ProcessDocumentItem done err = 0, tmpTLVsize=280 [11:00:08]tlvbuf is 0085CB60 [11:00:08]SAM_PROTO_ClearQueue [11:00:08]wFMCommunicate request_size=4 [11:00:08]MH_SAM_APDU [11:00:08]CAPDU: 80 09 00 00 [11:00:08]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [11:00:08]Write i2c OK [11:00:08]MH_I2C_Read... [11:00:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:00:08]Read from MH i2c: E2 [11:00:08]MH_I2C_Read... [11:00:08]Read from MH i2c: E2 03 00 [11:00:08]MH_I2C_Read... [11:00:08]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [11:00:08]RAPDU: 90 00 [11:00:08]wFMCommunicate OK [11:00:08]SAM_PROTO_ClearQueue done [11:00:08]KKMCreateOFDPacket [11:00:08]OFDProtocolAddRootSTLVToBuf [11:00:08]FM_MakeSignedData [11:00:08]FM_MakeSignedData [11:00:08]SAM_PROTO_SignData [11:00:08]wFMCommunicate request_size=4 [11:00:08]MH_SAM_APDU [11:00:08]CAPDU: 80 0D 01 02 [11:00:08]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [11:00:08]Write i2c OK [11:00:08]MH_I2C_Read... [11:00:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:00:08]Read from MH i2c: E2 [11:00:08]MH_I2C_Read... [11:00:08]Read from MH i2c: E2 03 00 [11:00:08]MH_I2C_Read... [11:00:08]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [11:00:08]RAPDU: 90 00 [11:00:08]wFMCommunicate OK [11:00:08]wFMCommunicate request_size=255 [11:00:08]MH_SAM_APDU [11:00:08]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 33 38 33 31 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 37 76 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 [11:00:08]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 33 38 33 31 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 37 76 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 00 00 4E [11:00:08]Write i2c OK [11:00:08]MH_I2C_Read... [11:00:08]OFD Sender: No OFD packet to send [11:00:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:08]Read from MH i2c: E2 [11:00:08]MH_I2C_Read... [11:00:08]Read from MH i2c: E2 03 00 [11:00:08]MH_I2C_Read... [11:00:08]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [11:00:08]RAPDU: 90 00 [11:00:08]wFMCommunicate OK [11:00:08]wFMCommunicate request_size=39 [11:00:08]MH_SAM_APDU [11:00:08]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 83 A3 00 00 35 04 06 00 A7 6C 18 3C 77 46 [11:00:08]Write to MH i2c: E2 2A 00 2E 00 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 83 A3 00 00 35 04 06 00 A7 6C 18 3C 77 46 00 00 B6 [11:00:08]Write i2c OK [11:00:08]MH_I2C_Read... [11:00:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:08]Read from MH i2c: E2 [11:00:08]MH_I2C_Read... [11:00:08]Read from MH i2c: E2 03 00 [11:00:08]MH_I2C_Read... [11:00:08]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [11:00:08]RAPDU: 90 00 [11:00:08]wFMCommunicate OK [11:00:08]wFMCommunicate request_size=4 [11:00:08]MH_SAM_APDU [11:00:08]CAPDU: 80 0D 03 02 [11:00:08]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [11:00:08]Write i2c OK [11:00:08]MH_I2C_Read... [11:00:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:00:08]Read from MH i2c: E2 [11:00:08]MH_I2C_Read... [11:00:08]Read from MH i2c: E2 0B 00 [11:00:08]MH_I2C_Read... [11:00:08]Read from MH i2c: E2 0B 00 2F 00 00 C5 F1 99 2F 3B 8D BC F4 90 00 A1 [11:00:08]RAPDU: C5 F1 99 2F 3B 8D BC F4 90 00 [11:00:08]wFMCommunicate OK [11:00:08]SAM_PROTO_SignData done [11:00:08]FM_MakeSignedData done [11:00:08]CreateOFDProtocolMessage [11:00:08]wFMCommunicate request_size=4 [11:00:08]MH_SAM_APDU [11:00:08]CAPDU: 80 11 00 00 [11:00:08]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [11:00:09]Write i2c OK [11:00:09]MH_I2C_Read... [11:00:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:09]Read from MH i2c: E2 [11:00:09]MH_I2C_Read... [11:00:09]Read from MH i2c: E2 17 00 [11:00:09]MH_I2C_Read... [11:00:09]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 35 38 90 00 06 [11:00:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [11:00:09]wFMCommunicate OK [11:00:09]CreateOFDProtocolMessage done [11:00:09]OFDSenderStorePacket 41859 [11:00:09]StoreOFDPacket docnum=41859 [11:00:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 2C 01 00 00 3A 01 24 01 BA 57 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 33 38 33 31 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 37 76 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 83 A3 00 00 35 04 06 00 A7 6C 18 3C 77 46 C5 F1 99 2F 3B 8D BC F4 [11:00:09]CheckFolder [11:00:09]dirname=/storage/ofd_packets [11:00:09]CheckFolder done [11:00:09]ProducePacketName [11:00:09]name=ofd_packets/00041859 [11:00:09]NVStorageSaveData ofd_packets/00041859 [11:00:09]File name is /storage/ofd_packets/00041859 [11:00:09]Write 330 bytes [11:00:09]NVStorageSaveData done [11:00:09]OFDSenderStorePacket done [11:00:09]KKMCreateOFDPacket done [11:00:09]NVStorageSaveData kkm_last_timestamp [11:00:09]File name is /storage/kkm_last_timestamp [11:00:09]Write 4 bytes [11:00:09]NVStorageSaveData done [11:00:09]ExternCall_PrintAddStr [11:00:09]wPrintStart [11:00:09]Write to MH i2c: 01 00 00 31 00 31 [11:00:09]Write i2c OK [11:00:09]MH_I2C_Read... [11:00:09]Read from MH i2c: 01 [11:00:09]MH_I2C_Read... [11:00:09]Read from MH i2c: 01 07 00 [11:00:09]MH_I2C_Read... [11:00:09]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [11:00:09]RasterBufferAndPrint [11:00:09]line Счет N : (3)183887 [11:00:09]line ИНН: 02508201610067 [11:00:09]line Контрольно-Кассовый Чек [11:00:09]line ПРОДАЖА [11:00:09]line Товар: 4870227273831 [11:00:09]line Лимонад Sunbel Мохито 1л [11:00:09]line 1.000 * 85.00 [11:00:09]line = 85.00 [11:00:09]line НДС 12% НСП 1% [11:00:09]line > о реализуемом товаре [11:00:09]line ИТОГО: 85.00 [11:00:09]line НСП 1% : 0.75 [11:00:09]line НДС 12% : 9.03 [11:00:09]line Наличными: 85.00 [11:00:09]line Безнал.: 0.00 [11:00:09]line Место: АЗС № 97 "Партнер Нефть" [11:00:09]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [11:00:09]line СНО: Общий режим [11:00:09]line Чек 48 29.07.2024 11:00 [11:00:09]line Смена: 427 ФФД: 1.0 [11:00:09]line ЗНМ: 0300000053 [11:00:09]line РНМ: 0000000000092626 [11:00:09]line Версия ККМ: 001 [11:00:09]line ФМ: 0000000000874958 [11:00:09]line ФД: 41859 [11:00:09]line ФПД: 184082704922438 [11:00:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T110007&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41859&fm=184082704922438&tin=02508201610067®Number=0000000000092626&sum=8500 [11:00:09]line 0 [11:00:09]written 0, free lines is 4095 [11:00:09]OFD Sender: Processing packet 41859 [packets to send 57, broken 56] [11:00:09]ProducePacketName [11:00:09]name=ofd_packets/00041859 [11:00:09]OFD Sender: To server: pG, [11:00:09]CommunicateWithHost lk.salyk.kg:30040 [11:00:09]ConnectInit lk.salyk.kg [11:00:09]Write to MH i2c: 01 00 00 59 00 59 [11:00:09]Write i2c OK [11:00:09]MH_I2C_Read... [11:00:09]Read from MH i2c: 01 [11:00:09]MH_I2C_Read... [11:00:09]Read from MH i2c: 01 07 00 [11:00:09]MH_I2C_Read... [11:00:09]Read from MH i2c: 01 07 00 59 00 00 00 00 00 00 27 0D 94 [11:00:09]RasterBufferAndPrint [11:00:09]line [11:00:09]line [11:00:09]line [11:00:09]line [11:00:09]line [11:00:09]written 0, free lines is 3386 [11:00:09]MH_Cut [11:00:09]Write to MH i2c: D1 01 00 60 00 01 32 [11:00:09]Write i2c OK [11:00:09]MH_I2C_Read... [11:00:09]Read from MH i2c: D1 [11:00:09]MH_I2C_Read... [11:00:09]Read from MH i2c: D1 01 00 [11:00:09]MH_I2C_Read... [11:00:09]Read from MH i2c: D1 01 00 60 00 00 31 [11:00:09]Write to MH i2c: 01 00 00 61 00 61 [11:00:09]Write i2c OK [11:00:09]MH_I2C_Read... [11:00:10]Connected sock=10 [11:00: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 35 38 2C 01 00 00 3A 01 24 01 BA 57 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 33 38 33 31 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 *** Cut start [11:00:10]00 *** Partial cut [11:00:10]39 *** CUTSNS_PIN = 1 [11:00:10]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 37 76 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 83 A3 00 00 35 04 06 00 A7 6C 18 3C 77 46 C5 F1 99 2F 3B *** CUTSNS_PIN = 0 [11:00:10]8D BC F4 [11:00:10]*** Brake cut motor [11:00:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 4F 00 00 00 0A 44 47 00 70 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 35 38 10 04 04 00 83 A3 00 00 F4 03 04 00 4D 22 A7 66 B6 04 01 00 00 8E 42 5C 48 0A 1A A6 F3 [11:00:10]CommunicateWithHost err = 0 [11:00:10]CheckOFDResponse [11:00:10]1017 (14) - 77093643461234 [11:00:10]1041 (16) - 0000000000874958 [11:00:10]1040 (4) - 41859 [11:00:10]1012 (4) - 29.07.2024 05:02 [11:00:10]1206 (1) - 0 [11:00:10]OFD Sender: Remove packet 41859 [11:00:10]ProducePacketName [11:00:10]name=ofd_packets/00041859 [11:00:10]NVStorageDeleteData [11:00:10]Read from MH i2c: 01 *** Stop cut motor [11:00:10] [11:00:10]*** Cut end [11:00:10]MH_I2C_Read... [11:00:10]Read from MH i2c: 01 07 00 [11:00:10]MH_I2C_Read... [11:00:10]Read from MH i2c: 01 07 00 61 00 00 00 00 00 00 FF 0F 76 [11:00:10]process_action close_receipt done [11:00:10]requested_data is exist [11:00:10]produce_requested_data [11:00:10]requested_item fm.sn is exist - process it [11:00:10]wFMCommunicate request_size=4 [11:00:10]MH_SAM_APDU [11:00:10]CAPDU: 80 11 00 00 [11:00:10]Write to MH i2c: E2 08 00 62 00 80 11 00 00 00 00 00 00 DC [11:00:10]Write i2c OK [11:00:10]MH_I2C_Read... [11:00:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:10]Read from MH i2c: E2 [11:00:10]MH_I2C_Read... [11:00:10]Read from MH i2c: E2 17 00 [11:00:10]MH_I2C_Read... [11:00:10]Read from MH i2c: E2 17 00 62 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 38 [11:00:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [11:00:10]wFMCommunicate OK [11:00:10]requested_item fd.num is exist - process it [11:00:10]SAM_PROTO_GetFieldsCounters [11:00:10]wFMCommunicate request_size=4 [11:00:10]MH_SAM_APDU [11:00:10]CAPDU: 80 13 00 00 [11:00:10]Write to MH i2c: E2 08 00 63 00 80 13 00 00 00 00 00 00 DF [11:00:11]Write i2c OK [11:00:11]MH_I2C_Read... [11:00:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:00:11]Read from MH i2c: E2 [11:00:11]MH_I2C_Read... [11:00:11]Read from MH i2c: E2 62 00 [11:00:11]MH_I2C_Read... [11:00:11]Read from MH i2c: E2 62 00 63 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 83 A3 00 00 0E 04 04 00 AB 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 6B [11:00:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 83 A3 00 00 0E 04 04 00 AB 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 [11:00:11]wFMCommunicate OK [11:00:11]SAM_PROTO_GetFieldsCounters done [11:00:11]requested_item shift.num is exist - process it [11:00:11]requested_item shift.opened is exist - process it [11:00:11]req_shift_opened [11:00:11]FM_GetShiftState [11:00:11]SAM_PROTO_GetShiftState [11:00:11]wFMCommunicate request_size=4 [11:00:11]MH_SAM_APDU [11:00:11]CAPDU: 80 13 01 00 [11:00:11]Write to MH i2c: E2 08 00 64 00 80 13 01 00 00 00 00 00 E1 [11:00:11]Write i2c OK [11:00:11]MH_I2C_Read... [11:00:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:11]Read from MH i2c: E2 [11:00:11]MH_I2C_Read... [11:00:11]Read from MH i2c: E2 0E 00 [11:00:11]MH_I2C_Read... [11:00:11]Read from MH i2c: E2 0E 00 64 00 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 7D [11:00:11]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [11:00:11]wFMCommunicate OK [11:00:11]SAM_PROTO_GetShiftState done [11:00:11]FM_GetShiftState done [11:00:11]req_shift_opened done [11:00:11]requested_item shift.open_date is exist - process it [11:00:11]req_shift_open_date [11:00:11]req_shift_open_date done [11:00:11]produce_requested_data done [11:00:11]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41859,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [11:00:11]process_action_free close_receipt [11:00:11]json_value_free [11:00:11]json_value_free done [11:00:11]process_json_proto returns [11:00:11]Send response to host [11:00:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41859,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [11:00:11]free response buf [11:00:11]execute_script done [11:00:11]execute_script returns [11:00:11]free content buf [11:00:11]Sock 8.Close socket [11:00:11]Sock 8.Thread stoped [11:00:11]OFD Sender: No OFD packet to send [11:00:12]accept exits with 9 [11:00:12]New connection [11:00:12]New thread 3066760548 created [11:00:12]Thread 3066903908 joined [11:00:12]Waiting for new connection... [11:00:12] Sock 9.Parse request [11:00:12]Sock 9.Check first char [11:00:12]Sock 9.First char is OK [11:00:12]request: POST /json_proto HTTP/1.0 [11:00:12]Method: POST [11:00:12]URL: /json_proto [11:00:12]Method is POST - this is cgi request [11:00:12]url: /json_proto [11:00:12]query_string will be loaded in cgi processing [11:00:12]execute_cgi json_proto POST (null) [11:00:12]execute_cgi path=json_proto method=POST [11:00:12]POST find Content-Length [11:00:12]Host: 172.17.43.132:8080 [11:00:12]Content-Length: 629 [11:00:12]Content-Type: application/json [11:00:12] [11:00:12]POST finish read [11:00:12]Found Content-Length = 629 [11:00:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183888", "tax_sys" : 0, "items" : [ { "code": "4700003610553", "name": "\u0412\u043E\u0434\u0430 \u042D\u043D\u0435\u0441\u0430\u0439 10\u043B.", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:00:12]execute_script... [11:00: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 : (3)183888", "tax_sys" : 0, "items" : [ { "code": "4700003610553", "name": "\u0412\u043E\u0434\u0430 \u042D\u043D\u0435\u0441\u0430\u0439 10\u043B.", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:00:12]POST & json_proto [11:00:12]process_json_proto [11:00:12]json parsed OK: [11:00:12]protocol is kg_v1.0 [11:00:12]action value=close_receipt [11:00:12]process_action close_receipt [11:00:12]cmd_close_receipt [11:00:12]MH_GetDate [11:00:12]Write to MH i2c: F0 00 00 65 00 54 [11:00:12]Write i2c OK [11:00:12]MH_I2C_Read... [11:00:12]Read from MH i2c: F0 [11:00:12]MH_I2C_Read... [11:00:12]Read from MH i2c: F0 09 00 [11:00:12]MH_I2C_Read... [11:00:12]Read from MH i2c: F0 09 00 65 00 00 3D 76 A7 66 F8 53 A7 66 75 [11:00:12]GetLastDocTimeStamp 1722250807 [11:00:12]current date 1722250813 [11:00:12]FM_GetShiftState [11:00:12]SAM_PROTO_GetShiftState [11:00:12]wFMCommunicate request_size=4 [11:00:12]MH_SAM_APDU [11:00:12]CAPDU: 80 13 01 00 [11:00:12]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [11:00:12]Write i2c OK [11:00:12]MH_I2C_Read... [11:00:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:12]Read from MH i2c: E2 [11:00:12]MH_I2C_Read... [11:00:12]Read from MH i2c: E2 0E 00 [11:00:12]MH_I2C_Read... [11:00:12]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 7F [11:00:12]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [11:00:12]wFMCommunicate OK [11:00:12]SAM_PROTO_GetShiftState done [11:00:12]FM_GetShiftState done [11:00:12]opened in 1722211496 [11:00:12]opened+sec_in_day 1722297896 [11:00:12]quantity*price = 11500 [11:00:12]sum+1 = 11501 [11:00:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.02 НДС 12% : 12.21 Наличными: 115.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 49 29.07.2024 11:00 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41860 ФПД: 103254862890240 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T110013&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41860&fm=103254862890240&tin=02508201610067®Number=0000000000092626&sum=11500 0 [11:00:14]StoreToDocumentArchive [11:00:14]shift 427 fd 41860 [11:00:14]save to /storage/0427/doc_00041860 [11:00:14]save last doc name /storage/0427/doc_00041860 to /storage/kkm_last_doc_name [11:00:14]save OK [11:00:14]Clear old archive folders... [11:00:14]ProcessDocumentItem done err = 0, tmpTLVsize=269 [11:00:14]tlvbuf is 0085CA40 [11:00:14]SAM_PROTO_ClearQueue [11:00:14]wFMCommunicate request_size=4 [11:00:14]MH_SAM_APDU [11:00:14]CAPDU: 80 09 00 00 [11:00:14]Write to MH i2c: E2 08 00 73 00 80 09 00 00 00 00 00 00 E5 [11:00:14]Write i2c OK [11:00:14]MH_I2C_Read... [11:00:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:00:14]Read from MH i2c: E2 [11:00:14]MH_I2C_Read... [11:00:14]Read from MH i2c: E2 03 00 [11:00:14]MH_I2C_Read... [11:00:14]Read from MH i2c: E2 03 00 73 00 00 90 00 E7 [11:00:14]RAPDU: 90 00 [11:00:14]wFMCommunicate OK [11:00:14]SAM_PROTO_ClearQueue done [11:00:14]KKMCreateOFDPacket [11:00:14]OFDProtocolAddRootSTLVToBuf [11:00:14]FM_MakeSignedData [11:00:14]FM_MakeSignedData [11:00:14]SAM_PROTO_SignData [11:00:14]wFMCommunicate request_size=4 [11:00:14]MH_SAM_APDU [11:00:14]CAPDU: 80 0D 01 02 [11:00:14]Write to MH i2c: E2 08 00 74 00 80 0D 01 02 00 00 00 00 ED [11:00:14]Write i2c OK [11:00:14]MH_I2C_Read... [11:00:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:00:14]Read from MH i2c: E2 [11:00:14]MH_I2C_Read... [11:00:14]Read from MH i2c: E2 03 00 [11:00:14]MH_I2C_Read... [11:00:14]Read from MH i2c: E2 03 00 74 00 00 90 00 E8 [11:00:14]RAPDU: 90 00 [11:00:14]wFMCommunicate OK [11:00:14]wFMCommunicate request_size=255 [11:00:14]MH_SAM_APDU [11:00:14]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 35 35 33 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AD D0 BD D0 B5 D1 81 D0 B0 D0 B9 20 31 30 D0 BB 2E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 3D 76 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [11:00:14]Write to MH i2c: E2 02 01 75 00 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 35 35 33 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AD D0 BD D0 B5 D1 81 D0 B0 D0 B9 20 31 30 D0 BB 2E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 3D 76 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 42 [11:00:14]Write i2c OK [11:00:14]MH_I2C_Read... [11:00:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:14]Read from MH i2c: E2 [11:00:14]MH_I2C_Read... [11:00:14]Read from MH i2c: E2 03 00 [11:00:14]MH_I2C_Read... [11:00:14]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [11:00:14]RAPDU: 90 00 [11:00:14]wFMCommunicate OK [11:00:14]wFMCommunicate request_size=28 [11:00:14]MH_SAM_APDU [11:00:14]CAPDU: 80 0D 02 02 17 37 34 39 35 38 10 04 04 00 84 A3 00 00 35 04 06 00 5D E8 E5 6C 85 00 [11:00:14]Write to MH i2c: E2 1F 00 76 00 80 0D 02 02 17 00 37 34 39 35 38 10 04 04 00 84 A3 00 00 35 04 06 00 5D E8 E5 6C 85 00 00 00 C8 [11:00:14]Write i2c OK [11:00:14]MH_I2C_Read... [11:00:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:14]Read from MH i2c: E2 [11:00:14]MH_I2C_Read... [11:00:14]Read from MH i2c: E2 03 00 [11:00:14]MH_I2C_Read... [11:00:14]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [11:00:14]RAPDU: 90 00 [11:00:14]wFMCommunicate OK [11:00:14]wFMCommunicate request_size=4 [11:00:14]MH_SAM_APDU [11:00:14]CAPDU: 80 0D 03 02 [11:00:14]Write to MH i2c: E2 08 00 77 00 80 0D 03 02 00 00 00 00 F2 [11:00:14]Write i2c OK [11:00:14]MH_I2C_Read... [11:00:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:00:14]Read from MH i2c: E2 [11:00:14]MH_I2C_Read... [11:00:14]Read from MH i2c: E2 0B 00 [11:00:14]MH_I2C_Read... [11:00:14]Read from MH i2c: E2 0B 00 77 00 00 B3 B4 9D C8 55 3A AC 36 90 00 30 [11:00:14]RAPDU: B3 B4 9D C8 55 3A AC 36 90 00 [11:00:14]wFMCommunicate OK [11:00:14]SAM_PROTO_SignData done [11:00:14]FM_MakeSignedData done [11:00:14]CreateOFDProtocolMessage [11:00:14]wFMCommunicate request_size=4 [11:00:14]MH_SAM_APDU [11:00:14]CAPDU: 80 11 00 00 [11:00:14]Write to MH i2c: E2 08 00 78 00 80 11 00 00 00 00 00 00 F2 [11:00:14]Write i2c OK [11:00:14]MH_I2C_Read... [11:00:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:14]Read from MH i2c: E2 [11:00:14]MH_I2C_Read... [11:00:14]Read from MH i2c: E2 17 00 [11:00:14]MH_I2C_Read... [11:00:14]Read from MH i2c: E2 17 00 78 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 4E [11:00:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [11:00:14]wFMCommunicate OK [11:00:14]CreateOFDProtocolMessage done [11:00:14]OFDSenderStorePacket 41860 [11:00:14]StoreOFDPacket docnum=41860 [11:00:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 21 01 00 00 15 64 19 01 34 AD 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 35 35 33 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AD D0 BD D0 B5 D1 81 D0 B0 D0 B9 20 31 30 D0 BB 2E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 3D 76 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 84 A3 00 00 35 04 06 00 5D E8 E5 6C 85 00 B3 B4 9D C8 55 3A AC 36 [11:00:14]CheckFolder [11:00:14]dirname=/storage/ofd_packets [11:00:14]CheckFolder done [11:00:14]ProducePacketName [11:00:14]name=ofd_packets/00041860 [11:00:14]NVStorageSaveData ofd_packets/00041860 [11:00:14]File name is /storage/ofd_packets/00041860 [11:00:14]Write 319 bytes [11:00:14]NVStorageSaveData done [11:00:14]OFDSenderStorePacket done [11:00:14]KKMCreateOFDPacket done [11:00:14]NVStorageSaveData kkm_last_timestamp [11:00:14]File name is /storage/kkm_last_timestamp [11:00:14]Write 4 bytes [11:00:14]NVStorageSaveData done [11:00:14]ExternCall_PrintAddStr [11:00:14]wPrintStart [11:00:14]Write to MH i2c: 01 00 00 79 00 79 [11:00:14]Write i2c OK [11:00:14]MH_I2C_Read... [11:00:14]Read from MH i2c: 01 [11:00:14]MH_I2C_Read... [11:00:14]Read from MH i2c: 01 07 00 [11:00:14]MH_I2C_Read... [11:00:14]Read from MH i2c: 01 07 00 79 00 00 00 00 00 00 FF 0F 8E [11:00:14]RasterBufferAndPrint [11:00:14]line Счет N : (3)183888 [11:00:14]line ИНН: 02508201610067 [11:00:14]line Контрольно-Кассовый Чек [11:00:14]line ПРОДАЖА [11:00:14]line Товар: 4700003610553 [11:00:14]line Вода Энесай 10л. [11:00:14]line 1.000 * 115.00 [11:00:14]line = 115.00 [11:00:14]line НДС 12% НСП 1% [11:00:14]line > о реализуемом товаре [11:00:14]line ИТОГО: 115.00 [11:00:14]line НСП 1% : 1.02 [11:00:14]line НДС 12% : 12.21 [11:00:14]line Наличными: 115.00 [11:00:14]line Безнал.: 0.00 [11:00:14]line Место: АЗС № 97 "Партнер Нефть" [11:00:14]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [11:00:14]line СНО: Общий режим [11:00:14]line Чек 49 29.07.2024 11:00 [11:00:14]line Смена: 427 ФФД: 1.0 [11:00:14]line ЗНМ: 0300000053 [11:00:14]line РНМ: 0000000000092626 [11:00:14]line Версия ККМ: 001 [11:00:14]line ФМ: 0000000000874958 [11:00:14]line ФД: 41860 [11:00:14]line ФПД: 103254862890240 [11:00:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T110013&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41860&fm=103254862890240&tin=02508201610067®Number=0000000000092626&sum=11500 [11:00:14]line 0 [11:00:14]written 0, free lines is 4095 [11:00:14]OFD Sender: Processing packet 41860 [packets to send 57, broken 56] [11:00:14]ProducePacketName [11:00:14]name=ofd_packets/00041860 [11:00:14]OFD Sender: To server: pG, [11:00:14]CommunicateWithHost lk.salyk.kg:30040 [11:00:14]ConnectInit lk.salyk.kg [11:00:15]Write to MH i2c: 01 00 00 A1 00 A1 [11:00:15]Write i2c OK [11:00:15]MH_I2C_Read... [11:00:15]Read from MH i2c: 01 [11:00:15]MH_I2C_Read... [11:00:15]Read from MH i2c: 01 07 00 [11:00:15]MH_I2C_Read... [11:00:15]Read from MH i2c: 01 07 00 A1 00 00 00 00 00 00 0C 0D C1 [11:00:15]RasterBufferAndPrint [11:00:15]line [11:00:15]line [11:00:15]line [11:00:15]line [11:00:15]line [11:00:15]written 0, free lines is 3362 [11:00:15]MH_Cut [11:00:15]Write to MH i2c: D1 01 00 A8 00 01 7A [11:00:15]Write i2c OK [11:00:15]MH_I2C_Read... [11:00:15]Read from MH i2c: D1 [11:00:15]MH_I2C_Read... [11:00:15]Read from MH i2c: D1 01 00 [11:00:15]MH_I2C_Read... [11:00:15]Read from MH i2c: D1 01 00 A8 00 00 79 [11:00:15]Write to MH i2c: 01 00 00 A9 00 A9 [11:00:15]Write i2c OK [11:00:15]MH_I2C_Read... [11:00:15]*** Cut start [11:00:15]*** Partial cut [11:00:15]*** CUTSNS_PIN = 1 [11:00:16]*** CUTSNS_PIN = 0 [11:00:16]*** Brake cut motor [11:00:16]Read from MH i2c: 01 [11:00:16]MH_I2C_Read... [11:00:16]*** Stop cut motor [11:00:16]*** Cut end [11:00:16]Read from MH i2c: 01 07 00 [11:00:16]MH_I2C_Read... [11:00:16]Read from MH i2c: 01 07 00 A9 00 00 00 00 00 00 FF 0F BE [11:00:16]process_action close_receipt done [11:00:16]requested_data is exist [11:00:16]produce_requested_data [11:00:16]requested_item fm.sn is exist - process it [11:00:16]wFMCommunicate request_size=4 [11:00:16]MH_SAM_APDU [11:00:16]CAPDU: 80 11 00 00 [11:00:16]Write to MH i2c: E2 08 00 AA 00 80 11 00 00 00 00 00 00 24 [11:00:16]Write i2c OK [11:00:16]MH_I2C_Read... [11:00:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:16]Read from MH i2c: E2 [11:00:16]MH_I2C_Read... [11:00:16]Read from MH i2c: E2 17 00 [11:00:16]MH_I2C_Read... [11:00:16]Read from MH i2c: E2 17 00 AA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 80 [11:00:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [11:00:16]wFMCommunicate OK [11:00:16]requested_item fd.num is exist - process it [11:00:16]SAM_PROTO_GetFieldsCounters [11:00:16]wFMCommunicate request_size=4 [11:00:16]MH_SAM_APDU [11:00:16]CAPDU: 80 13 00 00 [11:00:16]Write to MH i2c: E2 08 00 AB 00 80 13 00 00 00 00 00 00 27 [11:00:16]Write i2c OK [11:00:16]MH_I2C_Read... [11:00:16]Connected sock=11 [11:00: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 35 38 21 01 00 00 15 64 19 01 34 AD 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 35 35 33 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AD D0 BD D0 B5 D1 81 D0 B0 D0 B9 20 31 30 D0 BB 2E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 3D 76 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 Read from MH i2c: 39 E2 32 [11:00:16]36 MH_I2C_Read... [11:00:16]32 Read from MH i2c: 36 E2 11 62 04 00 10 [11:00:16]00 MH_I2C_Read... [11:00:16]30 *** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:00:16]30 30 30 30 30 Read from MH i2c: 30 E2 30 62 30 00 30 AB 38 00 37 00 34 5D 39 00 35 B9 38 04 10 01 04 00 04 01 00 11 84 04 A3 10 00 00 35 04 06 00 5D E8 E5 6C 85 00 B3 B4 9D C8 55 3A AC 36 [11:00:17]00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 84 A3 00 00 0E 04 04 00 AB 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 B7 [11: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 84 A3 00 00 0E 04 04 00 AB 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:00:17]wFMCommunicate OK [11:00:17]SAM_PROTO_GetFieldsCounters done [11:00:17]requested_item shift.num is exist - process it [11:00:17]requested_item shift.opened is exist - process it [11:00:17]req_shift_opened [11:00:17]FM_GetShiftState [11:00:17]SAM_PROTO_GetShiftState [11:00:17]wFMCommunicate request_size=4 [11:00:17]MH_SAM_APDU [11:00:17]CAPDU: 80 13 01 00 [11:00:17]Write to MH i2c: E2 08 00 AC 00 80 13 01 00 00 00 00 00 29 [11:00:17]Write i2c OK [11:00:17]MH_I2C_Read... [11:00:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:17]Read from MH i2c: E2 [11:00:17]MH_I2C_Read... [11:00:17]Read from MH i2c: E2 0E 00 [11:00:17]MH_I2C_Read... [11:00:17]Read from MH i2c: E2 0E 00 AC 00 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 C5 [11:00:17]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [11:00:17]wFMCommunicate OK [11:00:17]SAM_PROTO_GetShiftState done [11:00:17]FM_GetShiftState done [11:00:17]req_shift_opened done [11:00:17]requested_item shift.open_date is exist - process it [11:00:17]req_shift_open_date [11:00:17]req_shift_open_date done [11:00:17]produce_requested_data done [11:00:17]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41860,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [11:00:17]process_action_free close_receipt [11:00:17]json_value_free [11:00:17]json_value_free done [11:00:17]process_json_proto returns [11:00:17]Send response to host [11:00:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41860,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [11:00:17]free response buf [11:00:17]execute_script done [11:00:17]execute_script returns [11:00:17]free content buf [11:00:17]Sock 9.Close socket [11:00:17]Sock 9.Thread stoped [11:00: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 35 38 4F 00 00 00 BF 16 47 00 BE 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 35 38 10 04 04 00 84 A3 00 00 F4 03 04 00 54 22 A7 66 B6 04 01 00 00 91 F2 70 9C 94 34 35 B0 [11:00:17]CommunicateWithHost err = 0 [11:00:17]CheckOFDResponse [11:00:17]1017 (14) - 77093643461234 [11:00:17]1041 (16) - 0000000000874958 [11:00:17]1040 (4) - 41860 [11:00:17]1012 (4) - 29.07.2024 05:02 [11:00:17]1206 (1) - 0 [11:00:17]OFD Sender: Remove packet 41860 [11:00:17]ProducePacketName [11:00:17]name=ofd_packets/00041860 [11:00:17]NVStorageDeleteData [11:00:18]OFD Sender: No OFD packet to send [11:00:18]accept exits with 8 [11:00:18]New connection [11:00:18]New thread 3066903908 created [11:00:18]Thread 3066760548 joined [11:00:18]Waiting for new connection... [11:00:18] Sock 8.Parse request [11:00:18]Sock 8.Check first char [11:00:18]Sock 8.First char is OK [11:00:18]request: POST /json_proto HTTP/1.0 [11:00:18]Method: POST [11:00:18]URL: /json_proto [11:00:18]Method is POST - this is cgi request [11:00:18]url: /json_proto [11:00:18]query_string will be loaded in cgi processing [11:00:18]execute_cgi json_proto POST (null) [11:00:18]execute_cgi path=json_proto method=POST [11:00:18]POST find Content-Length [11:00:18]Host: 172.17.43.132:8080 [11:00:18]Content-Length: 904 [11:00:18]Content-Type: application/json [11:00:18] [11:00:18]POST finish read [11:00:18]Found Content-Length = 904 [11:00:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183889", "tax_sys" : 0, "items" : [ { "code": "4870202521148", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D 0.45\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112003925", "name": "\u041A\u043E\u043D\u0434 ULKER-Albeni 40gr (6*24)", "price" : 55.00, "quantity" : 1.000, "sum" : 55.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:00:18]execute_script... [11:00:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183889", "tax_sys" : 0, "items" : [ { "code": "4870202521148", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D 0.45\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112003925", "name": "\u041A\u043E\u043D\u0434 ULKER-Albeni 40gr (6*24)", "price" : 55.00, "quantity" : 1.000, "sum" : 55.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:00:18]POST & json_proto [11:00:18]process_json_proto [11:00:18]json parsed OK: [11:00:18]protocol is kg_v1.0 [11:00:18]action value=close_receipt [11:00:18]process_action close_receipt [11:00:18]cmd_close_receipt [11:00:18]MH_GetDate [11:00:18]Write to MH i2c: F0 00 00 AD 00 9C [11:00:18]Write i2c OK [11:00:18]MH_I2C_Read... [11:00:18]Read from MH i2c: F0 [11:00:18]MH_I2C_Read... [11:00:18]Read from MH i2c: F0 09 00 [11:00:18]MH_I2C_Read... [11:00:18]Read from MH i2c: F0 09 00 AD 00 00 43 76 A7 66 F8 53 A7 66 C3 [11:00:18]GetLastDocTimeStamp 1722250813 [11:00:18]current date 1722250819 [11:00:18]FM_GetShiftState [11:00:18]SAM_PROTO_GetShiftState [11:00:18]wFMCommunicate request_size=4 [11:00:18]MH_SAM_APDU [11:00:18]CAPDU: 80 13 01 00 [11:00:18]Write to MH i2c: E2 08 00 AE 00 80 13 01 00 00 00 00 00 2B [11:00:18]Write i2c OK [11:00:18]MH_I2C_Read... [11:00:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:19]Read from MH i2c: E2 [11:00:19]MH_I2C_Read... [11:00:19]Read from MH i2c: E2 0E 00 [11:00:19]MH_I2C_Read... [11:00:19]Read from MH i2c: E2 0E 00 AE 00 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 C7 [11:00:19]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [11:00:19]wFMCommunicate OK [11:00:19]SAM_PROTO_GetShiftState done [11:00:19]FM_GetShiftState done [11:00:19]opened in 1722211496 [11:00:19]opened+sec_in_day 1722297896 [11:00:19]quantity*price = 7000 [11:00:19]sum+1 = 7001 [11:00:19]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870112003925 Конд ULKER-Albeni 40gr (6*24) 1.000 * 55.00 = 55.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 50 29.07.2024 11:00 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41861 ФПД: 33408605377351 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T110019&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41861&fm=33408605377351&tin=02508201610067®Number=0000000000092626&sum=12500 0 [11:00:20]StoreToDocumentArchive [11:00:20]shift 427 fd 41861 [11:00:20]save to /storage/0427/doc_00041861 [11:00:20]save last doc name /storage/0427/doc_00041861 to /storage/kkm_last_doc_name [11:00:20]save OK [11:00:20]Clear old archive folders... [11:00:20]ProcessDocumentItem done err = 0, tmpTLVsize=398 [11:00:20]tlvbuf is 00871A10 [11:00:20]SAM_PROTO_ClearQueue [11:00:20]wFMCommunicate request_size=4 [11:00:20]MH_SAM_APDU [11:00:20]CAPDU: 80 09 00 00 [11:00:20]Write to MH i2c: E2 08 00 BB 00 80 09 00 00 00 00 00 00 2D [11:00:20]Write i2c OK [11:00:20]MH_I2C_Read... [11:00:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:00:20]Read from MH i2c: E2 [11:00:20]MH_I2C_Read... [11:00:20]Read from MH i2c: E2 03 00 [11:00:20]MH_I2C_Read... [11:00:20]Read from MH i2c: E2 03 00 BB 00 00 90 00 2F [11:00:20]RAPDU: 90 00 [11:00:20]wFMCommunicate OK [11:00:20]SAM_PROTO_ClearQueue done [11:00:20]KKMCreateOFDPacket [11:00:20]OFDProtocolAddRootSTLVToBuf [11:00:20]FM_MakeSignedData [11:00:20]FM_MakeSignedData [11:00:20]SAM_PROTO_SignData [11:00:20]wFMCommunicate request_size=4 [11:00:20]MH_SAM_APDU [11:00:20]CAPDU: 80 0D 01 02 [11:00:20]Write to MH i2c: E2 08 00 BC 00 80 0D 01 02 00 00 00 00 35 [11:00:20]Write i2c OK [11:00:20]MH_I2C_Read... [11:00:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:00:20]Read from MH i2c: E2 [11:00:20]MH_I2C_Read... [11:00:20]Read from MH i2c: E2 03 00 [11:00:20]MH_I2C_Read... [11:00:20]Read from MH i2c: E2 03 00 BC 00 00 90 00 30 [11:00:20]RAPDU: 90 00 [11:00:20]wFMCommunicate OK [11:00:20]wFMCommunicate request_size=255 [11:00:20]MH_SAM_APDU [11:00:20]CAPDU: 80 0D 02 02 FA 03 00 8E 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 34 38 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 30 2E 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 [11:00:20]Write to MH i2c: E2 02 01 BD 00 80 0D 02 02 FA 00 03 00 8E 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 34 38 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 30 2E 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 00 13 [11:00:20]Write i2c OK [11:00:20]MH_I2C_Read... [11:00:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:21]Read from MH i2c: E2 [11:00:21]MH_I2C_Read... [11:00:21]Read from MH i2c: E2 03 00 [11:00:21]MH_I2C_Read... [11:00:21]Read from MH i2c: E2 03 00 BD 00 00 90 00 31 [11:00:21]RAPDU: 90 00 [11:00:21]wFMCommunicate OK [11:00:21]wFMCommunicate request_size=157 [11:00:21]MH_SAM_APDU [11:00:21]CAPDU: 80 0D 02 02 98 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 43 76 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 85 A3 00 00 35 04 06 00 1E 62 8C 0E 53 47 [11:00:21]Write to MH i2c: E2 A0 00 BE 00 80 0D 02 02 98 00 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 43 76 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 85 A3 00 00 35 04 06 00 1E 62 8C 0E 53 47 00 00 C1 [11:00:21]Write i2c OK [11:00:21]MH_I2C_Read... [11:00:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:21]Read from MH i2c: E2 [11:00:21]MH_I2C_Read... [11:00:21]Read from MH i2c: E2 03 00 [11:00:21]MH_I2C_Read... [11:00:21]Read from MH i2c: E2 03 00 BE 00 00 90 00 32 [11:00:21]RAPDU: 90 00 [11:00:21]wFMCommunicate OK [11:00:21]wFMCommunicate request_size=4 [11:00:21]MH_SAM_APDU [11:00:21]CAPDU: 80 0D 03 02 [11:00:21]Write to MH i2c: E2 08 00 BF 00 80 0D 03 02 00 00 00 00 3A [11:00:21]Write i2c OK [11:00:21]MH_I2C_Read... [11:00:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:00:21]Read from MH i2c: E2 [11:00:21]MH_I2C_Read... [11:00:21]Read from MH i2c: E2 0B 00 [11:00:21]MH_I2C_Read... [11:00:21]Read from MH i2c: E2 0B 00 BF 00 00 38 81 6C 77 7A E3 5D AD 90 00 3E [11:00:21]RAPDU: 38 81 6C 77 7A E3 5D AD 90 00 [11:00:21]wFMCommunicate OK [11:00:21]SAM_PROTO_SignData done [11:00:21]FM_MakeSignedData done [11:00:21]CreateOFDProtocolMessage [11:00:21]wFMCommunicate request_size=4 [11:00:21]MH_SAM_APDU [11:00:21]CAPDU: 80 11 00 00 [11:00:21]Write to MH i2c: E2 08 00 C0 00 80 11 00 00 00 00 00 00 3A [11:00:21]Write i2c OK [11:00:21]MH_I2C_Read... [11:00:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:21]Read from MH i2c: E2 [11:00:21]MH_I2C_Read... [11:00:21]Read from MH i2c: E2 17 00 [11:00:21]MH_I2C_Read... [11:00:21]Read from MH i2c: E2 17 00 C0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 96 [11:00:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [11:00:21]wFMCommunicate OK [11:00:21]CreateOFDProtocolMessage done [11:00:21]OFDSenderStorePacket 41861 [11:00:21]StoreOFDPacket docnum=41861 [11:00:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 A2 01 00 00 01 E8 9A 01 14 51 5A 03 01 00 03 00 8E 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 34 38 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 30 2E 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 43 76 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 85 A3 00 00 35 04 06 00 1E 62 8C 0E 53 47 38 81 6C 77 7A E3 5D AD [11:00:21]CheckFolder [11:00:21]dirname=/storage/ofd_packets [11:00:21]CheckFolder done [11:00:21]ProducePacketName [11:00:21]name=ofd_packets/00041861 [11:00:21]NVStorageSaveData ofd_packets/00041861 [11:00:21]File name is /storage/ofd_packets/00041861 [11:00:21]Write 448 bytes [11:00:21]NVStorageSaveData done [11:00:21]OFDSenderStorePacket done [11:00:21]KKMCreateOFDPacket done [11:00:21]NVStorageSaveData kkm_last_timestamp [11:00:21]File name is /storage/kkm_last_timestamp [11:00:21]Write 4 bytes [11:00:21]NVStorageSaveData done [11:00:21]ExternCall_PrintAddStr [11:00:21]wPrintStart [11:00:21]Write to MH i2c: 01 00 00 C1 00 C1 [11:00:21]Write i2c OK [11:00:21]MH_I2C_Read... [11:00:21]Read from MH i2c: 01 [11:00:21]MH_I2C_Read... [11:00:21]Read from MH i2c: 01 07 00 [11:00:21]MH_I2C_Read... [11:00:21]OFD Sender: Processing packet 41861 [packets to send 57, broken 56] [11:00:21]ProducePacketName [11:00:21]name=ofd_packets/00041861 [11:00:21]OFD Sender: To server: pG, [11:00:21]CommunicateWithHost lk.salyk.kg:30040 [11:00:21]ConnectInit lk.salyk.kg [11:00:21]Read from MH i2c: 01 07 00 C1 00 00 00 00 00 00 FF 0F D6 [11:00:21]RasterBufferAndPrint [11:00:21]line Счет N : (3)183889 [11:00:21]line ИНН: 02508201610067 [11:00:21]line Контрольно-Кассовый Чек [11:00:21]line ПРОДАЖА [11:00:21]line Товар: 4870202521148 [11:00:21]line Напиток MAXI чай зел лимон 0.45л [11:00:21]line 1.000 * 70.00 [11:00:21]line = 70.00 [11:00:21]line НДС 12% НСП 1% [11:00:21]line > о реализуемом товаре [11:00:21]line Товар: 4870112003925 [11:00:21]line Конд ULKER-Albeni 40gr (6*24) [11:00:21]line 1.000 * 55.00 [11:00:21]line = 55.00 [11:00:21]line НДС 12% НСП 1% [11:00:21]line > о реализуемом товаре [11:00:21]line ИТОГО: 125.00 [11:00:21]line НСП 1% : 1.11 [11:00:21]line НДС 12% : 13.27 [11:00:21]line Наличными: 125.00 [11:00:21]line Безнал.: 0.00 [11:00:21]line Место: АЗС № 97 "Партнер Нефть" [11:00:21]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [11:00:21]line СНО: Общий режим [11:00:21]line Чек 50 29.07.2024 11:00 [11:00:21]line Смена: 427 ФФД: 1.0 [11:00:21]line ЗНМ: 0300000053 [11:00:21]line РНМ: 0000000000092626 [11:00:21]line Версия ККМ: 001 [11:00:21]line ФМ: 0000000000874958 [11:00:21]line ФД: 41861 [11:00:21]line ФПД: 33408605377351 [11:00:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T110019&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41861&fm=33408605377351&tin=02508201610067®Number=0000000000092626&sum=12500 [11:00:21]line 0 [11:00:21]written 0, free lines is 4095 [11:00:22]Write to MH i2c: 01 00 00 F0 00 F0 [11:00:22]Write i2c OK [11:00:22]MH_I2C_Read... [11:00:22]Read from MH i2c: 01 [11:00:22]MH_I2C_Read... [11:00:22]Read from MH i2c: 01 07 00 [11:00:22]MH_I2C_Read... [11:00:22]Read from MH i2c: 01 07 00 F0 00 00 00 00 00 00 BE 0C C1 [11:00:22]RasterBufferAndPrint [11:00:22]line [11:00:22]line [11:00:22]line [11:00:22]line [11:00:22]line [11:00:22]written 0, free lines is 3293 [11:00:22]MH_Cut [11:00:22]Write to MH i2c: D1 01 00 F7 00 01 C9 [11:00:22]Write i2c OK [11:00:22]MH_I2C_Read... [11:00:22]Read from MH i2c: D1 [11:00:22]MH_I2C_Read... [11:00:22]Read from MH i2c: D1 01 00 [11:00:22]MH_I2C_Read... [11:00:22]Read from MH i2c: D1 01 00 F7 00 00 C8 [11:00:22]Write to MH i2c: 01 00 00 F8 00 F8 [11:00:22]Write i2c OK [11:00:22]MH_I2C_Read... [11:00:23]*** Cut start [11:00:23]*** Partial cut [11:00:23]*** CUTSNS_PIN = 1 [11:00:23]*** CUTSNS_PIN = 0 [11:00:23]*** Brake cut motor [11:00:23]Read from MH i2c: *** Stop cut motor [11:00:23]01 *** Cut end [11:00:23] [11:00:23]MH_I2C_Read... [11:00:23]Read from MH i2c: 01 07 00 [11:00:23]MH_I2C_Read... [11:00:23]Read from MH i2c: 01 07 00 F8 00 00 00 00 00 00 FF 0F 0D [11:00:23]process_action close_receipt done [11:00:23]requested_data is exist [11:00:23]produce_requested_data [11:00:23]requested_item fm.sn is exist - process it [11:00:23]wFMCommunicate request_size=4 [11:00:23]MH_SAM_APDU [11:00:23]CAPDU: 80 11 00 00 [11:00:23]Write to MH i2c: E2 08 00 F9 00 80 11 00 00 00 00 00 00 73 [11:00:23]Write i2c OK [11:00:23]MH_I2C_Read... [11:00:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:23]Read from MH i2c: E2 [11:00:23]MH_I2C_Read... [11:00:23]Read from MH i2c: E2 17 00 [11:00:23]MH_I2C_Read... [11:00:23]Read from MH i2c: E2 17 00 F9 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 CF [11:00:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [11:00:23]wFMCommunicate OK [11:00:23]requested_item fd.num is exist - process it [11:00:23]SAM_PROTO_GetFieldsCounters [11:00:23]wFMCommunicate request_size=4 [11:00:23]MH_SAM_APDU [11:00:23]CAPDU: 80 13 00 00 [11:00:23]Write to MH i2c: E2 08 00 FA 00 80 13 00 00 00 00 00 00 76 [11:00:23]Write i2c OK [11:00:23]MH_I2C_Read... [11:00:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:00:24]Read from MH i2c: E2 [11:00:24]MH_I2C_Read... [11:00:24]Read from MH i2c: E2 62 00 [11:00:24]MH_I2C_Read... [11:00:24]Read from MH i2c: E2 62 00 FA 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 85 A3 00 00 0E 04 04 00 AB 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 0A [11:00:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 85 A3 00 00 0E 04 04 00 AB 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:00:24]wFMCommunicate OK [11:00:24]SAM_PROTO_GetFieldsCounters done [11:00:24]requested_item shift.num is exist - process it [11:00:24]requested_item shift.opened is exist - process it [11:00:24]req_shift_opened [11:00:24]FM_GetShiftState [11:00:24]SAM_PROTO_GetShiftState [11:00:24]wFMCommunicate request_size=4 [11:00:24]MH_SAM_APDU [11:00:24]CAPDU: 80 13 01 00 [11:00:24]Write to MH i2c: E2 08 00 FB 00 80 13 01 00 00 00 00 00 78 [11:00:24]Write i2c OK [11:00:24]MH_I2C_Read... [11:00:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:24]Read from MH i2c: E2 [11:00:24]MH_I2C_Read... [11:00:24]Read from MH i2c: E2 0E 00 [11:00:24]MH_I2C_Read... [11:00:24]Read from MH i2c: E2 0E 00 FB 00 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 14 [11:00:24]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [11:00:24]wFMCommunicate OK [11:00:24]SAM_PROTO_GetShiftState done [11:00:24]FM_GetShiftState done [11:00:24]req_shift_opened done [11:00:24]requested_item shift.open_date is exist - process it [11:00:24]req_shift_open_date [11:00:24]req_shift_open_date done [11:00:24]produce_requested_data done [11:00:24]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41861,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [11:00:24]process_action_free close_receipt [11:00:24]json_value_free [11:00:24]json_value_free done [11:00:24]process_json_proto returns [11:00:24]Send response to host [11:00:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41861,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [11:00:24]free response buf [11:00:24]execute_script done [11:00:24]execute_script returns [11:00:24]free content buf [11:00:24]Sock 8.Close socket [11:00:24]Sock 8.Thread stoped [11:00:25]Connected sock=11 [11:00: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 35 38 A2 01 00 00 01 E8 9A 01 14 51 5A 03 01 00 03 00 8E 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 34 38 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 30 2E 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 43 76 A7 66 0E 04 04 00 AB 01 00 00 accept exits with 9 [11:00:25]B9 New connection [11:00:25]04 New thread 3066760548 created [11:00:25]01 Thread 3066903908 joined [11:00:25]00 Waiting for new connection... [11:00:25]01 Sock 9.Parse request [11:00:25]0D Sock 9.Check first char [11:00:25]04 Sock 9.First char is OK [11:00:25]10 request: POST /json_proto HTTP/1.0 [11:00:25]00 Method: POST [11:00:25]30 URL: /json_proto [11:00:25]30 Method is POST - this is cgi request [11:00:25]30 url: /json_proto [11:00:25]30 query_string will be loaded in cgi processing [11:00:25]30 execute_cgi json_proto POST (null) [11:00:25]30 execute_cgi path=json_proto method=POST [11:00:25]30 POST find Content-Length [11:00:25]30 Host: 172.17.43.132:8080 [11:00:25]30 Content-Length: 647 [11:00:25]30 Content-Type: application/json [11:00:25]30 [11:00:25]POST finish read [11:00:25]Found Content-Length = 647 [11:00:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183890", "tax_sys" : 0, "items" : [ { "code": "4700000310036", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:00:25]execute_script... [11:00:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183890", "tax_sys" : 0, "items" : [ { "code": "4700000310036", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:00:25]POST & json_proto [11:00:25]process_json_proto [11:00:25]json parsed OK: [11:00:25]protocol is kg_v1.0 [11:00:25]action value=close_receipt [11:00:25]process_action close_receipt [11:00:25]cmd_close_receipt [11:00:25]MH_GetDate [11:00:25]Write to MH i2c: F0 00 00 FC 39 00 32 EB 36 [11:00:25]32 36 Write i2c OK [11:00:25]11 MH_I2C_Read... [11:00:25]04 Read from MH i2c: 10 F0 00 [11:00:25]30 MH_I2C_Read... [11:00:25]30 30 30 Read from MH i2c: 30 F0 30 09 30 00 30 [11:00:25]30 MH_I2C_Read... [11:00:25]30 38 37 34 39 35 38 10 04 04 00 85 A3 00 00 35 04 06 00 1E 62 8C 0E 53 47 Read from MH i2c: 38 F0 81 09 6C 00 77 FC 7A 00 E3 00 5D 4A AD 76 [11:00:25]A7 66 F8 53 A7 66 19 [11:00:25]GetLastDocTimeStamp 1722250819 [11:00:25]current date 1722250826 [11:00:25]FM_GetShiftState [11:00:25]SAM_PROTO_GetShiftState [11:00:25]wFMCommunicate request_size=4 [11:00:25]MH_SAM_APDU [11:00:25]CAPDU: 80 13 01 00 [11:00:25]Write to MH i2c: E2 08 00 FD 00 80 13 01 00 00 00 00 00 7A [11:00:25]Write i2c OK [11:00:25]MH_I2C_Read... [11:00:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:25]Read from MH i2c: E2 [11:00:25]MH_I2C_Read... [11:00:25]Read from MH i2c: E2 0E 00 [11:00:25]MH_I2C_Read... [11:00:25]Read from MH i2c: E2 0E 00 FD 00 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 16 [11:00:25]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [11:00:25]wFMCommunicate OK [11:00:25]SAM_PROTO_GetShiftState done [11:00:25]FM_GetShiftState done [11:00:25]opened in 1722211496 [11:00:25]opened+sec_in_day 1722297896 [11:00:25]quantity*price = 4000 [11:00:25]sum+1 = 4001 [11:00:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 40.00 НСП 1% : 0.35 НДС 12% : 4.25 Наличными: 40.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 51 29.07.2024 11:00 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41862 ФПД: 73258678149258 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T110026&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41862&fm=73258678149258&tin=02508201610067®Number=0000000000092626&sum=4000 0 [11:00:27]StoreToDocumentArchive [11:00:27]shift 427 fd 41862 [11:00:27]save to /storage/0427/doc_00041862 [11:00:27]save last doc name /storage/0427/doc_00041862 to /storage/kkm_last_doc_name [11:00:27]save OK [11:00:27]Clear old archive folders... [11:00:27]ProcessDocumentItem done err = 0, tmpTLVsize=278 [11:00:27]tlvbuf is 008ABDB0 [11:00:27]SAM_PROTO_ClearQueue [11:00:27]wFMCommunicate request_size=4 [11:00:27]MH_SAM_APDU [11:00:27]CAPDU: 80 09 00 00 [11:00:27]Write to MH i2c: E2 08 00 0A 01 80 09 00 00 00 00 00 00 7D [11:00:27]Write i2c OK [11:00:27]MH_I2C_Read... [11:00:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:00:27]Read from MH i2c: E2 [11:00:27]MH_I2C_Read... [11:00:27]Read from MH i2c: E2 03 00 [11:00:27]MH_I2C_Read... [11:00:27]Read from MH i2c: E2 03 00 0A 01 00 90 00 7F [11:00:27]RAPDU: 90 00 [11:00:27]wFMCommunicate OK [11:00:27]SAM_PROTO_ClearQueue done [11:00:27]KKMCreateOFDPacket [11:00:27]OFDProtocolAddRootSTLVToBuf [11:00:27]FM_MakeSignedData [11:00:27]FM_MakeSignedData [11:00:27]SAM_PROTO_SignData [11:00:27]wFMCommunicate request_size=4 [11:00:27]MH_SAM_APDU [11:00:27]CAPDU: 80 0D 01 02 [11:00:27]Write to MH i2c: E2 08 00 0B 01 80 0D 01 02 00 00 00 00 85 [11:00:27]Write i2c OK [11:00:27]MH_I2C_Read... [11:00:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:00:27]Read from MH i2c: E2 [11:00:27]MH_I2C_Read... [11:00:27]Read from MH i2c: E2 03 00 [11:00:27]MH_I2C_Read... [11:00:27]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [11:00:27]RAPDU: 90 00 [11:00:27]wFMCommunicate OK [11:00:27]wFMCommunicate request_size=255 [11:00:27]MH_SAM_APDU [11:00:27]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 33 36 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 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 4A 76 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 [11:00:27]Write to MH i2c: E2 02 01 0C 01 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 33 36 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 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 4A 76 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 00 00 2D [11:00:27]Write i2c OK [11:00:27]MH_I2C_Read... [11:00:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:27]Read from MH i2c: E2 [11:00:27]MH_I2C_Read... [11:00:27]Read from MH i2c: E2 03 00 [11:00:27]MH_I2C_Read... [11:00:27]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [11:00:27]RAPDU: 90 00 [11:00:27]wFMCommunicate OK [11:00:27]wFMCommunicate request_size=37 [11:00:27]MH_SAM_APDU [11:00:27]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 86 A3 00 00 35 04 06 00 42 A0 DD 7C E0 8A [11:00:27]Write to MH i2c: E2 28 00 0D 01 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 86 A3 00 00 35 04 06 00 42 A0 DD 7C E0 8A 00 00 B6 [11:00:28]Write i2c OK [11:00:28]MH_I2C_Read... [11:00:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:28]Read from MH i2c: E2 [11:00:28]MH_I2C_Read... [11:00:28]Read from MH i2c: E2 03 00 [11:00:28]MH_I2C_Read... [11:00:28]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [11:00:28]RAPDU: 90 00 [11:00:28]wFMCommunicate OK [11:00:28]wFMCommunicate request_size=4 [11:00:28]MH_SAM_APDU [11:00:28]CAPDU: 80 0D 03 02 [11:00:28]Write to MH i2c: E2 08 00 0E 01 80 0D 03 02 00 00 00 00 8A [11:00:28]Write i2c OK [11:00:28]MH_I2C_Read... [11:00:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:00:28]Read from MH i2c: E2 [11:00:28]MH_I2C_Read... [11:00:28]Read from MH i2c: E2 0B 00 [11:00:28]MH_I2C_Read... [11:00:28]Read from MH i2c: E2 0B 00 0E 01 00 A8 BC AA 88 20 74 DF 58 90 00 EC [11:00:28]RAPDU: A8 BC AA 88 20 74 DF 58 90 00 [11:00:28]wFMCommunicate OK [11:00:28]SAM_PROTO_SignData done [11:00:28]FM_MakeSignedData done [11:00:28]CreateOFDProtocolMessage [11:00:28]wFMCommunicate request_size=4 [11:00:28]MH_SAM_APDU [11:00:28]CAPDU: 80 11 00 00 [11:00:28]Write to MH i2c: E2 08 00 0F 01 80 11 00 00 00 00 00 00 8A [11:00:28]Write i2c OK [11:00:28]MH_I2C_Read... [11:00:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:28]Read from MH i2c: E2 [11:00:28]MH_I2C_Read... [11:00:28]Read from MH i2c: E2 17 00 [11:00:28]MH_I2C_Read... [11:00:28]Read from MH i2c: E2 17 00 0F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 E6 [11:00:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [11:00:28]wFMCommunicate OK [11:00:28]CreateOFDProtocolMessage done [11:00:28]OFDSenderStorePacket 41862 [11:00:28]StoreOFDPacket docnum=41862 [11:00:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 2A 01 00 00 D2 19 22 01 00 E5 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 33 36 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 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 4A 76 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 86 A3 00 00 35 04 06 00 42 A0 DD 7C E0 8A A8 BC AA 88 20 74 DF 58 [11:00:28]CheckFolder [11:00:28]dirname=/storage/ofd_packets [11:00:28]CheckFolder done [11:00:28]ProducePacketName [11:00:28]name=ofd_packets/00041862 [11:00:28]NVStorageSaveData ofd_packets/00041862 [11:00:28]File name is /storage/ofd_packets/00041862 [11:00:28]Write 328 bytes [11:00:28]NVStorageSaveData done [11:00:28]OFDSenderStorePacket done [11:00:28]KKMCreateOFDPacket done [11:00:28]NVStorageSaveData kkm_last_timestamp [11:00:28]File name is /storage/kkm_last_timestamp [11:00:28]Write 4 bytes [11:00:28]NVStorageSaveData done [11:00:28]ExternCall_PrintAddStr [11:00:28]wPrintStart [11:00:28]Write to MH i2c: 01 00 00 10 01 11 [11:00:28]Write i2c OK [11:00:28]MH_I2C_Read... [11:00:28]Read from MH i2c: 01 [11:00:28]MH_I2C_Read... [11:00:28]Read from MH i2c: 01 07 00 [11:00:28]MH_I2C_Read... [11:00:28]Read from MH i2c: 01 07 00 10 01 00 00 00 00 00 FF 0F 26 [11:00:28]RasterBufferAndPrint [11:00:28]line Счет N : (3)183890 [11:00:28]line ИНН: 02508201610067 [11:00:28]line Контрольно-Кассовый Чек [11:00:28]line ПРОДАЖА [11:00:28]line Товар: 4700000310036 [11:00:28]line Вода Жалалабат 27 0,5л [11:00:28]line 1.000 * 40.00 [11:00:28]line = 40.00 [11:00:28]line НДС 12% НСП 1% [11:00:28]line > о реализуемом товаре [11:00:28]line ИТОГО: 40.00 [11:00:28]line НСП 1% : 0.35 [11:00:28]line НДС 12% : 4.25 [11:00:28]line Наличными: 40.00 [11:00:28]line Безнал.: 0.00 [11:00:28]line Место: АЗС № 97 "Партнер Нефть" [11:00:28]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [11:00:28]line СНО: Общий режим [11:00:28]line Чек 51 29.07.2024 11:00 [11:00:28]line Смена: 427 ФФД: 1.0 [11:00:28]line ЗНМ: 0300000053 [11:00:28]line РНМ: 0000000000092626 [11:00:28]line Версия ККМ: 001 [11:00:28]line ФМ: 0000000000874958 [11:00:28]line ФД: 41862 [11:00:28]line ФПД: 73258678149258 [11:00:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T110026&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41862&fm=73258678149258&tin=02508201610067®Number=0000000000092626&sum=4000 [11:00:28]line 0 [11:00:28]written 0, free lines is 4095 [11:00:28]OFD Sender: Processing packet 41862 [packets to send 57, broken 56] [11:00:28]ProducePacketName [11:00:28]name=ofd_packets/00041862 [11:00:28]OFD Sender: To server: pG, [11:00:28]CommunicateWithHost lk.salyk.kg:30040 [11:00:28]ConnectInit lk.salyk.kg [11:00:28]Write to MH i2c: 01 00 00 38 01 39 [11:00:28]Write i2c OK [11:00:28]MH_I2C_Read... [11:00:28]Read from MH i2c: 01 [11:00:28]MH_I2C_Read... [11:00:28]Read from MH i2c: 01 07 00 [11:00:28]MH_I2C_Read... [11:00:28]Read from MH i2c: 01 07 00 38 01 00 00 00 00 00 15 0D 62 [11:00:28]RasterBufferAndPrint [11:00:28]line [11:00:28]line [11:00:28]line [11:00:28]line [11:00:28]line [11:00:28]written 0, free lines is 3384 [11:00:28]MH_Cut [11:00:28]Write to MH i2c: D1 01 00 3F 01 01 12 [11:00:28]Write i2c OK [11:00:28]MH_I2C_Read... [11:00:28]Read from MH i2c: D1 [11:00:28]MH_I2C_Read... [11:00:28]Read from MH i2c: D1 01 00 [11:00:28]MH_I2C_Read... [11:00:28]Read from MH i2c: D1 01 00 3F 01 00 11 [11:00:28]Write to MH i2c: 01 00 00 40 01 41 [11:00:28]Write i2c OK [11:00:28]MH_I2C_Read... [11:00:29]Connected sock=10 [11:00: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 35 38 2A 01 00 00 D2 19 22 01 00 E5 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 33 36 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 *** Cut start [11:00:29]A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 *** Partial cut [11:00:29]0F 00 00 00 00 EB 03 26 00 EF 03 *** CUTSNS_PIN = 1 [11:00:29]0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 *** CUTSNS_PIN = 0 [11:00:29]00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 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 4A 76 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 86 A3 00 00 35 04 06 00 42 A0 DD 7C E0 8A A8 BC AA 88 20 74 DF 58 [11:00:29]*** Brake cut motor [11:00:30]Read from MH i2c: 01 [11:00:30]MH_I2C_Read... [11:00:30]*** Stop cut motor [11:00:30]*** Cut end [11:00:30]Read from MH i2c: 01 07 00 [11:00:30]MH_I2C_Read... [11:00:30]Read from MH i2c: 01 07 00 40 01 00 00 00 00 00 FF 0F 56 [11:00:30]process_action close_receipt done [11:00:30]requested_data is exist [11:00:30]produce_requested_data [11:00:30]requested_item fm.sn is exist - process it [11:00:30]wFMCommunicate request_size=4 [11:00:30]MH_SAM_APDU [11:00:30]CAPDU: 80 11 00 00 [11:00:30]Write to MH i2c: E2 08 00 41 01 80 11 00 00 00 00 00 00 BC [11:00:30]Write i2c OK [11:00:30]MH_I2C_Read... [11:00:30]Read from MH i2c: E2 [11:00:30]MH_I2C_Read... [11:00:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:30]Read from MH i2c: E2 17 00 [11:00:30]MH_I2C_Read... [11:00:30]Read from MH i2c: E2 17 00 41 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 18 [11:00:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [11:00:30]wFMCommunicate OK [11:00:30]requested_item fd.num is exist - process it [11:00:30]SAM_PROTO_GetFieldsCounters [11:00:30]wFMCommunicate request_size=4 [11:00:30]MH_SAM_APDU [11:00:30]CAPDU: 80 13 00 00 [11:00:30]Write to MH i2c: E2 08 00 42 01 80 13 00 00 00 00 00 00 BF [11:00:30]Write i2c OK [11:00:30]MH_I2C_Read... [11:00: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 35 38 4F 00 00 00 9B C4 47 00 CE 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 35 38 10 04 04 00 86 A3 00 00 F4 03 04 00 61 22 A7 66 B6 04 01 00 00 *** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:00:30]17 EC DF EA D9 5E 53 E9 [11:00:30]CommunicateWithHost err = 0 [11:00:30]CheckOFDResponse [11:00:30]1017 (14) - 77093643461234 [11:00:30]1041 (16) - 0000000000874958 [11:00:30]1040 (4) - 41862 [11:00:30]1012 (4) - 29.07.2024 05:02 [11:00:30]1206 (1) - 0 [11:00:30]OFD Sender: Remove packet 41862 [11:00:30]ProducePacketName [11:00:30]name=ofd_packets/00041862 [11:00:30]NVStorageDeleteData [11:00:30]Read from MH i2c: E2 [11:00:30]MH_I2C_Read... [11:00:30]Read from MH i2c: E2 62 00 [11:00:30]MH_I2C_Read... [11:00:30]Read from MH i2c: E2 62 00 42 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 86 A3 00 00 0E 04 04 00 AB 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 57 [11:00: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 86 A3 00 00 0E 04 04 00 AB 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:00:30]wFMCommunicate OK [11:00:30]SAM_PROTO_GetFieldsCounters done [11:00:30]requested_item shift.num is exist - process it [11:00:30]requested_item shift.opened is exist - process it [11:00:30]req_shift_opened [11:00:30]FM_GetShiftState [11:00:30]SAM_PROTO_GetShiftState [11:00:30]wFMCommunicate request_size=4 [11:00:30]MH_SAM_APDU [11:00:30]CAPDU: 80 13 01 00 [11:00:30]Write to MH i2c: E2 08 00 43 01 80 13 01 00 00 00 00 00 C1 [11:00:30]Write i2c OK [11:00:30]MH_I2C_Read... [11:00:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:30]Read from MH i2c: E2 [11:00:30]MH_I2C_Read... [11:00:30]Read from MH i2c: E2 0E 00 [11:00:30]MH_I2C_Read... [11:00:30]Read from MH i2c: E2 0E 00 43 01 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 5D [11:00:30]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [11:00:30]wFMCommunicate OK [11:00:30]SAM_PROTO_GetShiftState done [11:00:30]FM_GetShiftState done [11:00:30]req_shift_opened done [11:00:30]requested_item shift.open_date is exist - process it [11:00:30]req_shift_open_date [11:00:30]req_shift_open_date done [11:00:30]produce_requested_data done [11:00:30]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41862,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [11:00:30]process_action_free close_receipt [11:00:30]json_value_free [11:00:30]json_value_free done [11:00:30]process_json_proto returns [11:00:30]Send response to host [11:00:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41862,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [11:00:30]free response buf [11:00:30]execute_script done [11:00:30]execute_script returns [11:00:30]free content buf [11:00:30]Sock 9.Close socket [11:00:30]Sock 9.Thread stoped [11:00:30]OFD Sender: No OFD packet to send [11:00:31]accept exits with 8 [11:00:31]New connection [11:00:31]New thread 3066903908 created [11:00:31]Thread 3066760548 joined [11:00:31]Waiting for new connection... [11:00:31] Sock 8.Parse request [11:00:31]Sock 8.Check first char [11:00:31]Sock 8.First char is OK [11:00:31]request: POST /json_proto HTTP/1.0 [11:00:31]Method: POST [11:00:31]URL: /json_proto [11:00:31]Method is POST - this is cgi request [11:00:31]url: /json_proto [11:00:31]query_string will be loaded in cgi processing [11:00:31]execute_cgi json_proto POST (null) [11:00:31]execute_cgi path=json_proto method=POST [11:00:31]POST find Content-Length [11:00:31]Host: 172.17.43.132:8080 [11:00:31]Content-Length: 623 [11:00:31]Content-Type: application/json [11:00:31] [11:00:31]POST finish read [11:00:31]Found Content-Length = 623 [11:00:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183891", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:00:31]execute_script... [11:00:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183891", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:00:31]POST & json_proto [11:00:31]process_json_proto [11:00:31]json parsed OK: [11:00:31]protocol is kg_v1.0 [11:00:31]action value=close_receipt [11:00:31]process_action close_receipt [11:00:31]cmd_close_receipt [11:00:31]MH_GetDate [11:00:31]Write to MH i2c: F0 00 00 44 01 34 [11:00:31]Write i2c OK [11:00:31]MH_I2C_Read... [11:00:31]Read from MH i2c: F0 [11:00:31]MH_I2C_Read... [11:00:31]Read from MH i2c: F0 09 00 [11:00:31]MH_I2C_Read... [11:00:31]Read from MH i2c: F0 09 00 44 01 00 50 76 A7 66 F8 53 A7 66 68 [11:00:31]GetLastDocTimeStamp 1722250826 [11:00:31]current date 1722250832 [11:00:31]FM_GetShiftState [11:00:31]SAM_PROTO_GetShiftState [11:00:31]wFMCommunicate request_size=4 [11:00:31]MH_SAM_APDU [11:00:31]CAPDU: 80 13 01 00 [11:00:31]Write to MH i2c: E2 08 00 45 01 80 13 01 00 00 00 00 00 C3 [11:00:31]Write i2c OK [11:00:31]MH_I2C_Read... [11:00:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:31]Read from MH i2c: E2 [11:00:31]MH_I2C_Read... [11:00:31]Read from MH i2c: E2 0E 00 [11:00:31]MH_I2C_Read... [11:00:31]Read from MH i2c: E2 0E 00 45 01 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 5F [11:00:31]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [11:00:31]wFMCommunicate OK [11:00:31]SAM_PROTO_GetShiftState done [11:00:31]FM_GetShiftState done [11:00:31]opened in 1722211496 [11:00:31]opened+sec_in_day 1722297896 [11:00:31]quantity*price = 14000 [11:00:31]sum+1 = 14001 [11:00:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 52 29.07.2024 11:00 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41863 ФПД: 7217137225159 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T110032&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41863&fm=7217137225159&tin=02508201610067®Number=0000000000092626&sum=14000 0 [11:00:33]StoreToDocumentArchive [11:00:33]shift 427 fd 41863 [11:00:33]save to /storage/0427/doc_00041863 [11:00:33]save last doc name /storage/0427/doc_00041863 to /storage/kkm_last_doc_name [11:00:33]save OK [11:00:33]Clear old archive folders... [11:00:33]ProcessDocumentItem done err = 0, tmpTLVsize=275 [11:00:33]tlvbuf is 008AD660 [11:00:33]SAM_PROTO_ClearQueue [11:00:33]wFMCommunicate request_size=4 [11:00:33]MH_SAM_APDU [11:00:33]CAPDU: 80 09 00 00 [11:00:33]Write to MH i2c: E2 08 00 52 01 80 09 00 00 00 00 00 00 C5 [11:00:33]Write i2c OK [11:00:33]MH_I2C_Read... [11:00:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:00:33]Read from MH i2c: E2 [11:00:33]MH_I2C_Read... [11:00:33]Read from MH i2c: E2 03 00 [11:00:33]MH_I2C_Read... [11:00:33]Read from MH i2c: E2 03 00 52 01 00 90 00 C7 [11:00:33]RAPDU: 90 00 [11:00:33]wFMCommunicate OK [11:00:33]SAM_PROTO_ClearQueue done [11:00:33]KKMCreateOFDPacket [11:00:33]OFDProtocolAddRootSTLVToBuf [11:00:33]FM_MakeSignedData [11:00:33]FM_MakeSignedData [11:00:33]SAM_PROTO_SignData [11:00:33]wFMCommunicate request_size=4 [11:00:33]MH_SAM_APDU [11:00:33]CAPDU: 80 0D 01 02 [11:00:33]Write to MH i2c: E2 08 00 53 01 80 0D 01 02 00 00 00 00 CD [11:00:33]Write i2c OK [11:00:33]MH_I2C_Read... [11:00:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:00:33]Read from MH i2c: E2 [11:00:33]MH_I2C_Read... [11:00:33]Read from MH i2c: E2 03 00 [11:00:33]MH_I2C_Read... [11:00:33]Read from MH i2c: E2 03 00 53 01 00 90 00 C8 [11:00:33]RAPDU: 90 00 [11:00:33]wFMCommunicate OK [11:00:33]wFMCommunicate request_size=255 [11:00:33]MH_SAM_APDU [11:00:33]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 50 76 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 [11:00:33]Write to MH i2c: E2 02 01 54 01 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 50 76 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 00 00 10 [11:00:34]Write i2c OK [11:00:34]MH_I2C_Read... [11:00:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:34]Read from MH i2c: E2 [11:00:34]MH_I2C_Read... [11:00:34]Read from MH i2c: E2 03 00 [11:00:34]MH_I2C_Read... [11:00:34]Read from MH i2c: E2 03 00 54 01 00 90 00 C9 [11:00:34]RAPDU: 90 00 [11:00:34]wFMCommunicate OK [11:00:34]wFMCommunicate request_size=34 [11:00:34]MH_SAM_APDU [11:00:34]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 87 A3 00 00 35 04 06 00 06 90 5E E6 8D C7 [11:00:34]Write to MH i2c: E2 25 00 55 01 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 87 A3 00 00 35 04 06 00 06 90 5E E6 8D C7 00 00 F2 [11:00:34]Write i2c OK [11:00:34]MH_I2C_Read... [11:00:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:34]Read from MH i2c: E2 [11:00:34]MH_I2C_Read... [11:00:34]Read from MH i2c: E2 03 00 [11:00:34]MH_I2C_Read... [11:00:34]Read from MH i2c: E2 03 00 55 01 00 90 00 CA [11:00:34]RAPDU: 90 00 [11:00:34]wFMCommunicate OK [11:00:34]wFMCommunicate request_size=4 [11:00:34]MH_SAM_APDU [11:00:34]CAPDU: 80 0D 03 02 [11:00:34]Write to MH i2c: E2 08 00 56 01 80 0D 03 02 00 00 00 00 D2 [11:00:34]Write i2c OK [11:00:34]MH_I2C_Read... [11:00:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:00:34]Read from MH i2c: E2 [11:00:34]MH_I2C_Read... [11:00:34]Read from MH i2c: E2 0B 00 [11:00:34]MH_I2C_Read... [11:00:34]Read from MH i2c: E2 0B 00 56 01 00 47 5B 2E 82 9E 4D 99 31 90 00 DA [11:00:34]RAPDU: 47 5B 2E 82 9E 4D 99 31 90 00 [11:00:34]wFMCommunicate OK [11:00:34]SAM_PROTO_SignData done [11:00:34]FM_MakeSignedData done [11:00:34]CreateOFDProtocolMessage [11:00:34]wFMCommunicate request_size=4 [11:00:34]MH_SAM_APDU [11:00:34]CAPDU: 80 11 00 00 [11:00:34]Write to MH i2c: E2 08 00 57 01 80 11 00 00 00 00 00 00 D2 [11:00:34]Write i2c OK [11:00:34]MH_I2C_Read... [11:00:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:34]Read from MH i2c: E2 [11:00:34]MH_I2C_Read... [11:00:34]Read from MH i2c: E2 17 00 [11:00:34]MH_I2C_Read... [11:00:34]Read from MH i2c: E2 17 00 57 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 2E [11:00:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [11:00:34]wFMCommunicate OK [11:00:34]CreateOFDProtocolMessage done [11:00:34]OFDSenderStorePacket 41863 [11:00:34]StoreOFDPacket docnum=41863 [11:00:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 27 01 00 00 D1 53 1F 01 CB B9 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 50 76 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 87 A3 00 00 35 04 06 00 06 90 5E E6 8D C7 47 5B 2E 82 9E 4D 99 31 [11:00:34]CheckFolder [11:00:34]dirname=/storage/ofd_packets [11:00:34]CheckFolder done [11:00:34]ProducePacketName [11:00:34]name=ofd_packets/00041863 [11:00:34]NVStorageSaveData ofd_packets/00041863 [11:00:34]File name is /storage/ofd_packets/00041863 [11:00:34]Write 325 bytes [11:00:34]NVStorageSaveData done [11:00:34]OFDSenderStorePacket done [11:00:34]KKMCreateOFDPacket done [11:00:34]NVStorageSaveData kkm_last_timestamp [11:00:34]File name is /storage/kkm_last_timestamp [11:00:34]Write 4 bytes [11:00:34]NVStorageSaveData done [11:00:34]ExternCall_PrintAddStr [11:00:34]wPrintStart [11:00:34]Write to MH i2c: 01 00 00 58 01 59 [11:00:34]Write i2c OK [11:00:34]MH_I2C_Read... [11:00:34]Read from MH i2c: 01 [11:00:34]MH_I2C_Read... [11:00:34]OFD Sender: Processing packet 41863 [packets to send 57, broken 56] [11:00:34]ProducePacketName [11:00:34]name=ofd_packets/00041863 [11:00:34]OFD Sender: To server: pG, [11:00:34]CommunicateWithHost lk.salyk.kg:30040 [11:00:34]ConnectInit lk.salyk.kg [11:00:34]Read from MH i2c: 01 07 00 [11:00:34]MH_I2C_Read... [11:00:34]Read from MH i2c: 01 07 00 58 01 00 00 00 00 00 FF 0F 6E [11:00:34]RasterBufferAndPrint [11:00:34]line Счет N : (3)183891 [11:00:34]line ИНН: 02508201610067 [11:00:34]line Контрольно-Кассовый Чек [11:00:34]line ПРОДАЖА [11:00:34]line Товар: 48743587 [11:00:34]line Сигареты Winston XStyle Silver [11:00:34]line 1.000 * 140.00 [11:00:34]line = 140.00 [11:00:34]line НДС 12% НСП 1% [11:00:34]line > о реализуемом товаре [11:00:34]line ИТОГО: 140.00 [11:00:34]line НСП 1% : 1.24 [11:00:34]line НДС 12% : 14.87 [11:00:34]line Наличными: 140.00 [11:00:34]line Безнал.: 0.00 [11:00:34]line Место: АЗС № 97 "Партнер Нефть" [11:00:34]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [11:00:34]line СНО: Общий режим [11:00:34]line Чек 52 29.07.2024 11:00 [11:00:34]line Смена: 427 ФФД: 1.0 [11:00:34]line ЗНМ: 0300000053 [11:00:34]line РНМ: 0000000000092626 [11:00:34]line Версия ККМ: 001 [11:00:34]line ФМ: 0000000000874958 [11:00:34]line ФД: 41863 [11:00:34]line ФПД: 7217137225159 [11:00:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T110032&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41863&fm=7217137225159&tin=02508201610067®Number=0000000000092626&sum=14000 [11:00:34]line 0 [11:00:34]written 0, free lines is 4095 [11:00:35]Write to MH i2c: 01 00 00 81 01 82 [11:00:35]Write i2c OK [11:00:35]MH_I2C_Read... [11:00:35]Read from MH i2c: 01 [11:00:35]MH_I2C_Read... [11:00:35]Read from MH i2c: 01 07 00 [11:00:35]MH_I2C_Read... [11:00:35]Read from MH i2c: 01 07 00 81 01 00 00 00 00 00 0C 0D A2 [11:00:35]RasterBufferAndPrint [11:00:35]line [11:00:35]line [11:00:35]line [11:00:35]line [11:00:35]line [11:00:35]written 0, free lines is 3382 [11:00:35]MH_Cut [11:00:35]Write to MH i2c: D1 01 00 88 01 01 5B [11:00:35]Write i2c OK [11:00:35]MH_I2C_Read... [11:00:35]Read from MH i2c: D1 [11:00:35]MH_I2C_Read... [11:00:35]Read from MH i2c: D1 01 00 [11:00:35]MH_I2C_Read... [11:00:35]Read from MH i2c: D1 01 00 88 01 00 5A [11:00:35]Write to MH i2c: 01 00 00 89 01 8A [11:00:35]Write i2c OK [11:00:35]MH_I2C_Read... [11:00:35]*** Cut start [11:00:35]*** Partial cut [11:00:35]*** CUTSNS_PIN = 1 [11:00:35]*** CUTSNS_PIN = 0 [11:00:36]*** Brake cut motor [11:00:36]Read from MH i2c: 01 [11:00:36]MH_I2C_Read... [11:00:36]*** Stop cut motor [11:00:36]*** Cut end [11:00:36]Read from MH i2c: 01 07 00 [11:00:36]MH_I2C_Read... [11:00:36]Read from MH i2c: 01 07 00 89 01 00 00 00 00 00 FF 0F 9F [11:00:36]process_action close_receipt done [11:00:36]requested_data is exist [11:00:36]produce_requested_data [11:00:36]requested_item fm.sn is exist - process it [11:00:36]wFMCommunicate request_size=4 [11:00:36]MH_SAM_APDU [11:00:36]CAPDU: 80 11 00 00 [11:00:36]Write to MH i2c: E2 08 00 8A 01 80 11 00 00 00 00 00 00 05 [11:00:36]Write i2c OK [11:00:36]MH_I2C_Read... [11:00:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:36]Read from MH i2c: E2 [11:00:36]MH_I2C_Read... [11:00:36]Read from MH i2c: E2 17 00 [11:00:36]MH_I2C_Read... [11:00:36]Read from MH i2c: E2 17 00 8A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 61 [11:00:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [11:00:36]wFMCommunicate OK [11:00:36]requested_item fd.num is exist - process it [11:00:36]SAM_PROTO_GetFieldsCounters [11:00:36]wFMCommunicate request_size=4 [11:00:36]MH_SAM_APDU [11:00:36]CAPDU: 80 13 00 00 [11:00:36]Write to MH i2c: E2 08 00 8B 01 80 13 00 00 00 00 00 00 08 [11:00:36]Write i2c OK [11:00:36]MH_I2C_Read... [11:00:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:00:36]Read from MH i2c: E2 [11:00:36]MH_I2C_Read... [11:00:36]Read from MH i2c: E2 62 00 [11:00:36]MH_I2C_Read... [11:00:36]Read from MH i2c: E2 62 00 8B 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 87 A3 00 00 0E 04 04 00 AB 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 A4 [11:00:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 87 A3 00 00 0E 04 04 00 AB 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 [11:00:37]wFMCommunicate OK [11:00:37]SAM_PROTO_GetFieldsCounters done [11:00:37]requested_item shift.num is exist - process it [11:00:37]requested_item shift.opened is exist - process it [11:00:37]req_shift_opened [11:00:37]FM_GetShiftState [11:00:37]SAM_PROTO_GetShiftState [11:00:37]wFMCommunicate request_size=4 [11:00:37]MH_SAM_APDU [11:00:37]CAPDU: 80 13 01 00 [11:00:37]Write to MH i2c: E2 08 00 8C 01 80 13 01 00 00 00 00 00 0A [11:00:37]Write i2c OK [11:00:37]MH_I2C_Read... [11:00:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:37]Read from MH i2c: E2 [11:00:37]MH_I2C_Read... [11:00:37]Read from MH i2c: E2 0E 00 [11:00:37]MH_I2C_Read... [11:00:37]Read from MH i2c: E2 0E 00 8C 01 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 A6 [11:00:37]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [11:00:37]wFMCommunicate OK [11:00:37]SAM_PROTO_GetShiftState done [11:00:37]FM_GetShiftState done [11:00:37]req_shift_opened done [11:00:37]requested_item shift.open_date is exist - process it [11:00:37]req_shift_open_date [11:00:37]req_shift_open_date done [11:00:37]produce_requested_data done [11:00:37]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41863,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [11:00:37]process_action_free close_receipt [11:00:37]json_value_free [11:00:37]json_value_free done [11:00:37]process_json_proto returns [11:00:37]Send response to host [11:00:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41863,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [11:00:37]free response buf [11:00:37]execute_script done [11:00:37]execute_script returns [11:00:37]free content buf [11:00:37]Sock 8.Close socket [11:00:37]Sock 8.Thread stoped [11:00:38]Connected sock=11 [11:00: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 35 38 27 01 00 00 D1 53 1F 01 CB B9 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 50 76 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 87 A3 00 00 35 04 06 00 06 90 5E E6 8D C7 47 5B 2E 82 9E 4D 99 31 [11:00:38]accept exits with 10 [11:00:38]New connection [11:00:38]New thread 3066760548 created [11:00:38]Thread 3066903908 joined [11:00:38]Waiting for new connection... [11:00:38] Sock 10.Parse request [11:00:38]Sock 10.Check first char [11:00:38]Sock 10.First char is OK [11:00:38]request: POST /json_proto HTTP/1.0 [11:00:38]Method: POST [11:00:38]URL: /json_proto [11:00:38]Method is POST - this is cgi request [11:00:38]url: /json_proto [11:00:38]query_string will be loaded in cgi processing [11:00:38]execute_cgi json_proto POST (null) [11:00:38]execute_cgi path=json_proto method=POST [11:00:38]POST find Content-Length [11:00:38]Host: 172.17.43.132:8080 [11:00:38]Content-Length: 675 [11:00:38]Content-Type: application/json [11:00:38] [11:00:38]POST finish read [11:00:38]Found Content-Length = 675 [11:00:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183892", "tax_sys" : 0, "items" : [ { "code": "4700040114120", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:00:38]execute_script... [11:00: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 : (3)183892", "tax_sys" : 0, "items" : [ { "code": "4700040114120", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:00:38]POST & json_proto [11:00:38]process_json_proto [11:00:38]json parsed OK: [11:00:38]protocol is kg_v1.0 [11:00:38]action value=close_receipt [11:00:38]process_action close_receipt [11:00:38]cmd_close_receipt [11:00:38]MH_GetDate [11:00:38]Write to MH i2c: F0 00 00 8D 01 7D [11:00:38]Write i2c OK [11:00:38]MH_I2C_Read... [11:00:38]Read from MH i2c: F0 [11:00:38]MH_I2C_Read... [11:00:38]Read from MH i2c: F0 09 00 [11:00:38]MH_I2C_Read... [11:00:38]Read from MH i2c: F0 09 00 8D 01 00 57 76 A7 66 F8 53 A7 66 B8 [11:00:38]GetLastDocTimeStamp 1722250832 [11:00:38]current date 1722250839 [11:00:38]FM_GetShiftState [11:00:38]SAM_PROTO_GetShiftState [11:00:38]wFMCommunicate request_size=4 [11:00:38]MH_SAM_APDU [11:00:38]CAPDU: 80 13 01 00 [11:00:38]Write to MH i2c: E2 08 00 8E 01 80 13 01 00 00 00 00 00 0C [11:00:38]Write i2c OK [11:00:38]MH_I2C_Read... [11:00:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:38]Read from MH i2c: E2 [11:00:38]MH_I2C_Read... [11:00:38]Read from MH i2c: E2 0E 00 [11:00:38]MH_I2C_Read... [11:00:38]Read from MH i2c: E2 0E 00 8E 01 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 A8 [11:00:38]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [11:00:38]wFMCommunicate OK [11:00:38]SAM_PROTO_GetShiftState done [11:00:38]FM_GetShiftState done [11:00:38]opened in 1722211496 [11:00:38]opened+sec_in_day 1722297896 [11:00:38]quantity*price = 6500 [11:00:38]sum+1 = 6501 [11:00:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 53 29.07.2024 11:00 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41864 ФПД: 138879387731771 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T110039&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41864&fm=138879387731771&tin=02508201610067®Number=0000000000092626&sum=6500 0 [11:00:40]StoreToDocumentArchive [11:00:40]shift 427 fd 41864 [11:00:40]save to /storage/0427/doc_00041864 [11:00:40]save last doc name /storage/0427/doc_00041864 to /storage/kkm_last_doc_name [11:00:40]save OK [11:00:40]Clear old archive folders... [11:00:40]ProcessDocumentItem done err = 0, tmpTLVsize=286 [11:00:40]tlvbuf is 008D5DD0 [11:00:40]SAM_PROTO_ClearQueue [11:00:40]wFMCommunicate request_size=4 [11:00:40]MH_SAM_APDU [11:00:40]CAPDU: 80 09 00 00 [11:00:40]Write to MH i2c: E2 08 00 9B 01 80 09 00 00 00 00 00 00 0E [11:00:40]Write i2c OK [11:00:40]MH_I2C_Read... [11:00:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:00:40]Read from MH i2c: E2 [11:00:40]MH_I2C_Read... [11:00:40]Read from MH i2c: E2 03 00 [11:00:40]MH_I2C_Read... [11:00:40]Read from MH i2c: E2 03 00 9B 01 00 90 00 10 [11:00:40]RAPDU: 90 00 [11:00:40]wFMCommunicate OK [11:00:40]SAM_PROTO_ClearQueue done [11:00:40]KKMCreateOFDPacket [11:00:40]OFDProtocolAddRootSTLVToBuf [11:00:40]FM_MakeSignedData [11:00:40]FM_MakeSignedData [11:00:40]SAM_PROTO_SignData [11:00:40]wFMCommunicate request_size=4 [11:00:40]MH_SAM_APDU [11:00:40]CAPDU: 80 0D 01 02 [11:00:40]Write to MH i2c: E2 08 00 9C 01 80 0D 01 02 00 00 00 00 16 [11:00:40]Write i2c OK [11:00:40]MH_I2C_Read... [11:00:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:00:40]Read from MH i2c: E2 [11:00:40]MH_I2C_Read... [11:00:40]Read from MH i2c: E2 03 00 [11:00:40]MH_I2C_Read... [11:00:40]Read from MH i2c: E2 03 00 9C 01 00 90 00 11 [11:00:40]RAPDU: 90 00 [11:00:40]wFMCommunicate OK [11:00:40]wFMCommunicate request_size=255 [11:00:40]MH_SAM_APDU [11:00:40]CAPDU: 80 0D 02 02 FA 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 57 76 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 [11:00:41]Write to MH i2c: E2 02 01 9D 01 80 0D 02 02 FA 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 57 76 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 00 00 99 [11:00:41]Write i2c OK [11:00:41]MH_I2C_Read... [11:00:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:41]Read from MH i2c: E2 [11:00:41]MH_I2C_Read... [11:00:41]Read from MH i2c: E2 03 00 [11:00:41]MH_I2C_Read... [11:00:41]Read from MH i2c: E2 03 00 9D 01 00 90 00 12 [11:00:41]RAPDU: 90 00 [11:00:41]wFMCommunicate OK [11:00:41]wFMCommunicate request_size=45 [11:00:41]MH_SAM_APDU [11:00:41]CAPDU: 80 0D 02 02 28 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 88 A3 00 00 35 04 06 00 7E 4F 60 92 87 3B [11:00:41]Write to MH i2c: E2 30 00 9E 01 80 0D 02 02 28 00 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 88 A3 00 00 35 04 06 00 7E 4F 60 92 87 3B 00 00 22 [11:00:41]Write i2c OK [11:00:41]MH_I2C_Read... [11:00:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:41]Read from MH i2c: E2 [11:00:41]MH_I2C_Read... [11:00:41]Read from MH i2c: E2 03 00 [11:00:41]MH_I2C_Read... [11:00:41]Read from MH i2c: E2 03 00 9E 01 00 90 00 13 [11:00:41]RAPDU: 90 00 [11:00:41]wFMCommunicate OK [11:00:41]wFMCommunicate request_size=4 [11:00:41]MH_SAM_APDU [11:00:41]CAPDU: 80 0D 03 02 [11:00:41]Write to MH i2c: E2 08 00 9F 01 80 0D 03 02 00 00 00 00 1B [11:00:41]Write i2c OK [11:00:41]MH_I2C_Read... [11:00:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:00:41]Read from MH i2c: E2 [11:00:41]MH_I2C_Read... [11:00:41]Read from MH i2c: E2 0B 00 [11:00:41]MH_I2C_Read... [11:00:41]Read from MH i2c: E2 0B 00 9F 01 00 BE 5F 02 0F 91 04 11 E2 90 00 D2 [11:00:41]RAPDU: BE 5F 02 0F 91 04 11 E2 90 00 [11:00:41]wFMCommunicate OK [11:00:41]SAM_PROTO_SignData done [11:00:41]FM_MakeSignedData done [11:00:41]CreateOFDProtocolMessage [11:00:41]wFMCommunicate request_size=4 [11:00:41]MH_SAM_APDU [11:00:41]CAPDU: 80 11 00 00 [11:00:41]Write to MH i2c: E2 08 00 A0 01 80 11 00 00 00 00 00 00 1B [11:00:41]Write i2c OK [11:00:41]MH_I2C_Read... [11:00:41]Read from MH i2c: E2 [11:00:41]MH_I2C_Read... [11:00:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:41]Read from MH i2c: E2 17 00 [11:00:41]MH_I2C_Read... [11:00:41]Read from MH i2c: E2 17 00 A0 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 77 [11:00:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [11:00:41]wFMCommunicate OK [11:00:41]CreateOFDProtocolMessage done [11:00:41]OFDSenderStorePacket 41864 [11:00:41]StoreOFDPacket docnum=41864 [11:00:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 32 01 00 00 68 56 2A 01 2E 66 5A 03 01 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 57 76 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 88 A3 00 00 35 04 06 00 7E 4F 60 92 87 3B BE 5F 02 0F 91 04 11 E2 [11:00:41]CheckFolder [11:00:41]dirname=/storage/ofd_packets [11:00:41]CheckFolder done [11:00:41]ProducePacketName [11:00:41]name=ofd_packets/00041864 [11:00:41]NVStorageSaveData ofd_packets/00041864 [11:00:41]File name is /storage/ofd_packets/00041864 [11:00:41]Write 336 bytes [11:00:41]NVStorageSaveData done [11:00:41]OFDSenderStorePacket done [11:00:41]KKMCreateOFDPacket done [11:00:41]NVStorageSaveData kkm_last_timestamp [11:00:41]File name is /storage/kkm_last_timestamp [11:00:41]Write 4 bytes [11:00:42]NVStorageSaveData done [11:00:42]ExternCall_PrintAddStr [11:00:42]wPrintStart [11:00:42]Write to MH i2c: 01 00 00 A1 01 A2 [11:00:42]Write i2c OK [11:00:42]MH_I2C_Read... [11:00:42]Read from MH i2c: 01 [11:00:42]MH_I2C_Read... [11:00:42]Read from MH i2c: 01 07 00 [11:00:42]MH_I2C_Read... [11:00:42]Read from MH i2c: 01 07 00 A1 01 00 00 00 00 00 FF 0F B7 [11:00:42]RasterBufferAndPrint [11:00:42]line Счет N : (3)183892 [11:00:42]line ИНН: 02508201610067 [11:00:42]line Контрольно-Кассовый Чек [11:00:42]line ПРОДАЖА [11:00:42]line Товар: 4700040114120 [11:00:42]line Султан чай 1л. чер персик [11:00:42]line 1.000 * 65.00 [11:00:42]line = 65.00 [11:00:42]line НДС 12% НСП 1% [11:00:42]line > о реализуемом товаре [11:00:42]line ИТОГО: 65.00 [11:00:42]line НСП 1% : 0.57 [11:00:42]line НДС 12% : 6.90 [11:00:42]line Наличными: 65.00 [11:00:42]line Безнал.: 0.00 [11:00:42]line Место: АЗС № 97 "Партнер Нефть" [11:00:42]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [11:00:42]line СНО: Общий режим [11:00:42]line Чек 53 29.07.2024 11:00 [11:00:42]line Смена: 427 ФФД: 1.0 [11:00:42]line ЗНМ: 0300000053 [11:00:42]line РНМ: 0000000000092626 [11:00:42]line Версия ККМ: 001 [11:00:42]line ФМ: 0000000000874958 [11:00:42]line ФД: 41864 [11:00:42]line ФПД: 138879387731771 [11:00:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T110039&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41864&fm=138879387731771&tin=02508201610067®Number=0000000000092626&sum=6500 [11:00:42]line 0 [11:00:42]written 0, free lines is 4095 [11:00:42]Write to MH i2c: 01 00 00 C9 01 CA [11:00:42]Write i2c OK [11:00:42]MH_I2C_Read... [11:00:42]Read from MH i2c: 01 [11:00:42]MH_I2C_Read... [11:00:42]Read from MH i2c: 01 07 00 [11:00:42]MH_I2C_Read... [11:00:42]Read from MH i2c: 01 07 00 C9 01 00 00 00 00 00 20 0D FE [11:00:42]RasterBufferAndPrint [11:00:42]line [11:00:42]line [11:00:42]line [11:00:42]line [11:00:42]line [11:00:42]written 0, free lines is 3405 [11:00:42]MH_Cut [11:00:42]Write to MH i2c: D1 01 00 D0 01 01 A3 [11:00:42]Write i2c OK [11:00:42]MH_I2C_Read... [11:00:42]Read from MH i2c: D1 [11:00:42]MH_I2C_Read... [11:00:42]Read from MH i2c: D1 01 00 [11:00:42]MH_I2C_Read... [11:00:42]Read from MH i2c: D1 01 00 D0 01 00 A2 [11:00:42]Write to MH i2c: 01 00 00 D1 01 D2 [11:00:42]Write i2c OK [11:00:42]MH_I2C_Read... [11:00: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 35 38 4F 00 00 00 8B D1 47 00 47 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 87 A3 00 00 F4 03 04 00 69 22 A7 66 B6 04 01 00 00 FD D5 37 56 04 9C 36 0C [11:00:42]CommunicateWithHost err = 0 [11:00:42]CheckOFDResponse [11:00:42]1017 (14) - 77093643461234 [11:00:42]1041 (16) - 0000000000874958 [11:00:42]1040 (4) - 41863 [11:00:42]1012 (4) - 29.07.2024 05:02 [11:00:42]1206 (1) - 0 [11:00:42]OFD Sender: Remove packet 41863 [11:00:43]ProducePacketName [11:00:43]name=ofd_packets/00041863 [11:00:43]NVStorageDeleteData [11:00:43]*** Cut start [11:00:43]*** Partial cut [11:00:43]*** CUTSNS_PIN = 1 [11:00:43]*** CUTSNS_PIN = 0 [11:00:43]OFD Sender: Processing packet 41864 [packets to send 57, broken 56] [11:00:43]ProducePacketName [11:00:43]name=ofd_packets/00041864 [11:00:43]OFD Sender: To server: pG, [11:00:43]CommunicateWithHost lk.salyk.kg:30040 [11:00:43]ConnectInit lk.salyk.kg [11:00:43]*** Brake cut motor [11:00:43]Read from MH i2c: 01 [11:00:43]MH_I2C_Read... [11:00:43]*** Stop cut motor [11:00:43]*** Cut end [11:00:43]Read from MH i2c: 01 07 00 [11:00:43]MH_I2C_Read... [11:00:43]Read from MH i2c: 01 07 00 D1 01 00 00 00 00 00 FF 0F E7 [11:00:43]process_action close_receipt done [11:00:43]requested_data is exist [11:00:43]produce_requested_data [11:00:43]requested_item fm.sn is exist - process it [11:00:43]wFMCommunicate request_size=4 [11:00:43]MH_SAM_APDU [11:00:43]CAPDU: 80 11 00 00 [11:00:43]Write to MH i2c: E2 08 00 D2 01 80 11 00 00 00 00 00 00 4D [11:00:43]Write i2c OK [11:00:43]MH_I2C_Read... [11:00:43]Read from MH i2c: E2 [11:00:44]MH_I2C_Read... [11:00:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:44]Read from MH i2c: E2 17 00 [11:00:44]MH_I2C_Read... [11:00:44]Read from MH i2c: E2 17 00 D2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 A9 [11:00:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [11:00:44]wFMCommunicate OK [11:00:44]requested_item fd.num is exist - process it [11:00:44]SAM_PROTO_GetFieldsCounters [11:00:44]wFMCommunicate request_size=4 [11:00:44]MH_SAM_APDU [11:00:44]CAPDU: 80 13 00 00 [11:00:44]Write to MH i2c: E2 08 00 D3 01 80 13 00 00 00 00 00 00 50 [11:00:44]Write i2c OK [11:00:44]MH_I2C_Read... [11:00:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:00:44]Read from MH i2c: E2 [11:00:44]MH_I2C_Read... [11:00:44]Read from MH i2c: E2 62 00 [11:00:44]MH_I2C_Read... [11:00:44]Read from MH i2c: E2 62 00 D3 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 88 A3 00 00 0E 04 04 00 AB 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 F0 [11:00:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 88 A3 00 00 0E 04 04 00 AB 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 [11:00:44]wFMCommunicate OK [11:00:44]SAM_PROTO_GetFieldsCounters done [11:00:44]requested_item shift.num is exist - process it [11:00:44]requested_item shift.opened is exist - process it [11:00:44]req_shift_opened [11:00:44]FM_GetShiftState [11:00:44]SAM_PROTO_GetShiftState [11:00:44]wFMCommunicate request_size=4 [11:00:44]MH_SAM_APDU [11:00:44]CAPDU: 80 13 01 00 [11:00:44]Write to MH i2c: E2 08 00 D4 01 80 13 01 00 00 00 00 00 52 [11:00:44]Write i2c OK [11:00:44]MH_I2C_Read... [11:00:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:44]Read from MH i2c: E2 [11:00:44]MH_I2C_Read... [11:00:44]Read from MH i2c: E2 0E 00 [11:00:44]MH_I2C_Read... [11:00:44]Read from MH i2c: E2 0E 00 D4 01 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 EE [11:00:44]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [11:00:44]wFMCommunicate OK [11:00:44]SAM_PROTO_GetShiftState done [11:00:44]FM_GetShiftState done [11:00:44]req_shift_opened done [11:00:44]requested_item shift.open_date is exist - process it [11:00:44]req_shift_open_date [11:00:44]req_shift_open_date done [11:00:44]produce_requested_data done [11:00:44]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41864,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [11:00:44]process_action_free close_receipt [11:00:44]json_value_free [11:00:44]json_value_free done [11:00:44]process_json_proto returns [11:00:44]Send response to host [11:00:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41864,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [11:00:44]free response buf [11:00:44]execute_script done [11:00:44]execute_script returns [11:00:44]free content buf [11:00:44]Sock 10.Close socket [11:00:44]Sock 10.Thread stoped [11:00:45]Connected sock=11 [11:00: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 35 38 32 01 00 00 68 56 2A 01 2E 66 5A 03 01 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 57 76 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 88 A3 00 00 35 04 06 00 7E 4F 60 92 87 3B BE 5F 02 0F 91 04 11 E2 [11:00: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 35 38 4F 00 00 00 D3 29 47 00 74 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 35 38 10 04 04 00 88 A3 00 00 F4 03 04 00 71 22 A7 66 B6 04 01 00 00 02 2D E2 33 2D 64 40 11 [11:00:46]CommunicateWithHost err = 0 [11:00:46]CheckOFDResponse [11:00:46]1017 (14) - 77093643461234 [11:00:46]1041 (16) - 0000000000874958 [11:00:46]1040 (4) - 41864 [11:00:46]1012 (4) - 29.07.2024 05:02 [11:00:46]1206 (1) - 0 [11:00:46]OFD Sender: Remove packet 41864 [11:00:46]ProducePacketName [11:00:46]name=ofd_packets/00041864 [11:00:46]NVStorageDeleteData [11:00:46]OFD Sender: No OFD packet to send [11:00:47]OFD Sender: No OFD packet to send [11:00:48]accept exits with 8 [11:00:48]New connection [11:00:48]New thread 3066903908 created [11:00:48]Thread 3066760548 joined [11:00:48]Waiting for new connection... [11:00:48] Sock 8.Parse request [11:00:48]Sock 8.Check first char [11:00:48]Sock 8.First char is OK [11:00:48]request: POST /json_proto HTTP/1.0 [11:00:48]Method: POST [11:00:48]URL: /json_proto [11:00:48]Method is POST - this is cgi request [11:00:48]url: /json_proto [11:00:48]query_string will be loaded in cgi processing [11:00:48]execute_cgi json_proto POST (null) [11:00:48]execute_cgi path=json_proto method=POST [11:00:48]POST find Content-Length [11:00:48]Host: 172.17.43.132:8080 [11:00:48]Content-Length: 762 [11:00:48]Content-Type: application/json [11:00:48] [11:00:48]POST finish read [11:00:48]Found Content-Length = 762 [11:00:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183893", "tax_sys" : 0, "items" : [ { "code": "50173808", "name": "\u0416\u0435\u0432 Orbit Sweet Mint", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:00:48]execute_script... [11:00:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183893", "tax_sys" : 0, "items" : [ { "code": "50173808", "name": "\u0416\u0435\u0432 Orbit Sweet Mint", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:00:48]POST & json_proto [11:00:48]process_json_proto [11:00:48]json parsed OK: [11:00:48]protocol is kg_v1.0 [11:00:48]action value=close_receipt [11:00:48]process_action close_receipt [11:00:48]cmd_close_receipt [11:00:48]MH_GetDate [11:00:48]Write to MH i2c: F0 00 00 D5 01 C5 [11:00:48]Write i2c OK [11:00:48]MH_I2C_Read... [11:00:48]Read from MH i2c: F0 [11:00:48]MH_I2C_Read... [11:00:48]Read from MH i2c: F0 09 00 [11:00:48]MH_I2C_Read... [11:00:48]Read from MH i2c: F0 09 00 D5 01 00 61 76 A7 66 F8 53 A7 66 0A [11:00:48]GetLastDocTimeStamp 1722250839 [11:00:48]current date 1722250849 [11:00:48]FM_GetShiftState [11:00:48]SAM_PROTO_GetShiftState [11:00:48]wFMCommunicate request_size=4 [11:00:48]MH_SAM_APDU [11:00:48]CAPDU: 80 13 01 00 [11:00:48]Write to MH i2c: E2 08 00 D6 01 80 13 01 00 00 00 00 00 54 [11:00:48]Write i2c OK [11:00:48]MH_I2C_Read... [11:00:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:49]Read from MH i2c: E2 [11:00:49]MH_I2C_Read... [11:00:49]Read from MH i2c: E2 0E 00 [11:00:49]MH_I2C_Read... [11:00:49]Read from MH i2c: E2 0E 00 D6 01 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 F0 [11:00:49]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [11:00:49]wFMCommunicate OK [11:00:49]SAM_PROTO_GetShiftState done [11:00:49]FM_GetShiftState done [11:00:49]opened in 1722211496 [11:00:49]opened+sec_in_day 1722297896 [11:00:49]quantity*price = 4500 [11:00:49]sum+1 = 4501 [11:00:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 45.00 НСП 1% : 0.40 НДС 12% : 4.78 Наличными: 0.00 Безнал.: 45.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 54 29.07.2024 11:00 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874958 ФД: 41865 ФПД: 223316781439257 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T110050&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41865&fm=223316781439257&tin=02508201610067®Number=0000000000092626&sum=4500 0 [11:00:50]StoreToDocumentArchive [11:00:50]shift 427 fd 41865 [11:00:50]save to /storage/0427/doc_00041865 [11:00:50]save last doc name /storage/0427/doc_00041865 to /storage/kkm_last_doc_name [11:00:50]save OK [11:00:50]Clear old archive folders... [11:00:50]ProcessDocumentItem done err = 0, tmpTLVsize=260 [11:00:50]tlvbuf is 0084FA00 [11:00:50]SAM_PROTO_ClearQueue [11:00:50]wFMCommunicate request_size=4 [11:00:50]MH_SAM_APDU [11:00:50]CAPDU: 80 09 00 00 [11:00:50]Write to MH i2c: E2 08 00 E3 01 80 09 00 00 00 00 00 00 56 [11:00:50]Write i2c OK [11:00:50]MH_I2C_Read... [11:00:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:00:50]Read from MH i2c: E2 [11:00:50]MH_I2C_Read... [11:00:50]Read from MH i2c: E2 03 00 [11:00:50]MH_I2C_Read... [11:00:50]Read from MH i2c: E2 03 00 E3 01 00 90 00 58 [11:00:50]RAPDU: 90 00 [11:00:50]wFMCommunicate OK [11:00:50]SAM_PROTO_ClearQueue done [11:00:50]KKMCreateOFDPacket [11:00:50]OFDProtocolAddRootSTLVToBuf [11:00:50]FM_MakeSignedData [11:00:50]FM_MakeSignedData [11:00:50]SAM_PROTO_SignData [11:00:50]wFMCommunicate request_size=4 [11:00:50]MH_SAM_APDU [11:00:50]CAPDU: 80 0D 01 02 [11:00:50]Write to MH i2c: E2 08 00 E4 01 80 0D 01 02 00 00 00 00 5E [11:00:50]Write i2c OK [11:00:50]MH_I2C_Read... [11:00:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:00:50]Read from MH i2c: E2 [11:00:50]MH_I2C_Read... [11:00:50]Read from MH i2c: E2 03 00 [11:00:50]MH_I2C_Read... [11:00:50]Read from MH i2c: E2 03 00 E4 01 00 90 00 59 [11:00:50]RAPDU: 90 00 [11:00:50]wFMCommunicate OK [11:00:50]wFMCommunicate request_size=255 [11:00:50]MH_SAM_APDU [11:00:50]CAPDU: 80 0D 02 02 FA 03 00 04 01 1E 04 01 00 01 23 04 56 00 8A 04 08 00 35 30 31 37 33 38 30 38 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 53 77 65 65 74 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 11 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 62 76 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 [11:00:51]Write to MH i2c: E2 02 01 E5 01 80 0D 02 02 FA 00 03 00 04 01 1E 04 01 00 01 23 04 56 00 8A 04 08 00 35 30 31 37 33 38 30 38 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 53 77 65 65 74 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 11 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 62 76 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 00 00 3A [11:00:51]Write i2c OK [11:00:51]MH_I2C_Read... [11:00:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:51]Read from MH i2c: E2 [11:00:51]MH_I2C_Read... [11:00:51]Read from MH i2c: E2 03 00 [11:00:51]MH_I2C_Read... [11:00:51]Read from MH i2c: E2 03 00 E5 01 00 90 00 5A [11:00:51]RAPDU: 90 00 [11:00:51]wFMCommunicate OK [11:00:51]wFMCommunicate request_size=19 [11:00:51]MH_SAM_APDU [11:00:51]CAPDU: 80 0D 02 02 0E 89 A3 00 00 35 04 06 00 CB 1A FD 6E 19 19 [11:00:51]Write to MH i2c: E2 16 00 E6 01 80 0D 02 02 0E 00 89 A3 00 00 35 04 06 00 CB 1A FD 6E 19 19 00 00 6A [11:00:51]Write i2c OK [11:00:51]MH_I2C_Read... [11:00:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:51]Read from MH i2c: E2 [11:00:51]MH_I2C_Read... [11:00:51]Read from MH i2c: E2 03 00 [11:00:51]MH_I2C_Read... [11:00:51]Read from MH i2c: E2 03 00 E6 01 00 90 00 5B [11:00:51]RAPDU: 90 00 [11:00:51]wFMCommunicate OK [11:00:51]wFMCommunicate request_size=4 [11:00:51]MH_SAM_APDU [11:00:51]CAPDU: 80 0D 03 02 [11:00:51]Write to MH i2c: E2 08 00 E7 01 80 0D 03 02 00 00 00 00 63 [11:00:51]Write i2c OK [11:00:51]MH_I2C_Read... [11:00:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:00:51]Read from MH i2c: E2 [11:00:51]MH_I2C_Read... [11:00:51]Read from MH i2c: E2 0B 00 [11:00:51]MH_I2C_Read... [11:00:51]Read from MH i2c: E2 0B 00 E7 01 00 12 C1 18 A2 A5 CA EB 9A 90 00 E5 [11:00:51]RAPDU: 12 C1 18 A2 A5 CA EB 9A 90 00 [11:00:51]wFMCommunicate OK [11:00:51]SAM_PROTO_SignData done [11:00:51]FM_MakeSignedData done [11:00:51]CreateOFDProtocolMessage [11:00:51]wFMCommunicate request_size=4 [11:00:51]MH_SAM_APDU [11:00:51]CAPDU: 80 11 00 00 [11:00:51]Write to MH i2c: E2 08 00 E8 01 80 11 00 00 00 00 00 00 63 [11:00:51]Write i2c OK [11:00:51]MH_I2C_Read... [11:00:51]Read from MH i2c: E2 [11:00:51]MH_I2C_Read... [11:00:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:51]Read from MH i2c: E2 17 00 [11:00:51]MH_I2C_Read... [11:00:51]Read from MH i2c: E2 17 00 E8 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 BF [11:00:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [11:00:51]wFMCommunicate OK [11:00:51]CreateOFDProtocolMessage done [11:00:51]OFDSenderStorePacket 41865 [11:00:51]StoreOFDPacket docnum=41865 [11:00:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 18 01 00 00 FC 90 10 01 4E E1 5A 03 01 00 03 00 04 01 1E 04 01 00 01 23 04 56 00 8A 04 08 00 35 30 31 37 33 38 30 38 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 53 77 65 65 74 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 11 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 62 76 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 89 A3 00 00 35 04 06 00 CB 1A FD 6E 19 19 12 C1 18 A2 A5 CA EB 9A [11:00:51]CheckFolder [11:00:51]dirname=/storage/ofd_packets [11:00:51]CheckFolder done [11:00:51]ProducePacketName [11:00:51]name=ofd_packets/00041865 [11:00:51]NVStorageSaveData ofd_packets/00041865 [11:00:51]File name is /storage/ofd_packets/00041865 [11:00:51]Write 310 bytes [11:00:51]NVStorageSaveData done [11:00:51]OFDSenderStorePacket done [11:00:51]KKMCreateOFDPacket done [11:00:52]NVStorageSaveData kkm_last_timestamp [11:00:52]File name is /storage/kkm_last_timestamp [11:00:52]Write 4 bytes [11:00:52]NVStorageSaveData done [11:00:52]ExternCall_PrintAddStr [11:00:52]wPrintStart [11:00:52]Write to MH i2c: 01 00 00 E9 01 EA [11:00:52]Write i2c OK [11:00:52]MH_I2C_Read... [11:00:52]Read from MH i2c: 01 [11:00:52]MH_I2C_Read... [11:00:52]Read from MH i2c: 01 07 00 [11:00:52]MH_I2C_Read... [11:00:52]Read from MH i2c: 01 07 00 E9 01 00 00 00 00 00 FF 0F FF [11:00:52]RasterBufferAndPrint [11:00:52]line Счет N : (3)183893 [11:00:52]line ИНН: 02508201610067 [11:00:52]line Контрольно-Кассовый Чек [11:00:52]line ПРОДАЖА [11:00:52]line Товар: 50173808 [11:00:52]line Жев Orbit Sweet Mint [11:00:52]line 1.000 * 45.00 [11:00:52]line = 45.00 [11:00:52]line НДС 12% НСП 1% [11:00:52]line > о реализуемом товаре [11:00:52]line ИТОГО: 45.00 [11:00:52]line НСП 1% : 0.40 [11:00:52]line НДС 12% : 4.78 [11:00:52]line Наличными: 0.00 [11:00:52]line Безнал.: 45.00 [11:00:52]line Место: АЗС № 97 "Партнер Нефть" [11:00:52]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [11:00:52]line СНО: Общий режим [11:00:52]line Чек 54 29.07.2024 11:00 [11:00:52]line Смена: 427 ФФД: 1.0 [11:00:52]line ЗНМ: 0300000053 [11:00:52]line РНМ: 0000000000092626 [11:00:52]line Версия ККМ: 001 [11:00:52]line Платежная система: Бакай Банк [11:00:52]line ФМ: 0000000000874958 [11:00:52]line ФД: 41865 [11:00:52]line ФПД: 223316781439257 [11:00:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T110050&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41865&fm=223316781439257&tin=02508201610067®Number=0000000000092626&sum=4500 [11:00:52]line 0 [11:00:52]OFD Sender: Processing packet 41865 [packets to send 57, broken 56] [11:00:52]ProducePacketName [11:00:52]name=ofd_packets/00041865 [11:00:52]OFD Sender: To server: pG, [11:00:52]CommunicateWithHost lk.salyk.kg:30040 [11:00:52]ConnectInit lk.salyk.kg [11:00:52]written 0, free lines is 4095 [11:00:52]Write to MH i2c: 01 00 00 13 02 15 [11:00:52]Write i2c OK [11:00:52]MH_I2C_Read... [11:00:52]Read from MH i2c: 01 [11:00:52]MH_I2C_Read... [11:00:52]Read from MH i2c: 01 07 00 [11:00:52]MH_I2C_Read... [11:00:52]Read from MH i2c: 01 07 00 13 02 00 00 00 00 00 FB 0C 23 [11:00:52]RasterBufferAndPrint [11:00:52]line [11:00:52]line [11:00:52]line [11:00:52]line [11:00:52]line [11:00:52]written 0, free lines is 3374 [11:00:52]MH_Cut [11:00:52]Write to MH i2c: D1 01 00 1A 02 01 EE [11:00:52]Write i2c OK [11:00:52]MH_I2C_Read... [11:00:52]Read from MH i2c: D1 [11:00:52]MH_I2C_Read... [11:00:52]Read from MH i2c: D1 01 00 [11:00:52]MH_I2C_Read... [11:00:52]Read from MH i2c: D1 01 00 1A 02 00 ED [11:00:52]Write to MH i2c: 01 00 00 1B 02 1D [11:00:52]Write i2c OK [11:00:52]MH_I2C_Read... [11:00:53]*** Cut start [11:00:53]*** Partial cut [11:00:53]*** CUTSNS_PIN = 1 [11:00:53]*** CUTSNS_PIN = 0 [11:00:53]*** Brake cut motor [11:00:53]Read from MH i2c: 01 [11:00:53]MH_I2C_Read... [11:00:53]*** Stop cut motor [11:00:53]*** Cut end [11:00:53]Read from MH i2c: 01 07 00 [11:00:53]MH_I2C_Read... [11:00:53]Read from MH i2c: 01 07 00 1B 02 00 00 00 00 00 FF 0F 32 [11:00:53]process_action close_receipt done [11:00:53]requested_data is exist [11:00:54]produce_requested_data [11:00:54]requested_item fm.sn is exist - process it [11:00:54]wFMCommunicate request_size=4 [11:00:54]MH_SAM_APDU [11:00:54]CAPDU: 80 11 00 00 [11:00:54]Write to MH i2c: E2 08 00 1C 02 80 11 00 00 00 00 00 00 98 [11:00:54]Write i2c OK [11:00:54]MH_I2C_Read... [11:00:54]Read from MH i2c: E2 [11:00:54]MH_I2C_Read... [11:00:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:54]Read from MH i2c: E2 17 00 [11:00:54]MH_I2C_Read... [11:00:54]Read from MH i2c: E2 17 00 1C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 F4 [11:00:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [11:00:54]wFMCommunicate OK [11:00:54]requested_item fd.num is exist - process it [11:00:54]SAM_PROTO_GetFieldsCounters [11:00:54]wFMCommunicate request_size=4 [11:00:54]MH_SAM_APDU [11:00:54]CAPDU: 80 13 00 00 [11:00:54]Write to MH i2c: E2 08 00 1D 02 80 13 00 00 00 00 00 00 9B [11:00:54]Write i2c OK [11:00:54]MH_I2C_Read... [11:00:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:00:54]Read from MH i2c: E2 [11:00:54]MH_I2C_Read... [11:00:54]Read from MH i2c: E2 62 00 [11:00:54]MH_I2C_Read... [11:00:54]Read from MH i2c: E2 62 00 1D 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 89 A3 00 00 0E 04 04 00 AB 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 3F [11:00: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 89 A3 00 00 0E 04 04 00 AB 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 [11:00:54]wFMCommunicate OK [11:00:54]SAM_PROTO_GetFieldsCounters done [11:00:54]requested_item shift.num is exist - process it [11:00:54]requested_item shift.opened is exist - process it [11:00:54]req_shift_opened [11:00:54]FM_GetShiftState [11:00:54]SAM_PROTO_GetShiftState [11:00:54]wFMCommunicate request_size=4 [11:00:54]MH_SAM_APDU [11:00:54]CAPDU: 80 13 01 00 [11:00:54]Write to MH i2c: E2 08 00 1E 02 80 13 01 00 00 00 00 00 9D [11:00:54]Write i2c OK [11:00:54]MH_I2C_Read... [11:00:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:54]Read from MH i2c: E2 [11:00:54]MH_I2C_Read... [11:00:54]Read from MH i2c: E2 0E 00 [11:00:54]MH_I2C_Read... [11:00:54]Read from MH i2c: E2 0E 00 1E 02 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 39 [11:00:54]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [11:00:54]wFMCommunicate OK [11:00:54]SAM_PROTO_GetShiftState done [11:00:54]FM_GetShiftState done [11:00:54]req_shift_opened done [11:00:54]requested_item shift.open_date is exist - process it [11:00:54]req_shift_open_date [11:00:54]req_shift_open_date done [11:00:54]produce_requested_data done [11:00:54]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41865,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [11:00:54]process_action_free close_receipt [11:00:54]json_value_free [11:00:54]json_value_free done [11:00:54]process_json_proto returns [11:00:54]Send response to host [11:00:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41865,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [11:00:54]free response buf [11:00:54]execute_script done [11:00:54]execute_script returns [11:00:54]free content buf [11:00:54]Sock 8.Close socket [11:00:54]Sock 8.Thread stoped [11:00:54]Connected sock=11 [11:00: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 35 38 18 01 00 00 FC 90 10 01 4E E1 5A 03 01 00 03 00 04 01 1E 04 01 00 01 23 04 56 00 8A 04 08 00 35 30 31 37 33 38 30 38 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 53 77 65 65 74 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 11 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 62 76 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 89 A3 00 00 35 04 06 00 CB 1A FD 6E 19 19 12 C1 18 A2 A5 CA EB 9A [11:00: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 35 38 4F 00 00 00 4B C9 47 00 6F 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 89 A3 00 00 F4 03 04 00 7A 22 A7 66 B6 04 01 00 00 8D E7 FB 42 A0 5D 44 A4 [11:00:55]CommunicateWithHost err = 0 [11:00:55]CheckOFDResponse [11:00:55]1017 (14) - 77093643461234 [11:00:55]1041 (16) - 0000000000874958 [11:00:55]1040 (4) - 41865 [11:00:55]1012 (4) - 29.07.2024 05:02 [11:00:55]1206 (1) - 0 [11:00:55]OFD Sender: Remove packet 41865 [11:00:55]ProducePacketName [11:00:55]name=ofd_packets/00041865 [11:00:55]NVStorageDeleteData [11:00:55]accept exits with 9 [11:00:55]New connection [11:00:55]New thread 3066760548 created [11:00:55]Thread 3066903908 joined [11:00:55]Waiting for new connection... [11:00:55] Sock 9.Parse request [11:00:55]Sock 9.Check first char [11:00:55]Sock 9.First char is OK [11:00:55]request: POST /json_proto HTTP/1.0 [11:00:55]Method: POST [11:00:55]URL: /json_proto [11:00:55]Method is POST - this is cgi request [11:00:55]url: /json_proto [11:00:55]query_string will be loaded in cgi processing [11:00:55]execute_cgi json_proto POST (null) [11:00:55]execute_cgi path=json_proto method=POST [11:00:55]POST find Content-Length [11:00:55]Host: 172.17.43.132:8080 [11:00:55]Content-Length: 675 [11:00:55]Content-Type: application/json [11:00:55] [11:00:55]POST finish read [11:00:55]Found Content-Length = 675 [11:00:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183894", "tax_sys" : 0, "items" : [ { "code": "4700040114120", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:00:55]execute_script... [11:00:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183894", "tax_sys" : 0, "items" : [ { "code": "4700040114120", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:00:55]POST & json_proto [11:00:55]process_json_proto [11:00:55]json parsed OK: [11:00:55]protocol is kg_v1.0 [11:00:55]action value=close_receipt [11:00:55]process_action close_receipt [11:00:55]cmd_close_receipt [11:00:55]MH_GetDate [11:00:55]Write to MH i2c: F0 00 00 1F 02 10 [11:00:55]Write i2c OK [11:00:55]MH_I2C_Read... [11:00:55]Read from MH i2c: F0 [11:00:55]MH_I2C_Read... [11:00:55]Read from MH i2c: F0 09 00 [11:00:55]MH_I2C_Read... [11:00:55]Read from MH i2c: F0 09 00 1F 02 00 68 76 A7 66 F8 53 A7 66 5C [11:00:55]GetLastDocTimeStamp 1722250850 [11:00:55]current date 1722250856 [11:00:55]FM_GetShiftState [11:00:55]SAM_PROTO_GetShiftState [11:00:55]wFMCommunicate request_size=4 [11:00:55]MH_SAM_APDU [11:00:55]CAPDU: 80 13 01 00 [11:00:55]Write to MH i2c: E2 08 00 20 02 80 13 01 00 00 00 00 00 9F [11:00:55]Write i2c OK [11:00:55]MH_I2C_Read... [11:00:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:55]Read from MH i2c: E2 [11:00:55]MH_I2C_Read... [11:00:55]Read from MH i2c: E2 0E 00 [11:00:55]MH_I2C_Read... [11:00:55]Read from MH i2c: E2 0E 00 20 02 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 3B [11:00:55]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [11:00:55]wFMCommunicate OK [11:00:55]SAM_PROTO_GetShiftState done [11:00:55]FM_GetShiftState done [11:00:55]opened in 1722211496 [11:00:55]opened+sec_in_day 1722297896 [11:00:55]quantity*price = 6500 [11:00:55]sum+1 = 6501 [11:00:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 55 29.07.2024 11:00 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41866 ФПД: 152422702464679 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T110056&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41866&fm=152422702464679&tin=02508201610067®Number=0000000000092626&sum=6500 0 [11:00:58]StoreToDocumentArchive [11:00:58]shift 427 fd 41866 [11:00:58]save to /storage/0427/doc_00041866 [11:00:58]save last doc name /storage/0427/doc_00041866 to /storage/kkm_last_doc_name [11:00:58]save OK [11:00:58]Clear old archive folders... [11:00:58]ProcessDocumentItem done err = 0, tmpTLVsize=286 [11:00:58]tlvbuf is 009441D0 [11:00:58]SAM_PROTO_ClearQueue [11:00:58]wFMCommunicate request_size=4 [11:00:58]MH_SAM_APDU [11:00:58]CAPDU: 80 09 00 00 [11:00:58]Write to MH i2c: E2 08 00 2D 02 80 09 00 00 00 00 00 00 A1 [11:00:58]Write i2c OK [11:00:58]MH_I2C_Read... [11:00:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:00:58]Read from MH i2c: E2 [11:00:58]MH_I2C_Read... [11:00:58]Read from MH i2c: E2 03 00 [11:00:58]MH_I2C_Read... [11:00:58]Read from MH i2c: E2 03 00 2D 02 00 90 00 A3 [11:00:58]RAPDU: 90 00 [11:00:58]wFMCommunicate OK [11:00:58]SAM_PROTO_ClearQueue done [11:00:58]KKMCreateOFDPacket [11:00:58]OFDProtocolAddRootSTLVToBuf [11:00:58]FM_MakeSignedData [11:00:58]FM_MakeSignedData [11:00:58]SAM_PROTO_SignData [11:00:58]wFMCommunicate request_size=4 [11:00:58]MH_SAM_APDU [11:00:58]CAPDU: 80 0D 01 02 [11:00:58]Write to MH i2c: E2 08 00 2E 02 80 0D 01 02 00 00 00 00 A9 [11:00:58]Write i2c OK [11:00:58]MH_I2C_Read... [11:00:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:00:58]Read from MH i2c: E2 [11:00:58]MH_I2C_Read... [11:00:58]Read from MH i2c: E2 03 00 [11:00:58]MH_I2C_Read... [11:00:58]Read from MH i2c: E2 03 00 2E 02 00 90 00 A4 [11:00:58]RAPDU: 90 00 [11:00:58]wFMCommunicate OK [11:00:58]wFMCommunicate request_size=255 [11:00:58]MH_SAM_APDU [11:00:58]CAPDU: 80 0D 02 02 FA 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 68 76 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 [11:00:58]Write to MH i2c: E2 02 01 2F 02 80 0D 02 02 FA 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 68 76 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 00 00 3F [11:00:58]Write i2c OK [11:00:58]MH_I2C_Read... [11:00:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:59]Read from MH i2c: E2 [11:00:59]MH_I2C_Read... [11:00:59]Read from MH i2c: E2 03 00 [11:00:59]MH_I2C_Read... [11:00:59]Read from MH i2c: E2 03 00 2F 02 00 90 00 A5 [11:00:59]RAPDU: 90 00 [11:00:59]wFMCommunicate OK [11:00:59]wFMCommunicate request_size=45 [11:00:59]MH_SAM_APDU [11:00:59]CAPDU: 80 0D 02 02 28 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 8A A3 00 00 35 04 06 00 8A A0 AD 09 3E A7 [11:00:59]Write to MH i2c: E2 30 00 30 02 80 0D 02 02 28 00 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 8A A3 00 00 35 04 06 00 8A A0 AD 09 3E A7 00 00 FB [11:00:59]Write i2c OK [11:00:59]MH_I2C_Read... [11:00:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:59]Read from MH i2c: E2 [11:00:59]MH_I2C_Read... [11:00:59]Read from MH i2c: E2 03 00 [11:00:59]MH_I2C_Read... [11:00:59]Read from MH i2c: E2 03 00 30 02 00 90 00 A6 [11:00:59]RAPDU: 90 00 [11:00:59]wFMCommunicate OK [11:00:59]wFMCommunicate request_size=4 [11:00:59]MH_SAM_APDU [11:00:59]CAPDU: 80 0D 03 02 [11:00:59]Write to MH i2c: E2 08 00 31 02 80 0D 03 02 00 00 00 00 AE [11:00:59]Write i2c OK [11:00:59]MH_I2C_Read... [11:00:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:00:59]Read from MH i2c: E2 [11:00:59]MH_I2C_Read... [11:00:59]Read from MH i2c: E2 0B 00 [11:00:59]MH_I2C_Read... [11:00:59]Read from MH i2c: E2 0B 00 31 02 00 02 B6 A4 03 0C 6B 9C 14 90 00 35 [11:00:59]RAPDU: 02 B6 A4 03 0C 6B 9C 14 90 00 [11:00:59]wFMCommunicate OK [11:00:59]SAM_PROTO_SignData done [11:00:59]FM_MakeSignedData done [11:00:59]CreateOFDProtocolMessage [11:00:59]wFMCommunicate request_size=4 [11:00:59]MH_SAM_APDU [11:00:59]CAPDU: 80 11 00 00 [11:00:59]Write to MH i2c: E2 08 00 32 02 80 11 00 00 00 00 00 00 AE [11:00:59]Write i2c OK [11:00:59]MH_I2C_Read... [11:00:59]Read from MH i2c: E2 [11:00:59]MH_I2C_Read... [11:00:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:59]Read from MH i2c: E2 17 00 [11:00:59]MH_I2C_Read... [11:00:59]Read from MH i2c: E2 17 00 32 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 0A [11:00:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [11:00:59]wFMCommunicate OK [11:00:59]CreateOFDProtocolMessage done [11:00:59]OFDSenderStorePacket 41866 [11:00:59]StoreOFDPacket docnum=41866 [11:00:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 32 01 00 00 A6 23 2A 01 EF 0B 5A 03 01 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 68 76 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 8A A3 00 00 35 04 06 00 8A A0 AD 09 3E A7 02 B6 A4 03 0C 6B 9C 14 [11:00:59]CheckFolder [11:00:59]dirname=/storage/ofd_packets [11:00:59]CheckFolder done [11:00:59]ProducePacketName [11:00:59]name=ofd_packets/00041866 [11:00:59]NVStorageSaveData ofd_packets/00041866 [11:00:59]File name is /storage/ofd_packets/00041866 [11:00:59]Write 336 bytes [11:00:59]NVStorageSaveData done [11:00:59]OFDSenderStorePacket done [11:00:59]KKMCreateOFDPacket done [11:00:59]NVStorageSaveData kkm_last_timestamp [11:00:59]File name is /storage/kkm_last_timestamp [11:00:59]Write 4 bytes [11:00:59]NVStorageSaveData done [11:00:59]ExternCall_PrintAddStr [11:00:59]wPrintStart [11:00:59]Write to MH i2c: 01 00 00 33 02 35 [11:00:59]Write i2c OK [11:00:59]MH_I2C_Read... [11:00:59]Read from MH i2c: 01 [11:00:59]MH_I2C_Read... [11:00:59]Read from MH i2c: 01 07 00 [11:00:59]MH_I2C_Read... [11:00:59]Read from MH i2c: 01 07 00 33 02 00 00 00 00 00 FF 0F 4A [11:00:59]RasterBufferAndPrint [11:00:59]line Счет N : (3)183894 [11:00:59]line ИНН: 02508201610067 [11:00:59]line Контрольно-Кассовый Чек [11:00:59]line ПРОДАЖА [11:00:59]line Товар: 4700040114120 [11:00:59]line Султан чай 1л. чер персик [11:00:59]line 1.000 * 65.00 [11:00:59]line = 65.00 [11:00:59]line НДС 12% НСП 1% [11:00:59]line > о реализуемом товаре [11:00:59]line ИТОГО: 65.00 [11:00:59]line НСП 1% : 0.57 [11:00:59]line НДС 12% : 6.90 [11:00:59]line Наличными: 65.00 [11:00:59]line Безнал.: 0.00 [11:00:59]line Место: АЗС № 97 "Партнер Нефть" [11:00:59]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [11:00:59]line СНО: Общий режим [11:00:59]line Чек 55 29.07.2024 11:00 [11:00:59]line Смена: 427 ФФД: 1.0 [11:00:59]line ЗНМ: 0300000053 [11:00:59]line РНМ: 0000000000092626 [11:00:59]line Версия ККМ: 001 [11:00:59]line ФМ: 0000000000874958 [11:00:59]line ФД: 41866 [11:00:59]line ФПД: 152422702464679 [11:00:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T110056&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41866&fm=152422702464679&tin=02508201610067®Number=0000000000092626&sum=6500 [11:00:59]line 0 [11:00:59]OFD Sender: Processing packet 41866 [packets to send 57, broken 56] [11:00:59]ProducePacketName [11:00:59]name=ofd_packets/00041866 [11:00:59]OFD Sender: To server: pG, [11:00:59]CommunicateWithHost lk.salyk.kg:30040 [11:00:59]ConnectInit lk.salyk.kg [11:00:59]written 0, free lines is 4095 [11:01:00]Write to MH i2c: 01 00 00 5B 02 5D [11:01:00]Write i2c OK [11:01:00]MH_I2C_Read... [11:01:00]Read from MH i2c: 01 [11:01:00]MH_I2C_Read... [11:01:00]Read from MH i2c: 01 07 00 [11:01:00]MH_I2C_Read... [11:01:00]Read from MH i2c: 01 07 00 5B 02 00 00 00 00 00 29 0D 9A [11:01:00]RasterBufferAndPrint [11:01:00]line [11:01:00]line [11:01:00]line [11:01:00]line [11:01:00]line [11:01:00]written 0, free lines is 3426 [11:01:00]MH_Cut [11:01:00]Write to MH i2c: D1 01 00 62 02 01 36 [11:01:00]Write i2c OK [11:01:00]MH_I2C_Read... [11:01:00]Read from MH i2c: D1 [11:01:00]MH_I2C_Read... [11:01:00]Read from MH i2c: D1 01 00 [11:01:00]MH_I2C_Read... [11:01:00]Read from MH i2c: D1 01 00 62 02 00 35 [11:01:00]Write to MH i2c: 01 00 00 63 02 65 [11:01:00]Write i2c OK [11:01:00]MH_I2C_Read... [11:01:00]*** Cut start [11:01:00]*** Partial cut [11:01:00]*** CUTSNS_PIN = 1 [11:01:00]*** CUTSNS_PIN = 0 [11:01:01]*** Brake cut motor [11:01:01]Read from MH i2c: 01 [11:01:01]MH_I2C_Read... [11:01:01]*** Stop cut motor [11:01:01]*** Cut end [11:01:01]Read from MH i2c: 01 07 00 [11:01:01]MH_I2C_Read... [11:01:01]Read from MH i2c: 01 07 00 63 02 00 00 00 00 00 FF 0F 7A [11:01:01]process_action close_receipt done [11:01:01]requested_data is exist [11:01:01]produce_requested_data [11:01:01]requested_item fm.sn is exist - process it [11:01:01]wFMCommunicate request_size=4 [11:01:01]MH_SAM_APDU [11:01:01]CAPDU: 80 11 00 00 [11:01:01]Write to MH i2c: E2 08 00 64 02 80 11 00 00 00 00 00 00 E0 [11:01:01]Write i2c OK [11:01:01]MH_I2C_Read... [11:01:01]Connected sock=11 [11:01: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 35 38 32 01 00 00 A6 23 2A 01 EF 0B 5A 03 01 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 *** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:01]8A Read from MH i2c: 04 E2 0D [11:01:01]00 MH_I2C_Read... [11:01:01]34 Read from MH i2c: 37 E2 30 17 30 00 30 34 [11:01:01]MH_I2C_Read... [11:01:01]Read from MH i2c: E2 17 00 64 02 00 11 30 04 31 10 31 00 34 30 31 32 30 30 30 30 30 30 30 30 30 38 37 30 34 06 39 04 35 2C 38 00 90 00 3C [11:01:01]RAPDU: 11 04 10 00 30 30 D0 30 A1 30 D1 30 83 30 D0 30 BB 30 D1 30 82 30 D0 38 B0 37 D0 34 BD 39 20 35 D1 38 87 90 D0 00 [11:01:01]wFMCommunicate OK [11:01:01]requested_item fd.num is exist - process it [11:01:01]SAM_PROTO_GetFieldsCounters [11:01:01]wFMCommunicate request_size=4 [11:01:01]MH_SAM_APDU [11:01:01]CAPDU: 80 13 B0 00 D0 00 B9 [11:01:01]20 Write to MH i2c: 31 E2 08 00 65 02 80 13 00 00 00 00 00 00 E3 [11:01:01]D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 Write i2c OK [11:01:01]00 MH_I2C_Read... [11:01:01]F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 Read from MH i2c: 00 E2 EF [11:01:01]03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 MH_I2C_Read... [11:01:02]07 *** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:01:02]04 Read from MH i2c: 06 E2 00 62 64 19 00 00 [11:01:02]00 MH_I2C_Read... [11:01:02]00 00 39 Read from MH i2c: 04 E2 06 62 00 00 00 65 00 02 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 68 76 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 8A A3 00 00 35 04 06 00 8A A0 AD 09 3E A7 02 B6 A4 03 0C 6B 9C 14 [11:01: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 8A A3 00 00 0E 04 04 00 AB 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 8B [11:01: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 8A A3 00 00 0E 04 04 00 AB 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 [11:01:02]wFMCommunicate OK [11:01:02]SAM_PROTO_GetFieldsCounters done [11:01:02]requested_item shift.num is exist - process it [11:01:02]requested_item shift.opened is exist - process it [11:01:02]req_shift_opened [11:01:02]FM_GetShiftState [11:01:02]SAM_PROTO_GetShiftState [11:01:02]wFMCommunicate request_size=4 [11:01:02]MH_SAM_APDU [11:01:02]CAPDU: 80 13 01 00 [11:01:02]Write to MH i2c: E2 08 00 66 02 80 13 01 00 00 00 00 00 E5 [11:01:02]Write i2c OK [11:01:02]MH_I2C_Read... [11:01:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:02]Read from MH i2c: E2 [11:01:02]MH_I2C_Read... [11:01:02]Read from MH i2c: E2 0E 00 [11:01:02]MH_I2C_Read... [11:01:02]Read from MH i2c: E2 0E 00 66 02 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 81 [11:01:02]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [11:01:02]wFMCommunicate OK [11:01:02]SAM_PROTO_GetShiftState done [11:01:02]FM_GetShiftState done [11:01:02]req_shift_opened done [11:01:02]requested_item shift.open_date is exist - process it [11:01:02]req_shift_open_date [11:01:02]req_shift_open_date done [11:01:02]produce_requested_data done [11:01:02]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41866,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [11:01:02]process_action_free close_receipt [11:01:02]json_value_free [11:01:02]json_value_free done [11:01:02]process_json_proto returns [11:01:02]Send response to host [11:01:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41866,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [11:01:02]free response buf [11:01:02]execute_script done [11:01:02]execute_script returns [11:01:02]free content buf [11:01:02]Sock 9.Close socket [11:01:02]Sock 9.Thread stoped [11:01: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 35 38 4F 00 00 00 C7 43 47 00 27 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 35 38 10 04 04 00 8A A3 00 00 F4 03 04 00 81 22 A7 66 B6 04 01 00 00 05 B3 DE C9 12 17 F4 DA [11:01:02]CommunicateWithHost err = 0 [11:01:02]CheckOFDResponse [11:01:02]1017 (14) - 77093643461234 [11:01:02]1041 (16) - 0000000000874958 [11:01:02]1040 (4) - 41866 [11:01:02]1012 (4) - 29.07.2024 05:02 [11:01:02]1206 (1) - 0 [11:01:02]OFD Sender: Remove packet 41866 [11:01:02]ProducePacketName [11:01:02]name=ofd_packets/00041866 [11:01:02]NVStorageDeleteData [11:01:03]OFD Sender: No OFD packet to send [11:01:03]accept exits with 8 [11:01:03]New connection [11:01:03]New thread 3066903908 created [11:01:03]Thread 3066760548 joined [11:01:03]Waiting for new connection... [11:01:03] Sock 8.Parse request [11:01:03]Sock 8.Check first char [11:01:03]Sock 8.First char is OK [11:01:03]request: POST /json_proto HTTP/1.0 [11:01:03]Method: POST [11:01:03]URL: /json_proto [11:01:03]Method is POST - this is cgi request [11:01:03]url: /json_proto [11:01:03]query_string will be loaded in cgi processing [11:01:03]execute_cgi json_proto POST (null) [11:01:03]execute_cgi path=json_proto method=POST [11:01:03]POST find Content-Length [11:01:03]Host: 172.17.43.132:8080 [11:01:03]Content-Length: 623 [11:01:03]Content-Type: application/json [11:01:03] [11:01:03]POST finish read [11:01:03]Found Content-Length = 623 [11:01:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183895", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 2.000, "sum" : 280.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 280.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:01:03]execute_script... [11:01:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183895", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 2.000, "sum" : 280.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 280.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:01:03]POST & json_proto [11:01:03]process_json_proto [11:01:03]json parsed OK: [11:01:03]protocol is kg_v1.0 [11:01:03]action value=close_receipt [11:01:03]process_action close_receipt [11:01:03]cmd_close_receipt [11:01:03]MH_GetDate [11:01:03]Write to MH i2c: F0 00 00 67 02 58 [11:01:03]Write i2c OK [11:01:03]MH_I2C_Read... [11:01:03]Read from MH i2c: F0 [11:01:03]MH_I2C_Read... [11:01:03]Read from MH i2c: F0 09 00 [11:01:03]MH_I2C_Read... [11:01:03]Read from MH i2c: F0 09 00 67 02 00 70 76 A7 66 F8 53 A7 66 AC [11:01:03]GetLastDocTimeStamp 1722250856 [11:01:03]current date 1722250864 [11:01:03]FM_GetShiftState [11:01:03]SAM_PROTO_GetShiftState [11:01:03]wFMCommunicate request_size=4 [11:01:03]MH_SAM_APDU [11:01:03]CAPDU: 80 13 01 00 [11:01:03]Write to MH i2c: E2 08 00 68 02 80 13 01 00 00 00 00 00 E7 [11:01:03]Write i2c OK [11:01:03]MH_I2C_Read... [11:01:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:03]Read from MH i2c: E2 [11:01:03]MH_I2C_Read... [11:01:03]Read from MH i2c: E2 0E 00 [11:01:03]MH_I2C_Read... [11:01:03]Read from MH i2c: E2 0E 00 68 02 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 83 [11:01:03]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [11:01:03]wFMCommunicate OK [11:01:03]SAM_PROTO_GetShiftState done [11:01:03]FM_GetShiftState done [11:01:03]opened in 1722211496 [11:01:03]opened+sec_in_day 1722297896 [11:01:03]quantity*price = 28000 [11:01:03]sum+1 = 28001 [11:01:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 280.00 НСП 1% : 2.48 НДС 12% : 29.73 Наличными: 280.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 56 29.07.2024 11:01 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41867 ФПД: 220484785222035 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T110104&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41867&fm=220484785222035&tin=02508201610067®Number=0000000000092626&sum=28000 0 [11:01:06]StoreToDocumentArchive [11:01:06]shift 427 fd 41867 [11:01:06]save to /storage/0427/doc_00041867 [11:01:06]save last doc name /storage/0427/doc_00041867 to /storage/kkm_last_doc_name [11:01:06]save OK [11:01:06]Clear old archive folders... [11:01:06]ProcessDocumentItem done err = 0, tmpTLVsize=275 [11:01:06]tlvbuf is 0085BBD0 [11:01:06]SAM_PROTO_ClearQueue [11:01:06]wFMCommunicate request_size=4 [11:01:06]MH_SAM_APDU [11:01:06]CAPDU: 80 09 00 00 [11:01:06]Write to MH i2c: E2 08 00 75 02 80 09 00 00 00 00 00 00 E9 [11:01:06]Write i2c OK [11:01:06]MH_I2C_Read... [11:01:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:01:06]Read from MH i2c: E2 [11:01:06]MH_I2C_Read... [11:01:06]Read from MH i2c: E2 03 00 [11:01:06]MH_I2C_Read... [11:01:06]Read from MH i2c: E2 03 00 75 02 00 90 00 EB [11:01:06]RAPDU: 90 00 [11:01:06]wFMCommunicate OK [11:01:06]SAM_PROTO_ClearQueue done [11:01:06]KKMCreateOFDPacket [11:01:06]OFDProtocolAddRootSTLVToBuf [11:01:06]FM_MakeSignedData [11:01:06]FM_MakeSignedData [11:01:06]SAM_PROTO_SignData [11:01:06]wFMCommunicate request_size=4 [11:01:06]MH_SAM_APDU [11:01:06]CAPDU: 80 0D 01 02 [11:01:06]Write to MH i2c: E2 08 00 76 02 80 0D 01 02 00 00 00 00 F1 [11:01:06]Write i2c OK [11:01:06]MH_I2C_Read... [11:01:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:01:06]Read from MH i2c: E2 [11:01:06]MH_I2C_Read... [11:01:06]Read from MH i2c: E2 03 00 [11:01:06]MH_I2C_Read... [11:01:06]Read from MH i2c: E2 03 00 76 02 00 90 00 EC [11:01:06]RAPDU: 90 00 [11:01:06]wFMCommunicate OK [11:01:06]wFMCommunicate request_size=255 [11:01:06]MH_SAM_APDU [11:01:06]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 60 6D 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 70 76 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 [11:01:06]Write to MH i2c: E2 02 01 77 02 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 60 6D 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 70 76 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 00 00 49 [11:01:06]Write i2c OK [11:01:06]MH_I2C_Read... [11:01:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:07]Read from MH i2c: E2 [11:01:07]MH_I2C_Read... [11:01:07]Read from MH i2c: E2 03 00 [11:01:07]MH_I2C_Read... [11:01:07]Read from MH i2c: E2 03 00 77 02 00 90 00 ED [11:01:07]RAPDU: 90 00 [11:01:07]wFMCommunicate OK [11:01:07]wFMCommunicate request_size=34 [11:01:07]MH_SAM_APDU [11:01:07]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 8B A3 00 00 35 04 06 00 C8 87 9D 4D 31 93 [11:01:07]Write to MH i2c: E2 25 00 78 02 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 8B A3 00 00 35 04 06 00 C8 87 9D 4D 31 93 00 00 E9 [11:01:07]Write i2c OK [11:01:07]MH_I2C_Read... [11:01:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:07]Read from MH i2c: E2 [11:01:07]MH_I2C_Read... [11:01:07]Read from MH i2c: E2 03 00 [11:01:07]MH_I2C_Read... [11:01:07]Read from MH i2c: E2 03 00 78 02 00 90 00 EE [11:01:07]RAPDU: 90 00 [11:01:07]wFMCommunicate OK [11:01:07]wFMCommunicate request_size=4 [11:01:07]MH_SAM_APDU [11:01:07]CAPDU: 80 0D 03 02 [11:01:07]Write to MH i2c: E2 08 00 79 02 80 0D 03 02 00 00 00 00 F6 [11:01:07]Write i2c OK [11:01:07]MH_I2C_Read... [11:01:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:01:07]Read from MH i2c: E2 [11:01:07]MH_I2C_Read... [11:01:07]Read from MH i2c: E2 0B 00 [11:01:07]MH_I2C_Read... [11:01:07]Read from MH i2c: E2 0B 00 79 02 00 67 9C E4 34 78 A6 61 BB 90 00 4C [11:01:07]RAPDU: 67 9C E4 34 78 A6 61 BB 90 00 [11:01:07]wFMCommunicate OK [11:01:07]SAM_PROTO_SignData done [11:01:07]FM_MakeSignedData done [11:01:07]CreateOFDProtocolMessage [11:01:07]wFMCommunicate request_size=4 [11:01:07]MH_SAM_APDU [11:01:07]CAPDU: 80 11 00 00 [11:01:07]Write to MH i2c: E2 08 00 7A 02 80 11 00 00 00 00 00 00 F6 [11:01:07]Write i2c OK [11:01:07]MH_I2C_Read... [11:01:07]Read from MH i2c: E2 [11:01:07]MH_I2C_Read... [11:01:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:07]Read from MH i2c: E2 17 00 [11:01:07]MH_I2C_Read... [11:01:07]Read from MH i2c: E2 17 00 7A 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 52 [11:01:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [11:01:07]wFMCommunicate OK [11:01:07]CreateOFDProtocolMessage done [11:01:07]OFDSenderStorePacket 41867 [11:01:07]StoreOFDPacket docnum=41867 [11:01:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 27 01 00 00 E3 49 1F 01 73 9C 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 60 6D 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 70 76 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 8B A3 00 00 35 04 06 00 C8 87 9D 4D 31 93 67 9C E4 34 78 A6 61 BB [11:01:07]CheckFolder [11:01:07]dirname=/storage/ofd_packets [11:01:07]CheckFolder done [11:01:07]ProducePacketName [11:01:07]name=ofd_packets/00041867 [11:01:07]NVStorageSaveData ofd_packets/00041867 [11:01:07]File name is /storage/ofd_packets/00041867 [11:01:07]Write 325 bytes [11:01:07]NVStorageSaveData done [11:01:07]OFDSenderStorePacket done [11:01:07]KKMCreateOFDPacket done [11:01:07]NVStorageSaveData kkm_last_timestamp [11:01:07]File name is /storage/kkm_last_timestamp [11:01:07]Write 4 bytes [11:01:07]NVStorageSaveData done [11:01:07]ExternCall_PrintAddStr [11:01:07]wPrintStart [11:01:07]Write to MH i2c: 01 00 00 7B 02 7D [11:01:07]Write i2c OK [11:01:07]MH_I2C_Read... [11:01:07]Read from MH i2c: 01 [11:01:07]MH_I2C_Read... [11:01:07]Read from MH i2c: 01 07 00 [11:01:07]MH_I2C_Read... [11:01:07]Read from MH i2c: 01 07 00 7B 02 00 00 00 00 00 FF 0F 92 [11:01:07]RasterBufferAndPrint [11:01:07]line Счет N : (3)183895 [11:01:07]line ИНН: 02508201610067 [11:01:07]line Контрольно-Кассовый Чек [11:01:07]line ПРОДАЖА [11:01:07]line Товар: 48743587 [11:01:07]line Сигареты Winston XStyle Silver [11:01:07]line 2.000 * 140.00 [11:01:07]line = 280.00 [11:01:07]line НДС 12% НСП 1% [11:01:07]line > о реализуемом товаре [11:01:07]line ИТОГО: 280.00 [11:01:07]line НСП 1% : 2.48 [11:01:07]line НДС 12% : 29.73 [11:01:07]line Наличными: 280.00 [11:01:07]line Безнал.: 0.00 [11:01:07]line Место: АЗС № 97 "Партнер Нефть" [11:01:07]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [11:01:07]line СНО: Общий режим [11:01:07]line Чек 56 29.07.2024 11:01 [11:01:07]line Смена: 427 ФФД: 1.0 [11:01:07]line ЗНМ: 0300000053 [11:01:07]line РНМ: 0000000000092626 [11:01:07]line Версия ККМ: 001 [11:01:07]line ФМ: 0000000000874958 [11:01:07]line ФД: 41867 [11:01:07]line ФПД: 220484785222035 [11:01:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T110104&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41867&fm=220484785222035&tin=02508201610067®Number=0000000000092626&sum=28000 [11:01:07]line 0 [11:01:07]written 0, free lines is 4095 [11:01:07]OFD Sender: Processing packet 41867 [packets to send 57, broken 56] [11:01:07]ProducePacketName [11:01:07]name=ofd_packets/00041867 [11:01:07]OFD Sender: To server: pG, [11:01:07]CommunicateWithHost lk.salyk.kg:30040 [11:01:07]ConnectInit lk.salyk.kg [11:01:08]Write to MH i2c: 01 00 00 A4 02 A6 [11:01:08]Write i2c OK [11:01:08]MH_I2C_Read... [11:01:08]Read from MH i2c: 01 [11:01:08]MH_I2C_Read... [11:01:08]Read from MH i2c: 01 07 00 [11:01:08]MH_I2C_Read... [11:01:08]Read from MH i2c: 01 07 00 A4 02 00 00 00 00 00 14 0D CE [11:01:08]RasterBufferAndPrint [11:01:08]line [11:01:08]line [11:01:08]line [11:01:08]line [11:01:08]line [11:01:08]written 0, free lines is 3410 [11:01:08]MH_Cut [11:01:08]Write to MH i2c: D1 01 00 AB 02 01 7F [11:01:08]Write i2c OK [11:01:08]MH_I2C_Read... [11:01:08]Read from MH i2c: D1 [11:01:08]MH_I2C_Read... [11:01:08]Read from MH i2c: D1 01 00 [11:01:08]MH_I2C_Read... [11:01:08]Read from MH i2c: D1 01 00 AB 02 00 7E [11:01:08]Write to MH i2c: 01 00 00 AC 02 AE [11:01:08]Write i2c OK [11:01:08]MH_I2C_Read... [11:01:08]*** Cut start [11:01:08]*** Partial cut [11:01:08]*** CUTSNS_PIN = 1 [11:01:08]*** CUTSNS_PIN = 0 [11:01:09]*** Brake cut motor [11:01:09]Read from MH i2c: 01 [11:01:09]MH_I2C_Read... [11:01:09]*** Stop cut motor [11:01:09]*** Cut end [11:01:09]Read from MH i2c: 01 07 00 [11:01:09]MH_I2C_Read... [11:01:09]Read from MH i2c: 01 07 00 AC 02 00 00 00 00 00 FF 0F C3 [11:01:09]process_action close_receipt done [11:01:09]requested_data is exist [11:01:09]produce_requested_data [11:01:09]requested_item fm.sn is exist - process it [11:01:09]wFMCommunicate request_size=4 [11:01:09]MH_SAM_APDU [11:01:09]CAPDU: 80 11 00 00 [11:01:09]Write to MH i2c: E2 08 00 AD 02 80 11 00 00 00 00 00 00 29 [11:01:09]Write i2c OK [11:01:09]MH_I2C_Read... [11:01:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:09]Read from MH i2c: E2 [11:01:09]MH_I2C_Read... [11:01:09]Read from MH i2c: E2 17 00 [11:01:09]MH_I2C_Read... [11:01:09]Read from MH i2c: E2 17 00 AD 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 85 [11:01:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [11:01:09]wFMCommunicate OK [11:01:09]requested_item fd.num is exist - process it [11:01:09]SAM_PROTO_GetFieldsCounters [11:01:09]wFMCommunicate request_size=4 [11:01:09]MH_SAM_APDU [11:01:09]CAPDU: 80 13 00 00 [11:01:09]Write to MH i2c: E2 08 00 AE 02 80 13 00 00 00 00 00 00 2C [11:01:09]Connected sock=11 [11:01: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 35 38 27 01 00 00 E3 49 1F 01 73 9C 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 Write i2c OK [11:01:10]B0 MH_I2C_Read... [11:01:10]D1 80 D0 B5 D1 82 Read from MH i2c: D1 E2 8B 20 57 69 6E 73 74 [11:01:10]6F MH_I2C_Read... [11:01:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:01:10]Read from MH i2c: 6E E2 20 62 58 00 53 74 79 6C 65 20 53 69 6C 76 [11:01:10]65 MH_I2C_Read... [11:01:10]72 FF 03 Read from MH i2c: 08 E2 00 62 03 00 D0 AE 02 07 00 00 5D 00 00 00 B9 00 04 00 37 04 06 00 B0 36 00 00 00 00 01 13 00 04 01 11 06 04 00 60 6D 00 00 00 00 F2 03 01 10 00 00 01 30 F6 30 03 30 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 60 30 6D 30 00 30 00 30 00 30 30 00 30 39 38 04 37 06 34 00 39 00 35 00 38 00 0D 00 04 00 10 00 00 1F 30 04 30 02 30 00 30 01 30 00 30 12 30 30 04 30 04 30 00 30 38 39 00 32 00 36 00 32 F4 36 10 04 04 00 8B A3 00 00 0E 04 03 04 04 00 00 AB 70 01 76 00 A7 00 12 04 04 00 38 00 66 00 0E 00 04 5E 04 04 00 04 00 38 00 AB 00 01 00 00 57 04 04 00 39 00 00 00 19 04 00 04 B9 00 00 00 00 00 90 00 D8 [11:01:10]RAPDU: 04 5D 01 00 00 B9 01 04 0D 01 00 01 11 04 10 00 30 30 30 04 30 10 30 00 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 32 37 36 34 11 39 04 35 10 38 00 0D 30 04 30 10 30 30 30 30 30 30 30 30 38 37 00 34 30 39 30 35 30 38 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 8B A3 00 00 0E 04 04 00 AB 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 10 00 04 00 04 00 00 19 8B 04 A3 04 00 00 00 00 35 00 04 00 06 00 00 90 C8 00 87 [11:01:10]wFMCommunicate OK [11:01:10]SAM_PROTO_GetFieldsCounters done [11:01:10]requested_item shift.num is exist - process it [11:01:10]requested_item shift.opened is exist - process it [11:01:10]req_shift_opened [11:01:10]FM_GetShiftState [11:01:10]SAM_PROTO_GetShiftState [11:01:10]wFMCommunicate request_size=4 [11:01:10]9D MH_SAM_APDU [11:01:10]4D CAPDU: 31 80 93 13 67 01 9C 00 E4 [11:01:10]34 Write to MH i2c: 78 A6 61 BB [11:01:10]E2 08 00 AF 02 80 13 01 00 00 00 00 00 2E [11:01:10]Write i2c OK [11:01:10]MH_I2C_Read... [11:01:10]Read from MH i2c: *** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:10]E2 [11:01:10]MH_I2C_Read... [11:01:10]Read from MH i2c: E2 0E 00 [11:01:10]MH_I2C_Read... [11:01:10]Read from MH i2c: E2 0E 00 AF 02 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 CA [11:01:10]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [11:01:10]wFMCommunicate OK [11:01:10]SAM_PROTO_GetShiftState done [11:01:10]FM_GetShiftState done [11:01:10]req_shift_opened done [11:01:10]requested_item shift.open_date is exist - process it [11:01:10]req_shift_open_date [11:01:10]req_shift_open_date done [11:01:10]produce_requested_data done [11:01:10]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41867,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [11:01:10]process_action_free close_receipt [11:01:10]json_value_free [11:01:10]json_value_free done [11:01:10]process_json_proto returns [11:01:10]Send response to host [11:01:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41867,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [11:01:10]free response buf [11:01:10]execute_script done [11:01:10]execute_script returns [11:01:10]free content buf [11:01:10]Sock 8.Close socket [11:01:10]Sock 8.Thread stoped [11: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 35 38 4F 00 00 00 2E 6C 47 00 4A 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 35 38 10 04 04 00 8B A3 00 00 F4 03 04 00 8A 22 A7 66 B6 04 01 00 00 78 8E 2C 62 89 43 59 7B [11:01:11]CommunicateWithHost err = 0 [11:01:11]CheckOFDResponse [11:01:11]1017 (14) - 77093643461234 [11:01:11]1041 (16) - 0000000000874958 [11:01:11]1040 (4) - 41867 [11:01:11]1012 (4) - 29.07.2024 05:03 [11:01:11]1206 (1) - 0 [11:01:11]OFD Sender: Remove packet 41867 [11:01:11]ProducePacketName [11:01:11]name=ofd_packets/00041867 [11:01:11]NVStorageDeleteData [11:01:11]accept exits with 9 [11:01:11]New connection [11:01:11]New thread 3066760548 created [11:01:11]Thread 3066903908 joined [11:01:11]Waiting for new connection... [11:01:11] Sock 9.Parse request [11:01:11]Sock 9.Check first char [11:01:11]Sock 9.First char is OK [11:01:11]request: POST /json_proto HTTP/1.0 [11:01:11]Method: POST [11:01:11]URL: /json_proto [11:01:11]Method is POST - this is cgi request [11:01:11]url: /json_proto [11:01:11]query_string will be loaded in cgi processing [11:01:11]execute_cgi json_proto POST (null) [11:01:11]execute_cgi path=json_proto method=POST [11:01:11]POST find Content-Length [11:01:11]Host: 172.17.43.132:8080 [11:01:11]Content-Length: 621 [11:01:11]Content-Type: application/json [11:01:11] [11:01:11]POST finish read [11:01:11]Found Content-Length = 621 [11:01:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183896", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 2.000, "sum" : 280.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 280.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:01:11]execute_script... [11:01:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183896", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 2.000, "sum" : 280.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 280.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:01:11]POST & json_proto [11:01:11]process_json_proto [11:01:11]json parsed OK: [11:01:11]protocol is kg_v1.0 [11:01:11]action value=close_receipt [11:01:11]process_action close_receipt [11:01:11]cmd_close_receipt [11:01:11]MH_GetDate [11:01:11]Write to MH i2c: F0 00 00 B0 02 A1 [11:01:11]Write i2c OK [11:01:11]MH_I2C_Read... [11:01:11]Read from MH i2c: F0 [11:01:11]MH_I2C_Read... [11:01:11]Read from MH i2c: F0 09 00 [11:01:11]MH_I2C_Read... [11:01:11]Read from MH i2c: F0 09 00 B0 02 00 78 76 A7 66 F8 53 A7 66 FD [11:01:11]GetLastDocTimeStamp 1722250864 [11:01:11]current date 1722250872 [11:01:11]FM_GetShiftState [11:01:11]SAM_PROTO_GetShiftState [11:01:11]wFMCommunicate request_size=4 [11:01:11]MH_SAM_APDU [11:01:11]CAPDU: 80 13 01 00 [11:01:11]Write to MH i2c: E2 08 00 B1 02 80 13 01 00 00 00 00 00 30 [11:01:11]Write i2c OK [11:01:11]MH_I2C_Read... [11:01:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:11]Read from MH i2c: E2 [11:01:11]MH_I2C_Read... [11:01:11]Read from MH i2c: E2 0E 00 [11:01:11]MH_I2C_Read... [11:01:11]Read from MH i2c: E2 0E 00 B1 02 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 CC [11:01:11]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [11:01:11]wFMCommunicate OK [11:01:11]SAM_PROTO_GetShiftState done [11:01:11]FM_GetShiftState done [11:01:11]opened in 1722211496 [11:01:11]opened+sec_in_day 1722297896 [11:01:11]quantity*price = 28000 [11:01:11]sum+1 = 28001 [11:01:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 280.00 НСП 1% : 2.48 НДС 12% : 29.73 Наличными: 280.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 57 29.07.2024 11:01 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41868 ФПД: 54895301991564 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T110112&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41868&fm=54895301991564&tin=02508201610067®Number=0000000000092626&sum=28000 0 [11:01:14]StoreToDocumentArchive [11:01:14]shift 427 fd 41868 [11:01:14]save to /storage/0427/doc_00041868 [11:01:14]save last doc name /storage/0427/doc_00041868 to /storage/kkm_last_doc_name [11:01:14]save OK [11:01:14]Clear old archive folders... [11:01:14]ProcessDocumentItem done err = 0, tmpTLVsize=273 [11:01:14]tlvbuf is 008110E0 [11:01:14]SAM_PROTO_ClearQueue [11:01:14]wFMCommunicate request_size=4 [11:01:14]MH_SAM_APDU [11:01:14]CAPDU: 80 09 00 00 [11:01:14]Write to MH i2c: E2 08 00 BE 02 80 09 00 00 00 00 00 00 32 [11:01:14]Write i2c OK [11:01:14]MH_I2C_Read... [11:01:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:01:14]Read from MH i2c: E2 [11:01:14]MH_I2C_Read... [11:01:14]Read from MH i2c: E2 03 00 [11:01:14]MH_I2C_Read... [11:01:14]Read from MH i2c: E2 03 00 BE 02 00 90 00 34 [11:01:14]RAPDU: 90 00 [11:01:14]wFMCommunicate OK [11:01:14]SAM_PROTO_ClearQueue done [11:01:14]KKMCreateOFDPacket [11:01:14]OFDProtocolAddRootSTLVToBuf [11:01:14]FM_MakeSignedData [11:01:14]FM_MakeSignedData [11:01:14]SAM_PROTO_SignData [11:01:14]wFMCommunicate request_size=4 [11:01:14]MH_SAM_APDU [11:01:14]CAPDU: 80 0D 01 02 [11:01:14]Write to MH i2c: E2 08 00 BF 02 80 0D 01 02 00 00 00 00 3A [11:01:14]Write i2c OK [11:01:14]MH_I2C_Read... [11:01:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:01:14]Read from MH i2c: E2 [11:01:14]MH_I2C_Read... [11:01:14]Read from MH i2c: E2 03 00 [11:01:14]MH_I2C_Read... [11:01:14]Read from MH i2c: E2 03 00 BF 02 00 90 00 35 [11:01:14]RAPDU: 90 00 [11:01:14]wFMCommunicate OK [11:01:14]wFMCommunicate request_size=255 [11:01:14]MH_SAM_APDU [11:01:14]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 78 76 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 [11:01:14]Write to MH i2c: E2 02 01 C0 02 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 78 76 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 00 00 00 [11:01:15]Write i2c OK [11:01:15]MH_I2C_Read... [11:01:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:15]Read from MH i2c: E2 [11:01:15]MH_I2C_Read... [11:01:15]Read from MH i2c: E2 03 00 [11:01:15]MH_I2C_Read... [11:01:15]Read from MH i2c: E2 03 00 C0 02 00 90 00 36 [11:01:15]RAPDU: 90 00 [11:01:15]wFMCommunicate OK [11:01:15]wFMCommunicate request_size=32 [11:01:15]MH_SAM_APDU [11:01:15]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 39 35 38 10 04 04 00 8C A3 00 00 35 04 06 00 31 ED 4E F9 9C 8C [11:01:15]Write to MH i2c: E2 23 00 C1 02 80 0D 02 02 1B 00 30 30 30 38 37 34 39 35 38 10 04 04 00 8C A3 00 00 35 04 06 00 31 ED 4E F9 9C 8C 00 00 5F [11:01:15]Write i2c OK [11:01:15]MH_I2C_Read... [11:01:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:15]Read from MH i2c: E2 [11:01:15]MH_I2C_Read... [11:01:15]Read from MH i2c: E2 03 00 [11:01:15]MH_I2C_Read... [11:01:15]Read from MH i2c: E2 03 00 C1 02 00 90 00 37 [11:01:15]RAPDU: 90 00 [11:01:15]wFMCommunicate OK [11:01:15]wFMCommunicate request_size=4 [11:01:15]MH_SAM_APDU [11:01:15]CAPDU: 80 0D 03 02 [11:01:15]Write to MH i2c: E2 08 00 C2 02 80 0D 03 02 00 00 00 00 3F [11:01:15]Write i2c OK [11:01:15]MH_I2C_Read... [11:01:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:01:15]Read from MH i2c: E2 [11:01:15]MH_I2C_Read... [11:01:15]Read from MH i2c: E2 0B 00 [11:01:15]MH_I2C_Read... [11:01:15]Read from MH i2c: E2 0B 00 C2 02 00 D9 9D F8 E2 D5 69 64 95 90 00 C7 [11:01:15]RAPDU: D9 9D F8 E2 D5 69 64 95 90 00 [11:01:15]wFMCommunicate OK [11:01:15]SAM_PROTO_SignData done [11:01:15]FM_MakeSignedData done [11:01:15]CreateOFDProtocolMessage [11:01:15]wFMCommunicate request_size=4 [11:01:15]MH_SAM_APDU [11:01:15]CAPDU: 80 11 00 00 [11:01:15]Write to MH i2c: E2 08 00 C3 02 80 11 00 00 00 00 00 00 3F [11:01:15]Write i2c OK [11:01:15]MH_I2C_Read... [11:01:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:15]Read from MH i2c: E2 [11:01:15]MH_I2C_Read... [11:01:15]Read from MH i2c: E2 17 00 [11:01:15]MH_I2C_Read... [11:01:15]Read from MH i2c: E2 17 00 C3 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 9B [11:01:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [11:01:15]wFMCommunicate OK [11:01:15]CreateOFDProtocolMessage done [11:01:15]OFDSenderStorePacket 41868 [11:01:15]StoreOFDPacket docnum=41868 [11:01:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 25 01 00 00 CD 63 1D 01 F3 29 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 78 76 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 8C A3 00 00 35 04 06 00 31 ED 4E F9 9C 8C D9 9D F8 E2 D5 69 64 95 [11:01:15]CheckFolder [11:01:15]dirname=/storage/ofd_packets [11:01:15]CheckFolder done [11:01:15]ProducePacketName [11:01:15]name=ofd_packets/00041868 [11:01:15]NVStorageSaveData ofd_packets/00041868 [11:01:15]File name is /storage/ofd_packets/00041868 [11:01:15]Write 323 bytes [11:01:15]NVStorageSaveData done [11:01:15]OFDSenderStorePacket done [11:01:15]KKMCreateOFDPacket done [11:01:15]NVStorageSaveData kkm_last_timestamp [11:01:15]File name is /storage/kkm_last_timestamp [11:01:15]Write 4 bytes [11:01:15]NVStorageSaveData done [11:01:15]ExternCall_PrintAddStr [11:01:15]wPrintStart [11:01:15]Write to MH i2c: 01 00 00 C4 02 C6 [11:01:15]Write i2c OK [11:01:15]MH_I2C_Read... [11:01:15]Read from MH i2c: 01 [11:01:15]MH_I2C_Read... [11:01:15]Read from MH i2c: 01 07 00 [11:01:15]MH_I2C_Read... [11:01:15]Read from MH i2c: 01 07 00 C4 02 00 00 00 00 00 FF 0F DB [11:01:15]RasterBufferAndPrint [11:01:15]line Счет N : (3)183896 [11:01:15]line ИНН: 02508201610067 [11:01:15]line Контрольно-Кассовый Чек [11:01:15]line ПРОДАЖА [11:01:15]line Товар: 48743570 [11:01:15]line Сигареты Winston XStyle Blue [11:01:15]line 2.000 * 140.00 [11:01:15]line = 280.00 [11:01:15]line НДС 12% НСП 1% [11:01:15]line > о реализуемом товаре [11:01:15]line ИТОГО: 280.00 [11:01:15]line НСП 1% : 2.48 [11:01:15]line НДС 12% : 29.73 [11:01:15]line Наличными: 280.00 [11:01:15]line Безнал.: 0.00 [11:01:15]line Место: АЗС № 97 "Партнер Нефть" [11:01:15]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [11:01:15]line СНО: Общий режим [11:01:15]line Чек 57 29.07.2024 11:01 [11:01:15]line Смена: 427 ФФД: 1.0 [11:01:15]line ЗНМ: 0300000053 [11:01:15]line РНМ: 0000000000092626 [11:01:15]line Версия ККМ: 001 [11:01:15]line ФМ: 0000000000874958 [11:01:15]line ФД: 41868 [11:01:15]line ФПД: 54895301991564 [11:01:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T110112&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41868&fm=54895301991564&tin=02508201610067®Number=0000000000092626&sum=28000 [11:01:15]line 0 [11:01:15]OFD Sender: Processing packet 41868 [packets to send 57, broken 56] [11:01:15]ProducePacketName [11:01:15]name=ofd_packets/00041868 [11:01:15]OFD Sender: To server: pG, [11:01:15]written 0, free lines is 4095 [11:01:15]CommunicateWithHost lk.salyk.kg:30040 [11:01:15]ConnectInit lk.salyk.kg [11:01:16]Write to MH i2c: 01 00 00 EC 02 EE [11:01:16]Write i2c OK [11:01:16]MH_I2C_Read... [11:01:16]Read from MH i2c: 01 [11:01:16]MH_I2C_Read... [11:01:16]Read from MH i2c: 01 07 00 [11:01:16]MH_I2C_Read... [11:01:16]Read from MH i2c: 01 07 00 EC 02 00 00 00 00 00 1F 0D 21 [11:01:16]RasterBufferAndPrint [11:01:16]line [11:01:16]line [11:01:16]line [11:01:16]line [11:01:16]line [11:01:16]written 0, free lines is 3431 [11:01:16]MH_Cut [11:01:16]Write to MH i2c: D1 01 00 F3 02 01 C7 [11:01:16]Write i2c OK [11:01:16]MH_I2C_Read... [11:01:16]Read from MH i2c: D1 [11:01:16]MH_I2C_Read... [11:01:16]Read from MH i2c: D1 01 00 [11:01:16]MH_I2C_Read... [11:01:16]Read from MH i2c: D1 01 00 F3 02 00 C6 [11:01:16]Write to MH i2c: 01 00 00 F4 02 F6 [11:01:16]Write i2c OK [11:01:16]MH_I2C_Read... [11:01:16]Connected sock=11 [11:01:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 25 01 00 00 CD 63 1D 01 F3 29 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 78 76 A7 66 0E 04 *** Cut start [11:01:17]04 *** Partial cut [11:01:17]00 AB 01 00 00 B9 *** CUTSNS_PIN = 1 [11:01:17]04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 *** CUTSNS_PIN = 0 [11:01:17]34 39 35 38 10 04 04 00 8C A3 00 00 35 04 06 00 31 ED 4E F9 9C 8C D9 9D F8 E2 D5 69 64 95 [11:01:17]*** Brake cut motor [11:01: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 35 38 4F 00 00 00 DE AC 47 00 DF C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 8C A3 00 00 F4 03 04 00 90 22 A7 66 B6 04 01 00 00 *** Stop cut motor [11:01:17]95 *** Cut end [11:01:17]AA E7 FF B9 B9 5F 02 [11:01:17]CommunicateWithHost err = 0 [11:01:17]CheckOFDResponse [11:01:17]1017 (14) - 77093643461234 [11:01:17]1041 (16) - 0000000000874958 [11:01:17]1040 (4) - 41868 [11:01:17]1012 (4) - 29.07.2024 05:03 [11:01:17]1206 (1) - 0 [11:01:17]OFD Sender: Remove packet 41868 [11:01:17]ProducePacketName [11:01:17]name=ofd_packets/00041868 [11:01:17]NVStorageDeleteData [11:01:17]Read from MH i2c: 01 [11:01:17]MH_I2C_Read... [11:01:17]Read from MH i2c: 01 07 00 [11:01:17]MH_I2C_Read... [11:01:17]Read from MH i2c: 01 07 00 F4 02 00 00 00 00 00 FF 0F 0B [11:01:17]process_action close_receipt done [11:01:17]requested_data is exist [11:01:17]produce_requested_data [11:01:17]requested_item fm.sn is exist - process it [11:01:17]wFMCommunicate request_size=4 [11:01:17]MH_SAM_APDU [11:01:17]CAPDU: 80 11 00 00 [11:01:17]Write to MH i2c: E2 08 00 F5 02 80 11 00 00 00 00 00 00 71 [11:01:17]Write i2c OK [11:01:17]MH_I2C_Read... [11:01:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:17]Read from MH i2c: E2 [11:01:17]MH_I2C_Read... [11:01:17]Read from MH i2c: E2 17 00 [11:01:17]MH_I2C_Read... [11:01:17]Read from MH i2c: E2 17 00 F5 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 CD [11:01:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [11:01:18]wFMCommunicate OK [11:01:18]requested_item fd.num is exist - process it [11:01:18]SAM_PROTO_GetFieldsCounters [11:01:18]wFMCommunicate request_size=4 [11:01:18]MH_SAM_APDU [11:01:18]CAPDU: 80 13 00 00 [11:01:18]Write to MH i2c: E2 08 00 F6 02 80 13 00 00 00 00 00 00 74 [11:01:18]Write i2c OK [11:01:18]MH_I2C_Read... [11:01:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:01:18]Read from MH i2c: E2 [11:01:18]MH_I2C_Read... [11:01:18]Read from MH i2c: E2 62 00 [11:01:18]MH_I2C_Read... [11:01:18]Read from MH i2c: E2 62 00 F6 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 8C A3 00 00 0E 04 04 00 AB 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 24 [11:01: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 OFD Sender: No OFD packet to send [11:01:18]30 39 32 36 32 36 10 04 04 00 8C A3 00 00 0E 04 04 00 AB 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 [11:01:18]wFMCommunicate OK [11:01:18]SAM_PROTO_GetFieldsCounters done [11:01:18]requested_item shift.num is exist - process it [11:01:18]requested_item shift.opened is exist - process it [11:01:18]req_shift_opened [11:01:18]FM_GetShiftState [11:01:18]SAM_PROTO_GetShiftState [11:01:18]wFMCommunicate request_size=4 [11:01:18]MH_SAM_APDU [11:01:18]CAPDU: 80 13 01 00 [11:01:18]Write to MH i2c: E2 08 00 F7 02 80 13 01 00 00 00 00 00 76 [11:01:18]Write i2c OK [11:01:18]MH_I2C_Read... [11:01:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:18]Read from MH i2c: E2 [11:01:18]MH_I2C_Read... [11:01:18]Read from MH i2c: E2 0E 00 [11:01:18]MH_I2C_Read... [11:01:18]Read from MH i2c: E2 0E 00 F7 02 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 12 [11:01:18]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [11:01:18]wFMCommunicate OK [11:01:18]SAM_PROTO_GetShiftState done [11:01:18]FM_GetShiftState done [11:01:18]req_shift_opened done [11:01:18]requested_item shift.open_date is exist - process it [11:01:18]req_shift_open_date [11:01:18]req_shift_open_date done [11:01:18]produce_requested_data done [11:01:18]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41868,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [11:01:18]process_action_free close_receipt [11:01:18]json_value_free [11:01:18]json_value_free done [11:01:18]process_json_proto returns [11:01:18]Send response to host [11:01:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41868,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [11:01:18]free response buf [11:01:18]execute_script done [11:01:18]execute_script returns [11:01:18]free content buf [11:01:18]Sock 9.Close socket [11:01:18]Sock 9.Thread stoped [11:01:19]accept exits with 8 [11:01:19]New connection [11:01:19]New thread 3066903908 created [11:01:19]Thread 3066760548 joined [11:01:19]Waiting for new connection... [11:01:19] Sock 8.Parse request [11:01:19]Sock 8.Check first char [11:01:19]Sock 8.First char is OK [11:01:19]request: POST /json_proto HTTP/1.0 [11:01:19]Method: POST [11:01:19]URL: /json_proto [11:01:19]Method is POST - this is cgi request [11:01:19]url: /json_proto [11:01:19]query_string will be loaded in cgi processing [11:01:19]execute_cgi json_proto POST (null) [11:01:19]execute_cgi path=json_proto method=POST [11:01:19]POST find Content-Length [11:01:19]Host: 172.17.43.132:8080 [11:01:19]Content-Length: 912 [11:01:19]Content-Type: application/json [11:01:19] [11:01:19]POST finish read [11:01:19]Found Content-Length = 912 [11:01:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183897", "tax_sys" : 0, "items" : [ { "code": "2000036200014", "name": "\u041A\u043E\u0444\u0435 \u042D\u0441\u043F\u0440\u0435\u0441\u0441\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:01:19]execute_script... [11:01: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 : (3)183897", "tax_sys" : 0, "items" : [ { "code": "2000036200014", "name": "\u041A\u043E\u0444\u0435 \u042D\u0441\u043F\u0440\u0435\u0441\u0441\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:01:19]POST & json_proto [11:01:19]process_json_proto [11:01:19]json parsed OK: [11:01:19]protocol is kg_v1.0 [11:01:19]action value=close_receipt [11:01:19]process_action close_receipt [11:01:19]cmd_close_receipt [11:01:19]MH_GetDate [11:01:19]Write to MH i2c: F0 00 00 F8 02 E9 [11:01:19]Write i2c OK [11:01:19]MH_I2C_Read... [11:01:19]Read from MH i2c: F0 [11:01:19]MH_I2C_Read... [11:01:19]Read from MH i2c: F0 09 00 [11:01:19]MH_I2C_Read... [11:01:19]Read from MH i2c: F0 09 00 F8 02 00 80 76 A7 66 F8 53 A7 66 4D [11:01:19]GetLastDocTimeStamp 1722250872 [11:01:19]current date 1722250880 [11:01:19]FM_GetShiftState [11:01:19]SAM_PROTO_GetShiftState [11:01:19]wFMCommunicate request_size=4 [11:01:19]MH_SAM_APDU [11:01:19]CAPDU: 80 13 01 00 [11:01:19]Write to MH i2c: E2 08 00 F9 02 80 13 01 00 00 00 00 00 78 [11:01:19]Write i2c OK [11:01:19]MH_I2C_Read... [11:01:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:20]Read from MH i2c: E2 [11:01:20]MH_I2C_Read... [11:01:20]Read from MH i2c: E2 0E 00 [11:01:20]MH_I2C_Read... [11:01:20]Read from MH i2c: E2 0E 00 F9 02 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 14 [11:01:20]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [11:01:20]wFMCommunicate OK [11:01:20]SAM_PROTO_GetShiftState done [11:01:20]FM_GetShiftState done [11:01:20]opened in 1722211496 [11:01:20]opened+sec_in_day 1722297896 [11:01:20]quantity*price = 10500 [11:01:20]sum+1 = 10501 [11:01:20]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036190018 Кофе Американо XL(GABB TRADE) 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 230.00 НСП 1% : 2.04 НДС 12% : 24.42 Наличными: 230.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 58 29.07.2024 11:01 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41869 ФПД: 5537410797967 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T110121&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41869&fm=5537410797967&tin=02508201610067®Number=0000000000092626&sum=23000 0 [11:01:22]StoreToDocumentArchive [11:01:22]shift 427 fd 41869 [11:01:22]save to /storage/0427/doc_00041869 [11:01:22]save last doc name /storage/0427/doc_00041869 to /storage/kkm_last_doc_name [11:01:22]save OK [11:01:22]Clear old archive folders... [11:01:22]ProcessDocumentItem done err = 0, tmpTLVsize=394 [11:01:22]tlvbuf is 00884910 [11:01:22]SAM_PROTO_ClearQueue [11:01:22]wFMCommunicate request_size=4 [11:01:22]MH_SAM_APDU [11:01:22]CAPDU: 80 09 00 00 [11:01:22]Write to MH i2c: E2 08 00 06 03 80 09 00 00 00 00 00 00 7B [11:01:22]Write i2c OK [11:01:22]MH_I2C_Read... [11:01:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:01:22]Read from MH i2c: E2 [11:01:22]MH_I2C_Read... [11:01:22]Read from MH i2c: E2 03 00 [11:01:22]MH_I2C_Read... [11:01:22]Read from MH i2c: E2 03 00 06 03 00 90 00 7D [11:01:22]RAPDU: 90 00 [11:01:22]wFMCommunicate OK [11:01:22]SAM_PROTO_ClearQueue done [11:01:22]KKMCreateOFDPacket [11:01:22]OFDProtocolAddRootSTLVToBuf [11:01:22]FM_MakeSignedData [11:01:22]FM_MakeSignedData [11:01:22]SAM_PROTO_SignData [11:01:22]wFMCommunicate request_size=4 [11:01:22]MH_SAM_APDU [11:01:22]CAPDU: 80 0D 01 02 [11:01:22]Write to MH i2c: E2 08 00 07 03 80 0D 01 02 00 00 00 00 83 [11:01:22]Write i2c OK [11:01:22]MH_I2C_Read... [11:01:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:01:22]Read from MH i2c: E2 [11:01:22]MH_I2C_Read... [11:01:22]Read from MH i2c: E2 03 00 [11:01:22]MH_I2C_Read... [11:01:22]Read from MH i2c: E2 03 00 07 03 00 90 00 7E [11:01:22]RAPDU: 90 00 [11:01:22]wFMCommunicate OK [11:01:22]wFMCommunicate request_size=255 [11:01:22]MH_SAM_APDU [11:01:22]CAPDU: 80 0D 02 02 FA 03 00 8A 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 30 30 30 31 34 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 AD D1 81 D0 BF D1 80 D0 B5 D1 81 D1 81 D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F [11:01:23]Write to MH i2c: E2 02 01 08 03 80 0D 02 02 FA 00 03 00 8A 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 30 30 30 31 34 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 AD D1 81 D0 BF D1 80 D0 B5 D1 81 D1 81 D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 OFD Sender: No OFD packet to send [11:01:23]37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 00 34 [11:01:23]Write i2c OK [11:01:23]MH_I2C_Read... [11:01:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:23]Read from MH i2c: E2 [11:01:23]MH_I2C_Read... [11:01:23]Read from MH i2c: E2 03 00 [11:01:23]MH_I2C_Read... [11:01:23]Read from MH i2c: E2 03 00 08 03 00 90 00 7F [11:01:23]RAPDU: 90 00 [11:01:23]wFMCommunicate OK [11:01:23]wFMCommunicate request_size=153 [11:01:23]MH_SAM_APDU [11:01:23]CAPDU: 80 0D 02 02 94 00 F6 03 01 00 01 F7 03 06 00 CC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 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 81 76 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 8D A3 00 00 35 04 06 00 05 09 47 67 51 8F [11:01:24]Write to MH i2c: E2 9C 00 09 03 80 0D 02 02 94 00 00 F6 03 01 00 01 F7 03 06 00 CC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 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 81 76 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 8D A3 00 00 35 04 06 00 05 09 47 67 51 8F 00 00 25 [11:01:24]Write i2c OK [11:01:24]MH_I2C_Read... [11:01:24]Read from MH i2c: E2 [11:01:24]MH_I2C_Read... [11:01:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:24]Read from MH i2c: E2 03 00 [11:01:24]MH_I2C_Read... [11:01:24]Read from MH i2c: E2 03 00 09 03 00 90 00 80 [11:01:24]RAPDU: 90 00 [11:01:24]wFMCommunicate OK [11:01:24]wFMCommunicate request_size=4 [11:01:24]MH_SAM_APDU [11:01:24]CAPDU: 80 0D 03 02 [11:01:24]Write to MH i2c: E2 08 00 0A 03 80 0D 03 02 00 00 00 00 88 [11:01:24]Write i2c OK [11:01:24]MH_I2C_Read... [11:01:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:01:24]Read from MH i2c: E2 [11:01:24]MH_I2C_Read... [11:01:24]Read from MH i2c: E2 0B 00 [11:01:24]MH_I2C_Read... [11:01:24]Read from MH i2c: E2 0B 00 0A 03 00 54 33 26 B6 EB D9 55 85 90 00 8A [11:01:24]RAPDU: 54 33 26 B6 EB D9 55 85 90 00 [11:01:24]wFMCommunicate OK [11:01:24]SAM_PROTO_SignData done [11:01:24]FM_MakeSignedData done [11:01:24]CreateOFDProtocolMessage [11:01:24]wFMCommunicate request_size=4 [11:01:24]MH_SAM_APDU [11:01:24]CAPDU: 80 11 00 00 [11:01:24]Write to MH i2c: E2 08 00 0B 03 80 11 00 00 00 00 00 00 88 [11:01:24]Write i2c OK [11:01:24]MH_I2C_Read... [11:01:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:24]Read from MH i2c: E2 [11:01:24]MH_I2C_Read... [11:01:24]Read from MH i2c: E2 17 00 [11:01:24]MH_I2C_Read... [11:01:24]Read from MH i2c: E2 17 00 0B 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 E4 [11:01:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [11:01:24]wFMCommunicate OK [11:01:24]CreateOFDProtocolMessage done [11:01:24]OFDSenderStorePacket 41869 [11:01:24]StoreOFDPacket docnum=41869 [11:01:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 9E 01 00 00 A5 31 96 01 5F 1A 5A 03 01 00 03 00 8A 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 30 30 30 31 34 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 AD D1 81 D0 BF D1 80 D0 B5 D1 81 D1 81 D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 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 81 76 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 8D A3 00 00 35 04 06 00 05 09 47 67 51 8F 54 33 26 B6 EB D9 55 85 [11:01:24]CheckFolder [11:01:24]dirname=/storage/ofd_packets [11:01:24]CheckFolder done [11:01:24]ProducePacketName [11:01:24]name=ofd_packets/00041869 [11:01:24]NVStorageSaveData ofd_packets/00041869 [11:01:24]File name is /storage/ofd_packets/00041869 [11:01:24]Write 444 bytes [11:01:24]NVStorageSaveData done [11:01:24]OFDSenderStorePacket done [11:01:24]KKMCreateOFDPacket done [11:01:24]NVStorageSaveData kkm_last_timestamp [11:01:24]File name is /storage/kkm_last_timestamp [11:01:24]Write 4 bytes [11:01:24]NVStorageSaveData done [11:01:24]ExternCall_PrintAddStr [11:01:24]wPrintStart [11:01:24]Write to MH i2c: 01 00 00 0C 03 0F [11:01:24]Write i2c OK [11:01:24]MH_I2C_Read... [11:01:24]Read from MH i2c: 01 [11:01:24]MH_I2C_Read... [11:01:24]Read from MH i2c: 01 07 00 [11:01:24]MH_I2C_Read... [11:01:24]Read from MH i2c: 01 07 00 0C 03 00 00 00 00 00 FF 0F 24 [11:01:24]RasterBufferAndPrint [11:01:24]line Счет N : (3)183897 [11:01:24]line ИНН: 02508201610067 [11:01:24]line Контрольно-Кассовый Чек [11:01:24]line ПРОДАЖА [11:01:24]line Товар: 2000036200014 [11:01:24]line Кофе Эспрессо (GABB TRADE) [11:01:24]line 1.000 * 105.00 [11:01:24]line = 105.00 [11:01:24]line НДС 12% НСП 1% [11:01:24]line > о реализуемом товаре [11:01:24]line Товар: 2000036190018 [11:01:24]line Кофе Американо XL(GABB TRADE) [11:01:24]line 1.000 * 125.00 [11:01:24]line = 125.00 [11:01:25]line НДС 12% НСП 1% [11:01:25]line > о реализуемом товаре [11:01:25]line ИТОГО: 230.00 [11:01:25]line НСП 1% : 2.04 [11:01:25]line НДС 12% : 24.42 [11:01:25]line Наличными: 230.00 [11:01:25]line Безнал.: 0.00 [11:01:25]line Место: АЗС № 97 "Партнер Нефть" [11:01:25]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [11:01:25]line СНО: Общий режим [11:01:25]line Чек 58 29.07.2024 11:01 [11:01:25]line Смена: 427 ФФД: 1.0 [11:01:25]line ЗНМ: 0300000053 [11:01:25]line РНМ: 0000000000092626 [11:01:25]line Версия ККМ: 001 [11:01:25]line ФМ: 0000000000874958 [11:01:25]line ФД: 41869 [11:01:25]line ФПД: 5537410797967 [11:01:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T110121&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41869&fm=5537410797967&tin=02508201610067®Number=0000000000092626&sum=23000 [11:01:25]line 0 [11:01:25]OFD Sender: Processing packet 41869 [packets to send 57, broken 56] [11:01:25]ProducePacketName [11:01:25]name=ofd_packets/00041869 [11:01:25]OFD Sender: To server: pG, [11:01:25]CommunicateWithHost lk.salyk.kg:30040 [11:01:25]ConnectInit lk.salyk.kg [11:01:25]written 0, free lines is 4095 [11:01:25]Write to MH i2c: 01 00 00 3B 03 3E [11:01:25]Write i2c OK [11:01:25]MH_I2C_Read... [11:01:25]Read from MH i2c: 01 [11:01:25]MH_I2C_Read... [11:01:25]Read from MH i2c: 01 07 00 [11:01:25]MH_I2C_Read... [11:01:25]Read from MH i2c: 01 07 00 3B 03 00 00 00 00 00 DC 0C 2D [11:01:25]RasterBufferAndPrint [11:01:25]line [11:01:25]line [11:01:25]line [11:01:25]line [11:01:25]line [11:01:25]written 0, free lines is 3371 [11:01:25]MH_Cut [11:01:25]Write to MH i2c: D1 01 00 42 03 01 17 [11:01:25]Write i2c OK [11:01:25]MH_I2C_Read... [11:01:25]Read from MH i2c: D1 [11:01:25]MH_I2C_Read... [11:01:25]Read from MH i2c: D1 01 00 [11:01:25]MH_I2C_Read... [11:01:25]Read from MH i2c: D1 01 00 42 03 00 16 [11:01:25]Write to MH i2c: 01 00 00 43 03 46 [11:01:25]Write i2c OK [11:01:25]MH_I2C_Read... [11:01:25]Connected sock=10 [11:01: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 35 38 9E 01 00 00 A5 31 96 01 5F 1A 5A 03 01 00 03 00 8A 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 30 30 30 31 34 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 AD D1 81 D0 BF D1 80 D0 B5 D1 81 D1 81 D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 *** Cut start [11:01:26]30 *** Partial cut [11:01:26]30 33 36 31 *** CUTSNS_PIN = 1 [11:01:26]39 *** CUTSNS_PIN = 0 [11:01:26]30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 *** Brake cut motor [11:01:26]58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 00 00 00 00 00 EE 03 0F 00 F2 *** Stop cut motor [11:01:27]03 *** Cut end [11:01:27]01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 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 81 76 A7 66 0E 04 04 Read from MH i2c: 00 01 AB [11:01:27]01 MH_I2C_Read... [11:01:27]00 Read from MH i2c: 00 01 B9 07 04 00 [11:01:27]MH_I2C_Read... [11:01:27]Read from MH i2c: 01 07 00 43 01 03 00 01 00 0D 00 04 00 10 00 00 00 30 FF 30 0F 30 5B 30 [11:01:27]30 process_action close_receipt done [11:01:27]requested_data is exist [11:01:27]produce_requested_data [11:01:27]requested_item fm.sn is exist - process it [11:01:27]wFMCommunicate request_size=4 [11:01:27]MH_SAM_APDU [11:01:27]CAPDU: 80 11 00 00 [11:01:27]Write to MH i2c: E2 08 00 44 03 80 11 00 00 00 00 00 00 C1 [11:01:27]30 30 30 30 30 30 39 32 36 32 36 11 04 *** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:27]10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 8D A3 00 00 35 04 06 00 05 09 47 67 51 8F 54 33 26 B6 EB D9 55 85 Write i2c OK [11:01:27] [11:01:27]MH_I2C_Read... [11:01:27]Read from MH i2c: E2 [11:01:27]MH_I2C_Read... [11:01:27]Read from MH i2c: E2 17 00 [11:01:27]MH_I2C_Read... [11:01:27]Read from MH i2c: E2 17 00 44 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 1D [11:01:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [11:01:27]wFMCommunicate OK [11:01:27]requested_item fd.num is exist - process it [11:01:27]SAM_PROTO_GetFieldsCounters [11:01:27]wFMCommunicate request_size=4 [11:01:27]MH_SAM_APDU [11:01:27]CAPDU: 80 13 00 00 [11:01:27]Write to MH i2c: E2 08 00 45 03 80 13 00 00 00 00 00 00 C4 [11:01:27]Write i2c OK [11:01:27]MH_I2C_Read... [11:01:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:01:27]Read from MH i2c: E2 [11:01:27]MH_I2C_Read... [11:01:27]Read from MH i2c: E2 62 00 [11:01:27]MH_I2C_Read... [11:01:27]Read from MH i2c: E2 62 00 45 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 8D A3 00 00 0E 04 04 00 AB 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 78 [11:01:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 8D A3 00 00 0E 04 04 00 AB 01 00 00 12 04 Received data: 04 87 00 95 3A F6 00 00 00 5E 04 04 00 3A 70 00 47 00 2C 00 01 57 04 04 00 3B 00 00 00 00 19 30 04 30 04 30 00 00 00 00 00 90 00 [11:01:28]30 wFMCommunicate OK [11:01:28]30 SAM_PROTO_GetFieldsCounters done [11:01:28]30 requested_item shift.num is exist - process it [11:01:28]30 requested_item shift.opened is exist - process it [11:01:28]req_shift_opened [11:01:28]FM_GetShiftState [11:01:28]SAM_PROTO_GetShiftState [11:01:28]wFMCommunicate request_size=4 [11:01:28]MH_SAM_APDU [11:01:28]CAPDU: 30 80 30 13 30 01 38 00 [11:01:28]Write to MH i2c: E2 08 00 46 03 37 80 34 13 39 01 35 00 00 00 00 00 C6 [11:01:28]38 4F 00 00 00 48 30 47 00 10 07 A5 07 01 00 07 00 *** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:28]3B Write i2c OK [11:01:28]00 MH_I2C_Read... [11:01:28]F9 03 0E 00 37 37 30 39 33 Read from MH i2c: 36 E2 34 [11:01:28]33 MH_I2C_Read... [11:01:28]34 36 31 32 33 34 11 04 Read from MH i2c: 10 E2 00 0E 30 00 30 [11:01:28]30 MH_I2C_Read... [11:01:28]30 30 30 30 30 30 30 38 37 34 39 Read from MH i2c: 35 E2 38 0E 10 00 04 46 03 04 00 00 09 8D A3 00 00 F4 03 04 00 9A 00 22 01 A7 A8 66 DC B6 A6 04 66 01 00 00 00 00 00 AE 00 3A 90 9C B0 28 5D 3F 21 [11:01:28]CommunicateWithHost err = 0 [11:01:28]00 CheckOFDResponse [11:01:28]62 1017 (14) - 77093643461234 [11:01:28] [11:01:28]1041 (16) - 0000000000874958 [11:01:28]RAPDU: 1040 (4) - 41869 [11:01:28]09 1012 (4) - 29.07.2024 05:03 [11:01:28]00 1206 (1) - 0 [11:01:28]01 OFD Sender: Remove packet 41869 [11:01:28]A8 ProducePacketName [11:01:28]DC name=ofd_packets/00041869 [11:01:28]A6 NVStorageDeleteData [11:01:28]66 00 00 00 00 90 00 [11:01:28]wFMCommunicate OK [11:01:28]SAM_PROTO_GetShiftState done [11:01:28]FM_GetShiftState done [11:01:28]req_shift_opened done [11:01:28]requested_item shift.open_date is exist - process it [11:01:28]req_shift_open_date [11:01:28]req_shift_open_date done [11:01:28]produce_requested_data done [11:01:28]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41869,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [11:01:28]process_action_free close_receipt [11:01:28]json_value_free [11:01:28]json_value_free done [11:01:28]process_json_proto returns [11:01:28]Send response to host [11:01:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41869,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [11:01:28]free response buf [11:01:28]execute_script done [11:01:28]execute_script returns [11:01:28]free content buf [11:01:28]Sock 8.Close socket [11:01:28]Sock 8.Thread stoped [11:01:28]OFD Sender: No OFD packet to send [11:01:33]OFD Sender: No OFD packet to send [11:01:39]OFD Sender: No OFD packet to send [11:01:42]recv_with_timeout no data received [11:01:44]OFD Sender: No OFD packet to send [11:01:49]OFD Sender: No OFD packet to send [11:01:52]recv_with_timeout no data received [11:01:54]OFD Sender: No OFD packet to send [11:01:59]OFD Sender: No OFD packet to send [11:02:03]recv_with_timeout no data received [11:02:04]OFD Sender: No OFD packet to send [11:02:09]OFD Sender: No OFD packet to send [11:02:13]recv_with_timeout no data received [11:02:14]OFD Sender: No OFD packet to send [11:02:19]OFD Sender: No OFD packet to send [11:02:24]OFD Sender: No OFD packet to send [11:02:24]recv_with_timeout no data received [11:02:29]OFD Sender: No OFD packet to send [11:02:34]OFD Sender: No OFD packet to send [11:02:39]OFD Sender: No OFD packet to send [11:02:44]OFD Sender: No OFD packet to send [11:02:49]OFD Sender: No OFD packet to send [11:02:54]OFD Sender: No OFD packet to send [11:02:59]OFD Sender: No OFD packet to send [11:03:02]recv_with_timeout no data received [11:03:04]OFD Sender: No OFD packet to send [11:03:09]OFD Sender: No OFD packet to send [11:03:14]OFD Sender: No OFD packet to send [11:03:14]recv_with_timeout no data received [11:03:19]OFD Sender: No OFD packet to send [11:03:24]OFD Sender: No OFD packet to send [11:03:24]recv_with_timeout no data received [11:03:29]OFD Sender: No OFD packet to send [11:03:34]OFD Sender: No OFD packet to send [11:03:35]recv_with_timeout no data received [11:03:39]OFD Sender: No OFD packet to send [11:03:44]OFD Sender: No OFD packet to send [11:03:49]OFD Sender: No OFD packet to send [11:03:54]OFD Sender: No OFD packet to send [11:03:59]OFD Sender: No OFD packet to send [11:04:04]OFD Sender: No OFD packet to send [11:04:09]OFD Sender: No OFD packet to send [11:04:14]OFD Sender: No OFD packet to send [11:04:19]OFD Sender: No OFD packet to send [11:04:24]OFD Sender: No OFD packet to send [11:04:29]OFD Sender: No OFD packet to send [11:04:34]OFD Sender: No OFD packet to send [11:04:34]accept exits with 9 [11:04:34]New connection [11:04:34]New thread 3066760548 created [11:04:34]Thread 3066903908 joined [11:04:34]Waiting for new connection... [11:04:34] Sock 9.Parse request [11:04:34]Sock 9.Check first char [11:04:34]Sock 9.First char is OK [11:04:34]request: POST /json_proto HTTP/1.0 [11:04:34]Method: POST [11:04:34]URL: /json_proto [11:04:34]Method is POST - this is cgi request [11:04:34]url: /json_proto [11:04:34]query_string will be loaded in cgi processing [11:04:34]execute_cgi json_proto POST (null) [11:04:34]execute_cgi path=json_proto method=POST [11:04:34]POST find Content-Length [11:04:34]Host: 172.17.43.132:8080 [11:04:34]Content-Length: 955 [11:04:34]Content-Type: application/json [11:04:34] [11:04:34]POST finish read [11:04:34]Found Content-Length = 955 [11:04:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183898", "tax_sys" : 0, "items" : [ { "code": "4630007400655", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 70\u0433 \u0441\u0438\u043D\u0438\u0439", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:04:34]execute_script... [11:04:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183898", "tax_sys" : 0, "items" : [ { "code": "4630007400655", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 70\u0433 \u0441\u0438\u043D\u0438\u0439", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:04:34]POST & json_proto [11:04:34]process_json_proto [11:04:34]json parsed OK: [11:04:34]protocol is kg_v1.0 [11:04:34]action value=close_receipt [11:04:34]process_action close_receipt [11:04:34]cmd_close_receipt [11:04:34]MH_GetDate [11:04:34]Write to MH i2c: F0 00 00 47 03 39 [11:04:34]Write i2c OK [11:04:34]MH_I2C_Read... [11:04:34]Read from MH i2c: F0 [11:04:34]MH_I2C_Read... [11:04:34]Read from MH i2c: F0 09 00 [11:04:34]MH_I2C_Read... [11:04:34]Read from MH i2c: F0 09 00 47 03 00 43 77 A7 66 F8 53 A7 66 61 [11:04:34]GetLastDocTimeStamp 1722250881 [11:04:34]current date 1722251075 [11:04:34]FM_GetShiftState [11:04:34]SAM_PROTO_GetShiftState [11:04:34]wFMCommunicate request_size=4 [11:04:34]MH_SAM_APDU [11:04:34]CAPDU: 80 13 01 00 [11:04:34]Write to MH i2c: E2 08 00 48 03 80 13 01 00 00 00 00 00 C8 [11:04:34]Write i2c OK [11:04:34]MH_I2C_Read... [11:04:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:04:35]Read from MH i2c: E2 [11:04:35]MH_I2C_Read... [11:04:35]Read from MH i2c: E2 0E 00 [11:04:35]MH_I2C_Read... [11:04:35]Read from MH i2c: E2 0E 00 48 03 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 64 [11:04:35]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [11:04:35]wFMCommunicate OK [11:04:35]SAM_PROTO_GetShiftState done [11:04:35]FM_GetShiftState done [11:04:35]opened in 1722211496 [11:04:35]opened+sec_in_day 1722297896 [11:04:35]quantity*price = 7000 [11:04:35]sum+1 = 7001 [11:04:35]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700040114137 Султан чай 1л. зел лимон 1.000 * 65.00 = 65.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 135.00 НСП 1% : 1.19 НДС 12% : 14.33 Наличными: 135.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 59 29.07.2024 11:04 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41870 ФПД: 63062148789205 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T110436&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41870&fm=63062148789205&tin=02508201610067®Number=0000000000092626&sum=13500 0 [11:04:36]StoreToDocumentArchive [11:04:36]shift 427 fd 41870 [11:04:36]save to /storage/0427/doc_00041870 [11:04:36]save last doc name /storage/0427/doc_00041870 to /storage/kkm_last_doc_name [11:04:36]save OK [11:04:36]Clear old archive folders... [11:04:36]ProcessDocumentItem done err = 0, tmpTLVsize=397 [11:04:36]tlvbuf is 0083F120 [11:04:36]SAM_PROTO_ClearQueue [11:04:36]wFMCommunicate request_size=4 [11:04:36]MH_SAM_APDU [11:04:36]CAPDU: 80 09 00 00 [11:04:36]Write to MH i2c: E2 08 00 55 03 80 09 00 00 00 00 00 00 CA [11:04:36]Write i2c OK [11:04:36]MH_I2C_Read... [11:04:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:04:36]Read from MH i2c: E2 [11:04:36]MH_I2C_Read... [11:04:36]Read from MH i2c: E2 03 00 [11:04:36]MH_I2C_Read... [11:04:36]Read from MH i2c: E2 03 00 55 03 00 90 00 CC [11:04:36]RAPDU: 90 00 [11:04:36]wFMCommunicate OK [11:04:36]SAM_PROTO_ClearQueue done [11:04:36]KKMCreateOFDPacket [11:04:36]OFDProtocolAddRootSTLVToBuf [11:04:36]FM_MakeSignedData [11:04:36]FM_MakeSignedData [11:04:36]SAM_PROTO_SignData [11:04:36]wFMCommunicate request_size=4 [11:04:36]MH_SAM_APDU [11:04:36]CAPDU: 80 0D 01 02 [11:04:36]Write to MH i2c: E2 08 00 56 03 80 0D 01 02 00 00 00 00 D2 [11:04:36]Write i2c OK [11:04:36]MH_I2C_Read... [11:04:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:04:36]Read from MH i2c: E2 [11:04:36]MH_I2C_Read... [11:04:36]Read from MH i2c: E2 03 00 [11:04:36]MH_I2C_Read... [11:04:36]Read from MH i2c: E2 03 00 56 03 00 90 00 CD [11:04:36]RAPDU: 90 00 [11:04:36]wFMCommunicate OK [11:04:36]wFMCommunicate request_size=255 [11:04:36]MH_SAM_APDU [11:04:36]CAPDU: 80 0D 02 02 FA 03 00 8D 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 36 35 35 06 04 29 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 20 D1 81 D0 B8 D0 BD D0 B8 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 [11:04:36]Write to MH i2c: E2 02 01 57 03 80 0D 02 02 FA 00 03 00 8D 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 36 35 35 06 04 29 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 20 D1 81 D0 B8 D0 BD D0 B8 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 00 00 74 [11:04:36]Write i2c OK [11:04:36]MH_I2C_Read... [11:04:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:04:37]Read from MH i2c: E2 [11:04:37]MH_I2C_Read... [11:04:37]Read from MH i2c: E2 03 00 [11:04:37]MH_I2C_Read... [11:04:37]Read from MH i2c: E2 03 00 57 03 00 90 00 CE [11:04:37]RAPDU: 90 00 [11:04:37]wFMCommunicate OK [11:04:37]wFMCommunicate request_size=156 [11:04:37]MH_SAM_APDU [11:04:37]CAPDU: 80 0D 02 02 97 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 44 77 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 8E A3 00 00 35 04 06 00 39 5A CC FA 33 D5 [11:04:37]Write to MH i2c: E2 9F 00 58 03 80 0D 02 02 97 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 44 77 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 8E A3 00 00 35 04 06 00 39 5A CC FA 33 D5 00 00 7B [11:04:37]Write i2c OK [11:04:37]MH_I2C_Read... [11:04:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:04:37]Read from MH i2c: E2 [11:04:37]MH_I2C_Read... [11:04:37]Read from MH i2c: E2 03 00 [11:04:37]MH_I2C_Read... [11:04:37]Read from MH i2c: E2 03 00 58 03 00 90 00 CF [11:04:37]RAPDU: 90 00 [11:04:37]wFMCommunicate OK [11:04:37]wFMCommunicate request_size=4 [11:04:37]MH_SAM_APDU [11:04:37]CAPDU: 80 0D 03 02 [11:04:37]Write to MH i2c: E2 08 00 59 03 80 0D 03 02 00 00 00 00 D7 [11:04:37]Write i2c OK [11:04:37]MH_I2C_Read... [11:04:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:04:37]Read from MH i2c: E2 [11:04:37]MH_I2C_Read... [11:04:37]Read from MH i2c: E2 0B 00 [11:04:37]MH_I2C_Read... [11:04:37]Read from MH i2c: E2 0B 00 59 03 00 BC 36 B2 20 ED 4E 96 38 90 00 A5 [11:04:37]RAPDU: BC 36 B2 20 ED 4E 96 38 90 00 [11:04:37]wFMCommunicate OK [11:04:37]SAM_PROTO_SignData done [11:04:37]FM_MakeSignedData done [11:04:37]CreateOFDProtocolMessage [11:04:37]wFMCommunicate request_size=4 [11:04:37]MH_SAM_APDU [11:04:37]CAPDU: 80 11 00 00 [11:04:37]Write to MH i2c: E2 08 00 5A 03 80 11 00 00 00 00 00 00 D7 [11:04:37]Write i2c OK [11:04:37]MH_I2C_Read... [11:04:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:04:37]Read from MH i2c: E2 [11:04:37]MH_I2C_Read... [11:04:37]Read from MH i2c: E2 17 00 [11:04:37]MH_I2C_Read... [11:04:37]Read from MH i2c: E2 17 00 5A 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 33 [11:04:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [11:04:37]wFMCommunicate OK [11:04:37]CreateOFDProtocolMessage done [11:04:37]OFDSenderStorePacket 41870 [11:04:37]StoreOFDPacket docnum=41870 [11:04:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 A1 01 00 00 02 9F 99 01 C8 67 5A 03 01 00 03 00 8D 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 36 35 35 06 04 29 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 20 D1 81 D0 B8 D0 BD D0 B8 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 44 77 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 8E A3 00 00 35 04 06 00 39 5A CC FA 33 D5 BC 36 B2 20 ED 4E 96 38 [11:04:37]CheckFolder [11:04:37]dirname=/storage/ofd_packets [11:04:37]CheckFolder done [11:04:37]ProducePacketName [11:04:37]name=ofd_packets/00041870 [11:04:37]NVStorageSaveData ofd_packets/00041870 [11:04:37]File name is /storage/ofd_packets/00041870 [11:04:37]Write 447 bytes [11:04:37]NVStorageSaveData done [11:04:37]OFDSenderStorePacket done [11:04:37]KKMCreateOFDPacket done [11:04:37]NVStorageSaveData kkm_last_timestamp [11:04:37]File name is /storage/kkm_last_timestamp [11:04:37]Write 4 bytes [11:04:37]NVStorageSaveData done [11:04:37]ExternCall_PrintAddStr [11:04:37]wPrintStart [11:04:37]Write to MH i2c: 01 00 00 5B 03 5E [11:04:37]OFD Sender: Processing packet 41870 [packets to send 57, broken 56] [11:04:37]ProducePacketName [11:04:37]name=ofd_packets/00041870 [11:04:37]OFD Sender: To server: pG, [11:04:37]CommunicateWithHost lk.salyk.kg:30040 [11:04:37]ConnectInit lk.salyk.kg [11:04:37]Write i2c OK [11:04:37]MH_I2C_Read... [11:04:37]Read from MH i2c: 01 [11:04:37]MH_I2C_Read... [11:04:37]Read from MH i2c: 01 07 00 [11:04:37]MH_I2C_Read... [11:04:37]Read from MH i2c: 01 07 00 5B 03 00 00 00 00 00 FF 0F 73 [11:04:37]RasterBufferAndPrint [11:04:37]line Счет N : (3)183898 [11:04:37]line ИНН: 02508201610067 [11:04:37]line Контрольно-Кассовый Чек [11:04:37]line ПРОДАЖА [11:04:37]line Товар: 4630007400655 [11:04:37]line Семечки ДЖИНН 70г синий [11:04:37]line 1.000 * 70.00 [11:04:37]line = 70.00 [11:04:37]line НДС 12% НСП 1% [11:04:37]line > о реализуемом товаре [11:04:37]line Товар: 4700040114137 [11:04:37]line Султан чай 1л. зел лимон [11:04:37]line 1.000 * 65.00 [11:04:37]line = 65.00 [11:04:37]line НДС 12% НСП 1% [11:04:37]line > о реализуемом товаре [11:04:37]line ИТОГО: 135.00 [11:04:37]line НСП 1% : 1.19 [11:04:37]line НДС 12% : 14.33 [11:04:37]line Наличными: 135.00 [11:04:37]line Безнал.: 0.00 [11:04:37]line Место: АЗС № 97 "Партнер Нефть" [11:04:37]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [11:04:37]line СНО: Общий режим [11:04:37]line Чек 59 29.07.2024 11:04 [11:04:37]line Смена: 427 ФФД: 1.0 [11:04:37]line ЗНМ: 0300000053 [11:04:37]line РНМ: 0000000000092626 [11:04:37]line Версия ККМ: 001 [11:04:37]line ФМ: 0000000000874958 [11:04:37]line ФД: 41870 [11:04:37]line ФПД: 63062148789205 [11:04:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T110436&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41870&fm=63062148789205&tin=02508201610067®Number=0000000000092626&sum=13500 [11:04:37]line 0 [11:04:37]written 0, free lines is 4095 [11:04:38]Write to MH i2c: 01 00 00 89 03 8C [11:04:38]Write i2c OK [11:04:38]MH_I2C_Read... [11:04:38]Read from MH i2c: 01 [11:04:38]MH_I2C_Read... [11:04:38]Read from MH i2c: 01 07 00 [11:04:38]MH_I2C_Read... [11:04:38]Read from MH i2c: 01 07 00 89 03 00 00 00 00 00 CC 0C 6B [11:04:38]RasterBufferAndPrint [11:04:38]line [11:04:38]line [11:04:38]line [11:04:38]line [11:04:38]line [11:04:38]written 0, free lines is 3307 [11:04:38]MH_Cut [11:04:38]Write to MH i2c: D1 01 00 90 03 01 65 [11:04:38]Write i2c OK [11:04:38]MH_I2C_Read... [11:04:38]Read from MH i2c: D1 [11:04:38]MH_I2C_Read... [11:04:38]Read from MH i2c: D1 01 00 [11:04:38]MH_I2C_Read... [11:04:38]Read from MH i2c: D1 01 00 90 03 00 64 [11:04:38]Write to MH i2c: 01 00 00 91 03 94 [11:04:38]Write i2c OK [11:04:38]MH_I2C_Read... [11:04:38]*** Cut start [11:04:38]*** Partial cut [11:04:38]*** CUTSNS_PIN = 1 [11:04:39]*** CUTSNS_PIN = 0 [11:04:39]*** Brake cut motor [11:04:39]Read from MH i2c: 01 [11:04:39]MH_I2C_Read... [11:04:39]*** Stop cut motor [11:04:39]*** Cut end [11:04:39]Read from MH i2c: 01 07 00 [11:04:39]MH_I2C_Read... [11:04:39]Read from MH i2c: 01 07 00 91 03 00 00 00 00 00 FF 0F A9 [11:04:39]process_action close_receipt done [11:04:39]requested_data is exist [11:04:39]produce_requested_data [11:04:39]requested_item fm.sn is exist - process it [11:04:39]wFMCommunicate request_size=4 [11:04:39]MH_SAM_APDU [11:04:39]CAPDU: 80 11 00 00 [11:04:39]Write to MH i2c: E2 08 00 92 03 80 11 00 00 00 00 00 00 0F [11:04:39]Write i2c OK [11:04:39]MH_I2C_Read... [11:04:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:04:39]Read from MH i2c: E2 [11:04:39]MH_I2C_Read... [11:04:39]Read from MH i2c: E2 17 00 [11:04:39]MH_I2C_Read... [11:04:39]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 35 38 90 00 6B [11:04:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [11:04:39]wFMCommunicate OK [11:04:39]requested_item fd.num is exist - process it [11:04:39]SAM_PROTO_GetFieldsCounters [11:04:39]wFMCommunicate request_size=4 [11:04:39]MH_SAM_APDU [11:04:39]CAPDU: 80 13 00 00 [11:04:39]Write to MH i2c: E2 08 00 93 03 80 13 00 00 00 00 00 00 12 [11:04:39]Write i2c OK [11:04:39]MH_I2C_Read... [11:04:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:04:39]Read from MH i2c: E2 [11:04:39]MH_I2C_Read... [11:04:39]Read from MH i2c: E2 62 00 [11:04:39]MH_I2C_Read... [11:04:39]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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 8E A3 00 00 0E 04 04 00 AB 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 CA [11:04: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 8E A3 00 00 0E 04 04 00 AB 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 [11:04:40]wFMCommunicate OK [11:04:40]SAM_PROTO_GetFieldsCounters done [11:04:40]requested_item shift.num is exist - process it [11:04:40]requested_item shift.opened is exist - process it [11:04:40]req_shift_opened [11:04:40]FM_GetShiftState [11:04:40]SAM_PROTO_GetShiftState [11:04:40]wFMCommunicate request_size=4 [11:04:40]MH_SAM_APDU [11:04:40]CAPDU: 80 13 01 00 [11:04:40]Write to MH i2c: E2 08 00 94 03 80 13 01 00 00 00 00 00 14 [11:04:40]Write i2c OK [11:04:40]MH_I2C_Read... [11:04:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:04:40]Read from MH i2c: E2 [11:04:40]MH_I2C_Read... [11:04:40]Read from MH i2c: E2 0E 00 [11:04:40]MH_I2C_Read... [11:04:40]Read from MH i2c: E2 0E 00 94 03 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 B0 [11:04:40]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [11:04:40]wFMCommunicate OK [11:04:40]SAM_PROTO_GetShiftState done [11:04:40]FM_GetShiftState done [11:04:40]req_shift_opened done [11:04:40]requested_item shift.open_date is exist - process it [11:04:40]req_shift_open_date [11:04:40]req_shift_open_date done [11:04:40]produce_requested_data done [11:04:40]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41870,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [11:04:40]process_action_free close_receipt [11:04:40]json_value_free [11:04:40]json_value_free done [11:04:40]process_json_proto returns [11:04:40]Send response to host [11:04:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41870,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [11:04:40]free response buf [11:04:40]execute_script done [11:04:40]execute_script returns [11:04:40]free content buf [11:04:40]Sock 9.Close socket [11:04:40]Sock 9.Thread stoped [11:04:40]Connected sock=11 [11:04:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 A1 01 00 00 02 9F 99 01 C8 67 5A 03 01 00 03 00 8D 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 36 35 35 06 04 29 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 20 D1 81 D0 B8 D0 BD D0 B8 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 44 77 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 8E A3 00 00 35 04 06 00 39 5A CC FA 33 D5 BC 36 B2 20 ED 4E 96 38 [11:04:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 4F 00 00 00 51 46 47 00 AD ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 8E A3 00 00 F4 03 04 00 5E 23 A7 66 B6 04 01 00 00 EC 53 18 84 29 54 EA 3F [11:04:44]CommunicateWithHost err = 0 [11:04:44]CheckOFDResponse [11:04:44]1017 (14) - 77093643461234 [11:04:44]1041 (16) - 0000000000874958 [11:04:44]1040 (4) - 41870 [11:04:44]1012 (4) - 29.07.2024 05:06 [11:04:44]1206 (1) - 0 [11:04:44]OFD Sender: Remove packet 41870 [11:04:44]ProducePacketName [11:04:44]name=ofd_packets/00041870 [11:04:44]NVStorageDeleteData [11:04:44]OFD Sender: No OFD packet to send [11:04:49]OFD Sender: No OFD packet to send [11:04:54]OFD Sender: No OFD packet to send [11:04:59]OFD Sender: No OFD packet to send [11:05:04]OFD Sender: No OFD packet to send [11:05:09]OFD Sender: No OFD packet to send [11:05:14]OFD Sender: No OFD packet to send [11:05:16]accept exits with 10 [11:05:16]New connection [11:05:16]New thread 3066903908 created [11:05:16]Thread 3066760548 joined [11:05:16]Waiting for new connection... [11:05:16] Sock 10.Parse request [11:05:16]Sock 10.Check first char [11:05:16]Sock 10.First char is OK [11:05:16]request: POST /json_proto HTTP/1.0 [11:05:16]Method: POST [11:05:16]URL: /json_proto [11:05:16]Method is POST - this is cgi request [11:05:16]url: /json_proto [11:05:16]query_string will be loaded in cgi processing [11:05:16]execute_cgi json_proto POST (null) [11:05:16]execute_cgi path=json_proto method=POST [11:05:16]POST find Content-Length [11:05:16]Host: 172.17.43.132:8080 [11:05:16]Content-Length: 655 [11:05:16]Content-Type: application/json [11:05:16] [11:05:16]POST finish read [11:05:16]Found Content-Length = 655 [11:05:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183899", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:05:16]execute_script... [11:05:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183899", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:05:16]POST & json_proto [11:05:16]process_json_proto [11:05:16]json parsed OK: [11:05:16]protocol is kg_v1.0 [11:05:16]action value=close_receipt [11:05:16]process_action close_receipt [11:05:16]cmd_close_receipt [11:05:16]MH_GetDate [11:05:16]Write to MH i2c: F0 00 00 95 03 87 [11:05:16]Write i2c OK [11:05:16]MH_I2C_Read... [11:05:16]Read from MH i2c: F0 [11:05:16]MH_I2C_Read... [11:05:16]Read from MH i2c: F0 09 00 [11:05:16]MH_I2C_Read... [11:05:16]Read from MH i2c: F0 09 00 95 03 00 6D 77 A7 66 F8 53 A7 66 D9 [11:05:16]GetLastDocTimeStamp 1722251076 [11:05:16]current date 1722251117 [11:05:16]FM_GetShiftState [11:05:16]SAM_PROTO_GetShiftState [11:05:16]wFMCommunicate request_size=4 [11:05:16]MH_SAM_APDU [11:05:16]CAPDU: 80 13 01 00 [11:05:16]Write to MH i2c: E2 08 00 96 03 80 13 01 00 00 00 00 00 16 [11:05:16]Write i2c OK [11:05:16]MH_I2C_Read... [11:05:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:16]Read from MH i2c: E2 [11:05:16]MH_I2C_Read... [11:05:16]Read from MH i2c: E2 0E 00 [11:05:16]MH_I2C_Read... [11:05:16]Read from MH i2c: E2 0E 00 96 03 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 B2 [11:05:16]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [11:05:16]wFMCommunicate OK [11:05:16]SAM_PROTO_GetShiftState done [11:05:16]FM_GetShiftState done [11:05:16]opened in 1722211496 [11:05:16]opened+sec_in_day 1722297896 [11:05:16]quantity*price = 8500 [11:05:16]sum+1 = 8501 [11:05:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 85.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 60 29.07.2024 11:05 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41871 ФПД: 138017099520758 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T110517&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41871&fm=138017099520758&tin=02508201610067®Number=0000000000092626&sum=8500 0 [11:05:17]StoreToDocumentArchive [11:05:17]shift 427 fd 41871 [11:05:17]save to /storage/0427/doc_00041871 [11:05:17]save last doc name /storage/0427/doc_00041871 to /storage/kkm_last_doc_name [11:05:17]save OK [11:05:17]Clear old archive folders... [11:05:17]ProcessDocumentItem done err = 0, tmpTLVsize=294 [11:05:17]tlvbuf is 009390B0 [11:05:17]SAM_PROTO_ClearQueue [11:05:17]wFMCommunicate request_size=4 [11:05:17]MH_SAM_APDU [11:05:17]CAPDU: 80 09 00 00 [11:05:17]Write to MH i2c: E2 08 00 A3 03 80 09 00 00 00 00 00 00 18 [11:05:18]Write i2c OK [11:05:18]MH_I2C_Read... [11:05:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:05:18]Read from MH i2c: E2 [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: E2 03 00 [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: E2 03 00 A3 03 00 90 00 1A [11:05:18]RAPDU: 90 00 [11:05:18]wFMCommunicate OK [11:05:18]SAM_PROTO_ClearQueue done [11:05:18]KKMCreateOFDPacket [11:05:18]OFDProtocolAddRootSTLVToBuf [11:05:18]FM_MakeSignedData [11:05:18]FM_MakeSignedData [11:05:18]SAM_PROTO_SignData [11:05:18]wFMCommunicate request_size=4 [11:05:18]MH_SAM_APDU [11:05:18]CAPDU: 80 0D 01 02 [11:05:18]Write to MH i2c: E2 08 00 A4 03 80 0D 01 02 00 00 00 00 20 [11:05:18]Write i2c OK [11:05:18]MH_I2C_Read... [11:05:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:05:18]Read from MH i2c: E2 [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: E2 03 00 [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: E2 03 00 A4 03 00 90 00 1B [11:05:18]RAPDU: 90 00 [11:05:18]wFMCommunicate OK [11:05:18]wFMCommunicate request_size=255 [11:05:18]MH_SAM_APDU [11:05:18]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 6D 77 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [11:05:18]Write to MH i2c: E2 02 01 A5 03 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 6D 77 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 DD [11:05:18]Write i2c OK [11:05:18]MH_I2C_Read... [11:05:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:18]Read from MH i2c: E2 [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: E2 03 00 [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: E2 03 00 A5 03 00 90 00 1C [11:05:18]RAPDU: 90 00 [11:05:18]wFMCommunicate OK [11:05:18]wFMCommunicate request_size=53 [11:05:18]MH_SAM_APDU [11:05:18]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 8F A3 00 00 35 04 06 00 7D 86 9C 30 9A F6 [11:05:18]Write to MH i2c: E2 38 00 A6 03 80 0D 02 02 30 00 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 8F A3 00 00 35 04 06 00 7D 86 9C 30 9A F6 00 00 B2 [11:05:18]Write i2c OK [11:05:18]MH_I2C_Read... [11:05:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:18]Read from MH i2c: E2 [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: E2 03 00 [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: E2 03 00 A6 03 00 90 00 1D [11:05:18]RAPDU: 90 00 [11:05:18]wFMCommunicate OK [11:05:18]wFMCommunicate request_size=4 [11:05:18]MH_SAM_APDU [11:05:18]CAPDU: 80 0D 03 02 [11:05:18]Write to MH i2c: E2 08 00 A7 03 80 0D 03 02 00 00 00 00 25 [11:05:18]Write i2c OK [11:05:18]MH_I2C_Read... [11:05:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:05:18]Read from MH i2c: E2 [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: E2 0B 00 [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: E2 0B 00 A7 03 00 29 41 14 C1 68 93 27 62 90 00 E9 [11:05:18]RAPDU: 29 41 14 C1 68 93 27 62 90 00 [11:05:18]wFMCommunicate OK [11:05:18]SAM_PROTO_SignData done [11:05:18]FM_MakeSignedData done [11:05:18]CreateOFDProtocolMessage [11:05:18]wFMCommunicate request_size=4 [11:05:18]MH_SAM_APDU [11:05:18]CAPDU: 80 11 00 00 [11:05:18]Write to MH i2c: E2 08 00 A8 03 80 11 00 00 00 00 00 00 25 [11:05:18]Write i2c OK [11:05:18]MH_I2C_Read... [11:05:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:18]Read from MH i2c: E2 [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: E2 17 00 [11:05:18]MH_I2C_Read... [11:05:18]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 35 38 90 00 81 [11:05:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [11:05:18]wFMCommunicate OK [11:05:18]CreateOFDProtocolMessage done [11:05:18]OFDSenderStorePacket 41871 [11:05:18]StoreOFDPacket docnum=41871 [11:05:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 3A 01 00 00 8B 06 32 01 33 37 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 6D 77 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 8F A3 00 00 35 04 06 00 7D 86 9C 30 9A F6 29 41 14 C1 68 93 27 62 [11:05:18]CheckFolder [11:05:18]dirname=/storage/ofd_packets [11:05:18]CheckFolder done [11:05:18]ProducePacketName [11:05:18]name=ofd_packets/00041871 [11:05:18]NVStorageSaveData ofd_packets/00041871 [11:05:18]File name is /storage/ofd_packets/00041871 [11:05:18]Write 344 bytes [11:05:18]NVStorageSaveData done [11:05:18]OFDSenderStorePacket done [11:05:18]KKMCreateOFDPacket done [11:05:18]NVStorageSaveData kkm_last_timestamp [11:05:18]File name is /storage/kkm_last_timestamp [11:05:18]Write 4 bytes [11:05:18]NVStorageSaveData done [11:05:18]ExternCall_PrintAddStr [11:05:18]wPrintStart [11:05:18]Write to MH i2c: 01 00 00 A9 03 AC [11:05:18]Write i2c OK [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: 01 [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: 01 07 00 [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: 01 07 00 A9 03 00 00 00 00 00 FF 0F C1 [11:05:18]RasterBufferAndPrint [11:05:18]line Счет N : (3)183899 [11:05:18]line ИНН: 02508201610067 [11:05:18]line Контрольно-Кассовый Чек [11:05:18]line ПРОДАЖА [11:05:18]line Товар: 4600682557456 [11:05:18]line Напиток FLash up energy эн ж/б 0,5/0,45л [11:05:18]line 1.000 * 85.00 [11:05:18]line = 85.00 [11:05:18]line НДС 12% НСП 1% [11:05:18]line > о реализуемом товаре [11:05:18]line ИТОГО: 85.00 [11:05:18]line НСП 1% : 0.75 [11:05:18]line НДС 12% : 9.03 [11:05:18]line Наличными: 85.00 [11:05:18]line Безнал.: 0.00 [11:05:18]line Место: АЗС № 97 "Партнер Нефть" [11:05:18]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [11:05:18]line СНО: Общий режим [11:05:18]line Чек 60 29.07.2024 11:05 [11:05:18]line Смена: 427 ФФД: 1.0 [11:05:18]line ЗНМ: 0300000053 [11:05:18]line РНМ: 0000000000092626 [11:05:18]line Версия ККМ: 001 [11:05:18]line ФМ: 0000000000874958 [11:05:18]line ФД: 41871 [11:05:18]line ФПД: 138017099520758 [11:05:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T110517&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41871&fm=138017099520758&tin=02508201610067®Number=0000000000092626&sum=8500 [11:05:18]line 0 [11:05:18]written 0, free lines is 4095 [11:05:19]OFD Sender: Processing packet 41871 [packets to send 57, broken 56] [11:05:19]ProducePacketName [11:05:19]name=ofd_packets/00041871 [11:05:19]OFD Sender: To server: pG, [11:05:19]CommunicateWithHost lk.salyk.kg:30040 [11:05:19]ConnectInit lk.salyk.kg [11:05:19]Write to MH i2c: 01 00 00 D2 03 D5 [11:05:19]Write i2c OK [11:05:19]MH_I2C_Read... [11:05:19]Read from MH i2c: 01 [11:05:19]MH_I2C_Read... [11:05:19]Read from MH i2c: 01 07 00 [11:05:19]MH_I2C_Read... [11:05:19]Read from MH i2c: 01 07 00 D2 03 00 00 00 00 00 04 0D ED [11:05:19]RasterBufferAndPrint [11:05:19]line [11:05:19]line [11:05:19]line [11:05:19]line [11:05:19]line [11:05:19]written 0, free lines is 3362 [11:05:19]MH_Cut [11:05:19]Write to MH i2c: D1 01 00 D9 03 01 AE [11:05:19]Write i2c OK [11:05:19]MH_I2C_Read... [11:05:19]Read from MH i2c: D1 [11:05:19]MH_I2C_Read... [11:05:19]Read from MH i2c: D1 01 00 [11:05:19]MH_I2C_Read... [11:05:19]Read from MH i2c: D1 01 00 D9 03 00 AD [11:05:19]Write to MH i2c: 01 00 00 DA 03 DD [11:05:19]Write i2c OK [11:05:19]MH_I2C_Read... [11:05:20]*** Cut start [11:05:20]*** Partial cut [11:05:20]*** CUTSNS_PIN = 1 [11:05:20]*** CUTSNS_PIN = 0 [11:05:20]*** Brake cut motor [11:05:20]Connected sock=9 [11:05:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 3A 01 00 00 8B 06 32 01 33 37 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 6D 77 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 8F A3 00 00 35 04 06 00 7D 86 9C 30 9A F6 29 41 14 C1 68 93 27 62 [11:05:20]Read from MH i2c: 01 [11:05:20]MH_I2C_Read... [11:05:20]*** Stop cut motor [11:05:20]*** Cut end [11:05:20]Read from MH i2c: 01 07 00 [11:05:20]MH_I2C_Read... [11:05:20]Read from MH i2c: 01 07 00 DA 03 00 00 00 00 00 FF 0F F2 [11:05:20]process_action close_receipt done [11:05:20]requested_data is exist [11:05:20]produce_requested_data [11:05:20]requested_item fm.sn is exist - process it [11:05:20]wFMCommunicate request_size=4 [11:05:20]MH_SAM_APDU [11:05:20]CAPDU: 80 11 00 00 [11:05:20]Write to MH i2c: E2 08 00 DB 03 80 11 00 00 00 00 00 00 58 [11:05:20]Write i2c OK [11:05:20]MH_I2C_Read... [11:05:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:20]Read from MH i2c: E2 [11:05:20]MH_I2C_Read... [11:05:20]Read from MH i2c: E2 17 00 [11:05:20]MH_I2C_Read... [11:05:20]Read from MH i2c: E2 17 00 DB 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 B4 [11:05:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [11:05:20]wFMCommunicate OK [11:05:20]requested_item fd.num is exist - process it [11:05:20]SAM_PROTO_GetFieldsCounters [11:05:20]wFMCommunicate request_size=4 [11:05:20]MH_SAM_APDU [11:05:20]CAPDU: 80 13 00 00 [11:05:20]Write to MH i2c: E2 08 00 DC 03 80 13 00 00 00 00 00 00 5B [11:05:20]Write i2c OK [11:05:20]MH_I2C_Read... [11:05:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:05:21]Read from MH i2c: E2 [11:05:21]MH_I2C_Read... [11:05:21]Read from MH i2c: E2 62 00 [11:05:21]MH_I2C_Read... [11:05:21]Read from MH i2c: E2 62 00 DC 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 8F A3 00 00 0E 04 04 00 AB 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 17 [11:05:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 8F A3 00 00 0E 04 04 00 AB 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 [11:05:21]wFMCommunicate OK [11:05:21]SAM_PROTO_GetFieldsCounters done [11:05:21]requested_item shift.num is exist - process it [11:05:21]requested_item shift.opened is exist - process it [11:05:21]req_shift_opened [11:05:21]FM_GetShiftState [11:05:21]SAM_PROTO_GetShiftState [11:05:21]wFMCommunicate request_size=4 [11:05:21]MH_SAM_APDU [11:05:21]CAPDU: 80 13 01 00 [11:05:21]Write to MH i2c: E2 08 00 DD 03 80 13 01 00 00 00 00 00 5D [11:05:21]Write i2c OK [11:05:21]MH_I2C_Read... [11:05:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:21]Read from MH i2c: E2 [11:05:21]MH_I2C_Read... [11:05:21]Read from MH i2c: E2 0E 00 [11:05:21]MH_I2C_Read... [11:05:21]Read from MH i2c: E2 0E 00 DD 03 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 F9 [11:05:21]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [11:05:21]wFMCommunicate OK [11:05:21]SAM_PROTO_GetShiftState done [11:05:21]FM_GetShiftState done [11:05:21]req_shift_opened done [11:05:21]requested_item shift.open_date is exist - process it [11:05:21]req_shift_open_date [11:05:21]req_shift_open_date done [11:05:21]produce_requested_data done [11:05:21]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41871,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [11:05:21]process_action_free close_receipt [11:05:21]json_value_free [11:05:21]json_value_free done [11:05:21]process_json_proto returns [11:05:21]Send response to host [11:05:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41871,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [11:05:21]free response buf [11:05:21]execute_script done [11:05:21]execute_script returns [11:05:21]free content buf [11:05:21]Sock 10.Close socket [11:05:21]Sock 10.Thread stoped [11:05:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 4F 00 00 00 0E 89 47 00 07 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 35 38 10 04 04 00 8F A3 00 00 F4 03 04 00 85 23 A7 66 B6 04 01 00 00 1A 78 6F 8B D0 42 02 CC [11:05:23]CommunicateWithHost err = 0 [11:05:23]CheckOFDResponse [11:05:23]1017 (14) - 77093643461234 [11:05:23]1041 (16) - 0000000000874958 [11:05:23]1040 (4) - 41871 [11:05:23]1012 (4) - 29.07.2024 05:07 [11:05:23]1206 (1) - 0 [11:05:23]OFD Sender: Remove packet 41871 [11:05:23]ProducePacketName [11:05:23]name=ofd_packets/00041871 [11:05:23]NVStorageDeleteData [11:05:23]OFD Sender: No OFD packet to send [11:05:28]OFD Sender: No OFD packet to send [11:05:33]OFD Sender: No OFD packet to send [11:05:38]OFD Sender: No OFD packet to send [11:05:43]OFD Sender: No OFD packet to send [11:05:48]OFD Sender: No OFD packet to send [11:05:53]OFD Sender: No OFD packet to send [11:05:57]recv_with_timeout no data received [11:05:58]OFD Sender: No OFD packet to send [11:06:03]OFD Sender: No OFD packet to send [11:06:08]OFD Sender: No OFD packet to send [11:06:13]OFD Sender: No OFD packet to send [11:06:18]OFD Sender: No OFD packet to send [11:06:23]OFD Sender: No OFD packet to send [11:06:28]OFD Sender: No OFD packet to send [11:06:33]OFD Sender: No OFD packet to send [11:06:38]OFD Sender: No OFD packet to send [11:06:43]OFD Sender: No OFD packet to send [11:06:48]OFD Sender: No OFD packet to send [11:06:53]OFD Sender: No OFD packet to send [11:06:58]OFD Sender: No OFD packet to send [11:07:03]OFD Sender: No OFD packet to send [11:07:08]OFD Sender: No OFD packet to send [11:07:13]OFD Sender: No OFD packet to send [11:07:18]OFD Sender: No OFD packet to send [11:07:23]OFD Sender: No OFD packet to send [11:07:28]OFD Sender: No OFD packet to send [11:07:33]OFD Sender: No OFD packet to send [11:07:38]OFD Sender: No OFD packet to send [11:07:43]OFD Sender: No OFD packet to send [11:07:48]OFD Sender: No OFD packet to send [11:07:53]OFD Sender: No OFD packet to send [11:07:58]OFD Sender: No OFD packet to send [11:08:03]OFD Sender: No OFD packet to send [11:08:08]OFD Sender: No OFD packet to send [11:08:13]OFD Sender: No OFD packet to send [11:08:18]OFD Sender: No OFD packet to send [11:08:23]OFD Sender: No OFD packet to send [11:08:28]OFD Sender: No OFD packet to send [11:08:33]OFD Sender: No OFD packet to send [11:08:38]OFD Sender: No OFD packet to send [11:08:43]OFD Sender: No OFD packet to send [11:08:48]OFD Sender: No OFD packet to send [11:08:53]OFD Sender: No OFD packet to send [11:08:58]OFD Sender: No OFD packet to send [11:09:03]OFD Sender: No OFD packet to send [11:09:08]OFD Sender: No OFD packet to send [11:09:13]OFD Sender: No OFD packet to send [11:09:18]OFD Sender: No OFD packet to send [11:09:23]OFD Sender: No OFD packet to send [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:48]OFD Sender: No OFD packet to send [11:10:53]OFD Sender: No OFD packet to send [11:10:58]OFD Sender: No OFD packet to send [11:11:03]OFD Sender: No OFD packet to send [11:11:08]OFD Sender: No OFD packet to send [11:11:11]recv_with_timeout no data received [11:11:13]OFD Sender: No OFD packet to send [11:11:18]OFD Sender: No OFD packet to send [11:11:23]OFD Sender: No OFD packet to send [11:11:28]OFD Sender: No OFD packet to send [11:11:33]recv_with_timeout no data received [11:11:33]OFD Sender: No OFD packet to send [11:11:38]OFD Sender: No OFD packet to send [11:11:43]OFD Sender: No OFD packet to send [11:11:48]recv_with_timeout no data received [11:11:48]OFD Sender: No OFD packet to send [11:11:53]OFD Sender: No OFD packet to send [11:11:58]OFD Sender: No OFD packet to send [11:12:03]OFD Sender: No OFD packet to send [11:12:08]OFD Sender: No OFD packet to send [11:12:13]OFD Sender: No OFD packet to send [11:12:18]OFD Sender: No OFD packet to send [11:12:23]OFD Sender: No OFD packet to send [11:12:28]OFD Sender: No OFD packet to send [11:12:33]OFD Sender: No OFD packet to send [11:12:38]OFD Sender: No OFD packet to send [11:12:43]OFD Sender: No OFD packet to send [11:12:48]OFD Sender: No OFD packet to send [11:12:53]OFD Sender: No OFD packet to send [11:12:58]OFD Sender: No OFD packet to send [11:13:03]OFD Sender: No OFD packet to send [11:13:08]OFD Sender: No OFD packet to send [11:13:13]OFD Sender: No OFD packet to send [11:13:18]OFD Sender: No OFD packet to send [11:13:23]OFD Sender: No OFD packet to send [11:13:24]recv_with_timeout no data received [11:13:28]OFD Sender: No OFD packet to send [11:13:33]OFD Sender: No OFD packet to send [11:13:38]OFD Sender: No OFD packet to send [11:13:44]OFD Sender: No OFD packet to send [11:13:49]OFD Sender: No OFD packet to send [11:13:54]OFD Sender: No OFD packet to send [11:13:59]OFD Sender: No OFD packet to send [11:14:04]OFD Sender: No OFD packet to send [11:14:09]OFD Sender: No OFD packet to send [11:14:14]OFD Sender: No OFD packet to send [11:14:15]recv_with_timeout no data received [11:14:19]OFD Sender: No OFD packet to send [11:14:24]OFD Sender: No OFD packet to send [11:14:29]OFD Sender: No OFD packet to send [11:14:34]OFD Sender: No OFD packet to send [11:14:39]OFD Sender: No OFD packet to send [11:14:44]OFD Sender: No OFD packet to send [11:14:49]OFD Sender: No OFD packet to send [11:14:54]OFD Sender: No OFD packet to send [11:14:59]OFD Sender: No OFD packet to send [11:15:04]OFD Sender: No OFD packet to send [11:15:09]OFD Sender: No OFD packet to send [11:15:14]OFD Sender: No OFD packet to send [11:15:19]OFD Sender: No OFD packet to send [11:15:24]OFD Sender: No OFD packet to send [11:15:29]OFD Sender: No OFD packet to send [11:15:34]OFD Sender: No OFD packet to send [11:15:39]OFD Sender: No OFD packet to send [11:15:44]OFD Sender: No OFD packet to send [11:15:49]OFD Sender: No OFD packet to send [11:15:54]OFD Sender: No OFD packet to send [11:15:59]OFD Sender: No OFD packet to send [11:16:04]OFD Sender: No OFD packet to send [11:16:09]OFD Sender: No OFD packet to send [11:16:14]OFD Sender: No OFD packet to send [11:16:19]OFD Sender: No OFD packet to send [11:16:24]OFD Sender: No OFD packet to send [11:16:29]OFD Sender: No OFD packet to send [11:16:34]OFD Sender: No OFD packet to send [11:16:39]OFD Sender: No OFD packet to send [11:16:44]OFD Sender: No OFD packet to send [11:16:49]OFD Sender: No OFD packet to send [11:16:54]OFD Sender: No OFD packet to send [11:16:59]OFD Sender: No OFD packet to send [11:17:04]OFD Sender: No OFD packet to send [11:17:09]OFD Sender: No OFD packet to send [11:17:14]OFD Sender: No OFD packet to send [11:17:19]OFD Sender: No OFD packet to send [11:17:24]OFD Sender: No OFD packet to send [11:17:29]OFD Sender: No OFD packet to send [11:17:34]OFD Sender: No OFD packet to send [11:17:39]OFD Sender: No OFD packet to send [11:17:44]OFD Sender: No OFD packet to send [11:17:49]OFD Sender: No OFD packet to send [11:17:54]OFD Sender: No OFD packet to send [11:17:59]OFD Sender: No OFD packet to send [11:18:04]OFD Sender: No OFD packet to send [11:18:09]OFD Sender: No OFD packet to send [11:18:14]OFD Sender: No OFD packet to send [11:18:19]OFD Sender: No OFD packet to send [11:18:24]OFD Sender: No OFD packet to send [11:18:29]OFD Sender: No OFD packet to send [11:18:34]OFD Sender: No OFD packet to send [11:18:39]OFD Sender: No OFD packet to send [11:18:44]OFD Sender: No OFD packet to send [11:18:49]OFD Sender: No OFD packet to send [11:18:54]OFD Sender: No OFD packet to send [11:18:59]OFD Sender: No OFD packet to send [11:19:04]OFD Sender: No OFD packet to send [11:19:09]OFD Sender: No OFD packet to send [11:19:14]OFD Sender: No OFD packet to send [11:19:19]OFD Sender: No OFD packet to send [11:19:24]OFD Sender: No OFD packet to send [11:19:29]OFD Sender: No OFD packet to send [11:19:34]OFD Sender: No OFD packet to send [11:19:39]OFD Sender: No OFD packet to send [11:19:42]recv_with_timeout no data received [11:19:44]OFD Sender: No OFD packet to send [11:19:49]OFD Sender: No OFD packet to send [11:19:54]OFD Sender: No OFD packet to send [11:19:59]OFD Sender: No OFD packet to send [11:20:04]OFD Sender: No OFD packet to send [11:20:09]OFD Sender: No OFD packet to send [11:20:14]OFD Sender: No OFD packet to send [11:20:19]OFD Sender: No OFD packet to send [11:20:24]OFD Sender: No OFD packet to send [11:20:29]OFD Sender: No OFD packet to send [11:20:34]OFD Sender: No OFD packet to send [11:20:39]OFD Sender: No OFD packet to send [11:20:44]OFD Sender: No OFD packet to send [11:20:49]OFD Sender: No OFD packet to send [11:20:54]OFD Sender: No OFD packet to send [11:20:59]OFD Sender: No OFD packet to send [11:21:04]OFD Sender: No OFD packet to send [11:21:09]OFD Sender: No OFD packet to send [11:21:14]OFD Sender: No OFD packet to send [11:21:19]OFD Sender: No OFD packet to send [11:21:24]OFD Sender: No OFD packet to send [11:21:29]OFD Sender: No OFD packet to send [11:21:34]OFD Sender: No OFD packet to send [11:21:39]OFD Sender: No OFD packet to send [11:21:44]OFD Sender: No OFD packet to send [11:21:49]OFD Sender: No OFD packet to send [11:21:54]OFD Sender: No OFD packet to send [11:21:59]OFD Sender: No OFD packet to send [11:22:04]OFD Sender: No OFD packet to send [11:22:09]OFD Sender: No OFD packet to send [11:22:11]recv_with_timeout no data received [11:22:14]OFD Sender: No OFD packet to send [11:22:19]OFD Sender: No OFD packet to send [11:22:24]OFD Sender: No OFD packet to send [11:22:29]OFD Sender: No OFD packet to send [11:22:34]OFD Sender: No OFD packet to send [11:22:39]OFD Sender: No OFD packet to send [11:22:44]OFD Sender: No OFD packet to send [11:22:49]OFD Sender: No OFD packet to send [11:22:54]OFD Sender: No OFD packet to send [11:22:59]OFD Sender: No OFD packet to send [11:23:04]OFD Sender: No OFD packet to send [11:23:09]OFD Sender: No OFD packet to send [11:23:14]OFD Sender: No OFD packet to send [11:23:19]OFD Sender: No OFD packet to send [11:23:24]OFD Sender: No OFD packet to send [11:23:29]OFD Sender: No OFD packet to send [11:23:34]OFD Sender: No OFD packet to send [11:23:39]OFD Sender: No OFD packet to send [11:23:44]recv_with_timeout no data received [11:23:44]OFD Sender: No OFD packet to send [11:23:49]OFD Sender: No OFD packet to send [11:23:54]OFD Sender: No OFD packet to send [11:23:59]OFD Sender: No OFD packet to send [11:24:04]OFD Sender: No OFD packet to send [11:24:09]OFD Sender: No OFD packet to send [11:24:14]OFD Sender: No OFD packet to send [11:24:19]OFD Sender: No OFD packet to send [11:24:24]OFD Sender: No OFD packet to send [11:24:29]OFD Sender: No OFD packet to send [11:24:34]OFD Sender: No OFD packet to send [11:24:38]accept exits with 8 [11:24:38]New connection [11:24:38]New thread 3066760548 created [11:24:38]Thread 3066903908 joined [11:24:38]Waiting for new connection... [11:24:38] Sock 8.Parse request [11:24:38]Sock 8.Check first char [11:24:38]Sock 8.First char is OK [11:24:38]request: POST /json_proto HTTP/1.0 [11:24:38]Method: POST [11:24:38]URL: /json_proto [11:24:38]Method is POST - this is cgi request [11:24:38]url: /json_proto [11:24:38]query_string will be loaded in cgi processing [11:24:38]execute_cgi json_proto POST (null) [11:24:38]execute_cgi path=json_proto method=POST [11:24:38]POST find Content-Length [11:24:38]Host: 172.17.43.132:8080 [11:24:38]Content-Length: 626 [11:24:38]Content-Type: application/json [11:24:38] [11:24:38]POST finish read [11:24:38]Found Content-Length = 626 [11:24:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183900", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:24:38]execute_script... [11:24: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 : (3)183900", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:24:38]POST & json_proto [11:24:38]process_json_proto [11:24:38]json parsed OK: [11:24:38]protocol is kg_v1.0 [11:24:38]action value=close_receipt [11:24:38]process_action close_receipt [11:24:38]cmd_close_receipt [11:24:38]MH_GetDate [11:24:38]Write to MH i2c: F0 00 00 DE 03 D0 [11:24:38]Write i2c OK [11:24:38]MH_I2C_Read... [11:24:38]Read from MH i2c: F0 [11:24:38]MH_I2C_Read... [11:24:38]Read from MH i2c: F0 09 00 [11:24:38]MH_I2C_Read... [11:24:38]Read from MH i2c: F0 09 00 DE 03 00 F7 7B A7 66 F8 53 A7 66 B0 [11:24:38]GetLastDocTimeStamp 1722251117 [11:24:38]current date 1722252279 [11:24:38]FM_GetShiftState [11:24:38]SAM_PROTO_GetShiftState [11:24:38]wFMCommunicate request_size=4 [11:24:38]MH_SAM_APDU [11:24:38]CAPDU: 80 13 01 00 [11:24:38]Write to MH i2c: E2 08 00 DF 03 80 13 01 00 00 00 00 00 5F [11:24:38]Write i2c OK [11:24:38]MH_I2C_Read... [11:24:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:24:38]Read from MH i2c: E2 [11:24:38]MH_I2C_Read... [11:24:38]Read from MH i2c: E2 0E 00 [11:24:38]MH_I2C_Read... [11:24:38]Read from MH i2c: E2 0E 00 DF 03 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 FB [11:24:38]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [11:24:38]wFMCommunicate OK [11:24:38]SAM_PROTO_GetShiftState done [11:24:38]FM_GetShiftState done [11:24:38]opened in 1722211496 [11:24:38]opened+sec_in_day 1722297896 [11:24:38]quantity*price = 11500 [11:24:38]sum+1 = 11501 [11:24:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.02 НДС 12% : 12.21 Наличными: 115.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 61 29.07.2024 11:24 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41872 ФПД: 249996669241439 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T112439&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41872&fm=249996669241439&tin=02508201610067®Number=0000000000092626&sum=11500 0 [11:24:39]StoreToDocumentArchive [11:24:39]shift 427 fd 41872 [11:24:39]save to /storage/0427/doc_00041872 [11:24:39]save last doc name /storage/0427/doc_00041872 to /storage/kkm_last_doc_name [11:24:39]save OK [11:24:39]Clear old archive folders... [11:24:39]ProcessDocumentItem done err = 0, tmpTLVsize=274 [11:24:39]tlvbuf is 008328C0 [11:24:39]SAM_PROTO_ClearQueue [11:24:39]wFMCommunicate request_size=4 [11:24:39]MH_SAM_APDU [11:24:39]CAPDU: 80 09 00 00 [11:24:39]Write to MH i2c: E2 08 00 EC 03 80 09 00 00 00 00 00 00 61 [11:24:39]Write i2c OK [11:24:39]MH_I2C_Read... [11:24:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:24:39]Read from MH i2c: E2 [11:24:39]MH_I2C_Read... [11:24:39]Read from MH i2c: E2 03 00 [11:24:39]MH_I2C_Read... [11:24:39]Read from MH i2c: E2 03 00 EC 03 00 90 00 63 [11:24:39]RAPDU: 90 00 [11:24:39]wFMCommunicate OK [11:24:39]SAM_PROTO_ClearQueue done [11:24:39]KKMCreateOFDPacket [11:24:39]OFDProtocolAddRootSTLVToBuf [11:24:39]FM_MakeSignedData [11:24:39]FM_MakeSignedData [11:24:39]SAM_PROTO_SignData [11:24:39]wFMCommunicate request_size=4 [11:24:39]MH_SAM_APDU [11:24:39]CAPDU: 80 0D 01 02 [11:24:39]Write to MH i2c: E2 08 00 ED 03 80 0D 01 02 00 00 00 00 69 [11:24:39]Write i2c OK [11:24:39]MH_I2C_Read... [11:24:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:24:39]Read from MH i2c: E2 [11:24:39]MH_I2C_Read... [11:24:39]Read from MH i2c: E2 03 00 [11:24:39]MH_I2C_Read... [11:24:39]Read from MH i2c: E2 03 00 ED 03 00 90 00 64 [11:24:39]RAPDU: 90 00 [11:24:39]wFMCommunicate OK [11:24:39]wFMCommunicate request_size=255 [11:24:39]MH_SAM_APDU [11:24:39]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 F7 7B A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 [11:24:39]Write to MH i2c: E2 02 01 EE 03 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 F7 7B A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 00 00 6D [11:24:39]Write i2c OK [11:24:39]MH_I2C_Read... [11:24:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:24:40]Read from MH i2c: E2 [11:24:40]MH_I2C_Read... [11:24:40]Read from MH i2c: E2 03 00 [11:24:40]MH_I2C_Read... [11:24:40]Read from MH i2c: E2 03 00 EE 03 00 90 00 65 [11:24:40]RAPDU: 90 00 [11:24:40]wFMCommunicate OK [11:24:40]wFMCommunicate request_size=33 [11:24:40]MH_SAM_APDU [11:24:40]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 39 35 38 10 04 04 00 90 A3 00 00 35 04 06 00 E3 5E E2 AA 48 5F [11:24:40]Write to MH i2c: E2 24 00 EF 03 80 0D 02 02 1C 00 30 30 30 30 38 37 34 39 35 38 10 04 04 00 90 A3 00 00 35 04 06 00 E3 5E E2 AA 48 5F 00 00 AB [11:24:40]Write i2c OK [11:24:40]MH_I2C_Read... [11:24:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:24:40]Read from MH i2c: E2 [11:24:40]MH_I2C_Read... [11:24:40]Read from MH i2c: E2 03 00 [11:24:40]MH_I2C_Read... [11:24:40]Read from MH i2c: E2 03 00 EF 03 00 90 00 66 [11:24:40]RAPDU: 90 00 [11:24:40]wFMCommunicate OK [11:24:40]wFMCommunicate request_size=4 [11:24:40]MH_SAM_APDU [11:24:40]CAPDU: 80 0D 03 02 [11:24:40]Write to MH i2c: E2 08 00 F0 03 80 0D 03 02 00 00 00 00 6E [11:24:40]Write i2c OK [11:24:40]MH_I2C_Read... [11:24:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:24:40]Read from MH i2c: E2 [11:24:40]MH_I2C_Read... [11:24:40]Read from MH i2c: E2 0B 00 [11:24:40]MH_I2C_Read... [11:24:40]Read from MH i2c: E2 0B 00 F0 03 00 54 BC B5 94 1D D3 B1 1E 90 00 87 [11:24:40]RAPDU: 54 BC B5 94 1D D3 B1 1E 90 00 [11:24:40]wFMCommunicate OK [11:24:40]SAM_PROTO_SignData done [11:24:40]FM_MakeSignedData done [11:24:40]CreateOFDProtocolMessage [11:24:40]wFMCommunicate request_size=4 [11:24:40]MH_SAM_APDU [11:24:40]CAPDU: 80 11 00 00 [11:24:40]Write to MH i2c: E2 08 00 F1 03 80 11 00 00 00 00 00 00 6E [11:24:40]Write i2c OK [11:24:40]MH_I2C_Read... [11:24:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:24:40]Read from MH i2c: E2 [11:24:40]MH_I2C_Read... [11:24:40]Read from MH i2c: E2 17 00 [11:24:40]MH_I2C_Read... [11:24:40]Read from MH i2c: E2 17 00 F1 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 CA [11:24:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [11:24:40]wFMCommunicate OK [11:24:40]CreateOFDProtocolMessage done [11:24:40]OFDSenderStorePacket 41872 [11:24:40]StoreOFDPacket docnum=41872 [11:24:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 26 01 00 00 8C C0 1E 01 0B 33 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 F7 7B A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 90 A3 00 00 35 04 06 00 E3 5E E2 AA 48 5F 54 BC B5 94 1D D3 B1 1E [11:24:40]CheckFolder [11:24:40]dirname=/storage/ofd_packets [11:24:40]CheckFolder done [11:24:40]ProducePacketName [11:24:40]name=ofd_packets/00041872 [11:24:40]NVStorageSaveData ofd_packets/00041872 [11:24:40]File name is /storage/ofd_packets/00041872 [11:24:40]Write 324 bytes [11:24:40]NVStorageSaveData done [11:24:40]OFDSenderStorePacket done [11:24:40]KKMCreateOFDPacket done [11:24:40]NVStorageSaveData kkm_last_timestamp [11:24:40]File name is /storage/kkm_last_timestamp [11:24:40]Write 4 bytes [11:24:40]NVStorageSaveData done [11:24:40]ExternCall_PrintAddStr [11:24:40]wPrintStart [11:24:40]Write to MH i2c: 01 00 00 F2 03 F5 [11:24:40]Write i2c OK [11:24:40]MH_I2C_Read... [11:24:40]Read from MH i2c: 01 [11:24:40]MH_I2C_Read... [11:24:40]Read from MH i2c: 01 07 00 [11:24:40]MH_I2C_Read... [11:24:40]Read from MH i2c: 01 07 00 F2 03 00 00 00 00 00 FF 0F 0A [11:24:40]RasterBufferAndPrint [11:24:40]line Счет N : (3)183900 [11:24:40]line ИНН: 02508201610067 [11:24:40]line Контрольно-Кассовый Чек [11:24:40]line ПРОДАЖА [11:24:40]line Товар: 2000036240010 [11:24:40]line Кофе Латте (GABB TRADE) [11:24:40]line 1.000 * 115.00 [11:24:40]line = 115.00 [11:24:40]line НДС 12% НСП 1% [11:24:40]line > о реализуемом товаре [11:24:40]line ИТОГО: 115.00 [11:24:40]line НСП 1% : 1.02 [11:24:40]line НДС 12% : 12.21 [11:24:40]line Наличными: 115.00 [11:24:40]line Безнал.: 0.00 [11:24:40]line Место: АЗС № 97 "Партнер Нефть" [11:24:40]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [11:24:40]line СНО: Общий режим [11:24:40]line Чек 61 29.07.2024 11:24 [11:24:40]line Смена: 427 ФФД: 1.0 [11:24:40]line ЗНМ: 0300000053 [11:24:40]line РНМ: 0000000000092626 [11:24:40]line Версия ККМ: 001 [11:24:40]line ФМ: 0000000000874958 [11:24:40]line ФД: 41872 [11:24:40]line ФПД: 249996669241439 [11:24:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T112439&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41872&fm=249996669241439&tin=02508201610067®Number=0000000000092626&sum=11500 [11:24:40]line 0 [11:24:40]written 0, free lines is 4095 [11:24:40]OFD Sender: Processing packet 41872 [packets to send 57, broken 56] [11:24:40]ProducePacketName [11:24:40]name=ofd_packets/00041872 [11:24:40]OFD Sender: To server: pG, [11:24:40]CommunicateWithHost lk.salyk.kg:30040 [11:24:40]ConnectInit lk.salyk.kg [11:24:41]Write to MH i2c: 01 00 00 1A 04 1E [11:24:41]Write i2c OK [11:24:41]MH_I2C_Read... [11:24:41]Read from MH i2c: 01 [11:24:41]MH_I2C_Read... [11:24:41]Read from MH i2c: 01 07 00 [11:24:41]MH_I2C_Read... [11:24:41]Read from MH i2c: 01 07 00 1A 04 00 00 00 00 00 16 0D 48 [11:24:41]RasterBufferAndPrint [11:24:41]line [11:24:41]line [11:24:41]line [11:24:41]line [11:24:41]line [11:24:41]written 0, free lines is 3358 [11:24:41]MH_Cut [11:24:41]Write to MH i2c: D1 01 00 21 04 01 F7 [11:24:41]Write i2c OK [11:24:41]MH_I2C_Read... [11:24:41]Read from MH i2c: D1 [11:24:41]MH_I2C_Read... [11:24:41]Read from MH i2c: D1 01 00 [11:24:41]MH_I2C_Read... [11:24:41]Read from MH i2c: D1 01 00 21 04 00 F6 [11:24:41]Write to MH i2c: 01 00 00 22 04 26 [11:24:41]Write i2c OK [11:24:41]MH_I2C_Read... [11:24:41]*** Cut start [11:24:41]*** Partial cut [11:24:41]*** CUTSNS_PIN = 1 [11:24:41]*** CUTSNS_PIN = 0 [11:24:42]*** Brake cut motor [11:24:42]Read from MH i2c: 01 [11:24:42]MH_I2C_Read... [11:24:42]*** Stop cut motor [11:24:42]*** Cut end [11:24:42]Read from MH i2c: 01 07 00 [11:24:42]MH_I2C_Read... [11:24:42]Read from MH i2c: 01 07 00 22 04 00 00 00 00 00 FF 0F 3B [11:24:42]process_action close_receipt done [11:24:42]requested_data is exist [11:24:42]produce_requested_data [11:24:42]requested_item fm.sn is exist - process it [11:24:42]wFMCommunicate request_size=4 [11:24:42]MH_SAM_APDU [11:24:42]CAPDU: 80 11 00 00 [11:24:42]Write to MH i2c: E2 08 00 23 04 80 11 00 00 00 00 00 00 A1 [11:24:42]Write i2c OK [11:24:42]MH_I2C_Read... [11:24:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:24:42]Connected sock=11 [11:24: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 35 38 26 01 00 00 8C C0 1E 01 0B 33 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 F7 7B A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 90 A3 00 00 35 04 06 00 E3 5E E2 AA 48 5F 54 BC B5 94 1D D3 B1 1E [11:24:42]Read from MH i2c: E2 [11:24:42]MH_I2C_Read... [11:24:42]Read from MH i2c: E2 17 00 [11:24:42]MH_I2C_Read... [11:24:42]Read from MH i2c: E2 17 00 23 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 FD [11:24:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [11:24:42]wFMCommunicate OK [11:24:42]requested_item fd.num is exist - process it [11:24:42]SAM_PROTO_GetFieldsCounters [11:24:42]wFMCommunicate request_size=4 [11:24:42]MH_SAM_APDU [11:24:42]CAPDU: 80 13 00 00 [11:24:42]Write to MH i2c: E2 08 00 24 04 80 13 00 00 00 00 00 00 A4 [11:24:42]Write i2c OK [11:24:42]MH_I2C_Read... [11:24:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:24:42]Read from MH i2c: E2 [11:24:42]MH_I2C_Read... [11:24:42]Read from MH i2c: E2 62 00 [11:24:42]MH_I2C_Read... [11:24:42]Read from MH i2c: E2 62 00 24 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 90 A3 00 00 0E 04 04 00 AB 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 64 [11:24: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 90 A3 00 00 0E 04 04 00 AB 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 [11:24:42]wFMCommunicate OK [11:24:42]SAM_PROTO_GetFieldsCounters done [11:24:42]requested_item shift.num is exist - process it [11:24:42]requested_item shift.opened is exist - process it [11:24:42]req_shift_opened [11:24:42]FM_GetShiftState [11:24:42]SAM_PROTO_GetShiftState [11:24:42]wFMCommunicate request_size=4 [11:24:42]MH_SAM_APDU [11:24:42]CAPDU: 80 13 01 00 [11:24:42]Write to MH i2c: E2 08 00 25 04 80 13 01 00 00 00 00 00 A6 [11:24:42]Write i2c OK [11:24:42]MH_I2C_Read... [11:24:42]Read from MH i2c: E2 [11:24:42]MH_I2C_Read... [11:24:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:24:42]Read from MH i2c: E2 0E 00 [11:24:42]MH_I2C_Read... [11:24:42]Read from MH i2c: E2 0E 00 25 04 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 42 [11:24:42]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [11:24:42]wFMCommunicate OK [11:24:42]SAM_PROTO_GetShiftState done [11:24:42]FM_GetShiftState done [11:24:42]req_shift_opened done [11:24:42]requested_item shift.open_date is exist - process it [11:24:42]req_shift_open_date [11:24:42]req_shift_open_date done [11:24:42]produce_requested_data done [11:24:42]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41872,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [11:24:42]process_action_free close_receipt [11:24:42]json_value_free [11:24:42]json_value_free done [11:24:42]process_json_proto returns [11:24:42]Send response to host [11:24:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41872,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [11:24:42]free response buf [11:24:42]execute_script done [11:24:42]execute_script returns [11:24:42]free content buf [11:24:42]Sock 8.Close socket [11:24:42]Sock 8.Thread stoped [11:24: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 35 38 4F 00 00 00 0A CA 47 00 89 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 35 38 10 04 04 00 90 A3 00 00 F4 03 04 00 0E 28 A7 66 B6 04 01 00 00 F7 D7 68 69 9C 76 32 91 [11:24:43]CommunicateWithHost err = 0 [11:24:43]CheckOFDResponse [11:24:43]1017 (14) - 77093643461234 [11:24:43]1041 (16) - 0000000000874958 [11:24:43]1040 (4) - 41872 [11:24:43]1012 (4) - 29.07.2024 05:26 [11:24:43]1206 (1) - 0 [11:24:43]OFD Sender: Remove packet 41872 [11:24:43]ProducePacketName [11:24:43]name=ofd_packets/00041872 [11:24:43]NVStorageDeleteData [11:24:43]OFD Sender: No OFD packet to send [11:24:48]OFD Sender: No OFD packet to send [11:24:53]OFD Sender: No OFD packet to send [11:24:58]OFD Sender: No OFD packet to send [11:25:03]OFD Sender: No OFD packet to send [11:25:08]OFD Sender: No OFD packet to send [11:25:13]OFD Sender: No OFD packet to send [11:25:18]OFD Sender: No OFD packet to send [11:25:23]OFD Sender: No OFD packet to send [11:25:28]OFD Sender: No OFD packet to send [11:25:33]OFD Sender: No OFD packet to send [11:25:38]OFD Sender: No OFD packet to send [11:25:43]OFD Sender: No OFD packet to send [11:25:48]OFD Sender: No OFD packet to send [11:25:53]OFD Sender: No OFD packet to send [11:25:58]OFD Sender: No OFD packet to send [11:26:03]OFD Sender: No OFD packet to send [11:26:08]OFD Sender: No OFD packet to send [11:26:13]OFD Sender: No OFD packet to send [11:26:18]OFD Sender: No OFD packet to send [11:26:23]OFD Sender: No OFD packet to send [11:26:28]OFD Sender: No OFD packet to send [11:26:33]OFD Sender: No OFD packet to send [11:26:38]OFD Sender: No OFD packet to send [11:26:43]OFD Sender: No OFD packet to send [11:26:48]OFD Sender: No OFD packet to send [11:26:53]accept exits with 10 [11:26:53]New connection [11:26:53]New thread 3066903908 created [11:26:53]Thread 3066760548 joined [11:26:53]Waiting for new connection... [11:26:53] Sock 10.Parse request [11:26:53]Sock 10.Check first char [11:26:53]Sock 10.First char is OK [11:26:53]request: POST /json_proto HTTP/1.0 [11:26:53]Method: POST [11:26:53]URL: /json_proto [11:26:53]Method is POST - this is cgi request [11:26:53]url: /json_proto [11:26:53]query_string will be loaded in cgi processing [11:26:53]execute_cgi json_proto POST (null) [11:26:53]execute_cgi path=json_proto method=POST [11:26:53]POST find Content-Length [11:26:53]Host: 172.17.43.132:8080 [11:26:53]Content-Length: 622 [11:26:53]Content-Type: application/json [11:26:53] [11:26:53]POST finish read [11:26:53]Found Content-Length = 622 [11:26:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183901", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:26:53]execute_script... [11:26:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183901", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:26:53]POST & json_proto [11:26:53]process_json_proto [11:26:53]json parsed OK: [11:26:53]protocol is kg_v1.0 [11:26:53]action value=close_receipt [11:26:53]process_action close_receipt [11:26:53]cmd_close_receipt [11:26:53]MH_GetDate [11:26:53]Write to MH i2c: F0 00 00 26 04 19 [11:26:53]Write i2c OK [11:26:53]MH_I2C_Read... [11:26:53]Read from MH i2c: F0 [11:26:53]MH_I2C_Read... [11:26:53]Read from MH i2c: F0 09 00 [11:26:53]MH_I2C_Read... [11:26:53]Read from MH i2c: F0 09 00 26 04 00 7E 7C A7 66 F8 53 A7 66 81 [11:26:53]GetLastDocTimeStamp 1722252279 [11:26:53]current date 1722252414 [11:26:53]FM_GetShiftState [11:26:53]SAM_PROTO_GetShiftState [11:26:53]wFMCommunicate request_size=4 [11:26:53]MH_SAM_APDU [11:26:53]CAPDU: 80 13 01 00 [11:26:53]Write to MH i2c: E2 08 00 27 04 80 13 01 00 00 00 00 00 A8 [11:26:53]Write i2c OK [11:26:53]MH_I2C_Read... [11:26:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:53]Read from MH i2c: E2 [11:26:53]MH_I2C_Read... [11:26:53]Read from MH i2c: E2 0E 00 [11:26:53]MH_I2C_Read... [11:26:53]Read from MH i2c: E2 0E 00 27 04 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 44 [11:26:53]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [11:26:53]wFMCommunicate OK [11:26:53]SAM_PROTO_GetShiftState done [11:26:53]FM_GetShiftState done [11:26:53]opened in 1722211496 [11:26:53]opened+sec_in_day 1722297896 [11:26:53]quantity*price = 15100 [11:26:53]sum+1 = 15101 [11:26:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 151.00 НСП 1% : 1.34 НДС 12% : 16.03 Наличными: 151.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 62 29.07.2024 11:26 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41873 ФПД: 136330382791789 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T112654&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41873&fm=136330382791789&tin=02508201610067®Number=0000000000092626&sum=15100 0 [11:26:54]StoreToDocumentArchive [11:26:54]shift 427 fd 41873 [11:26:54]save to /storage/0427/doc_00041873 [11:26:54]save last doc name /storage/0427/doc_00041873 to /storage/kkm_last_doc_name [11:26:54]save OK [11:26:54]Clear old archive folders... [11:26:54]ProcessDocumentItem done err = 0, tmpTLVsize=274 [11:26:54]tlvbuf is 0092D2C0 [11:26:54]SAM_PROTO_ClearQueue [11:26:54]wFMCommunicate request_size=4 [11:26:54]MH_SAM_APDU [11:26:54]CAPDU: 80 09 00 00 [11:26:54]Write to MH i2c: E2 08 00 34 04 80 09 00 00 00 00 00 00 AA [11:26:54]Write i2c OK [11:26:54]MH_I2C_Read... [11:26:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:26:54]Read from MH i2c: E2 [11:26:54]MH_I2C_Read... [11:26:54]Read from MH i2c: E2 03 00 [11:26:54]MH_I2C_Read... [11:26:54]Read from MH i2c: E2 03 00 34 04 00 90 00 AC [11:26:54]RAPDU: 90 00 [11:26:54]wFMCommunicate OK [11:26:54]SAM_PROTO_ClearQueue done [11:26:54]KKMCreateOFDPacket [11:26:54]OFDProtocolAddRootSTLVToBuf [11:26:54]FM_MakeSignedData [11:26:54]FM_MakeSignedData [11:26:54]SAM_PROTO_SignData [11:26:54]wFMCommunicate request_size=4 [11:26:54]MH_SAM_APDU [11:26:54]CAPDU: 80 0D 01 02 [11:26:54]Write to MH i2c: E2 08 00 35 04 80 0D 01 02 00 00 00 00 B2 [11:26:54]Write i2c OK [11:26:54]MH_I2C_Read... [11:26:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:26:54]Read from MH i2c: E2 [11:26:54]MH_I2C_Read... [11:26:54]Read from MH i2c: E2 03 00 [11:26:54]MH_I2C_Read... [11:26:54]Read from MH i2c: E2 03 00 35 04 00 90 00 AD [11:26:54]RAPDU: 90 00 [11:26:54]wFMCommunicate OK [11:26:54]wFMCommunicate request_size=255 [11:26:54]MH_SAM_APDU [11:26:54]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 7E 7C A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 [11:26:54]Write to MH i2c: E2 02 01 36 04 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 7E 7C A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 00 00 6C [11:26:54]Write i2c OK [11:26:54]MH_I2C_Read... [11:26:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:55]Read from MH i2c: E2 [11:26:55]MH_I2C_Read... [11:26:55]Read from MH i2c: E2 03 00 [11:26:55]MH_I2C_Read... [11:26:55]Read from MH i2c: E2 03 00 36 04 00 90 00 AE [11:26:55]RAPDU: 90 00 [11:26:55]wFMCommunicate OK [11:26:55]wFMCommunicate request_size=33 [11:26:55]MH_SAM_APDU [11:26:55]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 39 35 38 10 04 04 00 91 A3 00 00 35 04 06 00 7B FD E4 09 D4 6D [11:26:55]Write to MH i2c: E2 24 00 37 04 80 0D 02 02 1C 00 30 30 30 30 38 37 34 39 35 38 10 04 04 00 91 A3 00 00 35 04 06 00 7B FD E4 09 D4 6D 00 00 27 [11:26:55]Write i2c OK [11:26:55]MH_I2C_Read... [11:26:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:55]Read from MH i2c: E2 [11:26:55]MH_I2C_Read... [11:26:55]Read from MH i2c: E2 03 00 [11:26:55]MH_I2C_Read... [11:26:55]Read from MH i2c: E2 03 00 37 04 00 90 00 AF [11:26:55]RAPDU: 90 00 [11:26:55]wFMCommunicate OK [11:26:55]wFMCommunicate request_size=4 [11:26:55]MH_SAM_APDU [11:26:55]CAPDU: 80 0D 03 02 [11:26:55]Write to MH i2c: E2 08 00 38 04 80 0D 03 02 00 00 00 00 B7 [11:26:55]Write i2c OK [11:26:55]MH_I2C_Read... [11:26:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:26:55]Read from MH i2c: E2 [11:26:55]MH_I2C_Read... [11:26:55]Read from MH i2c: E2 0B 00 [11:26:55]MH_I2C_Read... [11:26:55]Read from MH i2c: E2 0B 00 38 04 00 F8 77 61 B0 E8 7B E2 02 90 00 7F [11:26:55]RAPDU: F8 77 61 B0 E8 7B E2 02 90 00 [11:26:55]wFMCommunicate OK [11:26:55]SAM_PROTO_SignData done [11:26:55]FM_MakeSignedData done [11:26:55]CreateOFDProtocolMessage [11:26:55]wFMCommunicate request_size=4 [11:26:55]MH_SAM_APDU [11:26:55]CAPDU: 80 11 00 00 [11:26:55]Write to MH i2c: E2 08 00 39 04 80 11 00 00 00 00 00 00 B7 [11:26:55]Write i2c OK [11:26:55]MH_I2C_Read... [11:26:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:55]Read from MH i2c: E2 [11:26:55]MH_I2C_Read... [11:26:55]Read from MH i2c: E2 17 00 [11:26:55]MH_I2C_Read... [11:26:55]Read from MH i2c: E2 17 00 39 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 13 [11:26:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [11:26:55]wFMCommunicate OK [11:26:55]CreateOFDProtocolMessage done [11:26:55]OFDSenderStorePacket 41873 [11:26:55]StoreOFDPacket docnum=41873 [11:26:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 26 01 00 00 EA 93 1E 01 CE 21 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 7E 7C A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 91 A3 00 00 35 04 06 00 7B FD E4 09 D4 6D F8 77 61 B0 E8 7B E2 02 [11:26:55]CheckFolder [11:26:55]dirname=/storage/ofd_packets [11:26:55]CheckFolder done [11:26:55]ProducePacketName [11:26:55]name=ofd_packets/00041873 [11:26:55]NVStorageSaveData ofd_packets/00041873 [11:26:55]File name is /storage/ofd_packets/00041873 [11:26:55]Write 324 bytes [11:26:55]NVStorageSaveData done [11:26:55]OFDSenderStorePacket done [11:26:55]KKMCreateOFDPacket done [11:26:55]NVStorageSaveData kkm_last_timestamp [11:26:55]File name is /storage/kkm_last_timestamp [11:26:55]Write 4 bytes [11:26:55]NVStorageSaveData done [11:26:55]ExternCall_PrintAddStr [11:26:55]wPrintStart [11:26:55]Write to MH i2c: 01 00 00 3A 04 3E [11:26:55]Write i2c OK [11:26:55]MH_I2C_Read... [11:26:55]Read from MH i2c: 01 [11:26:55]MH_I2C_Read... [11:26:55]Read from MH i2c: 01 07 00 [11:26:55]MH_I2C_Read... [11:26:55]Read from MH i2c: 01 07 00 3A 04 00 00 00 00 00 FF 0F 53 [11:26:55]RasterBufferAndPrint [11:26:55]line Счет N : (3)183901 [11:26:55]line ИНН: 02508201610067 [11:26:55]line Контрольно-Кассовый Чек [11:26:55]line ПРОДАЖА [11:26:55]line Товар: 48741958 [11:26:55]line Сигареты Parliament Aqua Blue [11:26:55]line 1.000 * 151.00 [11:26:55]line = 151.00 [11:26:55]line НДС 12% НСП 1% [11:26:55]line > о реализуемом товаре [11:26:55]line ИТОГО: 151.00 [11:26:55]line НСП 1% : 1.34 [11:26:55]line НДС 12% : 16.03 [11:26:55]line Наличными: 151.00 [11:26:55]line Безнал.: 0.00 [11:26:55]line Место: АЗС № 97 "Партнер Нефть" [11:26:55]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [11:26:55]line СНО: Общий режим [11:26:55]line Чек 62 29.07.2024 11:26 [11:26:55]line Смена: 427 ФФД: 1.0 [11:26:55]line ЗНМ: 0300000053 [11:26:55]line РНМ: 0000000000092626 [11:26:55]line Версия ККМ: 001 [11:26:55]line ФМ: 0000000000874958 [11:26:55]line ФД: 41873 [11:26:55]line ФПД: 136330382791789 [11:26:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T112654&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41873&fm=136330382791789&tin=02508201610067®Number=0000000000092626&sum=15100 [11:26:55]line 0 [11:26:55]OFD Sender: Processing packet 41873 [packets to send 57, broken 56] [11:26:55]ProducePacketName [11:26:55]name=ofd_packets/00041873 [11:26:55]OFD Sender: To server: pG, [11:26:55]CommunicateWithHost lk.salyk.kg:30040 [11:26:55]ConnectInit lk.salyk.kg [11:26:55]written 0, free lines is 4095 [11:26:56]Write to MH i2c: 01 00 00 63 04 67 [11:26:56]Write i2c OK [11:26:56]MH_I2C_Read... [11:26:56]Read from MH i2c: 01 [11:26:56]MH_I2C_Read... [11:26:56]Read from MH i2c: 01 07 00 [11:26:56]MH_I2C_Read... [11:26:56]Read from MH i2c: 01 07 00 63 04 00 00 00 00 00 ED 0C 67 [11:26:56]RasterBufferAndPrint [11:26:56]line [11:26:56]line [11:26:56]line [11:26:56]line [11:26:56]line [11:26:56]written 0, free lines is 3315 [11:26:56]MH_Cut [11:26:56]Write to MH i2c: D1 01 00 6A 04 01 40 [11:26:56]Write i2c OK [11:26:56]MH_I2C_Read... [11:26:56]Read from MH i2c: D1 [11:26:56]MH_I2C_Read... [11:26:56]Read from MH i2c: D1 01 00 [11:26:56]MH_I2C_Read... [11:26:56]Read from MH i2c: D1 01 00 6A 04 00 3F [11:26:56]Write to MH i2c: 01 00 00 6B 04 6F [11:26:56]Write i2c OK [11:26:56]MH_I2C_Read... [11:26:56]*** Cut start [11:26:56]*** Partial cut [11:26:56]*** CUTSNS_PIN = 1 [11:26:56]Connected sock=8 [11:26: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 35 38 26 01 00 00 EA 93 1E 01 CE 21 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 7E 7C A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 91 A3 00 00 35 04 06 00 7B FD E4 09 D4 6D F8 77 61 B0 E8 7B E2 02 [11:26:56]*** CUTSNS_PIN = 0 [11:26:57]*** Brake cut motor [11:26:57]Read from MH i2c: 01 [11:26:57]MH_I2C_Read... [11:26:57]*** Stop cut motor [11:26:57]*** Cut end [11:26:57]Read from MH i2c: 01 07 00 [11:26:57]MH_I2C_Read... [11:26:57]Read from MH i2c: 01 07 00 6B 04 00 00 00 00 00 FF 0F 84 [11:26:57]process_action close_receipt done [11:26:57]requested_data is exist [11:26:57]produce_requested_data [11:26:57]requested_item fm.sn is exist - process it [11:26:57]wFMCommunicate request_size=4 [11:26:57]MH_SAM_APDU [11:26:57]CAPDU: 80 11 00 00 [11:26:57]Write to MH i2c: E2 08 00 6C 04 80 11 00 00 00 00 00 00 EA [11:26:57]Write i2c OK [11:26:57]MH_I2C_Read... [11:26:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:57]Read from MH i2c: E2 [11:26:57]MH_I2C_Read... [11:26:57]Read from MH i2c: E2 17 00 [11:26:57]MH_I2C_Read... [11:26:57]Read from MH i2c: E2 17 00 6C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 46 [11:26:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [11:26:57]wFMCommunicate OK [11:26:57]requested_item fd.num is exist - process it [11:26:57]SAM_PROTO_GetFieldsCounters [11:26:57]wFMCommunicate request_size=4 [11:26:57]MH_SAM_APDU [11:26:57]CAPDU: 80 13 00 00 [11:26:57]Write to MH i2c: E2 08 00 6D 04 80 13 00 00 00 00 00 00 ED [11:26:57]Write i2c OK [11:26:57]MH_I2C_Read... [11:26:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:26:57]Read from MH i2c: E2 [11:26:57]MH_I2C_Read... [11:26:57]Read from MH i2c: E2 62 00 [11:26:57]MH_I2C_Read... [11:26:57]Read from MH i2c: E2 62 00 6D 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 91 A3 00 00 0E 04 04 00 AB 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 B1 [11:26: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 91 A3 00 00 0E 04 04 00 AB 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 [11:26:57]wFMCommunicate OK [11:26:57]SAM_PROTO_GetFieldsCounters done [11:26:57]requested_item shift.num is exist - process it [11:26:57]requested_item shift.opened is exist - process it [11:26:57]req_shift_opened [11:26:57]FM_GetShiftState [11:26:57]SAM_PROTO_GetShiftState [11:26:57]wFMCommunicate request_size=4 [11:26:57]MH_SAM_APDU [11:26:57]CAPDU: 80 13 01 00 [11:26:57]Write to MH i2c: E2 08 00 6E 04 80 13 01 00 00 00 00 00 EF [11:26:57]Write i2c OK [11:26:57]MH_I2C_Read... [11:26:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:57]Read from MH i2c: E2 [11:26:57]MH_I2C_Read... [11:26:57]Read from MH i2c: E2 0E 00 [11:26:57]MH_I2C_Read... [11:26:57]Read from MH i2c: E2 0E 00 6E 04 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 8B [11:26:57]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [11:26:57]wFMCommunicate OK [11:26:57]SAM_PROTO_GetShiftState done [11:26:57]FM_GetShiftState done [11:26:57]req_shift_opened done [11:26:57]requested_item shift.open_date is exist - process it [11:26:57]req_shift_open_date [11:26:57]req_shift_open_date done [11:26:57]produce_requested_data done [11:26:57]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41873,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [11:26:57]process_action_free close_receipt [11:26:57]json_value_free [11:26:57]json_value_free done [11:26:57]process_json_proto returns [11:26:57]Send response to host [11:26:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41873,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [11:26:57]free response buf [11:26:57]execute_script done [11:26:57]execute_script returns [11:26:57]free content buf [11:26:57]Sock 10.Close socket [11:26:57]Sock 10.Thread stoped [11:26: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 35 38 4F 00 00 00 2F FB 47 00 F3 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 35 38 10 04 04 00 91 A3 00 00 F4 03 04 00 94 28 A7 66 B6 04 01 00 00 BF 3D B4 8D B5 69 8A 79 [11:26:57]CommunicateWithHost err = 0 [11:26:57]CheckOFDResponse [11:26:57]1017 (14) - 77093643461234 [11:26:57]1041 (16) - 0000000000874958 [11:26:57]1040 (4) - 41873 [11:26:57]1012 (4) - 29.07.2024 05:28 [11:26:57]1206 (1) - 0 [11:26:57]OFD Sender: Remove packet 41873 [11:26:57]ProducePacketName [11:26:57]name=ofd_packets/00041873 [11:26:57]NVStorageDeleteData [11:26:58]OFD Sender: No OFD packet to send [11:27:03]OFD Sender: No OFD packet to send [11:27:08]OFD Sender: No OFD packet to send [11:27:13]OFD Sender: No OFD packet to send [11:27:18]OFD Sender: No OFD packet to send [11:27:23]OFD Sender: No OFD packet to send [11:27:28]OFD Sender: No OFD packet to send [11:27:29]accept exits with 9 [11:27:29]New connection [11:27:29]New thread 3066760548 created [11:27:29]Thread 3066903908 joined [11:27:29]Waiting for new connection... [11:27:29] Sock 9.Parse request [11:27:29]Sock 9.Check first char [11:27:29]Sock 9.First char is OK [11:27:29]request: POST /json_proto HTTP/1.0 [11:27:29]Method: POST [11:27:29]URL: /json_proto [11:27:29]Method is POST - this is cgi request [11:27:29]url: /json_proto [11:27:29]query_string will be loaded in cgi processing [11:27:29]execute_cgi json_proto POST (null) [11:27:29]execute_cgi path=json_proto method=POST [11:27:29]POST find Content-Length [11:27:29]Host: 172.17.43.132:8080 [11:27:29]Content-Length: 690 [11:27:29]Content-Type: application/json [11:27:29] [11:27:29]POST finish read [11:27:29]Found Content-Length = 690 [11:27:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183902", "tax_sys" : 0, "items" : [ { "code": "4870202521247", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043F\u0435\u0440\u0441\u0438\u043A", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:27:29]execute_script... [11:27:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183902", "tax_sys" : 0, "items" : [ { "code": "4870202521247", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043F\u0435\u0440\u0441\u0438\u043A", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:27:29]POST & json_proto [11:27:29]process_json_proto [11:27:29]json parsed OK: [11:27:29]protocol is kg_v1.0 [11:27:29]action value=close_receipt [11:27:29]process_action close_receipt [11:27:29]cmd_close_receipt [11:27:29]MH_GetDate [11:27:29]Write to MH i2c: F0 00 00 6F 04 62 [11:27:29]Write i2c OK [11:27:29]MH_I2C_Read... [11:27:29]Read from MH i2c: F0 [11:27:29]MH_I2C_Read... [11:27:29]Read from MH i2c: F0 09 00 [11:27:29]MH_I2C_Read... [11:27:29]Read from MH i2c: F0 09 00 6F 04 00 A2 7C A7 66 F8 53 A7 66 EE [11:27:29]GetLastDocTimeStamp 1722252414 [11:27:29]current date 1722252450 [11:27:29]FM_GetShiftState [11:27:29]SAM_PROTO_GetShiftState [11:27:29]wFMCommunicate request_size=4 [11:27:29]MH_SAM_APDU [11:27:29]CAPDU: 80 13 01 00 [11:27:29]Write to MH i2c: E2 08 00 70 04 80 13 01 00 00 00 00 00 F1 [11:27:29]Write i2c OK [11:27:29]MH_I2C_Read... [11:27:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:29]Read from MH i2c: E2 [11:27:29]MH_I2C_Read... [11:27:29]Read from MH i2c: E2 0E 00 [11:27:29]MH_I2C_Read... [11:27:29]Read from MH i2c: E2 0E 00 70 04 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 8D [11:27:29]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [11:27:29]wFMCommunicate OK [11:27:29]SAM_PROTO_GetShiftState done [11:27:29]FM_GetShiftState done [11:27:29]opened in 1722211496 [11:27:29]opened+sec_in_day 1722297896 [11:27:29]quantity*price = 12500 [11:27:29]sum+1 = 12501 [11:27:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 63 29.07.2024 11:27 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41874 ФПД: 252880566757861 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T112730&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41874&fm=252880566757861&tin=02508201610067®Number=0000000000092626&sum=12500 0 [11:27:30]StoreToDocumentArchive [11:27:30]shift 427 fd 41874 [11:27:30]save to /storage/0427/doc_00041874 [11:27:30]save last doc name /storage/0427/doc_00041874 to /storage/kkm_last_doc_name [11:27:30]save OK [11:27:30]Clear old archive folders... [11:27:30]ProcessDocumentItem done err = 0, tmpTLVsize=294 [11:27:30]tlvbuf is 0080F300 [11:27:30]SAM_PROTO_ClearQueue [11:27:30]wFMCommunicate request_size=4 [11:27:30]MH_SAM_APDU [11:27:30]CAPDU: 80 09 00 00 [11:27:30]Write to MH i2c: E2 08 00 7D 04 80 09 00 00 00 00 00 00 F3 [11:27:30]Write i2c OK [11:27:30]MH_I2C_Read... [11:27:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:27:30]Read from MH i2c: E2 [11:27:30]MH_I2C_Read... [11:27:30]Read from MH i2c: E2 03 00 [11:27:30]MH_I2C_Read... [11:27:30]Read from MH i2c: E2 03 00 7D 04 00 90 00 F5 [11:27:30]RAPDU: 90 00 [11:27:30]wFMCommunicate OK [11:27:30]SAM_PROTO_ClearQueue done [11:27:30]KKMCreateOFDPacket [11:27:30]OFDProtocolAddRootSTLVToBuf [11:27:30]FM_MakeSignedData [11:27:30]FM_MakeSignedData [11:27:30]SAM_PROTO_SignData [11:27:30]wFMCommunicate request_size=4 [11:27:30]MH_SAM_APDU [11:27:30]CAPDU: 80 0D 01 02 [11:27:30]Write to MH i2c: E2 08 00 7E 04 80 0D 01 02 00 00 00 00 FB [11:27:30]Write i2c OK [11:27:30]MH_I2C_Read... [11:27:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:27:30]Read from MH i2c: E2 [11:27:30]MH_I2C_Read... [11:27:30]Read from MH i2c: E2 03 00 [11:27:30]MH_I2C_Read... [11:27:30]Read from MH i2c: E2 03 00 7E 04 00 90 00 F6 [11:27:30]RAPDU: 90 00 [11:27:30]wFMCommunicate OK [11:27:30]wFMCommunicate request_size=255 [11:27:30]MH_SAM_APDU [11:27:30]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 A2 7C A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [11:27:30]Write to MH i2c: E2 02 01 7F 04 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 A2 7C A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 94 [11:27:31]Write i2c OK [11:27:31]MH_I2C_Read... [11:27:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:31]Read from MH i2c: E2 [11:27:31]MH_I2C_Read... [11:27:31]Read from MH i2c: E2 03 00 [11:27:31]MH_I2C_Read... [11:27:31]Read from MH i2c: E2 03 00 7F 04 00 90 00 F7 [11:27:31]RAPDU: 90 00 [11:27:31]wFMCommunicate OK [11:27:31]wFMCommunicate request_size=53 [11:27:31]MH_SAM_APDU [11:27:31]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 92 A3 00 00 35 04 06 00 E5 FE 58 5A 29 E5 [11:27:31]Write to MH i2c: E2 38 00 80 04 80 0D 02 02 30 00 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 92 A3 00 00 35 04 06 00 E5 FE 58 5A 29 E5 00 00 D4 [11:27:31]Write i2c OK [11:27:31]MH_I2C_Read... [11:27:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:31]Read from MH i2c: E2 [11:27:31]MH_I2C_Read... [11:27:31]Read from MH i2c: E2 03 00 [11:27:31]MH_I2C_Read... [11:27:31]Read from MH i2c: E2 03 00 80 04 00 90 00 F8 [11:27:31]RAPDU: 90 00 [11:27:31]wFMCommunicate OK [11:27:31]wFMCommunicate request_size=4 [11:27:31]MH_SAM_APDU [11:27:31]CAPDU: 80 0D 03 02 [11:27:31]Write to MH i2c: E2 08 00 81 04 80 0D 03 02 00 00 00 00 00 [11:27:31]Write i2c OK [11:27:31]MH_I2C_Read... [11:27:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:27:31]Read from MH i2c: E2 [11:27:31]MH_I2C_Read... [11:27:31]Read from MH i2c: E2 0B 00 [11:27:31]MH_I2C_Read... [11:27:31]Read from MH i2c: E2 0B 00 81 04 00 24 53 0E A6 99 D9 45 67 90 00 4A [11:27:31]RAPDU: 24 53 0E A6 99 D9 45 67 90 00 [11:27:31]wFMCommunicate OK [11:27:31]SAM_PROTO_SignData done [11:27:31]FM_MakeSignedData done [11:27:31]CreateOFDProtocolMessage [11:27:31]wFMCommunicate request_size=4 [11:27:31]MH_SAM_APDU [11:27:31]CAPDU: 80 11 00 00 [11:27:31]Write to MH i2c: E2 08 00 82 04 80 11 00 00 00 00 00 00 00 [11:27:31]Write i2c OK [11:27:31]MH_I2C_Read... [11:27:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:31]Read from MH i2c: E2 [11:27:31]MH_I2C_Read... [11:27:31]Read from MH i2c: E2 17 00 [11:27:31]MH_I2C_Read... [11:27:31]Read from MH i2c: E2 17 00 82 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 5C [11:27:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [11:27:31]wFMCommunicate OK [11:27:31]CreateOFDProtocolMessage done [11:27:31]OFDSenderStorePacket 41874 [11:27:31]StoreOFDPacket docnum=41874 [11:27:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 3A 01 00 00 0F F5 32 01 62 1D 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 A2 7C A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 92 A3 00 00 35 04 06 00 E5 FE 58 5A 29 E5 24 53 0E A6 99 D9 45 67 [11:27:31]CheckFolder [11:27:31]dirname=/storage/ofd_packets [11:27:31]CheckFolder done [11:27:31]ProducePacketName [11:27:31]name=ofd_packets/00041874 [11:27:31]NVStorageSaveData ofd_packets/00041874 [11:27:31]File name is /storage/ofd_packets/00041874 [11:27:31]Write 344 bytes [11:27:31]NVStorageSaveData done [11:27:31]OFDSenderStorePacket done [11:27:31]KKMCreateOFDPacket done [11:27:31]NVStorageSaveData kkm_last_timestamp [11:27:31]File name is /storage/kkm_last_timestamp [11:27:31]Write 4 bytes [11:27:31]NVStorageSaveData done [11:27:31]ExternCall_PrintAddStr [11:27:31]wPrintStart [11:27:31]Write to MH i2c: 01 00 00 83 04 87 [11:27:31]Write i2c OK [11:27:31]MH_I2C_Read... [11:27:31]Read from MH i2c: 01 [11:27:31]MH_I2C_Read... [11:27:31]Read from MH i2c: 01 07 00 [11:27:31]MH_I2C_Read... [11:27:31]Read from MH i2c: 01 07 00 83 04 00 00 00 00 00 FF 0F 9C [11:27:31]RasterBufferAndPrint [11:27:31]line Счет N : (3)183902 [11:27:31]line ИНН: 02508201610067 [11:27:31]line Контрольно-Кассовый Чек [11:27:31]line ПРОДАЖА [11:27:31]line Товар: 4870202521247 [11:27:31]line Напиток MAXI чай 1,2 черн.персик [11:27:31]line 1.000 * 125.00 [11:27:31]line = 125.00 [11:27:31]line НДС 12% НСП 1% [11:27:31]line > о реализуемом товаре [11:27:31]line ИТОГО: 125.00 [11:27:31]line НСП 1% : 1.11 [11:27:31]line НДС 12% : 13.27 [11:27:31]line Наличными: 125.00 [11:27:31]line Безнал.: 0.00 [11:27:31]line Место: АЗС № 97 "Партнер Нефть" [11:27:31]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [11:27:31]line СНО: Общий режим [11:27:31]line Чек 63 29.07.2024 11:27 [11:27:31]line Смена: 427 ФФД: 1.0 [11:27:31]line ЗНМ: 0300000053 [11:27:31]line РНМ: 0000000000092626 [11:27:31]line Версия ККМ: 001 [11:27:31]line ФМ: 0000000000874958 [11:27:31]line ФД: 41874 [11:27:31]line ФПД: 252880566757861 [11:27:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T112730&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41874&fm=252880566757861&tin=02508201610067®Number=0000000000092626&sum=12500 [11:27:31]OFD Sender: Processing packet 41874 [packets to send 57, broken 56] [11:27:31]ProducePacketName [11:27:31]name=ofd_packets/00041874 [11:27:31]OFD Sender: To server: pG, [11:27:31]CommunicateWithHost lk.salyk.kg:30040 [11:27:31]ConnectInit lk.salyk.kg [11:27:31]line 0 [11:27:31]written 0, free lines is 4095 [11:27:32]Write to MH i2c: 01 00 00 AC 04 B0 [11:27:32]Write i2c OK [11:27:32]MH_I2C_Read... [11:27:32]Read from MH i2c: 01 [11:27:32]MH_I2C_Read... [11:27:32]Read from MH i2c: 01 07 00 [11:27:32]MH_I2C_Read... [11:27:32]Read from MH i2c: 01 07 00 AC 04 00 00 00 00 00 FF 0C C2 [11:27:32]RasterBufferAndPrint [11:27:32]line [11:27:32]line [11:27:32]line [11:27:32]line [11:27:32]line [11:27:32]written 0, free lines is 3332 [11:27:32]MH_Cut [11:27:32]Write to MH i2c: D1 01 00 B3 04 01 89 [11:27:32]Write i2c OK [11:27:32]MH_I2C_Read... [11:27:32]Read from MH i2c: D1 [11:27:32]MH_I2C_Read... [11:27:32]Read from MH i2c: D1 01 00 [11:27:32]MH_I2C_Read... [11:27:32]Read from MH i2c: D1 01 00 B3 04 00 88 [11:27:32]Write to MH i2c: 01 00 00 B4 04 B8 [11:27:32]Write i2c OK [11:27:32]MH_I2C_Read... [11:27:32]Connected sock=10 [11:27: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 35 38 3A 01 00 00 0F F5 32 01 62 1D 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 A2 7C A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 92 A3 00 00 35 04 06 00 E5 FE 58 5A 29 E5 24 53 0E A6 99 D9 45 67 [11:27:32]*** Cut start [11:27:32]*** Partial cut [11:27:32]*** CUTSNS_PIN = 1 [11:27: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 35 38 4F 00 00 00 35 74 47 00 54 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 92 A3 00 00 F4 03 04 00 B7 28 A7 66 B6 04 01 00 00 06 9A 09 FF 47 87 61 6F [11:27:32]CommunicateWithHost err = 0 [11:27:32]CheckOFDResponse [11:27:32]1017 (14) - 77093643461234 [11:27:32]1041 (16) - 0000000000874958 [11:27:32]1040 (4) - 41874 [11:27:32]1012 (4) - 29.07.2024 05:29 [11:27:32]1206 (1) - 0 [11:27:32]OFD Sender: Remove packet 41874 [11:27:32]ProducePacketName [11:27:32]name=ofd_packets/00041874 [11:27:32]NVStorageDeleteData [11:27:32]*** CUTSNS_PIN = 0 [11:27:33]*** Brake cut motor [11:27:33]OFD Sender: No OFD packet to send [11:27:33]Read from MH i2c: 01 [11:27:33]MH_I2C_Read... [11:27:33]*** Stop cut motor [11:27:33]*** Cut end [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 B4 04 00 00 00 00 00 FF 0F CD [11:27:33]process_action close_receipt done [11:27:33]requested_data is exist [11:27:33]produce_requested_data [11:27:33]requested_item fm.sn is exist - process it [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 B5 04 80 11 00 00 00 00 00 00 33 [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 B5 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 8F [11:27:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [11:27:33]wFMCommunicate OK [11:27:33]requested_item fd.num is exist - process it [11:27:33]SAM_PROTO_GetFieldsCounters [11:27:33]wFMCommunicate request_size=4 [11:27:33]MH_SAM_APDU [11:27:33]CAPDU: 80 13 00 00 [11:27:33]Write to MH i2c: E2 08 00 B6 04 80 13 00 00 00 00 00 00 36 [11:27:33]Write i2c OK [11:27:33]MH_I2C_Read... [11:27:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:27:33]Read from MH i2c: E2 [11:27:33]MH_I2C_Read... [11:27:33]Read from MH i2c: E2 62 00 [11:27:33]MH_I2C_Read... [11:27:33]Read from MH i2c: E2 62 00 B6 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 92 A3 00 00 0E 04 04 00 AB 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 FE [11:27:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 92 A3 00 00 0E 04 04 00 AB 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 [11:27:33]wFMCommunicate OK [11:27:33]SAM_PROTO_GetFieldsCounters done [11:27:33]requested_item shift.num is exist - process it [11:27:33]requested_item shift.opened is exist - process it [11:27:33]req_shift_opened [11:27:33]FM_GetShiftState [11:27:33]SAM_PROTO_GetShiftState [11:27:33]wFMCommunicate request_size=4 [11:27:33]MH_SAM_APDU [11:27:33]CAPDU: 80 13 01 00 [11:27:33]Write to MH i2c: E2 08 00 B7 04 80 13 01 00 00 00 00 00 38 [11:27:33]Write i2c OK [11:27:33]MH_I2C_Read... [11:27:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:33]Read from MH i2c: E2 [11:27:33]MH_I2C_Read... [11:27:33]Read from MH i2c: E2 0E 00 [11:27:33]MH_I2C_Read... [11:27:33]Read from MH i2c: E2 0E 00 B7 04 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 D4 [11:27:33]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [11:27:33]wFMCommunicate OK [11:27:33]SAM_PROTO_GetShiftState done [11:27:33]FM_GetShiftState done [11:27:33]req_shift_opened done [11:27:33]requested_item shift.open_date is exist - process it [11:27:33]req_shift_open_date [11:27:33]req_shift_open_date done [11:27:33]produce_requested_data done [11:27:33]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41874,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [11:27:33]process_action_free close_receipt [11:27:33]json_value_free [11:27:33]json_value_free done [11:27:33]process_json_proto returns [11:27:33]Send response to host [11:27:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41874,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [11:27:33]free response buf [11:27:33]execute_script done [11:27:33]execute_script returns [11:27:33]free content buf [11:27:33]Sock 9.Close socket [11:27:33]Sock 9.Thread stoped [11:27:38]OFD Sender: No OFD packet to send [11:27:39]recv_with_timeout no data received [11:27:43]OFD Sender: No OFD packet to send [11:27:48]OFD Sender: No OFD packet to send [11:27:53]OFD Sender: No OFD packet to send [11:27:58]OFD Sender: No OFD packet to send [11:28:03]OFD Sender: No OFD packet to send [11:28:08]OFD Sender: No OFD packet to send [11:28:13]OFD Sender: No OFD packet to send [11:28:18]OFD Sender: No OFD packet to send [11:28:23]OFD Sender: No OFD packet to send [11:28:28]OFD Sender: No OFD packet to send [11:28:33]OFD Sender: No OFD packet to send [11:28:38]OFD Sender: No OFD packet to send [11:28:43]OFD Sender: No OFD packet to send [11:28:48]OFD Sender: No OFD packet to send [11:28:53]OFD Sender: No OFD packet to send [11:28:58]OFD Sender: No OFD packet to send [11:29:03]OFD Sender: No OFD packet to send [11:29:08]OFD Sender: No OFD packet to send [11:29:13]OFD Sender: No OFD packet to send [11:29:18]OFD Sender: No OFD packet to send [11:29:23]OFD Sender: No OFD packet to send [11:29:28]OFD Sender: No OFD packet to send [11:29:33]OFD Sender: No OFD packet to send [11:29:38]OFD Sender: No OFD packet to send [11:29:43]OFD Sender: No OFD packet to send [11:29:48]OFD Sender: No OFD packet to send [11:29:51]recv_with_timeout no data received [11:29:53]OFD Sender: No OFD packet to send [11:29:58]OFD Sender: No OFD packet to send [11:30:03]OFD Sender: No OFD packet to send [11:30:08]OFD Sender: No OFD packet to send [11:30:13]OFD Sender: No OFD packet to send [11:30:18]OFD Sender: No OFD packet to send [11:30:23]OFD Sender: No OFD packet to send [11:30:28]OFD Sender: No OFD packet to send [11:30:33]OFD Sender: No OFD packet to send [11:30:38]OFD Sender: No OFD packet to send [11:30:43]OFD Sender: No OFD packet to send [11:30:48]OFD Sender: No OFD packet to send [11:30:53]OFD Sender: No OFD packet to send [11:30:58]OFD Sender: No OFD packet to send [11:31:03]OFD Sender: No OFD packet to send [11:31:08]OFD Sender: No OFD packet to send [11:31:13]OFD Sender: No OFD packet to send [11:31:18]OFD Sender: No OFD packet to send [11:31:23]OFD Sender: No OFD packet to send [11:31:28]OFD Sender: No OFD packet to send [11:31:33]OFD Sender: No OFD packet to send [11:31:38]OFD Sender: No OFD packet to send [11:31:43]OFD Sender: No OFD packet to send [11:31:48]OFD Sender: No OFD packet to send [11:31:53]OFD Sender: No OFD packet to send [11:31:58]OFD Sender: No OFD packet to send [11:32:03]OFD Sender: No OFD packet to send [11:32:08]OFD Sender: No OFD packet to send [11:32:13]OFD Sender: No OFD packet to send [11:32:18]OFD Sender: No OFD packet to send [11:32:21]recv_with_timeout no data received [11:32:23]OFD Sender: No OFD packet to send [11:32:28]OFD Sender: No OFD packet to send [11:32:33]OFD Sender: No OFD packet to send [11:32:38]OFD Sender: No OFD packet to send [11:32:43]OFD Sender: No OFD packet to send [11:32:48]OFD Sender: No OFD packet to send [11:32:53]OFD Sender: No OFD packet to send [11:32:58]OFD Sender: No OFD packet to send [11:33:03]OFD Sender: No OFD packet to send [11:33:08]OFD Sender: No OFD packet to send [11:33:13]OFD Sender: No OFD packet to send [11:33:18]OFD Sender: No OFD packet to send [11:33:23]OFD Sender: No OFD packet to send [11:33:28]OFD Sender: No OFD packet to send [11:33:33]OFD Sender: No OFD packet to send [11:33:38]OFD Sender: No OFD packet to send [11:33:43]OFD Sender: No OFD packet to send [11:33:48]OFD Sender: No OFD packet to send [11:33:53]recv_with_timeout no data received [11:33:53]OFD Sender: No OFD packet to send [11:33:58]OFD Sender: No OFD packet to send [11:34:03]OFD Sender: No OFD packet to send [11:34:08]OFD Sender: No OFD packet to send [11:34:13]OFD Sender: No OFD packet to send [11:34:18]OFD Sender: No OFD packet to send [11:34:23]OFD Sender: No OFD packet to send [11:34:25]recv_with_timeout no data received [11:34:28]OFD Sender: No OFD packet to send [11:35:14]ConnectInit Can't connect to host [11:35:18]OFD Sender: No OFD packet to send [11:35:23]OFD Sender: No OFD packet to send [11:35:27]recv_with_timeout no data received [11:35:28]OFD Sender: No OFD packet to send [11:35:33]OFD Sender: No OFD packet to send [11:35:38]OFD Sender: No OFD packet to send [11:35:43]OFD Sender: No OFD packet to send [11:35:48]OFD Sender: No OFD packet to send [11:35:53]OFD Sender: No OFD packet to send [11:35:58]OFD Sender: No OFD packet to send [11:36:03]OFD Sender: No OFD packet to send [11:36:08]OFD Sender: No OFD packet to send [11:36:13]OFD Sender: No OFD packet to send [11:36:18]OFD Sender: No OFD packet to send [11:36:21]recv_with_timeout no data received [11:36:23]OFD Sender: No OFD packet to send [11:37:23]OFD Sender: No OFD packet to send [11:37:26]ConnectInit Can't connect to host [11:37:28]OFD Sender: No OFD packet to send [11:37:33]OFD Sender: No OFD packet to send [11:37:38]OFD Sender: No OFD packet to send [11:37:43]OFD Sender: No OFD packet to send [11:37:48]OFD Sender: No OFD packet to send [11:37:54]OFD Sender: No OFD packet to send [11:38:04]OFD Sender: No OFD packet to send [11:38:09]OFD Sender: No OFD packet to send [11:38:14]OFD Sender: No OFD packet to send [11:38:19]OFD Sender: No OFD packet to send [11:38:24]OFD Sender: No OFD packet to send [11:38:29]OFD Sender: No OFD packet to send [11:38:32]recv_with_timeout no data received [11:38:34]OFD Sender: No OFD packet to send [11:38:39]OFD Sender: No OFD packet to send [11:38:44]OFD Sender: No OFD packet to send [11:38:49]OFD Sender: No OFD packet to send [11:38:54]OFD Sender: No OFD packet to send [11:38:59]OFD Sender: No OFD packet to send [11:39:04]OFD Sender: No OFD packet to send [11:39:08]recv_with_timeout no data received [11:39:09]OFD Sender: No OFD packet to send [11:39:14]OFD Sender: No OFD packet to send [11:39:19]OFD Sender: No OFD packet to send [11:39:24]OFD Sender: No OFD packet to send [11:39:29]OFD Sender: No OFD packet to send [11:39:34]OFD Sender: No OFD packet to send [11:39:39]OFD Sender: No OFD packet to send [11:39:44]OFD Sender: No OFD packet to send [11:39:49]OFD Sender: No OFD packet to send [11:39:54]OFD Sender: No OFD packet to send [11:39:59]OFD Sender: No OFD packet to send [11:40:04]OFD Sender: No OFD packet to send [11:40:09]OFD Sender: No OFD packet to send [11:40:14]OFD Sender: No OFD packet to send [11:40:19]OFD Sender: No OFD packet to send [11:40:24]OFD Sender: No OFD packet to send [11:40:29]OFD Sender: No OFD packet to send [11:40:34]OFD Sender: No OFD packet to send [11:40:39]OFD Sender: No OFD packet to send [11:40:44]OFD Sender: No OFD packet to send [11:40:45]recv_with_timeout no data received [11:40:49]OFD Sender: No OFD packet to send [11:41:44]OFD Sender: No OFD packet to send [11:41:44]ConnectInit Can't connect to host [11:41:49]OFD Sender: No OFD packet to send [11:41:54]OFD Sender: No OFD packet to send [11:41:59]OFD Sender: No OFD packet to send [11:42:04]OFD Sender: No OFD packet to send [11:42:09]OFD Sender: No OFD packet to send [11:42:14]OFD Sender: No OFD packet to send [11:42:19]OFD Sender: No OFD packet to send [11:42:24]OFD Sender: No OFD packet to send [11:42:29]OFD Sender: No OFD packet to send [11:42:34]OFD Sender: No OFD packet to send [11:42:39]OFD Sender: No OFD packet to send [11:42:44]OFD Sender: No OFD packet to send [11:42:49]OFD Sender: No OFD packet to send [11:42:54]OFD Sender: No OFD packet to send [11:42:59]OFD Sender: No OFD packet to send [11:43:04]OFD Sender: No OFD packet to send [11:44:14]OFD Sender: No OFD packet to send [11:44:19]OFD Sender: No OFD packet to send [11:44:19]accept exits with 8 [11:44:19]New connection [11:44:19]New thread 3066903908 created [11:44:19]Thread 3066760548 joined [11:44:19]Waiting for new connection... [11:44:19] Sock 8.Parse request [11:44:19]Sock 8.Check first char [11:44:19]Sock 8.First char is OK [11:44:19]request: POST /json_proto HTTP/1.0 [11:44:19]Method: POST [11:44:19]URL: /json_proto [11:44:19]Method is POST - this is cgi request [11:44:19]url: /json_proto [11:44:19]query_string will be loaded in cgi processing [11:44:19]execute_cgi json_proto POST (null) [11:44:19]execute_cgi path=json_proto method=POST [11:44:19]POST find Content-Length [11:44:19]Host: 172.17.43.132:8080 [11:44:19]Content-Length: 623 [11:44:19]Content-Type: application/json [11:44:19] [11:44:19]POST finish read [11:44:19]Found Content-Length = 623 [11:44:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183903", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:44:19]execute_script... [11:44:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183903", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:44:19]POST & json_proto [11:44:19]process_json_proto [11:44:19]json parsed OK: [11:44:19]protocol is kg_v1.0 [11:44:19]action value=close_receipt [11:44:19]process_action close_receipt [11:44:19]cmd_close_receipt [11:44:19]MH_GetDate [11:44:19]Write to MH i2c: F0 00 00 B8 04 AB [11:44:19]Write i2c OK [11:44:19]MH_I2C_Read... [11:44:19]Read from MH i2c: F0 [11:44:19]MH_I2C_Read... [11:44:19]Read from MH i2c: F0 09 00 [11:44:19]MH_I2C_Read... [11:44:19]Read from MH i2c: F0 09 00 B8 04 00 94 80 A7 66 F8 53 A7 66 2D [11:44:19]GetLastDocTimeStamp 1722252450 [11:44:19]current date 1722253460 [11:44:19]FM_GetShiftState [11:44:19]SAM_PROTO_GetShiftState [11:44:19]wFMCommunicate request_size=4 [11:44:19]MH_SAM_APDU [11:44:19]CAPDU: 80 13 01 00 [11:44:19]Write to MH i2c: E2 08 00 B9 04 80 13 01 00 00 00 00 00 3A [11:44:19]Write i2c OK [11:44:19]MH_I2C_Read... [11:44:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:19]Read from MH i2c: E2 [11:44:19]MH_I2C_Read... [11:44:19]Read from MH i2c: E2 0E 00 [11:44:19]MH_I2C_Read... [11:44:19]Read from MH i2c: E2 0E 00 B9 04 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 D6 [11:44:19]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [11:44:19]wFMCommunicate OK [11:44:19]SAM_PROTO_GetShiftState done [11:44:19]FM_GetShiftState done [11:44:19]opened in 1722211496 [11:44:19]opened+sec_in_day 1722297896 [11:44:19]quantity*price = 14000 [11:44:19]sum+1 = 14001 [11:44:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 64 29.07.2024 11:44 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41875 ФПД: 891885016758 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T114420&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41875&fm=891885016758&tin=02508201610067®Number=0000000000092626&sum=14000 0 [11:44:20]StoreToDocumentArchive [11:44:20]shift 427 fd 41875 [11:44:20]save to /storage/0427/doc_00041875 [11:44:20]save last doc name /storage/0427/doc_00041875 to /storage/kkm_last_doc_name [11:44:20]save OK [11:44:20]Clear old archive folders... [11:44:20]ProcessDocumentItem done err = 0, tmpTLVsize=275 [11:44:20]tlvbuf is 0080C9F0 [11:44:20]SAM_PROTO_ClearQueue [11:44:20]wFMCommunicate request_size=4 [11:44:20]MH_SAM_APDU [11:44:20]CAPDU: 80 09 00 00 [11:44:20]Write to MH i2c: E2 08 00 C6 04 80 09 00 00 00 00 00 00 3C [11:44:20]Write i2c OK [11:44:20]MH_I2C_Read... [11:44:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:44:20]Read from MH i2c: E2 [11:44:20]MH_I2C_Read... [11:44:20]Read from MH i2c: E2 03 00 [11:44:20]MH_I2C_Read... [11:44:20]Read from MH i2c: E2 03 00 C6 04 00 90 00 3E [11:44:20]RAPDU: 90 00 [11:44:20]wFMCommunicate OK [11:44:20]SAM_PROTO_ClearQueue done [11:44:20]KKMCreateOFDPacket [11:44:20]OFDProtocolAddRootSTLVToBuf [11:44:20]FM_MakeSignedData [11:44:20]FM_MakeSignedData [11:44:20]SAM_PROTO_SignData [11:44:20]wFMCommunicate request_size=4 [11:44:20]MH_SAM_APDU [11:44:20]CAPDU: 80 0D 01 02 [11:44:20]Write to MH i2c: E2 08 00 C7 04 80 0D 01 02 00 00 00 00 44 [11:44:20]Write i2c OK [11:44:20]MH_I2C_Read... [11:44:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:44:20]Read from MH i2c: E2 [11:44:20]MH_I2C_Read... [11:44:20]Read from MH i2c: E2 03 00 [11:44:20]MH_I2C_Read... [11:44:20]Read from MH i2c: E2 03 00 C7 04 00 90 00 3F [11:44:20]RAPDU: 90 00 [11:44:20]wFMCommunicate OK [11:44:20]wFMCommunicate request_size=255 [11:44:20]MH_SAM_APDU [11:44:20]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 94 80 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 [11:44:20]Write to MH i2c: E2 02 01 C8 04 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 94 80 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 00 00 E1 [11:44:20]Write i2c OK [11:44:20]MH_I2C_Read... [11:44:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:21]Read from MH i2c: E2 [11:44:21]MH_I2C_Read... [11:44:21]Read from MH i2c: E2 03 00 [11:44:21]MH_I2C_Read... [11:44:21]Read from MH i2c: E2 03 00 C8 04 00 90 00 40 [11:44:21]RAPDU: 90 00 [11:44:21]wFMCommunicate OK [11:44:21]wFMCommunicate request_size=34 [11:44:21]MH_SAM_APDU [11:44:21]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 93 A3 00 00 35 04 06 00 00 CF A8 7D 56 B6 [11:44:21]Write to MH i2c: E2 25 00 C9 04 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 93 A3 00 00 35 04 06 00 00 CF A8 7D 56 B6 00 00 47 [11:44:21]Write i2c OK [11:44:21]MH_I2C_Read... [11:44:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:21]Read from MH i2c: E2 [11:44:21]MH_I2C_Read... [11:44:21]Read from MH i2c: E2 03 00 [11:44:21]MH_I2C_Read... [11:44:21]Read from MH i2c: E2 03 00 C9 04 00 90 00 41 [11:44:21]RAPDU: 90 00 [11:44:21]wFMCommunicate OK [11:44:21]wFMCommunicate request_size=4 [11:44:21]MH_SAM_APDU [11:44:21]CAPDU: 80 0D 03 02 [11:44:21]Write to MH i2c: E2 08 00 CA 04 80 0D 03 02 00 00 00 00 49 [11:44:21]Write i2c OK [11:44:21]MH_I2C_Read... [11:44:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:44:21]Read from MH i2c: E2 [11:44:21]MH_I2C_Read... [11:44:21]Read from MH i2c: E2 0B 00 [11:44:21]MH_I2C_Read... [11:44:21]Read from MH i2c: E2 0B 00 CA 04 00 74 DD 93 35 74 74 CB 29 90 00 3F [11:44:21]RAPDU: 74 DD 93 35 74 74 CB 29 90 00 [11:44:21]wFMCommunicate OK [11:44:21]SAM_PROTO_SignData done [11:44:21]FM_MakeSignedData done [11:44:21]CreateOFDProtocolMessage [11:44:21]wFMCommunicate request_size=4 [11:44:21]MH_SAM_APDU [11:44:21]CAPDU: 80 11 00 00 [11:44:21]Write to MH i2c: E2 08 00 CB 04 80 11 00 00 00 00 00 00 49 [11:44:21]Write i2c OK [11:44:21]MH_I2C_Read... [11:44:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:21]Read from MH i2c: E2 [11:44:21]MH_I2C_Read... [11:44:21]Read from MH i2c: E2 17 00 [11:44:21]MH_I2C_Read... [11:44:21]Read from MH i2c: E2 17 00 CB 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 A5 [11:44:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [11:44:21]wFMCommunicate OK [11:44:21]CreateOFDProtocolMessage done [11:44:21]OFDSenderStorePacket 41875 [11:44:21]StoreOFDPacket docnum=41875 [11:44:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 27 01 00 00 9A 5A 1F 01 36 31 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 94 80 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 93 A3 00 00 35 04 06 00 00 CF A8 7D 56 B6 74 DD 93 35 74 74 CB 29 [11:44:21]CheckFolder [11:44:21]dirname=/storage/ofd_packets [11:44:21]CheckFolder done [11:44:21]ProducePacketName [11:44:21]name=ofd_packets/00041875 [11:44:21]NVStorageSaveData ofd_packets/00041875 [11:44:21]File name is /storage/ofd_packets/00041875 [11:44:21]Write 325 bytes [11:44:21]NVStorageSaveData done [11:44:21]OFDSenderStorePacket done [11:44:21]KKMCreateOFDPacket done [11:44:21]NVStorageSaveData kkm_last_timestamp [11:44:21]File name is /storage/kkm_last_timestamp [11:44:21]Write 4 bytes [11:44:21]NVStorageSaveData done [11:44:21]ExternCall_PrintAddStr [11:44:21]wPrintStart [11:44:21]Write to MH i2c: 01 00 00 CC 04 D0 [11:44:21]Write i2c OK [11:44:21]MH_I2C_Read... [11:44:21]Read from MH i2c: 01 [11:44:21]MH_I2C_Read... [11:44:21]Read from MH i2c: 01 07 00 [11:44:21]MH_I2C_Read... [11:44:21]Read from MH i2c: 01 07 00 CC 04 00 00 00 00 00 FF 0F E5 [11:44:21]RasterBufferAndPrint [11:44:21]line Счет N : (3)183903 [11:44:21]line ИНН: 02508201610067 [11:44:21]line Контрольно-Кассовый Чек [11:44:21]line ПРОДАЖА [11:44:21]line Товар: 48743587 [11:44:21]line Сигареты Winston XStyle Silver [11:44:21]line 1.000 * 140.00 [11:44:21]line = 140.00 [11:44:21]line НДС 12% НСП 1% [11:44:21]line > о реализуемом товаре [11:44:21]line ИТОГО: 140.00 [11:44:21]line НСП 1% : 1.24 [11:44:21]line НДС 12% : 14.87 [11:44:21]line Наличными: 140.00 [11:44:21]line Безнал.: 0.00 [11:44:21]line Место: АЗС № 97 "Партнер Нефть" [11:44:21]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [11:44:21]line СНО: Общий режим [11:44:21]line Чек 64 29.07.2024 11:44 [11:44:21]line Смена: 427 ФФД: 1.0 [11:44:21]line ЗНМ: 0300000053 [11:44:21]line РНМ: 0000000000092626 [11:44:21]line Версия ККМ: 001 [11:44:21]line ФМ: 0000000000874958 [11:44:21]line ФД: 41875 [11:44:21]line ФПД: 891885016758 [11:44:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T114420&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41875&fm=891885016758&tin=02508201610067®Number=0000000000092626&sum=14000 [11:44:21]line 0 [11:44:21]OFD Sender: Processing packet 41875 [packets to send 57, broken 56] [11:44:21]ProducePacketName [11:44:21]name=ofd_packets/00041875 [11:44:21]OFD Sender: To server: pG, [11:44:21]CommunicateWithHost lk.salyk.kg:30040 [11:44:21]ConnectInit lk.salyk.kg [11:44:21]written 0, free lines is 4095 [11:44:22]Write to MH i2c: 01 00 00 F5 04 F9 [11:44:22]Write i2c OK [11:44:22]MH_I2C_Read... [11:44:22]Read from MH i2c: 01 [11:44:22]MH_I2C_Read... [11:44:22]Read from MH i2c: 01 07 00 [11:44:22]MH_I2C_Read... [11:44:22]Read from MH i2c: 01 07 00 F5 04 00 00 00 00 00 F4 0C 00 [11:44:22]RasterBufferAndPrint [11:44:22]line [11:44:22]line [11:44:22]line [11:44:22]line [11:44:22]line [11:44:22]written 0, free lines is 3322 [11:44:22]MH_Cut [11:44:22]Write to MH i2c: D1 01 00 FC 04 01 D2 [11:44:22]Write i2c OK [11:44:22]MH_I2C_Read... [11:44:22]Read from MH i2c: D1 [11:44:22]MH_I2C_Read... [11:44:22]Read from MH i2c: D1 01 00 [11:44:22]MH_I2C_Read... [11:44:22]Read from MH i2c: D1 01 00 FC 04 00 D1 [11:44:22]Write to MH i2c: 01 00 00 FD 04 01 [11:44:22]Write i2c OK [11:44:22]MH_I2C_Read... [11:44:22]*** Cut start [11:44:22]*** Partial cut [11:44:22]*** CUTSNS_PIN = 1 [11:44:22]*** CUTSNS_PIN = 0 [11:44:23]*** Brake cut motor [11:44:23]Read from MH i2c: 01 [11:44:23]MH_I2C_Read... [11:44:23]*** Stop cut motor [11:44:23]*** Cut end [11:44:23]Read from MH i2c: 01 07 00 [11:44:23]MH_I2C_Read... [11:44:23]Read from MH i2c: 01 07 00 FD 04 00 00 00 00 00 FF 0F 16 [11:44:23]process_action close_receipt done [11:44:23]requested_data is exist [11:44:23]produce_requested_data [11:44:23]requested_item fm.sn is exist - process it [11:44:23]wFMCommunicate request_size=4 [11:44:23]MH_SAM_APDU [11:44:23]CAPDU: 80 11 00 00 [11:44:23]Write to MH i2c: E2 08 00 FE 04 80 11 00 00 00 00 00 00 7C [11:44:23]Write i2c OK [11:44:23]MH_I2C_Read... [11:44:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:23]Read from MH i2c: E2 [11:44:23]MH_I2C_Read... [11:44:23]Read from MH i2c: E2 17 00 [11:44:23]MH_I2C_Read... [11:44:23]Read from MH i2c: E2 17 00 FE 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 D8 [11:44:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [11:44:23]wFMCommunicate OK [11:44:23]requested_item fd.num is exist - process it [11:44:23]SAM_PROTO_GetFieldsCounters [11:44:23]wFMCommunicate request_size=4 [11:44:23]MH_SAM_APDU [11:44:23]CAPDU: 80 13 00 00 [11:44:23]Write to MH i2c: E2 08 00 FF 04 80 13 00 00 00 00 00 00 7F [11:44:23]Write i2c OK [11:44:23]MH_I2C_Read... [11:44:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:44:23]Read from MH i2c: E2 [11:44:23]MH_I2C_Read... [11:44:23]Read from MH i2c: E2 62 00 [11:44:23]MH_I2C_Read... [11:44:23]Read from MH i2c: E2 62 00 FF 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 93 A3 00 00 0E 04 04 00 AB 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 4B [11:44:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 93 A3 00 00 0E 04 04 00 AB 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 [11:44:23]wFMCommunicate OK [11:44:23]SAM_PROTO_GetFieldsCounters done [11:44:23]requested_item shift.num is exist - process it [11:44:23]requested_item shift.opened is exist - process it [11:44:23]req_shift_opened [11:44:23]FM_GetShiftState [11:44:23]SAM_PROTO_GetShiftState [11:44:23]wFMCommunicate request_size=4 [11:44:23]MH_SAM_APDU [11:44:23]CAPDU: 80 13 01 00 [11:44:23]Write to MH i2c: E2 08 00 00 05 80 13 01 00 00 00 00 00 82 [11:44:23]Write i2c OK [11:44:23]MH_I2C_Read... [11:44:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:23]Read from MH i2c: E2 [11:44:23]MH_I2C_Read... [11:44:23]Read from MH i2c: E2 0E 00 [11:44:23]MH_I2C_Read... [11:44:23]Read from MH i2c: E2 0E 00 00 05 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 1E [11:44:23]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [11:44:23]wFMCommunicate OK [11:44:23]SAM_PROTO_GetShiftState done [11:44:23]FM_GetShiftState done [11:44:23]req_shift_opened done [11:44:23]requested_item shift.open_date is exist - process it [11:44:23]req_shift_open_date [11:44:23]req_shift_open_date done [11:44:23]produce_requested_data done [11:44:23]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41875,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [11:44:23]process_action_free close_receipt [11:44:23]json_value_free [11:44:23]json_value_free done [11:44:23]process_json_proto returns [11:44:23]Send response to host [11:44:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41875,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [11:44:23]free response buf [11:44:23]execute_script done [11:44:23]execute_script returns [11:44:23]free content buf [11:44:23]Sock 8.Close socket [11:44:23]Sock 8.Thread stoped [11:44:26]ConnectInit Can't take IP for lk.salyk.kg [11:44:26]CommunicateWithHost connect error [11:44:26]CommunicateWithHost err = -1 [11:44:26]OFD Sender: Server communicate error [11:44:31]OFD Sender: Processing packet 41875 [packets to send 57, broken 56] [11:44:31]ProducePacketName [11:44:31]name=ofd_packets/00041875 [11:44:31]OFD Sender: To server: pG, [11:44:31]CommunicateWithHost lk.salyk.kg:30040 [11:44:31]ConnectInit lk.salyk.kg [11:44:36]ConnectInit Can't take IP for lk.salyk.kg [11:44:36]CommunicateWithHost connect error [11:44:36]CommunicateWithHost err = -1 [11:44:36]OFD Sender: Server communicate error [11:44:41]OFD Sender: Processing packet 41875 [packets to send 57, broken 56] [11:44:41]ProducePacketName [11:44:41]name=ofd_packets/00041875 [11:44:41]OFD Sender: To server: pG, [11:44:41]CommunicateWithHost lk.salyk.kg:30040 [11:44:41]ConnectInit lk.salyk.kg [11:44:46]ConnectInit Can't connect to host [11:44:46]ConnectInit Can't take IP for lk.salyk.kg [11:44:46]CommunicateWithHost connect error [11:44:46]CommunicateWithHost err = -1 [11:44:46]OFD Sender: Server communicate error [11:44:51]OFD Sender: Processing packet 41875 [packets to send 57, broken 56] [11:44:51]ProducePacketName [11:44:51]name=ofd_packets/00041875 [11:44:51]OFD Sender: To server: pG, [11:44:51]CommunicateWithHost lk.salyk.kg:30040 [11:44:51]ConnectInit lk.salyk.kg [11:44:56]ConnectInit Can't take IP for lk.salyk.kg [11:44:56]CommunicateWithHost connect error [11:44:56]CommunicateWithHost err = -1 [11:44:56]OFD Sender: Server communicate error [11:45:01]OFD Sender: Processing packet 41875 [packets to send 57, broken 56] [11:45:01]ProducePacketName [11:45:01]name=ofd_packets/00041875 [11:45:01]OFD Sender: To server: pG, [11:45:01]CommunicateWithHost lk.salyk.kg:30040 [11:45:01]ConnectInit lk.salyk.kg [11:45:06]ConnectInit Can't take IP for lk.salyk.kg [11:45:06]CommunicateWithHost connect error [11:45:06]CommunicateWithHost err = -1 [11:45:06]OFD Sender: Server communicate error [11:45:11]OFD Sender: Processing packet 41875 [packets to send 57, broken 56] [11:45:11]ProducePacketName [11:45:11]name=ofd_packets/00041875 [11:45:11]OFD Sender: To server: pG, [11:45:11]CommunicateWithHost lk.salyk.kg:30040 [11:45:11]ConnectInit lk.salyk.kg [11:45:13]recv_with_timeout no data received [11:45:17]Connected sock=9 [11:45: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 35 38 27 01 00 00 9A 5A 1F 01 36 31 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 94 80 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 93 A3 00 00 35 04 06 00 00 CF A8 7D 56 B6 74 DD 93 35 74 74 CB 29 [11:45: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 35 38 4F 00 00 00 6B 92 47 00 B7 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 35 38 10 04 04 00 93 A3 00 00 F4 03 04 00 E1 2C A7 66 B6 04 01 00 00 29 DE F7 CC 3B 66 E4 A7 [11:45:18]CommunicateWithHost err = 0 [11:45:18]CheckOFDResponse [11:45:18]1017 (14) - 77093643461234 [11:45:18]1041 (16) - 0000000000874958 [11:45:18]1040 (4) - 41875 [11:45:18]1012 (4) - 29.07.2024 05:47 [11:45:18]1206 (1) - 0 [11:45:18]OFD Sender: Remove packet 41875 [11:45:18]ProducePacketName [11:45:18]name=ofd_packets/00041875 [11:45:18]NVStorageDeleteData [11:45:19]OFD Sender: No OFD packet to send [11:45:24]OFD Sender: No OFD packet to send [11:45:29]OFD Sender: No OFD packet to send [11:45:34]OFD Sender: No OFD packet to send [11:45:39]OFD Sender: No OFD packet to send [11:45:44]OFD Sender: No OFD packet to send [11:45:49]OFD Sender: No OFD packet to send [11:45:54]OFD Sender: No OFD packet to send [11:45:59]OFD Sender: No OFD packet to send [11:46:04]OFD Sender: No OFD packet to send [11:46:09]OFD Sender: No OFD packet to send [11:46:09]recv_with_timeout no data received [11:46:14]OFD Sender: No OFD packet to send [11:46:19]OFD Sender: No OFD packet to send [11:46:24]OFD Sender: No OFD packet to send [11:46:39]OFD Sender: No OFD packet to send [11:46:44]OFD Sender: No OFD packet to send [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:16]recv_with_timeout no data received [11:47:19]OFD Sender: No OFD packet to send [11:47:24]OFD Sender: No OFD packet to send [11:47:29]OFD Sender: No OFD packet to send [11:47:34]OFD Sender: No OFD packet to send [11:47:36]recv_with_timeout no data received [11:47:39]OFD Sender: No OFD packet to send [11:47:59]OFD Sender: No OFD packet to send [11:48:04]OFD Sender: No OFD packet to send [11:48:09]OFD Sender: No OFD packet to send [11:48:14]OFD Sender: No OFD packet to send [11:48:19]OFD Sender: No OFD packet to send [11:48:24]OFD Sender: No OFD packet to send [11:48:29]OFD Sender: No OFD packet to send [11:48:34]OFD Sender: No OFD packet to send [11:48:39]OFD Sender: No OFD packet to send [11:48:44]OFD Sender: No OFD packet to send [11:48:49]OFD Sender: No OFD packet to send [11:48:54]OFD Sender: No OFD packet to send [11:48:59]OFD Sender: No OFD packet to send [11:49:04]OFD Sender: No OFD packet to send [11:49:09]OFD Sender: No OFD packet to send [11:49:14]OFD Sender: No OFD packet to send [11:49:19]OFD Sender: No OFD packet to send [11:49:24]OFD Sender: No OFD packet to send [11:49:29]OFD Sender: No OFD packet to send [11:49:34]OFD Sender: No OFD packet to send [11:49:39]OFD Sender: No OFD packet to send [11:49:44]OFD Sender: No OFD packet to send [11:49:49]OFD Sender: No OFD packet to send [11:49:54]OFD Sender: No OFD packet to send [11:49:59]OFD Sender: No OFD packet to send [11:50:04]OFD Sender: No OFD packet to send [11:50:09]ConnectInit Can't connect to host [11:50:09]OFD Sender: No OFD packet to send [11:51:26]MH_I2C_Read... [11:51:26]Read from MH i2c: E2 03 00 [11:51:26]MH_I2C_Read... [11:51:26]Read from MH i2c: E2 03 00 54 05 00 90 00 CD [11:51:26]RAPDU: 90 00 [11:51:26]wFMCommunicate OK [11:51:26]wFMCommunicate request_size=15 [11:51:26]MH_SAM_APDU [11:51:26]CAPDU: 80 15 02 00 0A FC 03 06 00 38 4A 00 00 00 00 [11:51:26]Write to MH i2c: E2 12 00 55 05 80 15 02 00 0A 00 FC 03 06 00 38 4A 00 00 00 00 00 00 75 [11:51:26]Write i2c OK [11:51:26]MH_I2C_Read... [11:51:26]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [11:51:26]Read from MH i2c: E2 [11:51:26]MH_I2C_Read... [11:51:26]Read from MH i2c: E2 03 00 [11:51:26]MH_I2C_Read... [11:51:26]Read from MH i2c: E2 03 00 55 05 00 90 00 CE [11:51:26]RAPDU: 90 00 [11:51:26]wFMCommunicate OK [11:51:26]wFMCommunicate request_size=47 [11:51:26]MH_SAM_APDU [11:51:26]CAPDU: 80 15 02 00 2A EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 [11:51:26]Write to MH i2c: E2 32 00 56 05 80 15 02 00 2A 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 00 00 C3 [11:51:26]Write i2c OK [11:51:26]MH_I2C_Read... [11:51:26]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [11:51:26]Read from MH i2c: E2 [11:51:26]MH_I2C_Read... [11:51:26]Read from MH i2c: E2 03 00 [11:51:26]MH_I2C_Read... [11:51:26]Read from MH i2c: E2 03 00 56 05 00 90 00 CF [11:51:26]RAPDU: 90 00 [11:51:26]wFMCommunicate OK [11:51:26]wFMCommunicate request_size=15 [11:51:26]MH_SAM_APDU [11:51:26]CAPDU: 80 15 02 00 0A 07 04 06 00 38 4A 00 00 00 00 [11:51:26]Write to MH i2c: E2 12 00 57 05 80 15 02 00 0A 00 07 04 06 00 38 4A 00 00 00 00 00 00 83 [11:51:26]Write i2c OK [11:51:26]MH_I2C_Read... [11:51:26]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [11:51:26]Read from MH i2c: E2 [11:51:26]MH_I2C_Read... [11:51:26]Read from MH i2c: E2 03 00 [11:51:26]MH_I2C_Read... [11:51:26]Read from MH i2c: E2 03 00 57 05 00 90 00 D0 [11:51:26]RAPDU: 90 00 [11:51:26]wFMCommunicate OK [11:51:26]wFMCommunicate request_size=15 [11:51:26]MH_SAM_APDU [11:51:26]CAPDU: 80 15 02 00 0A 39 04 06 00 00 00 00 00 00 00 [11:51:26]Write to MH i2c: E2 12 00 58 05 80 15 02 00 0A 00 39 04 06 00 00 00 00 00 00 00 00 00 34 [11:51:26]Write i2c OK [11:51:26]MH_I2C_Read... [11:51:26]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [11:51:26]Read from MH i2c: E2 [11:51:26]MH_I2C_Read... [11:51:26]Read from MH i2c: E2 03 00 [11:51:26]MH_I2C_Read... [11:51:26]Read from MH i2c: E2 03 00 58 05 00 90 00 D1 [11:51:26]RAPDU: 90 00 [11:51:26]wFMCommunicate OK [11:51:26]wFMCommunicate request_size=11 [11:51:26]MH_SAM_APDU [11:51:26]CAPDU: 80 15 02 00 06 1F 04 02 00 01 00 [11:51:26]Write to MH i2c: E2 0E 00 59 05 80 15 02 00 06 00 1F 04 02 00 01 00 00 00 10 [11:51:26]Write i2c OK [11:51:26]MH_I2C_Read... [11:51:26]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [11:51:26]Read from MH i2c: E2 [11:51:26]MH_I2C_Read... [11:51:26]Read from MH i2c: E2 03 00 [11:51:26]MH_I2C_Read... [11:51:26]Read from MH i2c: E2 03 00 59 05 00 90 00 D2 [11:51:26]RAPDU: 90 00 [11:51:26]wFMCommunicate OK [11:51:26]wFMCommunicate request_size=13 [11:51:26]MH_SAM_APDU [11:51:26]CAPDU: 80 15 02 00 08 F4 03 04 00 3E 82 A7 66 [11:51:26]Write to MH i2c: E2 10 00 5A 05 80 15 02 00 08 00 F4 03 04 00 3E 82 A7 66 00 00 B7 [11:51:26]Write i2c OK [11:51:26]MH_I2C_Read... [11:51:26]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [11:51:26]Read from MH i2c: E2 [11:51:26]MH_I2C_Read... [11:51:26]Read from MH i2c: E2 03 00 [11:51:26]MH_I2C_Read... [11:51:26]Read from MH i2c: E2 03 00 5A 05 00 90 00 D3 [11:51:26]RAPDU: 90 00 [11:51:26]wFMCommunicate OK [11:51:26]wFMCommunicate request_size=25 [11:51:26]MH_SAM_APDU [11:51:26]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 [11:51:26]Write to MH i2c: E2 1C 00 5B 05 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 00 00 42 [11:51:26]Write i2c OK [11:51:26]MH_I2C_Read... [11:51:26]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [11:51:26]Read from MH i2c: E2 [11:51:26]MH_I2C_Read... [11:51:26]Read from MH i2c: E2 03 00 [11:51:26]MH_I2C_Read... [11:51:26]Read from MH i2c: E2 03 00 5B 05 00 90 00 D4 [11:51:26]RAPDU: 90 00 [11:51:26]wFMCommunicate OK [11:51:26]wFMCommunicate request_size=4 [11:51:26]MH_SAM_APDU [11:51:26]CAPDU: 80 15 03 00 [11:51:26]Write to MH i2c: E2 08 00 5C 05 80 15 03 00 00 00 00 00 E2 [11:51:26]Write i2c OK [11:51:26]MH_I2C_Read... [11:51:26]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [11:51:26]Read from MH i2c: E2 [11:51:26]MH_I2C_Read... [11:51:26]Read from MH i2c: E2 40 00 [11:51:26]MH_I2C_Read... [11:51:26]Read from MH i2c: E2 40 00 5C 05 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 95 A3 00 00 0E 04 04 00 AB 01 00 00 12 04 04 00 42 00 00 00 35 04 06 00 24 8B 3A 90 B7 F4 90 00 2B [11:51:26]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 95 A3 00 00 0E 04 04 00 AB 01 00 00 12 04 04 00 42 00 00 00 35 04 06 00 24 8B 3A 90 B7 F4 90 00 [11:51:26]wFMCommunicate OK [11:51:26]SAM_PROTO_ProcessDocument answer len = 59 [11:51:26]SAM_PROTO_ProcessDocument done [11:51:26]SetTLVBufToDocument [11:51:26]Processing tag 1209 (04B9) [11:51:26]Malloc new data [11:51:26]Processing tag 1041 (0411) [11:51:26]Processing tag 1040 (0410) [11:51:26]Malloc new data [11:51:26]Processing tag 1038 (040E) [11:51:26]Malloc new data [11:51:26]Processing tag 1042 (0412) [11:51:26]Malloc new data [11:51:26]Processing tag 1077 (0435) [11:51:26]Malloc new data [11:51:26]SetTLVBufToDocument err=0 [11:51:26]KKMLoadAndSignReceiptData store KKM data [11:51:26]KKMLoadAndSignReceiptData err=0 [11:51:26]wFMCommunicate request_size=4 [11:51:26]MH_SAM_APDU [11:51:26]CAPDU: 80 11 00 00 [11:51:26]Write to MH i2c: E2 08 00 5D 05 80 11 00 00 00 00 00 00 DC [11:51:26]Write i2c OK [11:51:26]MH_I2C_Read... [11:51:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:26]Read from MH i2c: E2 [11:51:26]MH_I2C_Read... [11:51:26]Read from MH i2c: E2 17 00 [11:51:26]MH_I2C_Read... [11:51:26]Read from MH i2c: E2 17 00 5D 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 38 [11:51:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [11:51:26]wFMCommunicate OK [11:51:26]Счет N : (3)183905 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА Товар: 5449000176431 Сок Piko Pulpy апельсин ПЭТ 0,5л 2.000 * 95.00 = 190.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 190.00 НСП 1% : 1.68 НДС 12% : 20.18 Наличными: 190.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 66 29.07.2024 11:51 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41877 ФПД: 40180401616884 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T115126&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41877&fm=40180401616884&tin=02508201610067®Number=0000000000092626&sum=19000 0 [11:51:26]StoreToDocumentArchive [11:51:26]shift 427 fd 41877 [11:51:26]save to /storage/0427/doc_00041877 [11:51:26]save last doc name /storage/0427/doc_00041877 to /storage/kkm_last_doc_name [11:51:26]save OK [11:51:26]Clear old archive folders... [11:51:26]ProcessDocumentItem done err = 0, tmpTLVsize=289 [11:51:26]tlvbuf is 0096F640 [11:51:26]SAM_PROTO_ClearQueue [11:51:26]wFMCommunicate request_size=4 [11:51:26]MH_SAM_APDU [11:51:26]CAPDU: 80 09 00 00 [11:51:26]Write to MH i2c: E2 08 00 5E 05 80 09 00 00 00 00 00 00 D5 [11:51:26]Write i2c OK [11:51:26]MH_I2C_Read... [11:51:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:51:26]Read from MH i2c: E2 [11:51:26]MH_I2C_Read... [11:51:26]Read from MH i2c: E2 03 00 [11:51:26]MH_I2C_Read... [11:51:26]Read from MH i2c: E2 03 00 5E 05 00 90 00 D7 [11:51:26]RAPDU: 90 00 [11:51:26]wFMCommunicate OK [11:51:26]SAM_PROTO_ClearQueue done [11:51:26]KKMCreateOFDPacket [11:51:26]OFDProtocolAddRootSTLVToBuf [11:51:26]FM_MakeSignedData [11:51:26]FM_MakeSignedData [11:51:26]SAM_PROTO_SignData [11:51:26]wFMCommunicate request_size=4 [11:51:26]MH_SAM_APDU [11:51:26]CAPDU: 80 0D 01 02 [11:51:26]Write to MH i2c: E2 08 00 5F 05 80 0D 01 02 00 00 00 00 DD [11:51:26]Write i2c OK [11:51:26]MH_I2C_Read... [11:51:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:51:26]Read from MH i2c: E2 [11:51:26]MH_I2C_Read... [11:51:26]Read from MH i2c: E2 03 00 [11:51:26]MH_I2C_Read... [11:51:26]Read from MH i2c: E2 03 00 5F 05 00 90 00 D8 [11:51:26]RAPDU: 90 00 [11:51:26]wFMCommunicate OK [11:51:26]wFMCommunicate request_size=255 [11:51:26]MH_SAM_APDU [11:51:26]CAPDU: 80 0D 02 02 FA 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 33 31 06 04 2F 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 3E 82 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 [11:51:26]Write to MH i2c: E2 02 01 60 05 80 0D 02 02 FA 00 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 33 31 06 04 2F 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 3E 82 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 00 00 00 [11:51:26]Write i2c OK [11:51:26]MH_I2C_Read... [11:51:27]ConnectInit Can't connect to host [11:51:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:27]Read from MH i2c: E2 [11:51:27]MH_I2C_Read... [11:51:27]Read from MH i2c: E2 03 00 [11:51:27]MH_I2C_Read... [11:51:27]Read from MH i2c: E2 03 00 60 05 00 90 00 D9 [11:51:27]RAPDU: 90 00 [11:51:27]wFMCommunicate OK [11:51:27]wFMCommunicate request_size=48 [11:51:27]MH_SAM_APDU [11:51:27]CAPDU: 80 0D 02 02 2B 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 95 A3 00 00 35 04 06 00 24 8B 3A 90 B7 F4 [11:51:27]Write to MH i2c: E2 33 00 61 05 80 0D 02 02 2B 00 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 95 A3 00 00 35 04 06 00 24 8B 3A 90 B7 F4 00 00 40 [11:51:27]Write i2c OK [11:51:27]MH_I2C_Read... [11:51:27]Read from MH i2c: E2 [11:51:27]MH_I2C_Read... [11:51:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:27]Read from MH i2c: E2 03 00 [11:51:27]MH_I2C_Read... [11:51:27]Read from MH i2c: E2 03 00 61 05 00 90 00 DA [11:51:27]RAPDU: 90 00 [11:51:27]wFMCommunicate OK [11:51:27]wFMCommunicate request_size=4 [11:51:27]MH_SAM_APDU [11:51:27]CAPDU: 80 0D 03 02 [11:51:27]Write to MH i2c: E2 08 00 62 05 80 0D 03 02 00 00 00 00 E2 [11:51:27]Write i2c OK [11:51:27]MH_I2C_Read... [11:51:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:51:27]Read from MH i2c: E2 [11:51:27]MH_I2C_Read... [11:51:27]Read from MH i2c: E2 0B 00 [11:51:27]MH_I2C_Read... [11:51:27]Read from MH i2c: E2 0B 00 62 05 00 5C 0A 6F 1C 3C 32 9A A0 90 00 7C [11:51:27]RAPDU: 5C 0A 6F 1C 3C 32 9A A0 90 00 [11:51:27]wFMCommunicate OK [11:51:27]SAM_PROTO_SignData done [11:51:27]FM_MakeSignedData done [11:51:27]CreateOFDProtocolMessage [11:51:27]wFMCommunicate request_size=4 [11:51:27]MH_SAM_APDU [11:51:27]CAPDU: 80 11 00 00 [11:51:27]Write to MH i2c: E2 08 00 63 05 80 11 00 00 00 00 00 00 E2 [11:51:27]Write i2c OK [11:51:27]MH_I2C_Read... [11:51:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:27]Read from MH i2c: E2 [11:51:27]MH_I2C_Read... [11:51:27]Read from MH i2c: E2 17 00 [11:51:27]MH_I2C_Read... [11:51:27]Read from MH i2c: E2 17 00 63 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 3E [11:51:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [11:51:27]wFMCommunicate OK [11:51:27]CreateOFDProtocolMessage done [11:51:27]OFDSenderStorePacket 41877 [11:51:27]StoreOFDPacket docnum=41877 [11:51:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 35 01 00 00 61 25 2D 01 F7 6A 5A 03 01 00 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 33 31 06 04 2F 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 3E 82 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 95 A3 00 00 35 04 06 00 24 8B 3A 90 B7 F4 5C 0A 6F 1C 3C 32 9A A0 [11:51:27]CheckFolder [11:51:27]dirname=/storage/ofd_packets [11:51:27]CheckFolder done [11:51:27]ProducePacketName [11:51:27]name=ofd_packets/00041877 [11:51:27]NVStorageSaveData ofd_packets/00041877 [11:51:27]File name is /storage/ofd_packets/00041877 [11:51:27]Write 339 bytes [11:51:27]NVStorageSaveData done [11:51:27]OFDSenderStorePacket done [11:51:27]KKMCreateOFDPacket done [11:51:27]NVStorageSaveData kkm_last_timestamp [11:51:27]File name is /storage/kkm_last_timestamp [11:51:27]Write 4 bytes [11:51:27]NVStorageSaveData done [11:51:27]ExternCall_PrintAddStr [11:51:27]wPrintStart [11:51:27]Write to MH i2c: 01 00 00 64 05 69 [11:51:27]Write i2c OK [11:51:27]MH_I2C_Read... [11:51:27]Read from MH i2c: 01 [11:51:27]MH_I2C_Read... [11:51:27]Read from MH i2c: 01 07 00 [11:51:27]MH_I2C_Read... [11:51:27]Read from MH i2c: 01 07 00 64 05 00 00 00 00 00 FF 0F 7E [11:51:27]RasterBufferAndPrint [11:51:27]line Счет N : (3)183905 [11:51:27]line ИНН: 02508201610067 [11:51:27]line Контрольно-Кассовый Чек [11:51:27]line ПРОДАЖА [11:51:27]line Товар: 5449000176431 [11:51:27]line Сок Piko Pulpy апельсин ПЭТ 0,5л [11:51:27]line 2.000 * 95.00 [11:51:27]line = 190.00 [11:51:27]line НДС 12% НСП 1% [11:51:27]line > о реализуемом товаре [11:51:27]line ИТОГО: 190.00 [11:51:27]line НСП 1% : 1.68 [11:51:27]line НДС 12% : 20.18 [11:51:27]line Наличными: 190.00 [11:51:27]line Безнал.: 0.00 [11:51:27]line Место: АЗС № 97 "Партнер Нефть" [11:51:27]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [11:51:27]line СНО: Общий режим [11:51:27]line Чек 66 29.07.2024 11:51 [11:51:27]line Смена: 427 ФФД: 1.0 [11:51:27]line ЗНМ: 0300000053 [11:51:27]line РНМ: 0000000000092626 [11:51:27]line Версия ККМ: 001 [11:51:27]line ФМ: 0000000000874958 [11:51:27]line ФД: 41877 [11:51:27]line ФПД: 40180401616884 [11:51:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T115126&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41877&fm=40180401616884&tin=02508201610067®Number=0000000000092626&sum=19000 [11:51:27]line 0 [11:51:27]written 0, free lines is 4095 [11:51:28]Write to MH i2c: 01 00 00 8D 05 92 [11:51:28]Write i2c OK [11:51:28]MH_I2C_Read... [11:51:28]Read from MH i2c: 01 [11:51:28]MH_I2C_Read... [11:51:28]Read from MH i2c: 01 07 00 [11:51:28]MH_I2C_Read... [11:51:28]Read from MH i2c: 01 07 00 8D 05 00 00 00 00 00 F7 0C 9C [11:51:28]RasterBufferAndPrint [11:51:28]line [11:51:28]line [11:51:28]line [11:51:28]line [11:51:28]line [11:51:28]written 0, free lines is 3325 [11:51:28]MH_Cut [11:51:28]Write to MH i2c: D1 01 00 94 05 01 6B [11:51:28]Write i2c OK [11:51:28]MH_I2C_Read... [11:51:28]Read from MH i2c: D1 [11:51:28]MH_I2C_Read... [11:51:28]Read from MH i2c: D1 01 00 [11:51:28]MH_I2C_Read... [11:51:28]Read from MH i2c: D1 01 00 94 05 00 6A [11:51:28]Write to MH i2c: 01 00 00 95 05 9A [11:51:28]Write i2c OK [11:51:28]MH_I2C_Read... [11:51:28]*** Cut start [11:51:28]*** Partial cut [11:51:28]*** CUTSNS_PIN = 1 [11:51:28]*** CUTSNS_PIN = 0 [11:51:28]ConnectInit Can't take IP for lk.salyk.kg [11:51:28]CommunicateWithHost connect error [11:51:28]CommunicateWithHost err = -1 [11:51:28]OFD Sender: Server communicate error [11:51:29]OFD Sender: Processing packet 41876 [packets to send 58, broken 56] [11:51:29]ProducePacketName [11:51:29]name=ofd_packets/00041876 [11:51:29]OFD Sender: To server: pG, [11:51:29]CommunicateWithHost lk.salyk.kg:30040 [11:51:29]ConnectInit lk.salyk.kg [11:51:29]*** Brake cut motor [11:51:29]Read from MH i2c: 01 [11:51:29]MH_I2C_Read... [11:51:29]*** Stop cut motor [11:51:29]*** Cut end [11:51:29]Read from MH i2c: 01 07 00 [11:51:29]MH_I2C_Read... [11:51:29]Read from MH i2c: 01 07 00 95 05 00 00 00 00 00 FF 0F AF [11:51:29]process_action close_receipt done [11:51:29]requested_data is exist [11:51:29]produce_requested_data [11:51:29]requested_item fm.sn is exist - process it [11:51:29]wFMCommunicate request_size=4 [11:51:29]MH_SAM_APDU [11:51:29]CAPDU: 80 11 00 00 [11:51:29]Write to MH i2c: E2 08 00 96 05 80 11 00 00 00 00 00 00 15 [11:51:29]Write i2c OK [11:51:29]MH_I2C_Read... [11:51:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:29]Read from MH i2c: E2 [11:51:29]MH_I2C_Read... [11:51:29]Read from MH i2c: E2 17 00 [11:51:29]MH_I2C_Read... [11:51:29]Read from MH i2c: E2 17 00 96 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 71 [11:51:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [11:51:29]wFMCommunicate OK [11:51:29]requested_item fd.num is exist - process it [11:51:29]SAM_PROTO_GetFieldsCounters [11:51:29]wFMCommunicate request_size=4 [11:51:29]MH_SAM_APDU [11:51:29]CAPDU: 80 13 00 00 [11:51:29]Write to MH i2c: E2 08 00 97 05 80 13 00 00 00 00 00 00 18 [11:51:29]Write i2c OK [11:51:29]MH_I2C_Read... [11:51:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:51:29]Read from MH i2c: E2 [11:51:29]MH_I2C_Read... [11:51:29]Read from MH i2c: E2 62 00 [11:51:29]MH_I2C_Read... [11:51:29]Read from MH i2c: E2 62 00 97 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 95 A3 00 00 0E 04 04 00 AB 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 EC [11:51:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 95 A3 00 00 0E 04 04 00 AB 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 [11:51:29]wFMCommunicate OK [11:51:29]SAM_PROTO_GetFieldsCounters done [11:51:29]requested_item shift.num is exist - process it [11:51:29]requested_item shift.opened is exist - process it [11:51:29]req_shift_opened [11:51:29]FM_GetShiftState [11:51:29]SAM_PROTO_GetShiftState [11:51:29]wFMCommunicate request_size=4 [11:51:29]MH_SAM_APDU [11:51:29]CAPDU: 80 13 01 00 [11:51:29]Write to MH i2c: E2 08 00 98 05 80 13 01 00 00 00 00 00 1A [11:51:29]Write i2c OK [11:51:29]MH_I2C_Read... [11:51:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:29]Read from MH i2c: E2 [11:51:29]MH_I2C_Read... [11:51:29]Read from MH i2c: E2 0E 00 [11:51:29]MH_I2C_Read... [11:51:29]Read from MH i2c: E2 0E 00 98 05 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 B6 [11:51:29]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [11:51:29]wFMCommunicate OK [11:51:29]SAM_PROTO_GetShiftState done [11:51:29]FM_GetShiftState done [11:51:29]req_shift_opened done [11:51:29]requested_item shift.open_date is exist - process it [11:51:29]req_shift_open_date [11:51:29]req_shift_open_date done [11:51:29]produce_requested_data done [11:51:29]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41877,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [11:51:29]process_action_free close_receipt [11:51:29]json_value_free [11:51:29]json_value_free done [11:51:29]process_json_proto returns [11:51:29]Send response to host [11:51:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41877,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [11:51:29]free response buf [11:51:29]execute_script done [11:51:29]execute_script returns [11:51:29]free content buf [11:51:29]Sock 9.Close socket [11:51:29]Sock 9.Thread stoped [11:51:34]Connected sock=8 [11:51: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 35 38 A8 01 00 00 A3 6E A0 01 E6 4C 5A 03 01 00 03 00 94 01 1E 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8B 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 32 39 37 06 04 47 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 D0 B5 D1 82 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 D0 90 D0 BD D0 B0 D0 BD D0 B0 D1 81 2D D0 B3 D1 83 D0 B0 D0 B2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 1C 82 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 94 A3 00 00 35 04 06 00 F7 07 8E CA 40 77 53 39 82 03 62 A1 FE 11 [11:51:39]recv_with_timeout no data received [11:51:39]recv_with_timeout no data received [11:51:39]CommunicateWithHost answer receiving error [11:51:39]CommunicateWithHost err = -3 [11:51:39]OFD Sender: Server communicate error [11:51:44]OFD Sender: Processing packet 41876 [packets to send 58, broken 56] [11:51:44]ProducePacketName [11:51:44]name=ofd_packets/00041876 [11:51:44]OFD Sender: To server: pG, [11:51:44]CommunicateWithHost lk.salyk.kg:30040 [11:51:44]ConnectInit lk.salyk.kg [11:51:52]recv_with_timeout no data received [11:51:54]Connected sock=9 [11:51: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 35 38 A8 01 00 00 A3 6E A0 01 E6 4C 5A 03 01 00 03 00 94 01 1E 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8B 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 32 39 37 06 04 47 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 D0 B5 D1 82 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 D0 90 D0 BD D0 B0 D0 BD D0 B0 D1 81 2D D0 B3 D1 83 D0 B0 D0 B2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 1C 82 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 94 A3 00 00 35 04 06 00 F7 07 8E CA 40 77 53 39 82 03 62 A1 FE 11 [11:51:59]recv_with_timeout no data received [11:51:59]CommunicateWithHost answer receiving error [11:51:59]CommunicateWithHost err = -3 [11:51:59]OFD Sender: Server communicate error [11:52:04]OFD Sender: Processing packet 41876 [packets to send 58, broken 56] [11:52:04]ProducePacketName [11:52:04]name=ofd_packets/00041876 [11:52:04]OFD Sender: To server: pG, [11:52:04]CommunicateWithHost lk.salyk.kg:30040 [11:52:04]ConnectInit lk.salyk.kg [11:52:05]recv_with_timeout no data received [11:52:09]ConnectInit Can't take IP for lk.salyk.kg [11:52:09]CommunicateWithHost connect error [11:52:09]CommunicateWithHost err = -1 [11:52:09]OFD Sender: Server communicate error [11:52:14]OFD Sender: Processing packet 41876 [packets to send 58, broken 56] [11:52:14]ProducePacketName [11:52:14]name=ofd_packets/00041876 [11:52:14]OFD Sender: To server: pG, [11:52:14]CommunicateWithHost lk.salyk.kg:30040 [11:52:14]ConnectInit lk.salyk.kg [11:52:23]Connected sock=9 [11:52: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 35 38 A8 01 00 00 A3 6E A0 01 E6 4C 5A 03 01 00 03 00 94 01 1E 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8B 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 32 39 37 06 04 47 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 D0 B5 D1 82 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 D0 90 D0 BD D0 B0 D0 BD D0 B0 D1 81 2D D0 B3 D1 83 D0 B0 D0 B2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 1C 82 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 94 A3 00 00 35 04 06 00 F7 07 8E CA 40 77 53 39 82 03 62 A1 FE 11 [11:52: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 35 38 4F 00 00 00 71 DB 47 00 2D 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 94 A3 00 00 F4 03 04 00 8D 2E A7 66 B6 04 01 00 00 A6 06 C6 ED DA C0 54 0B [11:52:26]CommunicateWithHost err = 0 [11:52:26]CheckOFDResponse [11:52:26]1017 (14) - 77093643461234 [11:52:26]1041 (16) - 0000000000874958 [11:52:26]1040 (4) - 41876 [11:52:26]1012 (4) - 29.07.2024 05:54 [11:52:26]1206 (1) - 0 [11:52:26]OFD Sender: Remove packet 41876 [11:52:26]ProducePacketName [11:52:26]name=ofd_packets/00041876 [11:52:26]NVStorageDeleteData [11:52:26]OFD Sender: Processing packet 41877 [packets to send 57, broken 56] [11:52:26]ProducePacketName [11:52:26]name=ofd_packets/00041877 [11:52:26]OFD Sender: To server: pG, [11:52:26]CommunicateWithHost lk.salyk.kg:30040 [11:52:26]ConnectInit lk.salyk.kg [11:52:33]Connected sock=9 [11:52: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 35 38 35 01 00 00 61 25 2D 01 F7 6A 5A 03 01 00 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 33 31 06 04 2F 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 3E 82 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 95 A3 00 00 35 04 06 00 24 8B 3A 90 B7 F4 5C 0A 6F 1C 3C 32 9A A0 [11:52: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 35 38 4F 00 00 00 B9 B5 47 00 2C 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 35 38 10 04 04 00 95 A3 00 00 F4 03 04 00 95 2E A7 66 B6 04 01 00 00 A7 AF D3 23 DE 26 10 64 [11:52:34]CommunicateWithHost err = 0 [11:52:34]CheckOFDResponse [11:52:34]1017 (14) - 77093643461234 [11:52:34]1041 (16) - 0000000000874958 [11:52:34]1040 (4) - 41877 [11:52:34]1012 (4) - 29.07.2024 05:54 [11:52:34]1206 (1) - 0 [11:52:34]OFD Sender: Remove packet 41877 [11:52:34]ProducePacketName [11:52:34]name=ofd_packets/00041877 [11:52:34]NVStorageDeleteData [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:50]OFD Sender: No OFD packet to send [11:52:55]OFD Sender: No OFD packet to send [11:53:00]OFD Sender: No OFD packet to send [11:53:05]OFD Sender: No OFD packet to send [11:53:10]OFD Sender: No OFD packet to send [11:53:15]OFD Sender: No OFD packet to send [11:53:18]recv_with_timeout no data received [11:53:20]OFD Sender: No OFD packet to send [11:53:25]OFD Sender: No OFD packet to send [11:53:30]OFD Sender: No OFD packet to send [11:53:35]OFD Sender: No OFD packet to send [11:53:40]OFD Sender: No OFD packet to send [11:53:45]OFD Sender: No OFD packet to send [11:53:50]OFD Sender: No OFD packet to send [11:53:55]OFD Sender: No OFD packet to send [11:54:00]OFD Sender: No OFD packet to send [11:54:05]OFD Sender: No OFD packet to send [11:54:10]OFD Sender: No OFD packet to send [11:54:15]OFD Sender: No OFD packet to send [11:54:20]OFD Sender: No OFD packet to send [11:54:45]OFD Sender: No OFD packet to send [11:54:50]OFD Sender: No OFD packet to send [11:54:50]recv_with_timeout no data received [11:54:55]OFD Sender: No OFD packet to send [11:55:00]OFD Sender: No OFD packet to send [11:55:05]OFD Sender: No OFD packet to send [11:55:10]OFD Sender: No OFD packet to send [11:55:15]OFD Sender: No OFD packet to send [11:55:20]OFD Sender: No OFD packet to send [11:55:25]OFD Sender: No OFD packet to send [11:55:30]OFD Sender: No OFD packet to send [11:55:35]OFD Sender: No OFD packet to send [11:55:35]recv_with_timeout no data received [11:55:40]OFD Sender: No OFD packet to send [11:55:45]OFD Sender: No OFD packet to send [11:55:50]OFD Sender: No OFD packet to send [11:55:55]OFD Sender: No OFD packet to send [11:56:00]OFD Sender: No OFD packet to send [11:56:05]OFD Sender: No OFD packet to send [11:56:10]OFD Sender: No OFD packet to send [11:56:15]OFD Sender: No OFD packet to send [11:56:20]OFD Sender: No OFD packet to send [11:56:25]OFD Sender: No OFD packet to send [11:56:30]OFD Sender: No OFD packet to send [11:56:35]OFD Sender: No OFD packet to send [11:56:40]OFD Sender: No OFD packet to send [11:56:45]OFD Sender: No OFD packet to send [11:56:50]recv_with_timeout no data received [11:56:50]OFD Sender: No OFD packet to send [11:56:55]OFD Sender: No OFD packet to send [11:57:00]OFD Sender: No OFD packet to send [11:57:05]OFD Sender: No OFD packet to send [11:57:10]OFD Sender: No OFD packet to send [11:57:15]OFD Sender: No OFD packet to send [11:57:20]OFD Sender: No OFD packet to send [11:57:25]OFD Sender: No OFD packet to send [11:57:30]OFD Sender: No OFD packet to send [11:57:35]OFD Sender: No OFD packet to send [11:57:40]OFD Sender: No OFD packet to send [11:57:45]OFD Sender: No OFD packet to send [11:57:50]OFD Sender: No OFD packet to send [11:57:55]OFD Sender: No OFD packet to send [11:58:00]OFD Sender: No OFD packet to send [11:58:05]OFD Sender: No OFD packet to send [11:58:10]OFD Sender: No OFD packet to send [11:58:15]OFD Sender: No OFD packet to send [11:58:20]OFD Sender: No OFD packet to send [11:58:25]OFD Sender: No OFD packet to send [11:58:30]OFD Sender: No OFD packet to send [11:58:35]OFD Sender: No OFD packet to send [11:58:40]OFD Sender: No OFD packet to send [11:58:45]OFD Sender: No OFD packet to send [11:58:50]OFD Sender: No OFD packet to send [11:58:55]OFD Sender: No OFD packet to send [11:59:00]OFD Sender: No OFD packet to send [11:59:05]OFD Sender: No OFD packet to send [11:59:10]OFD Sender: No OFD packet to send [11:59:15]OFD Sender: No OFD packet to send [11:59:20]OFD Sender: No OFD packet to send [11:59:25]OFD Sender: No OFD packet to send [11:59:30]OFD Sender: No OFD packet to send [11:59:35]OFD Sender: No OFD packet to send [11:59:40]OFD Sender: No OFD packet to send [11:59:45]OFD Sender: No OFD packet to send [11:59:50]OFD Sender: No OFD packet to send [11:59:55]OFD Sender: No OFD packet to send [12:00:00]OFD Sender: No OFD packet to send [12:00:05]OFD Sender: No OFD packet to send [12:00:10]OFD Sender: No OFD packet to send [12:00:15]OFD Sender: No OFD packet to send [12:00:20]OFD Sender: No OFD packet to send [12:00:25]OFD Sender: No OFD packet to send [12:00:28]recv_with_timeout no data received [12:00:30]OFD Sender: No OFD packet to send [12:00:35]OFD Sender: No OFD packet to send [12:00:40]OFD Sender: No OFD packet to send [12:00:45]OFD Sender: No OFD packet to send [12:00:50]OFD Sender: No OFD packet to send [12:00:55]OFD Sender: No OFD packet to send [12:00:59]recv_with_timeout no data received [12:01:00]OFD Sender: No OFD packet to send [12:01:05]OFD Sender: No OFD packet to send [12:01:10]OFD Sender: No OFD packet to send [12:01:15]OFD Sender: No OFD packet to send [12:01:20]OFD Sender: No OFD packet to send [12:01:25]OFD Sender: No OFD packet to send [12:01:30]OFD Sender: No OFD packet to send [12:01:34]recv_with_timeout no data received [12:01:35]OFD Sender: No OFD packet to send [12:01:40]OFD Sender: No OFD packet to send [12:01:45]OFD Sender: No OFD packet to send [12:01:50]OFD Sender: No OFD packet to send [12:01:55]OFD Sender: No OFD packet to send [12:02:00]OFD Sender: No OFD packet to send [12:02:05]OFD Sender: No OFD packet to send [12:02:10]OFD Sender: No OFD packet to send [12:02:15]OFD Sender: No OFD packet to send [12:02:20]OFD Sender: No OFD packet to send [12:02:25]OFD Sender: No OFD packet to send [12:02:30]OFD Sender: No OFD packet to send [12:02:35]OFD Sender: No OFD packet to send [12:02:40]OFD Sender: No OFD packet to send [12:02:45]OFD Sender: No OFD packet to send [12:02:50]OFD Sender: No OFD packet to send [12:02:55]OFD Sender: No OFD packet to send [12:03:00]OFD Sender: No OFD packet to send [12:03:05]OFD Sender: No OFD packet to send [12:03:10]OFD Sender: No OFD packet to send [12:03:15]OFD Sender: No OFD packet to send [12:03:20]OFD Sender: No OFD packet to send [12:03:25]OFD Sender: No OFD packet to send [12:03:30]OFD Sender: No OFD packet to send [12:03:35]OFD Sender: No OFD packet to send [12:03:40]OFD Sender: No OFD packet to send [12:03:45]OFD Sender: No OFD packet to send [12:03:50]OFD Sender: No OFD packet to send [12:03:55]OFD Sender: No OFD packet to send [12:04:00]OFD Sender: No OFD packet to send [12:04:05]OFD Sender: No OFD packet to send [12:04:10]OFD Sender: No OFD packet to send [12:04:12]recv_with_timeout no data received [12:04:15]OFD Sender: No OFD packet to send [12:04:20]OFD Sender: No OFD packet to send [12:04:25]OFD Sender: No OFD packet to send [12:04:30]OFD Sender: No OFD packet to send [12:04:35]OFD Sender: No OFD packet to send [12:04:40]OFD Sender: No OFD packet to send [12:04:45]OFD Sender: No OFD packet to send [12:04:50]OFD Sender: No OFD packet to send [12:04:52]recv_with_timeout no data received [12:04:55]OFD Sender: No OFD packet to send [12:05:00]OFD Sender: No OFD packet to send [12:05:03]recv_with_timeout no data received [12:05:05]OFD Sender: No OFD packet to send [12:05:10]OFD Sender: No OFD packet to send [12:05:15]OFD Sender: No OFD packet to send [12:05:20]OFD Sender: No OFD packet to send [12:05:25]OFD Sender: No OFD packet to send [12:05:30]OFD Sender: No OFD packet to send [12:05:35]OFD Sender: No OFD packet to send [12:05:40]OFD Sender: No OFD packet to send [12:05:45]OFD Sender: No OFD packet to send [12:05:50]OFD Sender: No OFD packet to send [12:05:55]OFD Sender: No OFD packet to send [12:06:00]OFD Sender: No OFD packet to send [12:06:05]OFD Sender: No OFD packet to send [12:06:10]OFD Sender: No OFD packet to send [12:06:15]OFD Sender: No OFD packet to send [12:06:20]OFD Sender: No OFD packet to send [12:06:25]OFD Sender: No OFD packet to send [12:06:30]OFD Sender: No OFD packet to send [12:06:34]recv_with_timeout no data received [12:06:35]OFD Sender: No OFD packet to send [12:06:40]OFD Sender: No OFD packet to send [12:06:45]OFD Sender: No OFD packet to send [12:06:51]OFD Sender: No OFD packet to send [12:06:56]OFD Sender: No OFD packet to send [12:07:01]OFD Sender: No OFD packet to send [12:07:06]OFD Sender: No OFD packet to send [12:07:11]OFD Sender: No OFD packet to send [12:07:16]OFD Sender: No OFD packet to send [12:07:21]OFD Sender: No OFD packet to send [12:07:26]OFD Sender: No OFD packet to send [12:07:31]OFD Sender: No OFD packet to send [12:07:36]OFD Sender: No OFD packet to send [12:07:41]OFD Sender: No OFD packet to send [12:07:46]OFD Sender: No OFD packet to send [12:07:51]OFD Sender: No OFD packet to send [12:07:56]OFD Sender: No OFD packet to send [12:08:01]OFD Sender: No OFD packet to send [12:08:06]OFD Sender: No OFD packet to send [12:08:11]OFD Sender: No OFD packet to send [12:08:16]OFD Sender: No OFD packet to send [12:08:26]OFD Sender: No OFD packet to send [12:08:31]OFD Sender: No OFD packet to send [12:08:36]OFD Sender: No OFD packet to send [12:08:37]recv_with_timeout no data received [12:08:41]OFD Sender: No OFD packet to send [12:08:46]OFD Sender: No OFD packet to send [12:08:51]OFD Sender: No OFD packet to send [12:08:56]OFD Sender: No OFD packet to send [12:09:01]OFD Sender: No OFD packet to send [12:09:06]OFD Sender: No OFD packet to send [12:09:11]OFD Sender: No OFD packet to send [12:09:16]OFD Sender: No OFD packet to send [12:09:21]OFD Sender: No OFD packet to send [12:09:26]OFD Sender: No OFD packet to send [12:09:31]OFD Sender: No OFD packet to send [12:09:36]OFD Sender: No OFD packet to send [12:09:41]OFD Sender: No OFD packet to send [12:09:46]OFD Sender: No OFD packet to send [12:09:50]recv_with_timeout no data received [12:09:51]OFD Sender: No OFD packet to send [12:09:56]OFD Sender: No OFD packet to send [12:10:01]OFD Sender: No OFD packet to send [12:10:06]OFD Sender: No OFD packet to send [12:10:11]OFD Sender: No OFD packet to send [12:10:16]OFD Sender: No OFD packet to send [12:10:21]OFD Sender: No OFD packet to send [12:10:26]OFD Sender: No OFD packet to send [12:10:31]recv_with_timeout no data received [12:10:31]OFD Sender: No OFD packet to send [12:10:36]OFD Sender: No OFD packet to send [12:10:41]OFD Sender: No OFD packet to send [12:10:46]OFD Sender: No OFD packet to send [12:10:51]OFD Sender: No OFD packet to send [12:10:56]OFD Sender: No OFD packet to send [12:11:01]OFD Sender: No OFD packet to send [12:11:06]OFD Sender: No OFD packet to send [12:11:11]OFD Sender: No OFD packet to send [12:11:16]OFD Sender: No OFD packet to send [12:11:21]OFD Sender: No OFD packet to send [12:11:26]OFD Sender: No OFD packet to send [12:11:31]OFD Sender: No OFD packet to send [12:11:36]OFD Sender: No OFD packet to send [12:11:41]OFD Sender: No OFD packet to send [12:11:46]OFD Sender: No OFD packet to send [12:11:51]OFD Sender: No OFD packet to send [12:11:56]OFD Sender: No OFD packet to send [12:12:01]OFD Sender: No OFD packet to send [12:12:06]OFD Sender: No OFD packet to send [12:12:11]OFD Sender: No OFD packet to send [12:12:16]OFD Sender: No OFD packet to send [12:12:21]OFD Sender: No OFD packet to send [12:12:26]OFD Sender: No OFD packet to send [12:12:31]OFD Sender: No OFD packet to send [12:12:36]OFD Sender: No OFD packet to send [12:12:41]OFD Sender: No OFD packet to send [12:12:46]OFD Sender: No OFD packet to send [12:12:51]OFD Sender: No OFD packet to send [12:12:53]recv_with_timeout no data received [12:12:56]OFD Sender: No OFD packet to send [12:13:01]OFD Sender: No OFD packet to send [12:13:06]OFD Sender: No OFD packet to send [12:13:09]recv_with_timeout no data received [12:13:11]OFD Sender: No OFD packet to send [12:13:16]OFD Sender: No OFD packet to send [12:13:21]OFD Sender: No OFD packet to send [12:13:26]OFD Sender: No OFD packet to send [12:13:31]OFD Sender: No OFD packet to send [12:13:33]recv_with_timeout no data received [12:13:36]OFD Sender: No OFD packet to send [12:13:41]OFD Sender: No OFD packet to send [12:13:46]OFD Sender: No OFD packet to send [12:13:51]OFD Sender: No OFD packet to send [12:13:56]OFD Sender: No OFD packet to send [12:14:01]OFD Sender: No OFD packet to send [12:14:06]OFD Sender: No OFD packet to send [12:14:11]OFD Sender: No OFD packet to send [12:14:16]OFD Sender: No OFD packet to send [12:14:21]OFD Sender: No OFD packet to send [12:14:26]OFD Sender: No OFD packet to send [12:14:31]OFD Sender: No OFD packet to send [12:14:36]OFD Sender: No OFD packet to send [12:14:41]OFD Sender: No OFD packet to send [12:14:46]OFD Sender: No OFD packet to send [12:14:51]OFD Sender: No OFD packet to send [12:14:56]OFD Sender: No OFD packet to send [12:15:01]OFD Sender: No OFD packet to send [12:15:06]OFD Sender: No OFD packet to send [12:15:11]OFD Sender: No OFD packet to send [12:15:16]OFD Sender: No OFD packet to send [12:15:21]OFD Sender: No OFD packet to send [12:15:26]OFD Sender: No OFD packet to send [12:15:31]OFD Sender: No OFD packet to send [12:15:36]OFD Sender: No OFD packet to send [12:15:41]OFD Sender: No OFD packet to send [12:15:46]OFD Sender: No OFD packet to send [12:15:51]OFD Sender: No OFD packet to send [12:15:56]OFD Sender: No OFD packet to send [12:16:01]OFD Sender: No OFD packet to send [12:16:06]OFD Sender: No OFD packet to send [12:16:11]OFD Sender: No OFD packet to send [12:16:16]OFD Sender: No OFD packet to send [12:16:21]OFD Sender: No OFD packet to send [12:16:26]OFD Sender: No OFD packet to send [12:16:31]OFD Sender: No OFD packet to send [12:16:36]OFD Sender: No OFD packet to send [12:16:41]OFD Sender: No OFD packet to send [12:16:46]OFD Sender: No OFD packet to send [12:16:51]OFD Sender: No OFD packet to send [12:16:56]OFD Sender: No OFD packet to send [12:17:01]OFD Sender: No OFD packet to send [12:17:06]OFD Sender: No OFD packet to send [12:17:11]OFD Sender: No OFD packet to send [12:17:16]OFD Sender: No OFD packet to send [12:17:21]OFD Sender: No OFD packet to send [12:17:26]OFD Sender: No OFD packet to send [12:17:31]OFD Sender: No OFD packet to send [12:17:36]OFD Sender: No OFD packet to send [12:17:41]OFD Sender: No OFD packet to send [12:17:46]OFD Sender: No OFD packet to send [12:17:51]OFD Sender: No OFD packet to send [12:17:56]OFD Sender: No OFD packet to send [12:18:01]OFD Sender: No OFD packet to send [12:18:06]OFD Sender: No OFD packet to send [12:18:11]OFD Sender: No OFD packet to send [12:18:16]OFD Sender: No OFD packet to send [12:18:21]OFD Sender: No OFD packet to send [12:18:26]OFD Sender: No OFD packet to send [12:18:31]OFD Sender: No OFD packet to send [12:18:36]OFD Sender: No OFD packet to send [12:18:41]OFD Sender: No OFD packet to send [12:18:42]recv_with_timeout no data received [12:18:46]OFD Sender: No OFD packet to send [12:18:51]OFD Sender: No OFD packet to send [12:18:56]OFD Sender: No OFD packet to send [12:19:01]OFD Sender: No OFD packet to send [12:19:06]OFD Sender: No OFD packet to send [12:19:11]OFD Sender: No OFD packet to send [12:19:16]OFD Sender: No OFD packet to send [12:19:21]OFD Sender: No OFD packet to send [12:19:26]OFD Sender: No OFD packet to send [12:19:31]OFD Sender: No OFD packet to send [12:19:36]OFD Sender: No OFD packet to send [12:19:41]OFD Sender: No OFD packet to send [12:19:46]OFD Sender: No OFD packet to send [12:19:51]OFD Sender: No OFD packet to send [12:19:56]OFD Sender: No OFD packet to send [12:20:01]OFD Sender: No OFD packet to send [12:20:06]OFD Sender: No OFD packet to send [12:20:09]accept exits with 11 [12:20:09]New connection [12:20:09]New thread 3066760548 created [12:20:09]Thread 3066903908 joined [12:20:09]Waiting for new connection... [12:20:09] Sock 11.Parse request [12:20:09]Sock 11.Check first char [12:20:09]Sock 11.First char is OK [12:20:09]request: POST /json_proto HTTP/1.0 [12:20:09]Method: POST [12:20:09]URL: /json_proto [12:20:09]Method is POST - this is cgi request [12:20:09]url: /json_proto [12:20:09]query_string will be loaded in cgi processing [12:20:09]execute_cgi json_proto POST (null) [12:20:09]execute_cgi path=json_proto method=POST [12:20:09]POST find Content-Length [12:20:09]Host: 172.17.43.132:8080 [12:20:09]Content-Length: 632 [12:20:09]Content-Type: application/json [12:20:09] [12:20:09]POST finish read [12:20:09]Found Content-Length = 632 [12:20:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183906", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 2.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:09]execute_script... [12:20: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 : (3)183906", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 2.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:09]POST & json_proto [12:20:09]process_json_proto [12:20:09]json parsed OK: [12:20:09]protocol is kg_v1.0 [12:20:09]action value=close_receipt [12:20:09]process_action close_receipt [12:20:09]cmd_close_receipt [12:20:09]MH_GetDate [12:20:09]Write to MH i2c: F0 00 00 99 05 8D [12:20:09]Write i2c OK [12:20:09]MH_I2C_Read... [12:20:09]Read from MH i2c: F0 [12:20:09]MH_I2C_Read... [12:20:09]Read from MH i2c: F0 09 00 [12:20:09]MH_I2C_Read... [12:20:09]Read from MH i2c: F0 09 00 99 05 00 FA 88 A7 66 F8 53 A7 66 7D [12:20:09]GetLastDocTimeStamp 1722253886 [12:20:09]current date 1722255610 [12:20:09]FM_GetShiftState [12:20:09]SAM_PROTO_GetShiftState [12:20:09]wFMCommunicate request_size=4 [12:20:09]MH_SAM_APDU [12:20:09]CAPDU: 80 13 01 00 [12:20:09]Write to MH i2c: E2 08 00 9A 05 80 13 01 00 00 00 00 00 1C [12:20:09]Write i2c OK [12:20:09]MH_I2C_Read... [12:20:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:09]Read from MH i2c: E2 [12:20:09]MH_I2C_Read... [12:20:09]Read from MH i2c: E2 0E 00 [12:20:09]MH_I2C_Read... [12:20:09]Read from MH i2c: E2 0E 00 9A 05 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 B8 [12:20:09]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [12:20:09]wFMCommunicate OK [12:20:09]SAM_PROTO_GetShiftState done [12:20:09]FM_GetShiftState done [12:20:09]opened in 1722211496 [12:20:09]opened+sec_in_day 1722297896 [12:20:09]quantity*price = 10000 [12:20:09]sum+1 = 10001 [12:20:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 100.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 67 29.07.2024 12:20 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41878 ФПД: 90184639285085 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T122010&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41878&fm=90184639285085&tin=02508201610067®Number=0000000000092626&sum=10000 0 [12:20:10]StoreToDocumentArchive [12:20:10]shift 427 fd 41878 [12:20:10]save to /storage/0427/doc_00041878 [12:20:10]save last doc name /storage/0427/doc_00041878 to /storage/kkm_last_doc_name [12:20:10]save OK [12:20:10]Clear old archive folders... [12:20:10]ProcessDocumentItem done err = 0, tmpTLVsize=269 [12:20:10]tlvbuf is 0092A590 [12:20:10]SAM_PROTO_ClearQueue [12:20:10]wFMCommunicate request_size=4 [12:20:10]MH_SAM_APDU [12:20:10]CAPDU: 80 09 00 00 [12:20:10]Write to MH i2c: E2 08 00 A7 05 80 09 00 00 00 00 00 00 1E [12:20:10]Write i2c OK [12:20:10]MH_I2C_Read... [12:20:10]Read from MH i2c: E2 [12:20:10]MH_I2C_Read... [12:20:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:20:10]Read from MH i2c: E2 03 00 [12:20:10]MH_I2C_Read... [12:20:10]Read from MH i2c: E2 03 00 A7 05 00 90 00 20 [12:20:10]RAPDU: 90 00 [12:20:10]wFMCommunicate OK [12:20:10]SAM_PROTO_ClearQueue done [12:20:10]KKMCreateOFDPacket [12:20:10]OFDProtocolAddRootSTLVToBuf [12:20:10]FM_MakeSignedData [12:20:10]FM_MakeSignedData [12:20:10]SAM_PROTO_SignData [12:20:10]wFMCommunicate request_size=4 [12:20:10]MH_SAM_APDU [12:20:10]CAPDU: 80 0D 01 02 [12:20:10]Write to MH i2c: E2 08 00 A8 05 80 0D 01 02 00 00 00 00 26 [12:20:10]Write i2c OK [12:20:10]MH_I2C_Read... [12:20:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:20:10]Read from MH i2c: E2 [12:20:10]MH_I2C_Read... [12:20:10]Read from MH i2c: E2 03 00 [12:20:10]MH_I2C_Read... [12:20:10]Read from MH i2c: E2 03 00 A8 05 00 90 00 21 [12:20:10]RAPDU: 90 00 [12:20:10]wFMCommunicate OK [12:20:10]wFMCommunicate request_size=255 [12:20:10]MH_SAM_APDU [12:20:10]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 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 43 00 00 00 F4 03 04 00 FA 88 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [12:20:10]Write to MH i2c: E2 02 01 A9 05 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 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 43 00 00 00 F4 03 04 00 FA 88 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 BC [12:20:10]Write i2c OK [12:20:10]MH_I2C_Read... [12:20:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:11]Read from MH i2c: E2 [12:20:11]MH_I2C_Read... [12:20:11]Read from MH i2c: E2 03 00 [12:20:11]MH_I2C_Read... [12:20:11]Read from MH i2c: E2 03 00 A9 05 00 90 00 22 [12:20:11]RAPDU: 90 00 [12:20:11]wFMCommunicate OK [12:20:11]wFMCommunicate request_size=28 [12:20:11]MH_SAM_APDU [12:20:11]CAPDU: 80 0D 02 02 17 37 34 39 35 38 10 04 04 00 96 A3 00 00 35 04 06 00 52 05 BF 63 87 5D [12:20:11]Write to MH i2c: E2 1F 00 AA 05 80 0D 02 02 17 00 37 34 39 35 38 10 04 04 00 96 A3 00 00 35 04 06 00 52 05 BF 63 87 5D 00 00 55 [12:20:11]Write i2c OK [12:20:11]MH_I2C_Read... [12:20:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:11]Read from MH i2c: E2 [12:20:11]MH_I2C_Read... [12:20:11]Read from MH i2c: E2 03 00 [12:20:11]MH_I2C_Read... [12:20:11]Read from MH i2c: E2 03 00 AA 05 00 90 00 23 [12:20:11]RAPDU: 90 00 [12:20:11]wFMCommunicate OK [12:20:11]wFMCommunicate request_size=4 [12:20:11]MH_SAM_APDU [12:20:11]CAPDU: 80 0D 03 02 [12:20:11]Write to MH i2c: E2 08 00 AB 05 80 0D 03 02 00 00 00 00 2B [12:20:11]Write i2c OK [12:20:11]MH_I2C_Read... [12:20:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:20:11]Read from MH i2c: E2 [12:20:11]MH_I2C_Read... [12:20:11]Read from MH i2c: E2 0B 00 [12:20:11]MH_I2C_Read... [12:20:11]Read from MH i2c: E2 0B 00 AB 05 00 67 D8 31 69 73 DC 34 6E 90 00 F6 [12:20:11]RAPDU: 67 D8 31 69 73 DC 34 6E 90 00 [12:20:11]wFMCommunicate OK [12:20:11]SAM_PROTO_SignData done [12:20:11]FM_MakeSignedData done [12:20:11]CreateOFDProtocolMessage [12:20:11]wFMCommunicate request_size=4 [12:20:11]MH_SAM_APDU [12:20:11]CAPDU: 80 11 00 00 [12:20:11]Write to MH i2c: E2 08 00 AC 05 80 11 00 00 00 00 00 00 2B [12:20:11]Write i2c OK [12:20:11]MH_I2C_Read... [12:20:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:11]Read from MH i2c: E2 [12:20:11]MH_I2C_Read... [12:20:11]Read from MH i2c: E2 17 00 [12:20:11]MH_I2C_Read... [12:20:11]Read from MH i2c: E2 17 00 AC 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 87 [12:20:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [12:20:11]wFMCommunicate OK [12:20:11]CreateOFDProtocolMessage done [12:20:11]OFDSenderStorePacket 41878 [12:20:11]StoreOFDPacket docnum=41878 [12:20:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 21 01 00 00 67 DF 19 01 71 B0 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 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 43 00 00 00 F4 03 04 00 FA 88 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 96 A3 00 00 35 04 06 00 52 05 BF 63 87 5D 67 D8 31 69 73 DC 34 6E [12:20:11]CheckFolder [12:20:11]dirname=/storage/ofd_packets [12:20:11]CheckFolder done [12:20:11]ProducePacketName [12:20:11]name=ofd_packets/00041878 [12:20:11]NVStorageSaveData ofd_packets/00041878 [12:20:11]File name is /storage/ofd_packets/00041878 [12:20:11]Write 319 bytes [12:20:11]NVStorageSaveData done [12:20:11]OFDSenderStorePacket done [12:20:11]KKMCreateOFDPacket done [12:20:11]NVStorageSaveData kkm_last_timestamp [12:20:11]File name is /storage/kkm_last_timestamp [12:20:11]Write 4 bytes [12:20:11]NVStorageSaveData done [12:20:11]OFD Sender: Processing packet 41878 [packets to send 57, broken 56] [12:20:11]ProducePacketName [12:20:11]name=ofd_packets/00041878 [12:20:11]OFD Sender: To server: pG, [12:20:11]CommunicateWithHost lk.salyk.kg:30040 [12:20:11]ConnectInit lk.salyk.kg [12:20:11]ExternCall_PrintAddStr [12:20:11]wPrintStart [12:20:11]Write to MH i2c: 01 00 00 AD 05 B2 [12:20:11]Write i2c OK [12:20:11]MH_I2C_Read... [12:20:11]Read from MH i2c: 01 [12:20:11]MH_I2C_Read... [12:20:11]Read from MH i2c: 01 07 00 [12:20:11]MH_I2C_Read... [12:20:11]Read from MH i2c: 01 07 00 AD 05 00 00 00 00 00 FF 0F C7 [12:20:11]RasterBufferAndPrint [12:20:11]line Счет N : (3)183906 [12:20:11]line ИНН: 02508201610067 [12:20:11]line Контрольно-Кассовый Чек [12:20:11]line ПРОДАЖА [12:20:11]line Товар: 4700000160358 [12:20:11]line Вода Легенда 1л [12:20:11]line 2.000 * 50.00 [12:20:11]line = 100.00 [12:20:11]line НДС 12% НСП 1% [12:20:11]line > о реализуемом товаре [12:20:11]line ИТОГО: 100.00 [12:20:11]line НСП 1% : 0.88 [12:20:11]line НДС 12% : 10.62 [12:20:11]line Наличными: 100.00 [12:20:11]line Безнал.: 0.00 [12:20:11]line Место: АЗС № 97 "Партнер Нефть" [12:20:11]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [12:20:11]line СНО: Общий режим [12:20:11]line Чек 67 29.07.2024 12:20 [12:20:11]line Смена: 427 ФФД: 1.0 [12:20:11]line ЗНМ: 0300000053 [12:20:11]line РНМ: 0000000000092626 [12:20:11]line Версия ККМ: 001 [12:20:11]line ФМ: 0000000000874958 [12:20:11]line ФД: 41878 [12:20:11]line ФПД: 90184639285085 [12:20:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T122010&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41878&fm=90184639285085&tin=02508201610067®Number=0000000000092626&sum=10000 [12:20:11]line 0 [12:20:11]written 0, free lines is 4095 [12:20:11]Write to MH i2c: 01 00 00 D5 05 DA [12:20:11]Write i2c OK [12:20:11]MH_I2C_Read... [12:20:11]Read from MH i2c: 01 [12:20:11]MH_I2C_Read... [12:20:11]Read from MH i2c: 01 07 00 [12:20:11]MH_I2C_Read... [12:20:11]Read from MH i2c: 01 07 00 D5 05 00 00 00 00 00 07 0D F5 [12:20:11]RasterBufferAndPrint [12:20:11]line [12:20:11]line [12:20:11]line [12:20:11]line [12:20:11]line [12:20:11]written 0, free lines is 3341 [12:20:11]MH_Cut [12:20:11]Write to MH i2c: D1 01 00 DC 05 01 B3 [12:20:11]Write i2c OK [12:20:11]MH_I2C_Read... [12:20:11]Read from MH i2c: D1 [12:20:11]MH_I2C_Read... [12:20:11]Read from MH i2c: D1 01 00 [12:20:11]MH_I2C_Read... [12:20:11]Read from MH i2c: D1 01 00 DC 05 00 B2 [12:20:11]Write to MH i2c: 01 00 00 DD 05 E2 [12:20:11]Write i2c OK [12:20:11]MH_I2C_Read... [12:20:12]*** Cut start [12:20:12]*** Partial cut [12:20:12]*** CUTSNS_PIN = 1 [12:20:12]*** CUTSNS_PIN = 0 [12:20:12]*** Brake cut motor [12:20:13]Read from MH i2c: 01 [12:20:13]MH_I2C_Read... [12:20:13]*** Stop cut motor [12:20:13]*** Cut end [12:20:13]Read from MH i2c: 01 07 00 [12:20:13]MH_I2C_Read... [12:20:13]Read from MH i2c: 01 07 00 DD 05 00 00 00 00 00 FF 0F F7 [12:20:13]process_action close_receipt done [12:20:13]requested_data is exist [12:20:13]produce_requested_data [12:20:13]requested_item fm.sn is exist - process it [12:20:13]wFMCommunicate request_size=4 [12:20:13]MH_SAM_APDU [12:20:13]CAPDU: 80 11 00 00 [12:20:13]Write to MH i2c: E2 08 00 DE 05 80 11 00 00 00 00 00 00 5D [12:20:13]Write i2c OK [12:20:13]MH_I2C_Read... [12:20:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:13]Read from MH i2c: E2 [12:20:13]MH_I2C_Read... [12:20:13]Read from MH i2c: E2 17 00 [12:20:13]MH_I2C_Read... [12:20:13]Read from MH i2c: E2 17 00 DE 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 B9 [12:20:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [12:20:13]wFMCommunicate OK [12:20:13]requested_item fd.num is exist - process it [12:20:13]SAM_PROTO_GetFieldsCounters [12:20:13]wFMCommunicate request_size=4 [12:20:13]MH_SAM_APDU [12:20:13]CAPDU: 80 13 00 00 [12:20:13]Write to MH i2c: E2 08 00 DF 05 80 13 00 00 00 00 00 00 60 [12:20:13]Write i2c OK [12:20:13]MH_I2C_Read... [12:20:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:20:13]Read from MH i2c: E2 [12:20:13]MH_I2C_Read... [12:20:13]Read from MH i2c: E2 62 00 [12:20:13]MH_I2C_Read... [12:20:13]Read from MH i2c: E2 62 00 DF 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 96 A3 00 00 0E 04 04 00 AB 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 38 [12:20:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 96 A3 00 00 0E 04 04 00 AB 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 [12:20:13]wFMCommunicate OK [12:20:13]SAM_PROTO_GetFieldsCounters done [12:20:13]requested_item shift.num is exist - process it [12:20:13]requested_item shift.opened is exist - process it [12:20:13]req_shift_opened [12:20:13]FM_GetShiftState [12:20:13]SAM_PROTO_GetShiftState [12:20:13]wFMCommunicate request_size=4 [12:20:13]MH_SAM_APDU [12:20:13]CAPDU: 80 13 01 00 [12:20:13]Write to MH i2c: E2 08 00 E0 05 80 13 01 00 00 00 00 00 62 [12:20:13]Write i2c OK [12:20:13]MH_I2C_Read... [12:20:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:13]Read from MH i2c: E2 [12:20:13]MH_I2C_Read... [12:20:13]Read from MH i2c: E2 0E 00 [12:20:13]MH_I2C_Read... [12:20:13]Read from MH i2c: E2 0E 00 E0 05 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 FE [12:20:13]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [12:20:13]wFMCommunicate OK [12:20:13]SAM_PROTO_GetShiftState done [12:20:13]FM_GetShiftState done [12:20:13]req_shift_opened done [12:20:13]requested_item shift.open_date is exist - process it [12:20:13]req_shift_open_date [12:20:13]req_shift_open_date done [12:20:13]produce_requested_data done [12:20:13]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41878,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [12:20:13]process_action_free close_receipt [12:20:13]json_value_free [12:20:13]json_value_free done [12:20:13]process_json_proto returns [12:20:13]Send response to host [12:20:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41878,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [12:20:13]free response buf [12:20:13]execute_script done [12:20:13]execute_script returns [12:20:13]free content buf [12:20:13]Sock 11.Close socket [12:20:13]Sock 11.Thread stoped [12:20:14]Connected sock=10 [12:20: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 35 38 21 01 00 00 67 DF 19 01 71 B0 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 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 43 00 00 00 F4 03 04 00 FA 88 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 96 A3 00 00 35 04 06 00 52 05 BF 63 87 5D 67 D8 31 69 73 DC 34 6E [12:20: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 35 38 4F 00 00 00 F5 1B 47 00 18 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 35 38 10 04 04 00 96 A3 00 00 F4 03 04 00 12 35 A7 66 B6 04 01 00 00 6F BC 37 70 25 94 E8 00 [12:20:15]CommunicateWithHost err = 0 [12:20:15]CheckOFDResponse [12:20:15]1017 (14) - 77093643461234 [12:20:15]1041 (16) - 0000000000874958 [12:20:15]1040 (4) - 41878 [12:20:15]1012 (4) - 29.07.2024 06:22 [12:20:15]1206 (1) - 0 [12:20:15]OFD Sender: Remove packet 41878 [12:20:15]ProducePacketName [12:20:15]name=ofd_packets/00041878 [12:20:15]NVStorageDeleteData [12:20:16]OFD Sender: No OFD packet to send [12:20:21]recv_with_timeout no data received [12:20:21]OFD Sender: No OFD packet to send [12:20:26]OFD Sender: No OFD packet to send [12:20:31]OFD Sender: No OFD packet to send [12:20:33]recv_with_timeout no data received [12:20:36]OFD Sender: No OFD packet to send [12:20:41]OFD Sender: No OFD packet to send [12:20:46]OFD Sender: No OFD packet to send [12:20:46]recv_with_timeout no data received [12:20:51]OFD Sender: No OFD packet to send [12:20:56]OFD Sender: No OFD packet to send [12:21:01]OFD Sender: No OFD packet to send [12:21:06]OFD Sender: No OFD packet to send [12:21:11]OFD Sender: No OFD packet to send [12:21:26]OFD Sender: No OFD packet to send [12:21:31]OFD Sender: No OFD packet to send [12:21:36]OFD Sender: No OFD packet to send [12:21:41]OFD Sender: No OFD packet to send [12:21:46]OFD Sender: No OFD packet to send [12:21:51]OFD Sender: No OFD packet to send [12:21:56]OFD Sender: No OFD packet to send [12:22:00]recv_with_timeout no data received [12:22:01]OFD Sender: No OFD packet to send [12:22:06]OFD Sender: No OFD packet to send [12:22:11]OFD Sender: No OFD packet to send [12:22:16]OFD Sender: No OFD packet to send [12:22:21]OFD Sender: No OFD packet to send [12:22:23]recv_with_timeout no data received [12:22:26]OFD Sender: No OFD packet to send [12:22:31]OFD Sender: No OFD packet to send [12:22:36]OFD Sender: No OFD packet to send [12:22:41]OFD Sender: No OFD packet to send [12:22:46]OFD Sender: No OFD packet to send [12:22:51]OFD Sender: No OFD packet to send [12:22:56]OFD Sender: No OFD packet to send [12:23:01]OFD Sender: No OFD packet to send [12:23:06]OFD Sender: No OFD packet to send [12:23:08]recv_with_timeout no data received [12:23:11]OFD Sender: No OFD packet to send [12:23:16]OFD Sender: No OFD packet to send [12:23:21]OFD Sender: No OFD packet to send [12:23:26]OFD Sender: No OFD packet to send [12:23:31]OFD Sender: No OFD packet to send [12:23:36]OFD Sender: No OFD packet to send [12:23:41]OFD Sender: No OFD packet to send [12:23:46]OFD Sender: No OFD packet to send [12:23:51]OFD Sender: No OFD packet to send [12:23:56]OFD Sender: No OFD packet to send [12:24:01]OFD Sender: No OFD packet to send [12:24:06]OFD Sender: No OFD packet to send [12:24:11]OFD Sender: No OFD packet to send [12:24:16]OFD Sender: No OFD packet to send [12:24:21]OFD Sender: No OFD packet to send [12:24:26]OFD Sender: No OFD packet to send [12:24:31]OFD Sender: No OFD packet to send [12:24:36]OFD Sender: No OFD packet to send [12:24:37]recv_with_timeout no data received [12:24:41]OFD Sender: No OFD packet to send [12:24:46]OFD Sender: No OFD packet to send [12:24:51]OFD Sender: No OFD packet to send [12:24:56]OFD Sender: No OFD packet to send [12:25:01]OFD Sender: No OFD packet to send [12:25:06]OFD Sender: No OFD packet to send [12:25:11]OFD Sender: No OFD packet to send [12:25:16]OFD Sender: No OFD packet to send [12:25:21]OFD Sender: No OFD packet to send [12:25:26]OFD Sender: No OFD packet to send [12:25:31]OFD Sender: No OFD packet to send [12:25:36]OFD Sender: No OFD packet to send [12:25:41]OFD Sender: No OFD packet to send [12:25:46]OFD Sender: No OFD packet to send [12:25:51]OFD Sender: No OFD packet to send [12:25:56]OFD Sender: No OFD packet to send [12:26:01]OFD Sender: No OFD packet to send [12:26:06]OFD Sender: No OFD packet to send [12:26:11]OFD Sender: No OFD packet to send [12:26:16]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:13]recv_with_timeout no data received [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]recv_with_timeout no data received [12:28:41]OFD Sender: No OFD packet to send [12:28:46]OFD Sender: No OFD packet to send [12:28:49]recv_with_timeout no data received [12:28:51]OFD Sender: No OFD packet to send [12:28:56]OFD Sender: No OFD packet to send [12:29:01]OFD Sender: No OFD packet to send [12:29:06]OFD Sender: No OFD packet to send [12:29:11]OFD Sender: No OFD packet to send [12:29:16]OFD Sender: No OFD packet to send [12:29:21]OFD Sender: No OFD packet to send [12:29:26]OFD Sender: No OFD packet to send [12:29:31]OFD Sender: No OFD packet to send [12:29:36]OFD Sender: No OFD packet to send [12:29:41]OFD Sender: No OFD packet to send [12:29:46]OFD Sender: No OFD packet to send [12:29:51]OFD Sender: No OFD packet to send [12:29:56]OFD Sender: No OFD packet to send [12:30:01]OFD Sender: No OFD packet to send [12:30:06]OFD Sender: No OFD packet to send [12:30:11]OFD Sender: No OFD packet to send [12:30:16]OFD Sender: No OFD packet to send [12:30:21]OFD Sender: No OFD packet to send [12:30:26]OFD Sender: No OFD packet to send [12:30:28]recv_with_timeout no data received [12:30:31]OFD Sender: No OFD packet to send [12:30:36]OFD Sender: No OFD packet to send [12:30:41]OFD Sender: No OFD packet to send [12:30:46]OFD Sender: No OFD packet to send [12:30:51]OFD Sender: No OFD packet to send [12:30:56]OFD Sender: No OFD packet to send [12:31:01]OFD Sender: No OFD packet to send [12:31:06]OFD Sender: No OFD packet to send [12:31:11]OFD Sender: No OFD packet to send [12:31:16]OFD Sender: No OFD packet to send [12:31:21]OFD Sender: No OFD packet to send [12:31:26]OFD Sender: No OFD packet to send [12:31:31]OFD Sender: No OFD packet to send [12:31:36]OFD Sender: No OFD packet to send [12:31:41]OFD Sender: No OFD packet to send [12:31:46]OFD Sender: No OFD packet to send [12:31:51]OFD Sender: No OFD packet to send [12:31:56]OFD Sender: No OFD packet to send [12:32:01]OFD Sender: No OFD packet to send [12:32:06]OFD Sender: No OFD packet to send [12:32:11]OFD Sender: No OFD packet to send [12:32:16]OFD Sender: No OFD packet to send [12:32:21]OFD Sender: No OFD packet to send [12:32:26]OFD Sender: No OFD packet to send [12:32:31]OFD Sender: No OFD packet to send [12:32:36]OFD Sender: No OFD packet to send [12:32:41]OFD Sender: No OFD packet to send [12:32:46]OFD Sender: No OFD packet to send [12:32:51]OFD Sender: No OFD packet to send [12:32:56]OFD Sender: No OFD packet to send [12:33:01]OFD Sender: No OFD packet to send [12:33:06]OFD Sender: No OFD packet to send [12:33:11]OFD Sender: No OFD packet to send [12:33:16]OFD Sender: No OFD packet to send [12:33:21]OFD Sender: No OFD packet to send [12:33:26]OFD Sender: No OFD packet to send [12:33:31]OFD Sender: No OFD packet to send [12:33:36]OFD Sender: No OFD packet to send [12:33:41]OFD Sender: No OFD packet to send [12:33:46]OFD Sender: No OFD packet to send [12:33:51]OFD Sender: No OFD packet to send [12:33:56]OFD Sender: No OFD packet to send [12:34:01]OFD Sender: No OFD packet to send [12:34:06]OFD Sender: No OFD packet to send [12:34:11]OFD Sender: No OFD packet to send [12:34:16]OFD Sender: No OFD packet to send [12:34:20]recv_with_timeout no data received [12:34:21]OFD Sender: No OFD packet to send [12:34:26]OFD Sender: No OFD packet to send [12:34:31]OFD Sender: No OFD packet to send [12:34:36]OFD Sender: No OFD packet to send [12:34:41]OFD Sender: No OFD packet to send [12:34:46]OFD Sender: No OFD packet to send [12:34:51]OFD Sender: No OFD packet to send [12:34:56]OFD Sender: No OFD packet to send [12:35:01]OFD Sender: No OFD packet to send [12:35:06]OFD Sender: No OFD packet to send [12:35:11]OFD Sender: No OFD packet to send [12:35:16]OFD Sender: No OFD packet to send [12:35:21]OFD Sender: No OFD packet to send [12:35:26]OFD Sender: No OFD packet to send [12:35:31]OFD Sender: No OFD packet to send [12:35:36]OFD Sender: No OFD packet to send [12:35:41]OFD Sender: No OFD packet to send [12:35:46]OFD Sender: No OFD packet to send [12:35:51]OFD Sender: No OFD packet to send [12:35:56]OFD Sender: No OFD packet to send [12:36:01]OFD Sender: No OFD packet to send [12:36:06]OFD Sender: No OFD packet to send [12:36:12]OFD Sender: No OFD packet to send [12:36:16]recv_with_timeout no data received [12:36:17]OFD Sender: No OFD packet to send [12:36:22]OFD Sender: No OFD packet to send [12:36:27]OFD Sender: No OFD packet to send [12:36:27]recv_with_timeout no data received [12:36:32]OFD Sender: No OFD packet to send [12:36:37]OFD Sender: No OFD packet to send [12:36:42]OFD Sender: No OFD packet to send [12:36:47]OFD Sender: No OFD packet to send [12:36:52]OFD Sender: No OFD packet to send [12:36:57]OFD Sender: No OFD packet to send [12:37:02]OFD Sender: No OFD packet to send [12:37:02]recv_with_timeout no data received [12:37:07]OFD Sender: No OFD packet to send [12:38:23]ConnectInit Can't connect to host [12:38:27]OFD Sender: No OFD packet to send [12:38:32]OFD Sender: No OFD packet to send [12:38:37]OFD Sender: No OFD packet to send [12:38:39]recv_with_timeout no data received [12:38:42]OFD Sender: No OFD packet to send [12:38:47]OFD Sender: No OFD packet to send [12:38:52]OFD Sender: No OFD packet to send [12:38:57]OFD Sender: No OFD packet to send [12:39:02]OFD Sender: No OFD packet to send [12:39:07]OFD Sender: No OFD packet to send [12:39:12]OFD Sender: No OFD packet to send [12:39:17]OFD Sender: No OFD packet to send [12:39:22]OFD Sender: No OFD packet to send [12:39:27]OFD Sender: No OFD packet to send [12:39:32]OFD Sender: No OFD packet to send [12:39:37]OFD Sender: No OFD packet to send [12:39:42]OFD Sender: No OFD packet to send [12:39:47]OFD Sender: No OFD packet to send [12:39:52]OFD Sender: No OFD packet to send [12:39:57]OFD Sender: No OFD packet to send [12:40:02]OFD Sender: No OFD packet to send [12:40:07]OFD Sender: No OFD packet to send [12:40:12]OFD Sender: No OFD packet to send [12:40:15]recv_with_timeout no data received [12:40:17]OFD Sender: No OFD packet to send [12:40:22]OFD Sender: No OFD packet to send [12:40:27]OFD Sender: No OFD packet to send [12:40:32]OFD Sender: No OFD packet to send [12:40:37]OFD Sender: No OFD packet to send [12:40:42]OFD Sender: No OFD packet to send [12:40:47]OFD Sender: No OFD packet to send [12:40:52]OFD Sender: No OFD packet to send [12:40:57]OFD Sender: No OFD packet to send [12:41:02]OFD Sender: No OFD packet to send [12:41:07]OFD Sender: No OFD packet to send [12:41:12]OFD Sender: No OFD packet to send [12:41:17]OFD Sender: No OFD packet to send [12:41:22]OFD Sender: No OFD packet to send [12:41:27]OFD Sender: No OFD packet to send [12:41:32]OFD Sender: No OFD packet to send [12:41:37]OFD Sender: No OFD packet to send [12:41:42]OFD Sender: No OFD packet to send [12:41:47]OFD Sender: No OFD packet to send [12:41:52]OFD Sender: No OFD packet to send [12:41:57]OFD Sender: No OFD packet to send [12:42:02]OFD Sender: No OFD packet to send [12:42:07]OFD Sender: No OFD packet to send [12:42:12]OFD Sender: No OFD packet to send [12:42:17]OFD Sender: No OFD packet to send [12:42:22]OFD Sender: No OFD packet to send [12:42:27]OFD Sender: No OFD packet to send [12:42:32]OFD Sender: No OFD packet to send [12:42:37]OFD Sender: No OFD packet to send [12:42:42]OFD Sender: No OFD packet to send [12:42:47]OFD Sender: No OFD packet to send [12:42:52]OFD Sender: No OFD packet to send [12:42:57]OFD Sender: No OFD packet to send [12:43:02]OFD Sender: No OFD packet to send [12:43:07]OFD Sender: No OFD packet to send [12:43:12]OFD Sender: No OFD packet to send [12:43:17]OFD Sender: No OFD packet to send [12:43:22]OFD Sender: No OFD packet to send [12:43:27]OFD Sender: No OFD packet to send [12:43:32]OFD Sender: No OFD packet to send [12:43:37]OFD Sender: No OFD packet to send [12:43:42]OFD Sender: No OFD packet to send [12:43:47]OFD Sender: No OFD packet to send [12:43:52]OFD Sender: No OFD packet to send [12:43:57]OFD Sender: No OFD packet to send [12:44:02]OFD Sender: No OFD packet to send [12:44:03]recv_with_timeout no data received [12:44:07]OFD Sender: No OFD packet to send [12:44:12]OFD Sender: No OFD packet to send [12:44:17]OFD Sender: No OFD packet to send [12:44:22]OFD Sender: No OFD packet to send [12:44:26]recv_with_timeout no data received [12:44:27]OFD Sender: No OFD packet to send [12:44:32]OFD Sender: No OFD packet to send [12:44:37]OFD Sender: No OFD packet to send [12:44:42]OFD Sender: No OFD packet to send [12:44:47]OFD Sender: No OFD packet to send [12:44:52]OFD Sender: No OFD packet to send [12:44:57]OFD Sender: No OFD packet to send [12:45:02]OFD Sender: No OFD packet to send [12:45:07]OFD Sender: No OFD packet to send [12:45:12]OFD Sender: No OFD packet to send [12:45:17]OFD Sender: No OFD packet to send [12:45:22]OFD Sender: No OFD packet to send [12:45:27]OFD Sender: No OFD packet to send [12:45:32]OFD Sender: No OFD packet to send [12:45:37]OFD Sender: No OFD packet to send [12:45:42]OFD Sender: No OFD packet to send [12:45:47]OFD Sender: No OFD packet to send [12:45:52]OFD Sender: No OFD packet to send [12:45:57]OFD Sender: No OFD packet to send [12:46:02]OFD Sender: No OFD packet to send [12:46:07]OFD Sender: No OFD packet to send [12:46:12]OFD Sender: No OFD packet to send [12:46:17]OFD Sender: No OFD packet to send [12:46:22]OFD Sender: No OFD packet to send [12:46:27]OFD Sender: No OFD packet to send [12:46:32]OFD Sender: No OFD packet to send [12:46:37]OFD Sender: No OFD packet to send [12:46:42]OFD Sender: No OFD packet to send [12:46:47]OFD Sender: No OFD packet to send [12:46:52]OFD Sender: No OFD packet to send [12:46:57]OFD Sender: No OFD packet to send [12:47:02]OFD Sender: No OFD packet to send [12:47:07]OFD Sender: No OFD packet to send [12:47:12]OFD Sender: No OFD packet to send [12:47:17]OFD Sender: No OFD packet to send [12:47:22]OFD Sender: No OFD packet to send [12:47:27]OFD Sender: No OFD packet to send [12:47:32]OFD Sender: No OFD packet to send [12:47:37]OFD Sender: No OFD packet to send [12:47:42]OFD Sender: No OFD packet to send [12:47:47]OFD Sender: No OFD packet to send [12:47:52]OFD Sender: No OFD packet to send [12:47:57]OFD Sender: No OFD packet to send [12:48:02]OFD Sender: No OFD packet to send [12:48:07]OFD Sender: No OFD packet to send [12:48:12]OFD Sender: No OFD packet to send [12:48:17]OFD Sender: No OFD packet to send [12:48:22]OFD Sender: No OFD packet to send [12:48:27]OFD Sender: No OFD packet to send [12:48:32]OFD Sender: No OFD packet to send [12:48:37]OFD Sender: No OFD packet to send [12:48:42]OFD Sender: No OFD packet to send [12:48:47]OFD Sender: No OFD packet to send [12:48:52]OFD Sender: No OFD packet to send [12:48:57]OFD Sender: No OFD packet to send [12:49:02]OFD Sender: No OFD packet to send [12:49:07]OFD Sender: No OFD packet to send [12:49:12]OFD Sender: No OFD packet to send [12:49:17]OFD Sender: No OFD packet to send [12:49:22]OFD Sender: No OFD packet to send [12:49:27]OFD Sender: No OFD packet to send [12:49:32]OFD Sender: No OFD packet to send [12:49:37]OFD Sender: No OFD packet to send [12:49:42]OFD Sender: No OFD packet to send [12:49:47]OFD Sender: No OFD packet to send [12:49:52]OFD Sender: No OFD packet to send [12:49:57]OFD Sender: No OFD packet to send [12:50:02]OFD Sender: No OFD packet to send [12:50:07]OFD Sender: No OFD packet to send [12:50:12]OFD Sender: No OFD packet to send [12:50:17]OFD Sender: No OFD packet to send [12:50:22]OFD Sender: No OFD packet to send [12:50:27]OFD Sender: No OFD packet to send [12:50:32]OFD Sender: No OFD packet to send [12:50:37]OFD Sender: No OFD packet to send [12:50:42]OFD Sender: No OFD packet to send [12:50:47]OFD Sender: No OFD packet to send [12:50:52]OFD Sender: No OFD packet to send [12:50:57]OFD Sender: No OFD packet to send [12:50:58]recv_with_timeout no data received [12:51:02]OFD Sender: No OFD packet to send [12:51:07]OFD Sender: No OFD packet to send [12:51:12]OFD Sender: No OFD packet to send [12:51:17]OFD Sender: No OFD packet to send [12:51:22]OFD Sender: No OFD packet to send [12:51:27]OFD Sender: No OFD packet to send [12:51:32]OFD Sender: No OFD packet to send [12:51:37]OFD Sender: No OFD packet to send [12:51:42]OFD Sender: No OFD packet to send [12:51:47]OFD Sender: No OFD packet to send [12:51:52]OFD Sender: No OFD packet to send [12:51:57]OFD Sender: No OFD packet to send [12:52:02]OFD Sender: No OFD packet to send [12:52:05]accept exits with 9 [12:52:05]New connection [12:52:05]New thread 3066903908 created [12:52:05]Thread 3066760548 joined [12:52:05]Waiting for new connection... [12:52:05] Sock 9.Parse request [12:52:05]Sock 9.Check first char [12:52:05]Sock 9.First char is OK [12:52:05]request: POST /json_proto HTTP/1.0 [12:52:05]Method: POST [12:52:05]URL: /json_proto [12:52:05]Method is POST - this is cgi request [12:52:05]url: /json_proto [12:52:05]query_string will be loaded in cgi processing [12:52:05]execute_cgi json_proto POST (null) [12:52:05]execute_cgi path=json_proto method=POST [12:52:05]POST find Content-Length [12:52:05]Host: 172.17.43.132:8080 [12:52:05]Content-Length: 1514 [12:52:05]Content-Type: application/json [12:52:05] [12:52:05]POST finish read [12:52:05]Found Content-Length = 1514 [12:52:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183907", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "90162602", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red bull 0,25\u043B", "price" : 157.00, "quantity" : 1.000, "sum" : 157.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003010476", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u044F\u0431\u043B\u043E\u043A\u043E \u041F\u042D\u0422 1\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "8691216080348", "name": "\u0416\u0435\u0432\u0430\u0442\u0435\u043B\u044C\u043D\u044B\u0439 \u043C\u0430\u0440\u043C\u0435\u043B\u0430\u0434 HARIBO Zubi 80\u0433\u0440 (2", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 387.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:52:05]execute_script... [12:52:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183907", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "90162602", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red bull 0,25\u043B", "price" : 157.00, "quantity" : 1.000, "sum" : 157.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003010476", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u044F\u0431\u043B\u043E\u043A\u043E \u041F\u042D\u0422 1\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "8691216080348", "name": "\u0416\u0435\u0432\u0430\u0442\u0435\u043B\u044C\u043D\u044B\u0439 \u043C\u0430\u0440\u043C\u0435\u043B\u0430\u0434 HARIBO Zubi 80\u0433\u0440 (2", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 387.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:52:05]POST & json_proto [12:52:05]process_json_proto [12:52:05]json parsed OK: [12:52:05]protocol is kg_v1.0 [12:52:05]action value=close_receipt [12:52:05]process_action close_receipt [12:52:05]cmd_close_receipt [12:52:05]MH_GetDate [12:52:05]Write to MH i2c: F0 00 00 E1 05 D5 [12:52:05]Write i2c OK [12:52:05]MH_I2C_Read... [12:52:05]Read from MH i2c: F0 [12:52:05]MH_I2C_Read... [12:52:05]Read from MH i2c: F0 09 00 [12:52:05]MH_I2C_Read... [12:52:05]Read from MH i2c: F0 09 00 E1 05 00 76 90 A7 66 F8 53 A7 66 49 [12:52:05]GetLastDocTimeStamp 1722255610 [12:52:05]current date 1722257526 [12:52:05]FM_GetShiftState [12:52:05]SAM_PROTO_GetShiftState [12:52:05]wFMCommunicate request_size=4 [12:52:05]MH_SAM_APDU [12:52:05]CAPDU: 80 13 01 00 [12:52:05]Write to MH i2c: E2 08 00 E2 05 80 13 01 00 00 00 00 00 64 [12:52:05]Write i2c OK [12:52:05]MH_I2C_Read... [12:52:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:52:05]Read from MH i2c: E2 [12:52:05]MH_I2C_Read... [12:52:05]Read from MH i2c: E2 0E 00 [12:52:05]MH_I2C_Read... [12:52:05]Read from MH i2c: E2 0E 00 E2 05 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 00 [12:52:05]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [12:52:05]wFMCommunicate OK [12:52:05]SAM_PROTO_GetShiftState done [12:52:05]FM_GetShiftState done [12:52:05]opened in 1722211496 [12:52:05]opened+sec_in_day 1722297896 [12:52:05]quantity*price = 5000 [12:52:05]sum+1 = 5001 [12:52:05]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 90162602 Энерг напиток Red bull 0,25л 1.000 * 157.00 = 157.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700003010476 Напиток Let`s Go! с/с яблоко ПЭТ 1л 1.000 * 80.00 = 80.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 8691216080348 Жевательный мармелад HARIBO Zubi 80гр (2 1.000 * 100.00 = 100.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 387.00 НСП 1% : 3.42 НДС 12% : 41.10 Наличными: 387.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 68 29.07.2024 12:52 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41879 ФПД: 149616502451346 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T125206&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41879&fm=149616502451346&tin=02508201610067®Number=0000000000092626&sum=38700 0 [12:52:06]StoreToDocumentArchive [12:52:06]shift 427 fd 41879 [12:52:06]save to /storage/0427/doc_00041879 [12:52:06]save last doc name /storage/0427/doc_00041879 to /storage/kkm_last_doc_name [12:52:06]save OK [12:52:06]Clear old archive folders... [12:52:06]ProcessDocumentItem done err = 0, tmpTLVsize=636 [12:52:06]tlvbuf is 00832CA0 [12:52:06]SAM_PROTO_ClearQueue [12:52:06]wFMCommunicate request_size=4 [12:52:06]MH_SAM_APDU [12:52:06]CAPDU: 80 09 00 00 [12:52:06]Write to MH i2c: E2 08 00 EF 05 80 09 00 00 00 00 00 00 66 [12:52:06]Write i2c OK [12:52:06]MH_I2C_Read... [12:52:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:52:06]Read from MH i2c: E2 [12:52:06]MH_I2C_Read... [12:52:06]Read from MH i2c: E2 03 00 [12:52:06]MH_I2C_Read... [12:52:06]Read from MH i2c: E2 03 00 EF 05 00 90 00 68 [12:52:06]RAPDU: 90 00 [12:52:06]wFMCommunicate OK [12:52:06]SAM_PROTO_ClearQueue done [12:52:06]KKMCreateOFDPacket [12:52:06]OFDProtocolAddRootSTLVToBuf [12:52:06]FM_MakeSignedData [12:52:06]FM_MakeSignedData [12:52:06]SAM_PROTO_SignData [12:52:06]wFMCommunicate request_size=4 [12:52:06]MH_SAM_APDU [12:52:06]CAPDU: 80 0D 01 02 [12:52:06]Write to MH i2c: E2 08 00 F0 05 80 0D 01 02 00 00 00 00 6E [12:52:06]Write i2c OK [12:52:06]MH_I2C_Read... [12:52:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:52:06]Read from MH i2c: E2 [12:52:06]MH_I2C_Read... [12:52:06]Read from MH i2c: E2 03 00 [12:52:06]MH_I2C_Read... [12:52:06]Read from MH i2c: E2 03 00 F0 05 00 90 00 69 [12:52:06]RAPDU: 90 00 [12:52:06]wFMCommunicate OK [12:52:06]wFMCommunicate request_size=255 [12:52:06]MH_SAM_APDU [12:52:06]CAPDU: 80 0D 02 02 FA 03 00 7C 02 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 3D 00 00 00 00 13 04 06 00 54 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 34 37 36 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 [12:52:06]Write to MH i2c: E2 02 01 F1 05 80 0D 02 02 FA 00 03 00 7C 02 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 3D 00 00 00 00 13 04 06 00 54 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 34 37 36 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 00 00 24 [12:52:06]Write i2c OK [12:52:06]MH_I2C_Read... [12:52:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:52:07]Read from MH i2c: E2 [12:52:07]MH_I2C_Read... [12:52:07]Read from MH i2c: E2 03 00 [12:52:07]MH_I2C_Read... [12:52:07]Read from MH i2c: E2 03 00 F1 05 00 90 00 6A [12:52:07]RAPDU: 90 00 [12:52:07]wFMCommunicate OK [12:52:07]wFMCommunicate request_size=255 [12:52:07]MH_SAM_APDU [12:52:07]CAPDU: 80 0D 02 02 FA 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 38 36 39 31 32 31 36 30 38 30 33 34 38 06 04 3D 00 D0 96 D0 B5 D0 B2 D0 B0 D1 82 D0 B5 D0 BB D1 8C D0 BD D1 8B D0 B9 20 D0 BC D0 B0 D1 80 D0 BC D0 B5 D0 BB D0 B0 D0 B4 20 48 41 52 49 42 4F 20 5A 75 62 69 20 38 30 D0 B3 D1 80 20 28 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 97 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 [12:52:07]Write to MH i2c: E2 02 01 F2 05 80 0D 02 02 FA 00 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 38 36 39 31 32 31 36 30 38 30 33 34 38 06 04 3D 00 D0 96 D0 B5 D0 B2 D0 B0 D1 82 D0 B5 D0 BB D1 8C D0 BD D1 8B D0 B9 20 D0 BC D0 B0 D1 80 D0 BC D0 B5 D0 BB D0 B0 D0 B4 20 48 41 52 49 42 4F 20 5A 75 62 69 20 38 30 D0 B3 D1 80 20 28 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 97 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 00 00 73 [12:52:07]Write i2c OK [12:52:07]MH_I2C_Read... [12:52:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:52:07]Read from MH i2c: E2 [12:52:07]MH_I2C_Read... [12:52:07]Read from MH i2c: E2 03 00 [12:52:07]MH_I2C_Read... [12:52:07]Read from MH i2c: E2 03 00 F2 05 00 90 00 6B [12:52:07]RAPDU: 90 00 [12:52:07]wFMCommunicate OK [12:52:07]wFMCommunicate request_size=145 [12:52:07]MH_SAM_APDU [12:52:07]CAPDU: 80 0D 02 02 8C 06 00 56 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 10 00 00 00 00 07 04 06 00 2C 97 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 76 90 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 97 A3 00 00 35 04 06 00 88 13 4E 7B 2C 92 [12:52:07]Write to MH i2c: E2 94 00 F3 05 80 0D 02 02 8C 00 06 00 56 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 10 00 00 00 00 07 04 06 00 2C 97 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 76 90 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 97 A3 00 00 35 04 06 00 88 13 4E 7B 2C 92 00 00 5D [12:52:07]Write i2c OK [12:52:07]MH_I2C_Read... [12:52:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:52:07]Read from MH i2c: E2 [12:52:07]MH_I2C_Read... [12:52:07]Read from MH i2c: E2 03 00 [12:52:07]MH_I2C_Read... [12:52:07]Read from MH i2c: E2 03 00 F3 05 00 90 00 6C [12:52:07]RAPDU: 90 00 [12:52:07]wFMCommunicate OK [12:52:07]wFMCommunicate request_size=4 [12:52:07]MH_SAM_APDU [12:52:07]CAPDU: 80 0D 03 02 [12:52:07]Write to MH i2c: E2 08 00 F4 05 80 0D 03 02 00 00 00 00 74 [12:52:07]Write i2c OK [12:52:07]MH_I2C_Read... [12:52:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:52:07]Read from MH i2c: E2 [12:52:07]MH_I2C_Read... [12:52:07]Read from MH i2c: E2 0B 00 [12:52:07]MH_I2C_Read... [12:52:07]Read from MH i2c: E2 0B 00 F4 05 00 57 AA 06 09 1B 4E 13 8B 90 00 8C [12:52:07]RAPDU: 57 AA 06 09 1B 4E 13 8B 90 00 [12:52:07]wFMCommunicate OK [12:52:07]SAM_PROTO_SignData done [12:52:07]FM_MakeSignedData done [12:52:07]CreateOFDProtocolMessage [12:52:07]wFMCommunicate request_size=4 [12:52:07]MH_SAM_APDU [12:52:07]CAPDU: 80 11 00 00 [12:52:07]Write to MH i2c: E2 08 00 F5 05 80 11 00 00 00 00 00 00 74 [12:52:07]Write i2c OK [12:52:07]MH_I2C_Read... [12:52:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:52:07]Read from MH i2c: E2 [12:52:07]MH_I2C_Read... [12:52:07]Read from MH i2c: E2 17 00 [12:52:07]MH_I2C_Read... [12:52:07]Read from MH i2c: E2 17 00 F5 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 D0 [12:52:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [12:52:07]wFMCommunicate OK [12:52:07]CreateOFDProtocolMessage done [12:52:07]OFDSenderStorePacket 41879 [12:52:07]StoreOFDPacket docnum=41879 [12:52:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 02 00 00 06 1E 88 02 F7 BA 5A 03 01 00 03 00 7C 02 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 3D 00 00 00 00 13 04 06 00 54 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 34 37 36 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 38 36 39 31 32 31 36 30 38 30 33 34 38 06 04 3D 00 D0 96 D0 B5 D0 B2 D0 B0 D1 82 D0 B5 D0 BB D1 8C D0 BD D1 8B D0 B9 20 D0 BC D0 B0 D1 80 D0 BC D0 B5 D0 BB D0 B0 D0 B4 20 48 41 52 49 42 4F 20 5A 75 62 69 20 38 30 D0 B3 D1 80 20 28 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 97 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 56 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 10 00 00 00 00 07 04 06 00 2C 97 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 76 90 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 97 A3 00 00 35 04 06 00 88 13 4E 7B 2C 92 57 AA 06 09 1B 4E 13 8B [12:52:07]CheckFolder [12:52:07]dirname=/storage/ofd_packets [12:52:07]CheckFolder done [12:52:07]ProducePacketName [12:52:07]name=ofd_packets/00041879 [12:52:07]NVStorageSaveData ofd_packets/00041879 [12:52:07]File name is /storage/ofd_packets/00041879 [12:52:07]Write 686 bytes [12:52:07]NVStorageSaveData done [12:52:07]OFDSenderStorePacket done [12:52:07]KKMCreateOFDPacket done [12:52:07]NVStorageSaveData kkm_last_timestamp [12:52:07]File name is /storage/kkm_last_timestamp [12:52:07]Write 4 bytes [12:52:07]NVStorageSaveData done [12:52:07]ExternCall_PrintAddStr [12:52:07]wPrintStart [12:52:07]Write to MH i2c: 01 00 00 F6 05 FB [12:52:07]Write i2c OK [12:52:07]MH_I2C_Read... [12:52:07]Read from MH i2c: 01 [12:52:07]MH_I2C_Read... [12:52:07]Read from MH i2c: 01 07 00 [12:52:07]MH_I2C_Read... [12:52:07]Read from MH i2c: 01 07 00 F6 05 00 00 00 00 00 FF 0F 10 [12:52:07]RasterBufferAndPrint [12:52:07]line Счет N : (3)183907 [12:52:07]line ИНН: 02508201610067 [12:52:07]line Контрольно-Кассовый Чек [12:52:07]line ПРОДАЖА [12:52:07]line Товар: 4700000160358 [12:52:07]line Вода Легенда 1л [12:52:07]line 1.000 * 50.00 [12:52:07]line = 50.00 [12:52:07]line НДС 12% НСП 1% [12:52:07]line > о реализуемом товаре [12:52:07]line Товар: 90162602 [12:52:07]line Энерг напиток Red bull 0,25л [12:52:07]line 1.000 * 157.00 [12:52:07]line = 157.00 [12:52:07]line НДС 12% НСП 1% [12:52:07]line > о реализуемом товаре [12:52:07]line Товар: 4700003010476 [12:52:07]line Напиток Let`s Go! с/с яблоко ПЭТ 1л [12:52:07]line 1.000 * 80.00 [12:52:07]line = 80.00 [12:52:07]line НДС 12% НСП 1% [12:52:07]line > о реализуемом товаре [12:52:07]line Товар: 8691216080348 [12:52:07]line Жевательный мармелад HARIBO Zubi 80гр (2 [12:52:07]line 1.000 * 100.00 [12:52:07]line = 100.00 [12:52:07]line НДС 12% НСП 1% [12:52:07]line > о реализуемом товаре [12:52:07]line ИТОГО: 387.00 [12:52:07]line НСП 1% : 3.42 [12:52:07]line НДС 12% : 41.10 [12:52:07]line Наличными: 387.00 [12:52:07]line Безнал.: 0.00 [12:52:07]line Место: АЗС № 97 "Партнер Нефть" [12:52:07]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [12:52:07]line СНО: Общий режим [12:52:07]line Чек 68 29.07.2024 12:52 [12:52:07]line Смена: 427 ФФД: 1.0 [12:52:07]line ЗНМ: 0300000053 [12:52:07]line РНМ: 0000000000092626 [12:52:07]line Версия ККМ: 001 [12:52:07]line ФМ: 0000000000874958 [12:52:07]line ФД: 41879 [12:52:07]line ФПД: 149616502451346 [12:52:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T125206&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41879&fm=149616502451346&tin=02508201610067®Number=0000000000092626&sum=38700 [12:52:07]OFD Sender: Processing packet 41879 [packets to send 57, broken 56] [12:52:07]ProducePacketName [12:52:07]name=ofd_packets/00041879 [12:52:07]OFD Sender: To server: pG, [12:52:07]CommunicateWithHost lk.salyk.kg:30040 [12:52:07]ConnectInit lk.salyk.kg [12:52:07]line 0 [12:52:07]written 0, free lines is 4095 [12:52:08]Write to MH i2c: 01 00 00 32 06 38 [12:52:08]Write i2c OK [12:52:08]MH_I2C_Read... [12:52:08]Read from MH i2c: 01 [12:52:08]MH_I2C_Read... [12:52:08]Read from MH i2c: 01 07 00 [12:52:08]MH_I2C_Read... [12:52:08]Read from MH i2c: 01 07 00 32 06 00 00 00 00 00 0D 0C 58 [12:52:08]RasterBufferAndPrint [12:52:08]line [12:52:08]line [12:52:08]line [12:52:08]line [12:52:08]line [12:52:08]written 0, free lines is 3092 [12:52:08]MH_Cut [12:52:08]Write to MH i2c: D1 01 00 39 06 01 11 [12:52:08]Write i2c OK [12:52:08]MH_I2C_Read... [12:52:08]Read from MH i2c: D1 [12:52:08]MH_I2C_Read... [12:52:08]Read from MH i2c: D1 01 00 [12:52:08]MH_I2C_Read... [12:52:08]Read from MH i2c: D1 01 00 39 06 00 10 [12:52:08]Write to MH i2c: 01 00 00 3A 06 40 [12:52:08]Write i2c OK [12:52:08]MH_I2C_Read... [12:52:09]*** Cut start [12:52:09]*** Partial cut [12:52:09]*** CUTSNS_PIN = 1 [12:52:09]*** CUTSNS_PIN = 0 [12:52:09]*** Brake cut motor [12:52:10]Read from MH i2c: 01 [12:52:10]MH_I2C_Read... [12:52:10]*** Stop cut motor [12:52:10]*** Cut end [12:52:10]Read from MH i2c: 01 07 00 [12:52:10]MH_I2C_Read... [12:52:10]Read from MH i2c: 01 07 00 3A 06 00 00 00 00 00 FF 0F 55 [12:52:10]process_action close_receipt done [12:52:10]requested_data is exist [12:52:10]produce_requested_data [12:52:10]requested_item fm.sn is exist - process it [12:52:10]wFMCommunicate request_size=4 [12:52:10]MH_SAM_APDU [12:52:10]CAPDU: 80 11 00 00 [12:52:10]Write to MH i2c: E2 08 00 3B 06 80 11 00 00 00 00 00 00 BB [12:52:10]Write i2c OK [12:52:10]MH_I2C_Read... [12:52:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:52:10]Read from MH i2c: E2 [12:52:10]MH_I2C_Read... [12:52:10]Read from MH i2c: E2 17 00 [12:52:10]MH_I2C_Read... [12:52:10]Read from MH i2c: E2 17 00 3B 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 17 [12:52:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [12:52:10]wFMCommunicate OK [12:52:10]requested_item fd.num is exist - process it [12:52:10]SAM_PROTO_GetFieldsCounters [12:52:10]wFMCommunicate request_size=4 [12:52:10]MH_SAM_APDU [12:52:10]CAPDU: 80 13 00 00 [12:52:10]Write to MH i2c: E2 08 00 3C 06 80 13 00 00 00 00 00 00 BE [12:52:10]Write i2c OK [12:52:10]MH_I2C_Read... [12:52:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:52:10]Read from MH i2c: E2 [12:52:10]MH_I2C_Read... [12:52:10]Read from MH i2c: E2 62 00 [12:52:10]MH_I2C_Read... [12:52:10]Read from MH i2c: E2 62 00 3C 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 97 A3 00 00 0E 04 04 00 AB 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 9A [12: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 97 A3 00 00 0E 04 04 00 AB 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 [12:52:10]wFMCommunicate OK [12:52:10]SAM_PROTO_GetFieldsCounters done [12:52:10]requested_item shift.num is exist - process it [12:52:10]requested_item shift.opened is exist - process it [12:52:10]req_shift_opened [12:52:10]FM_GetShiftState [12:52:10]SAM_PROTO_GetShiftState [12:52:10]wFMCommunicate request_size=4 [12:52:10]MH_SAM_APDU [12:52:10]CAPDU: 80 13 01 00 [12:52:10]Write to MH i2c: E2 08 00 3D 06 80 13 01 00 00 00 00 00 C0 [12:52:10]Write i2c OK [12:52:10]MH_I2C_Read... [12:52:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:52:10]Read from MH i2c: E2 [12:52:10]MH_I2C_Read... [12:52:10]Read from MH i2c: E2 0E 00 [12:52:10]MH_I2C_Read... [12:52:10]Read from MH i2c: E2 0E 00 3D 06 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 5C [12:52:10]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [12:52:10]wFMCommunicate OK [12:52:10]SAM_PROTO_GetShiftState done [12:52:10]FM_GetShiftState done [12:52:10]req_shift_opened done [12:52:10]requested_item shift.open_date is exist - process it [12:52:10]req_shift_open_date [12:52:10]req_shift_open_date done [12:52:10]produce_requested_data done [12:52:10]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41879,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [12:52:10]process_action_free close_receipt [12:52:10]json_value_free [12:52:10]json_value_free done [12:52:10]process_json_proto returns [12:52:10]Send response to host [12:52:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41879,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [12:52:10]free response buf [12:52:10]execute_script done [12:52:10]execute_script returns [12:52:10]free content buf [12:52:10]Sock 9.Close socket [12:52:10]Sock 9.Thread stoped [12:52:11]Connected sock=11 [12:52: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 35 38 90 02 00 00 06 1E 88 02 F7 BA 5A 03 01 00 03 00 7C 02 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 3D 00 00 00 00 13 04 06 00 54 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 34 37 36 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 38 36 39 31 32 31 36 30 38 30 33 34 38 06 04 3D 00 D0 96 D0 B5 D0 B2 D0 B0 D1 82 D0 B5 D0 BB D1 8C D0 BD D1 8B D0 B9 20 D0 BC D0 B0 D1 80 D0 BC D0 B5 D0 BB D0 B0 D0 B4 20 48 41 52 49 42 4F 20 5A 75 62 69 20 38 30 D0 B3 D1 80 20 28 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 97 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 56 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 10 00 00 00 00 07 04 06 00 2C 97 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 76 90 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 97 A3 00 00 35 04 06 00 88 13 4E 7B 2C 92 57 AA 06 09 1B 4E 13 8B [12:52: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 35 38 4F 00 00 00 63 65 47 00 AB F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 97 A3 00 00 F4 03 04 00 92 3C A7 66 B6 04 01 00 00 D9 99 2F DF C7 81 1F D8 [12:52:15]CommunicateWithHost err = 0 [12:52:15]CheckOFDResponse [12:52:15]1017 (14) - 77093643461234 [12:52:15]1041 (16) - 0000000000874958 [12:52:15]1040 (4) - 41879 [12:52:15]1012 (4) - 29.07.2024 06:54 [12:52:15]1206 (1) - 0 [12:52:15]OFD Sender: Remove packet 41879 [12:52:15]ProducePacketName [12:52:15]name=ofd_packets/00041879 [12:52:15]NVStorageDeleteData [12:52:15]OFD Sender: No OFD packet to send [12:52:20]OFD Sender: No OFD packet to send [12:52:25]OFD Sender: No OFD packet to send [12:52:30]OFD Sender: No OFD packet to send [12:52:35]OFD Sender: No OFD packet to send [12:52:40]OFD Sender: No OFD packet to send [12:52:45]OFD Sender: No OFD packet to send [12:52:50]OFD Sender: No OFD packet to send [12:52:55]OFD Sender: No OFD packet to send [12:53:00]OFD Sender: No OFD packet to send [12:53:05]OFD Sender: No OFD packet to send [12:53:10]OFD Sender: No OFD packet to send [12:53:15]OFD Sender: No OFD packet to send [12:53:20]OFD Sender: No OFD packet to send [12:53:25]OFD Sender: No OFD packet to send [12:53:30]OFD Sender: No OFD packet to send [12:53:35]OFD Sender: No OFD packet to send [12:53:40]OFD Sender: No OFD packet to send [12:53:45]OFD Sender: No OFD packet to send [12:53:47]recv_with_timeout no data received [12:53:50]OFD Sender: No OFD packet to send [12:53:55]OFD Sender: No OFD packet to send [12:54:00]OFD Sender: No OFD packet to send [12:54:05]OFD Sender: No OFD packet to send [12:54:10]OFD Sender: No OFD packet to send [12:54:15]OFD Sender: No OFD packet to send [12:54:20]OFD Sender: No OFD packet to send [12:54:25]OFD Sender: No OFD packet to send [12:54:30]OFD Sender: No OFD packet to send [12:54:35]OFD Sender: No OFD packet to send [12:54:40]OFD Sender: No OFD packet to send [12:54:45]OFD Sender: No OFD packet to send [12:54:50]OFD Sender: No OFD packet to send [12:54:55]OFD Sender: No OFD packet to send [12:55:00]OFD Sender: No OFD packet to send [12:55:05]OFD Sender: No OFD packet to send [12:55:10]OFD Sender: No OFD packet to send [12:55:15]OFD Sender: No OFD packet to send [12:55:20]OFD Sender: No OFD packet to send [12:55:25]OFD Sender: No OFD packet to send [12:55:30]OFD Sender: No OFD packet to send [12:55:35]OFD Sender: No OFD packet to send [12:55:40]OFD Sender: No OFD packet to send [12:55:45]OFD Sender: No OFD packet to send [12:55:50]OFD Sender: No OFD packet to send [12:55:55]OFD Sender: No OFD packet to send [12:56:00]OFD Sender: No OFD packet to send [12:56:05]OFD Sender: No OFD packet to send [12:56:10]OFD Sender: No OFD packet to send [12:56:15]OFD Sender: No OFD packet to send [12:56:20]OFD Sender: No OFD packet to send [12:56:25]OFD Sender: No OFD packet to send [12:56:30]OFD Sender: No OFD packet to send [12:56:35]OFD Sender: No OFD packet to send [12:56:40]OFD Sender: No OFD packet to send [12:56:45]OFD Sender: No OFD packet to send [12:56:50]OFD Sender: No OFD packet to send [12:56:55]OFD Sender: No OFD packet to send [12:57:00]OFD Sender: No OFD packet to send [12:57:05]OFD Sender: No OFD packet to send [12:57:10]OFD Sender: No OFD packet to send [12:57:15]OFD Sender: No OFD packet to send [12:57:20]OFD Sender: No OFD packet to send [12:57:25]OFD Sender: No OFD packet to send [12:57:30]OFD Sender: No OFD packet to send [12:57:35]OFD Sender: No OFD packet to send [12:57:40]OFD Sender: No OFD packet to send [12:57:55]OFD Sender: No OFD packet to send [12:58:00]OFD Sender: No OFD packet to send [12:58:05]OFD Sender: No OFD packet to send [12:58:10]OFD Sender: No OFD packet to send [12:58:15]OFD Sender: No OFD packet to send [12:58:20]OFD Sender: No OFD packet to send [12:58:25]OFD Sender: No OFD packet to send [12:58:30]OFD Sender: No OFD packet to send [12:58:35]OFD Sender: No OFD packet to send [12:58:40]OFD Sender: No OFD packet to send [12:58:45]OFD Sender: No OFD packet to send [12:58:50]OFD Sender: No OFD packet to send [12:58:55]OFD Sender: No OFD packet to send [12:59:00]OFD Sender: No OFD packet to send [12:59:05]OFD Sender: No OFD packet to send [12:59:10]OFD Sender: No OFD packet to send [12:59:15]OFD Sender: No OFD packet to send [12:59:21]OFD Sender: No OFD packet to send [12:59:26]OFD Sender: No OFD packet to send [12:59:31]OFD Sender: No OFD packet to send [12:59:36]OFD Sender: No OFD packet to send [12:59:41]OFD Sender: No OFD packet to send [12:59:46]OFD Sender: No OFD packet to send [12:59:51]OFD Sender: No OFD packet to send [12:59:56]OFD Sender: No OFD packet to send [13:00:00]accept exits with 10 [13:00:00]New connection [13:00:00]New thread 3066760548 created [13:00:00]Thread 3066903908 joined [13:00:00]Waiting for new connection... [13:00:00] Sock 10.Parse request [13:00:00]Sock 10.Check first char [13:00:00]Sock 10.First char is OK [13:00:00]request: POST /json_proto HTTP/1.0 [13:00:00]Method: POST [13:00:00]URL: /json_proto [13:00:00]Method is POST - this is cgi request [13:00:00]url: /json_proto [13:00:00]query_string will be loaded in cgi processing [13:00:00]execute_cgi json_proto POST (null) [13:00:00]execute_cgi path=json_proto method=POST [13:00:00]POST find Content-Length [13:00:00]Host: 172.17.43.132:8080 [13:00:00]Content-Length: 647 [13:00:00]Content-Type: application/json [13:00:00] [13:00:00]POST finish read [13:00:00]Found Content-Length = 647 [13:00:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183908", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:00:00]execute_script... [13:00:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183908", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:00:00]POST & json_proto [13:00:00]process_json_proto [13:00:00]json parsed OK: [13:00:00]protocol is kg_v1.0 [13:00:00]action value=close_receipt [13:00:00]process_action close_receipt [13:00:00]cmd_close_receipt [13:00:00]MH_GetDate [13:00:00]Write to MH i2c: F0 00 00 3E 06 33 [13:00:00]Write i2c OK [13:00:00]MH_I2C_Read... [13:00:00]Read from MH i2c: F0 [13:00:00]MH_I2C_Read... [13:00:00]Read from MH i2c: F0 09 00 [13:00:00]MH_I2C_Read... [13:00:00]Read from MH i2c: F0 09 00 3E 06 00 51 92 A7 66 F8 53 A7 66 84 [13:00:00]GetLastDocTimeStamp 1722257526 [13:00:00]current date 1722258001 [13:00:00]FM_GetShiftState [13:00:00]SAM_PROTO_GetShiftState [13:00:00]wFMCommunicate request_size=4 [13:00:00]MH_SAM_APDU [13:00:00]CAPDU: 80 13 01 00 [13:00:00]Write to MH i2c: E2 08 00 3F 06 80 13 01 00 00 00 00 00 C2 [13:00:00]Write i2c OK [13:00:00]MH_I2C_Read... [13:00:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:00]Read from MH i2c: E2 [13:00:00]MH_I2C_Read... [13:00:00]Read from MH i2c: E2 0E 00 [13:00:00]MH_I2C_Read... [13:00:00]Read from MH i2c: E2 0E 00 3F 06 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 5E [13:00:00]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [13:00:00]wFMCommunicate OK [13:00:00]SAM_PROTO_GetShiftState done [13:00:00]FM_GetShiftState done [13:00:00]opened in 1722211496 [13:00:00]opened+sec_in_day 1722297896 [13:00:00]quantity*price = 13000 [13:00:00]sum+1 = 13001 [13:00:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 69 29.07.2024 13:00 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41880 ФПД: 101934948511713 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T130002&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41880&fm=101934948511713&tin=02508201610067®Number=0000000000092626&sum=13000 0 [13:00:01]StoreToDocumentArchive [13:00:01]shift 427 fd 41880 [13:00:01]save to /storage/0427/doc_00041880 [13:00:01]save last doc name /storage/0427/doc_00041880 to /storage/kkm_last_doc_name [13:00:01]save OK [13:00:01]Clear old archive folders... [13:00:01]ProcessDocumentItem done err = 0, tmpTLVsize=272 [13:00:01]tlvbuf is 0082DD90 [13:00:01]SAM_PROTO_ClearQueue [13:00:01]wFMCommunicate request_size=4 [13:00:01]MH_SAM_APDU [13:00:01]CAPDU: 80 09 00 00 [13:00:01]Write to MH i2c: E2 08 00 4C 06 80 09 00 00 00 00 00 00 C4 [13:00:01]Write i2c OK [13:00:01]MH_I2C_Read... [13:00:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:00:01]Read from MH i2c: E2 [13:00:01]MH_I2C_Read... [13:00:01]Read from MH i2c: E2 03 00 [13:00:01]MH_I2C_Read... [13:00:01]Read from MH i2c: E2 03 00 4C 06 00 90 00 C6 [13:00:01]RAPDU: 90 00 [13:00:01]wFMCommunicate OK [13:00:01]SAM_PROTO_ClearQueue done [13:00:01]KKMCreateOFDPacket [13:00:01]OFDProtocolAddRootSTLVToBuf [13:00:01]FM_MakeSignedData [13:00:01]FM_MakeSignedData [13:00:01]SAM_PROTO_SignData [13:00:01]wFMCommunicate request_size=4 [13:00:01]MH_SAM_APDU [13:00:01]CAPDU: 80 0D 01 02 [13:00:01]Write to MH i2c: E2 08 00 4D 06 80 0D 01 02 00 00 00 00 CC [13:00:01]Write i2c OK [13:00:01]MH_I2C_Read... [13:00:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:00:01]Read from MH i2c: E2 [13:00:01]MH_I2C_Read... [13:00:01]Read from MH i2c: E2 03 00 [13:00:01]MH_I2C_Read... [13:00:01]Read from MH i2c: E2 03 00 4D 06 00 90 00 C7 [13:00:01]RAPDU: 90 00 [13:00:01]wFMCommunicate OK [13:00:01]wFMCommunicate request_size=255 [13:00:01]MH_SAM_APDU [13:00:01]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 52 92 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 [13:00:01]Write to MH i2c: E2 02 01 4E 06 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 52 92 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 00 00 4C [13:00:01]Write i2c OK [13:00:01]MH_I2C_Read... [13:00:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:02]Read from MH i2c: E2 [13:00:02]MH_I2C_Read... [13:00:02]Read from MH i2c: E2 03 00 [13:00:02]MH_I2C_Read... [13:00:02]Read from MH i2c: E2 03 00 4E 06 00 90 00 C8 [13:00:02]RAPDU: 90 00 [13:00:02]wFMCommunicate OK [13:00:02]wFMCommunicate request_size=31 [13:00:02]MH_SAM_APDU [13:00:02]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 39 35 38 10 04 04 00 98 A3 00 00 35 04 06 00 5C B5 94 65 6F E1 [13:00:02]Write to MH i2c: E2 22 00 4F 06 80 0D 02 02 1A 00 30 30 38 37 34 39 35 38 10 04 04 00 98 A3 00 00 35 04 06 00 5C B5 94 65 6F E1 00 00 98 [13:00:02]Write i2c OK [13:00:02]MH_I2C_Read... [13:00:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:02]Read from MH i2c: E2 [13:00:02]MH_I2C_Read... [13:00:02]Read from MH i2c: E2 03 00 [13:00:02]MH_I2C_Read... [13:00:02]Read from MH i2c: E2 03 00 4F 06 00 90 00 C9 [13:00:02]RAPDU: 90 00 [13:00:02]wFMCommunicate OK [13:00:02]wFMCommunicate request_size=4 [13:00:02]MH_SAM_APDU [13:00:02]CAPDU: 80 0D 03 02 [13:00:02]Write to MH i2c: E2 08 00 50 06 80 0D 03 02 00 00 00 00 D1 [13:00:02]Write i2c OK [13:00:02]MH_I2C_Read... [13:00:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:00:02]Read from MH i2c: E2 [13:00:02]MH_I2C_Read... [13:00:02]Read from MH i2c: E2 0B 00 [13:00:02]MH_I2C_Read... [13:00:02]Read from MH i2c: E2 0B 00 50 06 00 0C 9E 47 C9 EC D1 EC FD 90 00 32 [13:00:02]RAPDU: 0C 9E 47 C9 EC D1 EC FD 90 00 [13:00:02]wFMCommunicate OK [13:00:02]SAM_PROTO_SignData done [13:00:02]FM_MakeSignedData done [13:00:02]CreateOFDProtocolMessage [13:00:02]wFMCommunicate request_size=4 [13:00:02]MH_SAM_APDU [13:00:02]CAPDU: 80 11 00 00 [13:00:02]Write to MH i2c: E2 08 00 51 06 80 11 00 00 00 00 00 00 D1 [13:00:02]Write i2c OK [13:00:02]MH_I2C_Read... [13:00:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:02]Read from MH i2c: E2 [13:00:02]MH_I2C_Read... [13:00:02]Read from MH i2c: E2 17 00 [13:00:02]MH_I2C_Read... [13:00:02]Read from MH i2c: E2 17 00 51 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 2D [13:00:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [13:00:02]wFMCommunicate OK [13:00:02]CreateOFDProtocolMessage done [13:00:02]OFDSenderStorePacket 41880 [13:00:02]StoreOFDPacket docnum=41880 [13:00:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 24 01 00 00 1A A8 1C 01 04 08 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 52 92 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 98 A3 00 00 35 04 06 00 5C B5 94 65 6F E1 0C 9E 47 C9 EC D1 EC FD [13:00:02]CheckFolder [13:00:02]dirname=/storage/ofd_packets [13:00:02]CheckFolder done [13:00:02]ProducePacketName [13:00:02]name=ofd_packets/00041880 [13:00:02]NVStorageSaveData ofd_packets/00041880 [13:00:02]File name is /storage/ofd_packets/00041880 [13:00:02]Write 322 bytes [13:00:02]NVStorageSaveData done [13:00:02]OFDSenderStorePacket done [13:00:02]KKMCreateOFDPacket done [13:00:02]NVStorageSaveData kkm_last_timestamp [13:00:02]File name is /storage/kkm_last_timestamp [13:00:02]Write 4 bytes [13:00:02]NVStorageSaveData done [13:00:02]ExternCall_PrintAddStr [13:00:02]wPrintStart [13:00:02]Write to MH i2c: 01 00 00 52 06 58 [13:00:02]Write i2c OK [13:00:02]MH_I2C_Read... [13:00:02]Read from MH i2c: 01 [13:00:02]MH_I2C_Read... [13:00:02]Read from MH i2c: 01 07 00 [13:00:02]MH_I2C_Read... [13:00:02]Read from MH i2c: 01 07 00 52 06 00 00 00 00 00 FF 0F 6D [13:00:02]RasterBufferAndPrint [13:00:02]line Счет N : (3)183908 [13:00:02]line ИНН: 02508201610067 [13:00:02]line Контрольно-Кассовый Чек [13:00:02]line ПРОДАЖА [13:00:02]line Товар: 47011656 [13:00:02]line Водка Пшеничная 0,1л [13:00:02]line 2.000 * 65.00 [13:00:02]line = 130.00 [13:00:02]line НДС 12% НСП 1% [13:00:02]line > о реализуемом товаре [13:00:02]line ИТОГО: 130.00 [13:00:02]line НСП 1% : 1.15 [13:00:02]line НДС 12% : 13.80 [13:00:02]line Наличными: 130.00 [13:00:02]line Безнал.: 0.00 [13:00:02]line Место: АЗС № 97 "Партнер Нефть" [13:00:02]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [13:00:02]line СНО: Общий режим [13:00:02]line Чек 69 29.07.2024 13:00 [13:00:02]line Смена: 427 ФФД: 1.0 [13:00:02]line ЗНМ: 0300000053 [13:00:02]line РНМ: 0000000000092626 [13:00:02]line Версия ККМ: 001 [13:00:02]line ФМ: 0000000000874958 [13:00:02]line ФД: 41880 [13:00:02]line ФПД: 101934948511713 [13:00:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T130002&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41880&fm=101934948511713&tin=02508201610067®Number=0000000000092626&sum=13000 [13:00:02]OFD Sender: Processing packet 41880 [packets to send 57, broken 56] [13:00:02]ProducePacketName [13:00:02]name=ofd_packets/00041880 [13:00:02]OFD Sender: To server: pG, [13:00:02]CommunicateWithHost lk.salyk.kg:30040 [13:00:02]ConnectInit lk.salyk.kg [13:00:02]line 0 [13:00:02]written 0, free lines is 4095 [13:00:03]Write to MH i2c: 01 00 00 7A 06 80 [13:00:03]Write i2c OK [13:00:03]MH_I2C_Read... [13:00:03]Read from MH i2c: 01 [13:00:03]MH_I2C_Read... [13:00:03]Read from MH i2c: 01 07 00 [13:00:03]MH_I2C_Read... [13:00:03]Read from MH i2c: 01 07 00 7A 06 00 00 00 00 00 06 0D 9A [13:00:03]RasterBufferAndPrint [13:00:03]line [13:00:03]line [13:00:03]line [13:00:03]line [13:00:03]line [13:00:03]written 0, free lines is 3340 [13:00:03]MH_Cut [13:00:03]Write to MH i2c: D1 01 00 81 06 01 59 [13:00:03]Write i2c OK [13:00:03]MH_I2C_Read... [13:00:03]Read from MH i2c: D1 [13:00:03]MH_I2C_Read... [13:00:03]Read from MH i2c: D1 01 00 [13:00:03]MH_I2C_Read... [13:00:03]Read from MH i2c: D1 01 00 81 06 00 58 [13:00:03]Write to MH i2c: 01 00 00 82 06 88 [13:00:03]Write i2c OK [13:00:03]MH_I2C_Read... [13:00:03]*** Cut start [13:00:03]*** Partial cut [13:00:03]*** CUTSNS_PIN = 1 [13:00:03]*** CUTSNS_PIN = 0 [13:00:04]*** Brake cut motor [13:00:04]Read from MH i2c: 01 [13:00:04]MH_I2C_Read... [13:00:04]*** Stop cut motor [13:00:04]*** Cut end [13:00:04]Read from MH i2c: 01 07 00 [13:00:04]MH_I2C_Read... [13:00:04]Read from MH i2c: 01 07 00 82 06 00 00 00 00 00 FF 0F 9D [13:00:04]process_action close_receipt done [13:00:04]requested_data is exist [13:00:04]produce_requested_data [13:00:04]requested_item fm.sn is exist - process it [13:00:04]wFMCommunicate request_size=4 [13:00:04]MH_SAM_APDU [13:00:04]CAPDU: 80 11 00 00 [13:00:04]Write to MH i2c: E2 08 00 83 06 80 11 00 00 00 00 00 00 03 [13:00:04]Write i2c OK [13:00:04]MH_I2C_Read... [13:00:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:04]Read from MH i2c: E2 [13:00:04]MH_I2C_Read... [13:00:04]Read from MH i2c: E2 17 00 [13:00:04]MH_I2C_Read... [13:00:04]Read from MH i2c: E2 17 00 83 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 5F [13:00:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [13:00:04]wFMCommunicate OK [13:00:04]requested_item fd.num is exist - process it [13:00:04]SAM_PROTO_GetFieldsCounters [13:00:04]wFMCommunicate request_size=4 [13:00:04]MH_SAM_APDU [13:00:04]CAPDU: 80 13 00 00 [13:00:04]Write to MH i2c: E2 08 00 84 06 80 13 00 00 00 00 00 00 06 [13:00:04]Write i2c OK [13:00:04]MH_I2C_Read... [13:00:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:00:04]Read from MH i2c: E2 [13:00:04]MH_I2C_Read... [13:00:04]Read from MH i2c: E2 62 00 [13:00:04]MH_I2C_Read... [13:00:04]Read from MH i2c: E2 62 00 84 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 98 A3 00 00 0E 04 04 00 AB 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 E6 [13:00: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 98 A3 00 00 0E 04 04 00 AB 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:00:04]wFMCommunicate OK [13:00:04]SAM_PROTO_GetFieldsCounters done [13:00:04]requested_item shift.num is exist - process it [13:00:04]requested_item shift.opened is exist - process it [13:00:04]req_shift_opened [13:00:04]FM_GetShiftState [13:00:04]SAM_PROTO_GetShiftState [13:00:04]wFMCommunicate request_size=4 [13:00:04]MH_SAM_APDU [13:00:04]CAPDU: 80 13 01 00 [13:00:04]Write to MH i2c: E2 08 00 85 06 80 13 01 00 00 00 00 00 08 [13:00:04]Write i2c OK [13:00:04]MH_I2C_Read... [13:00:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:04]Read from MH i2c: E2 [13:00:04]MH_I2C_Read... [13:00:04]Read from MH i2c: E2 0E 00 [13:00:04]MH_I2C_Read... [13:00:04]Read from MH i2c: E2 0E 00 85 06 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 A4 [13:00:04]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [13:00:04]wFMCommunicate OK [13:00:04]SAM_PROTO_GetShiftState done [13:00:04]FM_GetShiftState done [13:00:04]req_shift_opened done [13:00:04]requested_item shift.open_date is exist - process it [13:00:04]req_shift_open_date [13:00:04]req_shift_open_date done [13:00:04]produce_requested_data done [13:00:04]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41880,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [13:00:04]process_action_free close_receipt [13:00:04]json_value_free [13:00:04]json_value_free done [13:00:04]process_json_proto returns [13:00:04]Send response to host [13:00:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41880,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [13:00:04]free response buf [13:00:04]execute_script done [13:00:04]execute_script returns [13:00:04]free content buf [13:00:04]Sock 10.Close socket [13:00:04]Sock 10.Thread stoped [13:00:05]Connected sock=11 [13:00: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 35 38 24 01 00 00 1A A8 1C 01 04 08 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 52 92 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 98 A3 00 00 35 04 06 00 5C B5 94 65 6F E1 0C 9E 47 C9 EC D1 EC FD [13: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 35 38 4F 00 00 00 FC 50 47 00 55 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 35 38 10 04 04 00 98 A3 00 00 F4 03 04 00 69 3E A7 66 B6 04 01 00 00 9D E2 67 8B 2A 76 4A C9 [13:00:06]CommunicateWithHost err = 0 [13:00:06]CheckOFDResponse [13:00:06]1017 (14) - 77093643461234 [13:00:06]1041 (16) - 0000000000874958 [13:00:06]1040 (4) - 41880 [13:00:06]1012 (4) - 29.07.2024 07:02 [13:00:06]1206 (1) - 0 [13:00:06]OFD Sender: Remove packet 41880 [13:00:06]ProducePacketName [13:00:06]name=ofd_packets/00041880 [13:00:06]NVStorageDeleteData [13:00:06]OFD Sender: No OFD packet to send [13:00:07]ConnectInit Can't connect to host [13:00:11]OFD Sender: No OFD packet to send [13:00:16]OFD Sender: No OFD packet to send [13:00:20]recv_with_timeout no data received [13:00:21]OFD Sender: No OFD packet to send [13:00:26]OFD Sender: No OFD packet to send [13:00:31]OFD Sender: No OFD packet to send [13:00:36]OFD Sender: No OFD packet to send [13:00:41]OFD Sender: No OFD packet to send [13:00:46]OFD Sender: No OFD packet to send [13:00:51]OFD Sender: No OFD packet to send [13:00:56]OFD Sender: No OFD packet to send [13:01:01]OFD Sender: No OFD packet to send [13:01:06]OFD Sender: No OFD packet to send [13:01:11]OFD Sender: No OFD packet to send [13:01:16]OFD Sender: No OFD packet to send [13:01:21]OFD Sender: No OFD packet to send [13:01:26]OFD Sender: No OFD packet to send [13:01:31]OFD Sender: No OFD packet to send [13:01:36]OFD Sender: No OFD packet to send [13:01:41]OFD Sender: No OFD packet to send [13:01:46]OFD Sender: No OFD packet to send [13:01:51]OFD Sender: No OFD packet to send [13:01:56]OFD Sender: No OFD packet to send [13:02:01]OFD Sender: No OFD packet to send [13:02:06]OFD Sender: No OFD packet to send [13:02:11]OFD Sender: No OFD packet to send [13:02:16]OFD Sender: No OFD packet to send [13:02:21]OFD Sender: No OFD packet to send [13:02:26]OFD Sender: No OFD packet to send [13:02:31]OFD Sender: No OFD packet to send [13:02:37]OFD Sender: No OFD packet to send [13:02:42]OFD Sender: No OFD packet to send [13:02:46]recv_with_timeout no data received [13:02:47]OFD Sender: No OFD packet to send [13:02:52]OFD Sender: No OFD packet to send [13:02:57]OFD Sender: No OFD packet to send [13:03:02]OFD Sender: No OFD packet to send [13:03:07]OFD Sender: No OFD packet to send [13:03:12]OFD Sender: No OFD packet to send [13:03:17]OFD Sender: No OFD packet to send [13:03:22]OFD Sender: No OFD packet to send [13:03:27]OFD Sender: No OFD packet to send [13:03:32]OFD Sender: No OFD packet to send [13:03:37]OFD Sender: No OFD packet to send [13:03:42]OFD Sender: No OFD packet to send [13:03:47]OFD Sender: No OFD packet to send [13:03:52]OFD Sender: No OFD packet to send [13:03:54]accept exits with 9 [13:03:54]New connection [13:03:54]New thread 3066903908 created [13:03:54]Thread 3066760548 joined [13:03:54]Waiting for new connection... [13:03:54] Sock 9.Parse request [13:03:54]Sock 9.Check first char [13:03:54]Sock 9.First char is OK [13:03:54]request: POST /json_proto HTTP/1.0 [13:03:54]Method: POST [13:03:54]URL: /json_proto [13:03:54]Method is POST - this is cgi request [13:03:54]url: /json_proto [13:03:54]query_string will be loaded in cgi processing [13:03:54]execute_cgi json_proto POST (null) [13:03:54]execute_cgi path=json_proto method=POST [13:03:54]POST find Content-Length [13:03:54]Host: 172.17.43.132:8080 [13:03:54]Content-Length: 630 [13:03:54]Content-Type: application/json [13:03:54] [13:03:54]POST finish read [13:03:54]Found Content-Length = 630 [13:03:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183909", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:03:54]execute_script... [13:03:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183909", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:03:54]POST & json_proto [13:03:54]process_json_proto [13:03:54]json parsed OK: [13:03:54]protocol is kg_v1.0 [13:03:54]action value=close_receipt [13:03:54]process_action close_receipt [13:03:54]cmd_close_receipt [13:03:54]MH_GetDate [13:03:54]Write to MH i2c: F0 00 00 86 06 7B [13:03:54]Write i2c OK [13:03:54]MH_I2C_Read... [13:03:54]Read from MH i2c: F0 [13:03:54]MH_I2C_Read... [13:03:54]Read from MH i2c: F0 09 00 [13:03:54]MH_I2C_Read... [13:03:54]Read from MH i2c: F0 09 00 86 06 00 3B 93 A7 66 F8 53 A7 66 B7 [13:03:54]GetLastDocTimeStamp 1722258002 [13:03:54]current date 1722258235 [13:03:54]FM_GetShiftState [13:03:54]SAM_PROTO_GetShiftState [13:03:54]wFMCommunicate request_size=4 [13:03:54]MH_SAM_APDU [13:03:54]CAPDU: 80 13 01 00 [13:03:54]Write to MH i2c: E2 08 00 87 06 80 13 01 00 00 00 00 00 0A [13:03:54]Write i2c OK [13:03:54]MH_I2C_Read... [13:03:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:03:54]Read from MH i2c: E2 [13:03:54]MH_I2C_Read... [13:03:54]Read from MH i2c: E2 0E 00 [13:03:54]MH_I2C_Read... [13:03:54]Read from MH i2c: E2 0E 00 87 06 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 A6 [13:03:54]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [13:03:54]wFMCommunicate OK [13:03:54]SAM_PROTO_GetShiftState done [13:03:54]FM_GetShiftState done [13:03:54]opened in 1722211496 [13:03:54]opened+sec_in_day 1722297896 [13:03:54]quantity*price = 5000 [13:03:54]sum+1 = 5001 [13:03:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 70 29.07.2024 13:03 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41881 ФПД: 49475219668544 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T130355&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41881&fm=49475219668544&tin=02508201610067®Number=0000000000092626&sum=5000 0 [13:03:55]StoreToDocumentArchive [13:03:55]shift 427 fd 41881 [13:03:55]save to /storage/0427/doc_00041881 [13:03:55]save last doc name /storage/0427/doc_00041881 to /storage/kkm_last_doc_name [13:03:55]save OK [13:03:55]Clear old archive folders... [13:03:55]ProcessDocumentItem done err = 0, tmpTLVsize=269 [13:03:55]tlvbuf is 00832990 [13:03:55]SAM_PROTO_ClearQueue [13:03:55]wFMCommunicate request_size=4 [13:03:55]MH_SAM_APDU [13:03:55]CAPDU: 80 09 00 00 [13:03:55]Write to MH i2c: E2 08 00 94 06 80 09 00 00 00 00 00 00 0C [13:03:55]Write i2c OK [13:03:55]MH_I2C_Read... [13:03:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:03:55]Read from MH i2c: E2 [13:03:55]MH_I2C_Read... [13:03:55]Read from MH i2c: E2 03 00 [13:03:55]MH_I2C_Read... [13:03:55]Read from MH i2c: E2 03 00 94 06 00 90 00 0E [13:03:55]RAPDU: 90 00 [13:03:55]wFMCommunicate OK [13:03:55]SAM_PROTO_ClearQueue done [13:03:55]KKMCreateOFDPacket [13:03:55]OFDProtocolAddRootSTLVToBuf [13:03:55]FM_MakeSignedData [13:03:55]FM_MakeSignedData [13:03:55]SAM_PROTO_SignData [13:03:55]wFMCommunicate request_size=4 [13:03:55]MH_SAM_APDU [13:03:55]CAPDU: 80 0D 01 02 [13:03:55]Write to MH i2c: E2 08 00 95 06 80 0D 01 02 00 00 00 00 14 [13:03:55]Write i2c OK [13:03:55]MH_I2C_Read... [13:03:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:03:55]Read from MH i2c: E2 [13:03:55]MH_I2C_Read... [13:03:55]Read from MH i2c: E2 03 00 [13:03:55]MH_I2C_Read... [13:03:55]Read from MH i2c: E2 03 00 95 06 00 90 00 0F [13:03:55]RAPDU: 90 00 [13:03:55]wFMCommunicate OK [13:03:55]wFMCommunicate request_size=255 [13:03:55]MH_SAM_APDU [13:03:55]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 3B 93 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [13:03:55]Write to MH i2c: E2 02 01 96 06 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 3B 93 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 F8 [13:03:55]Write i2c OK [13:03:55]MH_I2C_Read... [13:03:55]recv_with_timeout no data received [13:03:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:03:56]Read from MH i2c: E2 [13:03:56]MH_I2C_Read... [13:03:56]Read from MH i2c: E2 03 00 [13:03:56]MH_I2C_Read... [13:03:56]Read from MH i2c: E2 03 00 96 06 00 90 00 10 [13:03:56]RAPDU: 90 00 [13:03:56]wFMCommunicate OK [13:03:56]wFMCommunicate request_size=28 [13:03:56]MH_SAM_APDU [13:03:56]CAPDU: 80 0D 02 02 17 37 34 39 35 38 10 04 04 00 99 A3 00 00 35 04 06 00 2C FF 58 E4 BE 40 [13:03:56]Write to MH i2c: E2 1F 00 97 06 80 0D 02 02 17 00 37 34 39 35 38 10 04 04 00 99 A3 00 00 35 04 06 00 2C FF 58 E4 BE 40 00 00 4E [13:03:56]Write i2c OK [13:03:56]MH_I2C_Read... [13:03:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:03:56]Read from MH i2c: E2 [13:03:56]MH_I2C_Read... [13:03:56]Read from MH i2c: E2 03 00 [13:03:56]MH_I2C_Read... [13:03:56]Read from MH i2c: E2 03 00 97 06 00 90 00 11 [13:03:56]RAPDU: 90 00 [13:03:56]wFMCommunicate OK [13:03:56]wFMCommunicate request_size=4 [13:03:56]MH_SAM_APDU [13:03:56]CAPDU: 80 0D 03 02 [13:03:56]Write to MH i2c: E2 08 00 98 06 80 0D 03 02 00 00 00 00 19 [13:03:56]Write i2c OK [13:03:56]MH_I2C_Read... [13:03:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:03:56]Read from MH i2c: E2 [13:03:56]MH_I2C_Read... [13:03:56]Read from MH i2c: E2 0B 00 [13:03:56]MH_I2C_Read... [13:03:56]Read from MH i2c: E2 0B 00 98 06 00 50 C7 46 EB 10 01 B7 FF 90 00 29 [13:03:56]RAPDU: 50 C7 46 EB 10 01 B7 FF 90 00 [13:03:56]wFMCommunicate OK [13:03:56]SAM_PROTO_SignData done [13:03:56]FM_MakeSignedData done [13:03:56]CreateOFDProtocolMessage [13:03:56]wFMCommunicate request_size=4 [13:03:56]MH_SAM_APDU [13:03:56]CAPDU: 80 11 00 00 [13:03:56]Write to MH i2c: E2 08 00 99 06 80 11 00 00 00 00 00 00 19 [13:03:56]Write i2c OK [13:03:56]MH_I2C_Read... [13:03:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:03:56]Read from MH i2c: E2 [13:03:56]MH_I2C_Read... [13:03:56]Read from MH i2c: E2 17 00 [13:03:56]MH_I2C_Read... [13:03:56]Read from MH i2c: E2 17 00 99 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 75 [13:03:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [13:03:56]wFMCommunicate OK [13:03:56]CreateOFDProtocolMessage done [13:03:56]OFDSenderStorePacket 41881 [13:03:56]StoreOFDPacket docnum=41881 [13:03:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 21 01 00 00 27 F9 19 01 04 0B 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 3B 93 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 99 A3 00 00 35 04 06 00 2C FF 58 E4 BE 40 50 C7 46 EB 10 01 B7 FF [13:03:56]CheckFolder [13:03:56]dirname=/storage/ofd_packets [13:03:56]CheckFolder done [13:03:56]ProducePacketName [13:03:56]name=ofd_packets/00041881 [13:03:56]NVStorageSaveData ofd_packets/00041881 [13:03:56]File name is /storage/ofd_packets/00041881 [13:03:56]Write 319 bytes [13:03:56]NVStorageSaveData done [13:03:56]OFDSenderStorePacket done [13:03:56]KKMCreateOFDPacket done [13:03:56]NVStorageSaveData kkm_last_timestamp [13:03:56]File name is /storage/kkm_last_timestamp [13:03:56]Write 4 bytes [13:03:56]NVStorageSaveData done [13:03:56]ExternCall_PrintAddStr [13:03:56]wPrintStart [13:03:56]Write to MH i2c: 01 00 00 9A 06 A0 [13:03:56]Write i2c OK [13:03:56]MH_I2C_Read... [13:03:56]Read from MH i2c: 01 [13:03:56]MH_I2C_Read... [13:03:56]Read from MH i2c: 01 07 00 [13:03:56]MH_I2C_Read... [13:03:56]Read from MH i2c: 01 07 00 9A 06 00 00 00 00 00 FF 0F B5 [13:03:56]RasterBufferAndPrint [13:03:56]line Счет N : (3)183909 [13:03:56]line ИНН: 02508201610067 [13:03:56]line Контрольно-Кассовый Чек [13:03:56]line ПРОДАЖА [13:03:56]line Товар: 4700000160358 [13:03:56]line Вода Легенда 1л [13:03:56]line 1.000 * 50.00 [13:03:56]line = 50.00 [13:03:56]line НДС 12% НСП 1% [13:03:56]line > о реализуемом товаре [13:03:56]line ИТОГО: 50.00 [13:03:56]line НСП 1% : 0.44 [13:03:56]line НДС 12% : 5.31 [13:03:56]line Наличными: 50.00 [13:03:56]line Безнал.: 0.00 [13:03:56]line Место: АЗС № 97 "Партнер Нефть" [13:03:56]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [13:03:56]line СНО: Общий режим [13:03:56]line Чек 70 29.07.2024 13:03 [13:03:56]line Смена: 427 ФФД: 1.0 [13:03:56]line ЗНМ: 0300000053 [13:03:56]line РНМ: 0000000000092626 [13:03:56]line Версия ККМ: 001 [13:03:56]line ФМ: 0000000000874958 [13:03:56]line ФД: 41881 [13:03:56]line ФПД: 49475219668544 [13:03:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T130355&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41881&fm=49475219668544&tin=02508201610067®Number=0000000000092626&sum=5000 [13:03:56]OFD Sender: Processing packet 41881 [packets to send 57, broken 56] [13:03:56]ProducePacketName [13:03:56]name=ofd_packets/00041881 [13:03:56]OFD Sender: To server: pG, [13:03:56]CommunicateWithHost lk.salyk.kg:30040 [13:03:56]ConnectInit lk.salyk.kg [13:03:56]line 0 [13:03:56]written 0, free lines is 4095 [13:03:56]Write to MH i2c: 01 00 00 C2 06 C8 [13:03:56]Write i2c OK [13:03:56]MH_I2C_Read... [13:03:56]Read from MH i2c: 01 [13:03:56]MH_I2C_Read... [13:03:56]Read from MH i2c: 01 07 00 [13:03:56]MH_I2C_Read... [13:03:56]Read from MH i2c: 01 07 00 C2 06 00 00 00 00 00 02 0D DE [13:03:56]RasterBufferAndPrint [13:03:56]line [13:03:56]line [13:03:56]line [13:03:56]line [13:03:56]line [13:03:56]written 0, free lines is 3336 [13:03:56]MH_Cut [13:03:56]Write to MH i2c: D1 01 00 C9 06 01 A1 [13:03:56]Write i2c OK [13:03:56]MH_I2C_Read... [13:03:56]Read from MH i2c: D1 [13:03:56]MH_I2C_Read... [13:03:56]Read from MH i2c: D1 01 00 [13:03:56]MH_I2C_Read... [13:03:56]Read from MH i2c: D1 01 00 C9 06 00 A0 [13:03:56]Write to MH i2c: 01 00 00 CA 06 D0 [13:03:56]Write i2c OK [13:03:56]MH_I2C_Read... [13:03:57]*** Cut start [13:03:57]*** Partial cut [13:03:57]*** CUTSNS_PIN = 1 [13:03:57]*** CUTSNS_PIN = 0 [13:03:57]*** Brake cut motor [13:03:58]Read from MH i2c: 01 [13:03:58]MH_I2C_Read... [13:03:58]*** Stop cut motor [13:03:58]*** Cut end [13:03:58]Read from MH i2c: 01 07 00 [13:03:58]MH_I2C_Read... [13:03:58]Read from MH i2c: 01 07 00 CA 06 00 00 00 00 00 FF 0F E5 [13:03:58]process_action close_receipt done [13:03:58]requested_data is exist [13:03:58]produce_requested_data [13:03:58]requested_item fm.sn is exist - process it [13:03:58]wFMCommunicate request_size=4 [13:03:58]MH_SAM_APDU [13:03:58]CAPDU: 80 11 00 00 [13:03:58]Write to MH i2c: E2 08 00 CB 06 80 11 00 00 00 00 00 00 4B [13:03:58]Write i2c OK [13:03:58]MH_I2C_Read... [13:03:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:03:58]Read from MH i2c: E2 [13:03:58]MH_I2C_Read... [13:03:58]Read from MH i2c: E2 17 00 [13:03:58]MH_I2C_Read... [13:03:58]Read from MH i2c: E2 17 00 CB 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 A7 [13:03:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [13:03:58]wFMCommunicate OK [13:03:58]requested_item fd.num is exist - process it [13:03:58]SAM_PROTO_GetFieldsCounters [13:03:58]wFMCommunicate request_size=4 [13:03:58]MH_SAM_APDU [13:03:58]CAPDU: 80 13 00 00 [13:03:58]Write to MH i2c: E2 08 00 CC 06 80 13 00 00 00 00 00 00 4E [13:03:58]Write i2c OK [13:03:58]MH_I2C_Read... [13:03:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:03:58]Read from MH i2c: E2 [13:03:58]MH_I2C_Read... [13:03:58]Read from MH i2c: E2 62 00 [13:03:58]MH_I2C_Read... [13:03:58]Read from MH i2c: E2 62 00 CC 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 99 A3 00 00 0E 04 04 00 AB 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 32 [13:03:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 99 A3 00 00 0E 04 04 00 AB 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:03:58]wFMCommunicate OK [13:03:58]SAM_PROTO_GetFieldsCounters done [13:03:58]requested_item shift.num is exist - process it [13:03:58]requested_item shift.opened is exist - process it [13:03:58]req_shift_opened [13:03:58]FM_GetShiftState [13:03:58]SAM_PROTO_GetShiftState [13:03:58]wFMCommunicate request_size=4 [13:03:58]MH_SAM_APDU [13:03:58]CAPDU: 80 13 01 00 [13:03:58]Write to MH i2c: E2 08 00 CD 06 80 13 01 00 00 00 00 00 50 [13:03:58]Write i2c OK [13:03:58]MH_I2C_Read... [13:03:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:03:58]Read from MH i2c: E2 [13:03:58]MH_I2C_Read... [13:03:58]Read from MH i2c: E2 0E 00 [13:03:58]MH_I2C_Read... [13:03:58]Read from MH i2c: E2 0E 00 CD 06 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 EC [13:03:58]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [13:03:58]wFMCommunicate OK [13:03:58]SAM_PROTO_GetShiftState done [13:03:58]FM_GetShiftState done [13:03:58]req_shift_opened done [13:03:58]requested_item shift.open_date is exist - process it [13:03:58]req_shift_open_date [13:03:58]req_shift_open_date done [13:03:58]produce_requested_data done [13:03:58]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41881,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [13:03:58]process_action_free close_receipt [13:03:58]json_value_free [13:03:58]json_value_free done [13:03:58]process_json_proto returns [13:03:58]Send response to host [13:03:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41881,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [13:03:58]free response buf [13:03:58]execute_script done [13:03:58]execute_script returns [13:03:58]free content buf [13:03:58]Sock 9.Close socket [13:03:58]Sock 9.Thread stoped [13:04:01]ConnectInit Can't take IP for lk.salyk.kg [13:04:01]CommunicateWithHost connect error [13:04:01]CommunicateWithHost err = -1 [13:04:01]OFD Sender: Server communicate error [13:04:06]OFD Sender: Processing packet 41881 [packets to send 57, broken 56] [13:04:06]ProducePacketName [13:04:06]name=ofd_packets/00041881 [13:04:06]OFD Sender: To server: pG, [13:04:06]CommunicateWithHost lk.salyk.kg:30040 [13:04:06]ConnectInit lk.salyk.kg [13:04:11]ConnectInit Can't take IP for lk.salyk.kg [13:04:11]CommunicateWithHost connect error [13:04:11]CommunicateWithHost err = -1 [13:04:11]OFD Sender: Server communicate error [13:04:16]OFD Sender: Processing packet 41881 [packets to send 57, broken 56] [13:04:16]ProducePacketName [13:04:16]name=ofd_packets/00041881 [13:04:16]OFD Sender: To server: pG, [13:04:16]CommunicateWithHost lk.salyk.kg:30040 [13:04:16]ConnectInit lk.salyk.kg [13:04:21]ConnectInit Can't take IP for lk.salyk.kg [13:04:21]CommunicateWithHost connect error [13:04:21]CommunicateWithHost err = -1 [13:04:21]OFD Sender: Server communicate error [13:04:26]OFD Sender: Processing packet 41881 [packets to send 57, broken 56] [13:04:26]ProducePacketName [13:04:26]name=ofd_packets/00041881 [13:04:26]OFD Sender: To server: pG, [13:04:26]CommunicateWithHost lk.salyk.kg:30040 [13:04:26]ConnectInit lk.salyk.kg [13:04:31]ConnectInit Can't take IP for lk.salyk.kg [13:04:31]CommunicateWithHost connect error [13:04:31]CommunicateWithHost err = -1 [13:04:31]OFD Sender: Server communicate error [13:04:36]OFD Sender: Processing packet 41881 [packets to send 57, broken 56] [13:04:36]ProducePacketName [13:04:36]name=ofd_packets/00041881 [13:04:36]OFD Sender: To server: pG, [13:04:36]CommunicateWithHost lk.salyk.kg:30040 [13:04:36]ConnectInit lk.salyk.kg [13:04:37]Connected sock=8 [13:04: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 35 38 21 01 00 00 27 F9 19 01 04 0B 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 3B 93 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 99 A3 00 00 35 04 06 00 2C FF 58 E4 BE 40 50 C7 46 EB 10 01 B7 FF [13:04: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 35 38 4F 00 00 00 66 4B 47 00 90 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 35 38 10 04 04 00 99 A3 00 00 F4 03 04 00 78 3F A7 66 B6 04 01 00 00 99 4D 9C 71 6D 0B 69 8B [13:04:37]CommunicateWithHost err = 0 [13:04:37]CheckOFDResponse [13:04:37]1017 (14) - 77093643461234 [13:04:37]1041 (16) - 0000000000874958 [13:04:37]1040 (4) - 41881 [13:04:37]1012 (4) - 29.07.2024 07:06 [13:04:37]1206 (1) - 0 [13:04:37]OFD Sender: Remove packet 41881 [13:04:37]ProducePacketName [13:04:37]name=ofd_packets/00041881 [13:04:37]NVStorageDeleteData [13:04:37]OFD Sender: No OFD packet to send [13:04:42]OFD Sender: No OFD packet to send [13:04:47]OFD Sender: No OFD packet to send [13:04:52]OFD Sender: No OFD packet to send [13:04:53]recv_with_timeout no data received [13:04:57]OFD Sender: No OFD packet to send [13:05:03]OFD Sender: No OFD packet to send [13:05:08]OFD Sender: No OFD packet to send [13:05:13]OFD Sender: No OFD packet to send [13:05:18]OFD Sender: No OFD packet to send [13:05:23]OFD Sender: No OFD packet to send [13:05:28]OFD Sender: No OFD packet to send [13:05:33]OFD Sender: No OFD packet to send [13:05:38]OFD Sender: No OFD packet to send [13:05:43]OFD Sender: No OFD packet to send [13:05:48]OFD Sender: No OFD packet to send [13:05:53]OFD Sender: No OFD packet to send [13:05:58]OFD Sender: No OFD packet to send [13:06:03]OFD Sender: No OFD packet to send [13:06:08]OFD Sender: No OFD packet to send [13:06:13]OFD Sender: No OFD packet to send [13:06:18]OFD Sender: No OFD packet to send [13:06:23]OFD Sender: No OFD packet to send [13:06:28]OFD Sender: No OFD packet to send [13:06:33]OFD Sender: No OFD packet to send [13:06:38]OFD Sender: No OFD packet to send [13:06:43]OFD Sender: No OFD packet to send [13:06:48]OFD Sender: No OFD packet to send [13:06:53]OFD Sender: No OFD packet to send [13:06:58]OFD Sender: No OFD packet to send [13:07:03]OFD Sender: No OFD packet to send [13:07:08]OFD Sender: No OFD packet to send [13:07:13]OFD Sender: No OFD packet to send [13:07:18]OFD Sender: No OFD packet to send [13:07:23]OFD Sender: No OFD packet to send [13:07:28]OFD Sender: No OFD packet to send [13:07:33]OFD Sender: No OFD packet to send [13:07:38]OFD Sender: No OFD packet to send [13:07:43]OFD Sender: No OFD packet to send [13:07:48]OFD Sender: No OFD packet to send [13:07:53]OFD Sender: No OFD packet to send [13:07:58]OFD Sender: No OFD packet to send [13:08:03]OFD Sender: No OFD packet to send [13:08:08]OFD Sender: No OFD packet to send [13:08:13]OFD Sender: No OFD packet to send [13:08:18]OFD Sender: No OFD packet to send [13:08:23]OFD Sender: No OFD packet to send [13:08:28]OFD Sender: No OFD packet to send [13:08:33]OFD Sender: No OFD packet to send [13:08:38]OFD Sender: No OFD packet to send [13:08:43]OFD Sender: No OFD packet to send [13:08:48]OFD Sender: No OFD packet to send [13:08:53]OFD Sender: No OFD packet to send [13:08:58]OFD Sender: No OFD packet to send [13:09:03]OFD Sender: No OFD packet to send [13:09:08]OFD Sender: No OFD packet to send [13:09:13]OFD Sender: No OFD packet to send [13:09:18]OFD Sender: No OFD packet to send [13:09:23]OFD Sender: No OFD packet to send [13:09:28]OFD Sender: No OFD packet to send [13:09:33]OFD Sender: No OFD packet to send [13:09:38]OFD Sender: No OFD packet to send [13:09:43]OFD Sender: No OFD packet to send [13:09:48]OFD Sender: No OFD packet to send [13:09:53]OFD Sender: No OFD packet to send [13:09:58]OFD Sender: No OFD packet to send [13:10:03]OFD Sender: No OFD packet to send [13:10:08]OFD Sender: No OFD packet to send [13:10:13]OFD Sender: No OFD packet to send [13:10:18]OFD Sender: No OFD packet to send [13:10:23]OFD Sender: No OFD packet to send [13:10:28]OFD Sender: No OFD packet to send [13:10:33]OFD Sender: No OFD packet to send [13:10:38]OFD Sender: No OFD packet to send [13:10:43]OFD Sender: No OFD packet to send [13:10:48]OFD Sender: No OFD packet to send [13:10:53]OFD Sender: No OFD packet to send [13:10:58]OFD Sender: No OFD packet to send [13:11:03]OFD Sender: No OFD packet to send [13:11:08]OFD Sender: No OFD packet to send [13:11:13]OFD Sender: No OFD packet to send [13:11:18]OFD Sender: No OFD packet to send [13:11:23]OFD Sender: No OFD packet to send [13:11:27]recv_with_timeout no data received [13:11:28]OFD Sender: No OFD packet to send [13:11:33]OFD Sender: No OFD packet to send [13:11:38]OFD Sender: No OFD packet to send [13:11:40]recv_with_timeout no data received [13:11:43]OFD Sender: No OFD packet to send [13:11:48]OFD Sender: No OFD packet to send [13:11:53]OFD Sender: No OFD packet to send [13:11:58]OFD Sender: No OFD packet to send [13:12:03]OFD Sender: No OFD packet to send [13:12:08]OFD Sender: No OFD packet to send [13:12:10]recv_with_timeout no data received [13:12:13]OFD Sender: No OFD packet to send [13:12:18]OFD Sender: No OFD packet to send [13:12:19]accept exits with 10 [13:12:19]New connection [13:12:19]New thread 3066760548 created [13:12:19]Thread 3066903908 joined [13:12:19]Waiting for new connection... [13:12:19] Sock 10.Parse request [13:12:19]Sock 10.Check first char [13:12:19]Sock 10.First char is OK [13:12:19]request: POST /json_proto HTTP/1.0 [13:12:19]Method: POST [13:12:19]URL: /json_proto [13:12:19]Method is POST - this is cgi request [13:12:19]url: /json_proto [13:12:19]query_string will be loaded in cgi processing [13:12:19]execute_cgi json_proto POST (null) [13:12:19]execute_cgi path=json_proto method=POST [13:12:19]POST find Content-Length [13:12:19]Host: 172.17.43.132:8080 [13:12:19]Content-Length: 681 [13:12:19]Content-Type: application/json [13:12:19] [13:12:19]POST finish read [13:12:19]Found Content-Length = 681 [13:12:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183910", "tax_sys" : 0, "items" : [ { "code": "4700003010353", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u0433\u0440\u0443\u0448\u0430 \u041F\u042D\u0422 1\u043B", "price" : 80.00, "quantity" : 2.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:12:19]execute_script... [13:12: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 : (3)183910", "tax_sys" : 0, "items" : [ { "code": "4700003010353", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u0433\u0440\u0443\u0448\u0430 \u041F\u042D\u0422 1\u043B", "price" : 80.00, "quantity" : 2.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:12:19]POST & json_proto [13:12:19]process_json_proto [13:12:19]json parsed OK: [13:12:19]protocol is kg_v1.0 [13:12:19]action value=close_receipt [13:12:19]process_action close_receipt [13:12:19]cmd_close_receipt [13:12:19]MH_GetDate [13:12:19]Write to MH i2c: F0 00 00 CE 06 C3 [13:12:19]Write i2c OK [13:12:19]MH_I2C_Read... [13:12:19]Read from MH i2c: F0 [13:12:19]MH_I2C_Read... [13:12:19]Read from MH i2c: F0 09 00 [13:12:19]MH_I2C_Read... [13:12:19]Read from MH i2c: F0 09 00 CE 06 00 34 95 A7 66 F8 53 A7 66 FA [13:12:19]GetLastDocTimeStamp 1722258235 [13:12:19]current date 1722258740 [13:12:19]FM_GetShiftState [13:12:19]SAM_PROTO_GetShiftState [13:12:19]wFMCommunicate request_size=4 [13:12:19]MH_SAM_APDU [13:12:19]CAPDU: 80 13 01 00 [13:12:19]Write to MH i2c: E2 08 00 CF 06 80 13 01 00 00 00 00 00 52 [13:12:19]Write i2c OK [13:12:19]MH_I2C_Read... [13:12:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:19]Read from MH i2c: E2 [13:12:19]MH_I2C_Read... [13:12:19]Read from MH i2c: E2 0E 00 [13:12:19]MH_I2C_Read... [13:12:19]Read from MH i2c: E2 0E 00 CF 06 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 EE [13:12:19]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [13:12:19]wFMCommunicate OK [13:12:19]SAM_PROTO_GetShiftState done [13:12:19]FM_GetShiftState done [13:12:19]opened in 1722211496 [13:12:19]opened+sec_in_day 1722297896 [13:12:19]quantity*price = 16000 [13:12:19]sum+1 = 16001 [13:12:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 160.00 НСП 1% : 1.42 НДС 12% : 16.99 Наличными: 160.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 71 29.07.2024 13:12 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41882 ФПД: 275785654853816 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T131220&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41882&fm=275785654853816&tin=02508201610067®Number=0000000000092626&sum=16000 0 [13:12:20]StoreToDocumentArchive [13:12:20]shift 427 fd 41882 [13:12:20]save to /storage/0427/doc_00041882 [13:12:20]save last doc name /storage/0427/doc_00041882 to /storage/kkm_last_doc_name [13:12:20]save OK [13:12:20]Clear old archive folders... [13:12:20]ProcessDocumentItem done err = 0, tmpTLVsize=294 [13:12:20]tlvbuf is 0085BF70 [13:12:20]SAM_PROTO_ClearQueue [13:12:20]wFMCommunicate request_size=4 [13:12:20]MH_SAM_APDU [13:12:20]CAPDU: 80 09 00 00 [13:12:20]Write to MH i2c: E2 08 00 DC 06 80 09 00 00 00 00 00 00 54 [13:12:20]Write i2c OK [13:12:20]MH_I2C_Read... [13:12:20]Read from MH i2c: E2 [13:12:20]MH_I2C_Read... [13:12:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:12:20]Read from MH i2c: E2 03 00 [13:12:20]MH_I2C_Read... [13:12:20]Read from MH i2c: E2 03 00 DC 06 00 90 00 56 [13:12:20]RAPDU: 90 00 [13:12:20]wFMCommunicate OK [13:12:20]SAM_PROTO_ClearQueue done [13:12:20]KKMCreateOFDPacket [13:12:20]OFDProtocolAddRootSTLVToBuf [13:12:20]FM_MakeSignedData [13:12:20]FM_MakeSignedData [13:12:20]SAM_PROTO_SignData [13:12:20]wFMCommunicate request_size=4 [13:12:20]MH_SAM_APDU [13:12:20]CAPDU: 80 0D 01 02 [13:12:20]Write to MH i2c: E2 08 00 DD 06 80 0D 01 02 00 00 00 00 5C [13:12:20]Write i2c OK [13:12:20]MH_I2C_Read... [13:12:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:12:20]Read from MH i2c: E2 [13:12:20]MH_I2C_Read... [13:12:20]Read from MH i2c: E2 03 00 [13:12:20]MH_I2C_Read... [13:12:20]Read from MH i2c: E2 03 00 DD 06 00 90 00 57 [13:12:20]RAPDU: 90 00 [13:12:20]wFMCommunicate OK [13:12:20]wFMCommunicate request_size=255 [13:12:20]MH_SAM_APDU [13:12:20]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 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 34 95 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [13:12:20]Write to MH i2c: E2 02 01 DE 06 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 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 34 95 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 CB [13:12:20]Write i2c OK [13:12:20]MH_I2C_Read... [13:12:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:20]Read from MH i2c: E2 [13:12:20]MH_I2C_Read... [13:12:20]Read from MH i2c: E2 03 00 [13:12:20]MH_I2C_Read... [13:12:20]Read from MH i2c: E2 03 00 DE 06 00 90 00 58 [13:12:20]RAPDU: 90 00 [13:12:20]wFMCommunicate OK [13:12:20]wFMCommunicate request_size=53 [13:12:20]MH_SAM_APDU [13:12:20]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 9A A3 00 00 35 04 06 00 FA D3 59 FD E0 B8 [13:12:20]Write to MH i2c: E2 38 00 DF 06 80 0D 02 02 30 00 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 9A A3 00 00 35 04 06 00 FA D3 59 FD E0 B8 00 00 55 [13:12:20]Write i2c OK [13:12:20]MH_I2C_Read... [13:12:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:21]Read from MH i2c: E2 [13:12:21]MH_I2C_Read... [13:12:21]Read from MH i2c: E2 03 00 [13:12:21]MH_I2C_Read... [13:12:21]Read from MH i2c: E2 03 00 DF 06 00 90 00 59 [13:12:21]RAPDU: 90 00 [13:12:21]wFMCommunicate OK [13:12:21]wFMCommunicate request_size=4 [13:12:21]MH_SAM_APDU [13:12:21]CAPDU: 80 0D 03 02 [13:12:21]Write to MH i2c: E2 08 00 E0 06 80 0D 03 02 00 00 00 00 61 [13:12:21]Write i2c OK [13:12:21]MH_I2C_Read... [13:12:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:12:21]Read from MH i2c: E2 [13:12:21]MH_I2C_Read... [13:12:21]Read from MH i2c: E2 0B 00 [13:12:21]MH_I2C_Read... [13:12:21]Read from MH i2c: E2 0B 00 E0 06 00 AF 4B E8 D0 56 4E 0A 63 90 00 25 [13:12:21]RAPDU: AF 4B E8 D0 56 4E 0A 63 90 00 [13:12:21]wFMCommunicate OK [13:12:21]SAM_PROTO_SignData done [13:12:21]FM_MakeSignedData done [13:12:21]CreateOFDProtocolMessage [13:12:21]wFMCommunicate request_size=4 [13:12:21]MH_SAM_APDU [13:12:21]CAPDU: 80 11 00 00 [13:12:21]Write to MH i2c: E2 08 00 E1 06 80 11 00 00 00 00 00 00 61 [13:12:21]Write i2c OK [13:12:21]MH_I2C_Read... [13:12:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:21]Read from MH i2c: E2 [13:12:21]MH_I2C_Read... [13:12:21]Read from MH i2c: E2 17 00 [13:12:21]MH_I2C_Read... [13:12:21]Read from MH i2c: E2 17 00 E1 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 BD [13:12:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [13:12:21]wFMCommunicate OK [13:12:21]CreateOFDProtocolMessage done [13:12:21]OFDSenderStorePacket 41882 [13:12:21]StoreOFDPacket docnum=41882 [13:12:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 3A 01 00 00 52 2F 32 01 0E 6A 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 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 34 95 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 9A A3 00 00 35 04 06 00 FA D3 59 FD E0 B8 AF 4B E8 D0 56 4E 0A 63 [13:12:21]CheckFolder [13:12:21]dirname=/storage/ofd_packets [13:12:21]CheckFolder done [13:12:21]ProducePacketName [13:12:21]name=ofd_packets/00041882 [13:12:21]NVStorageSaveData ofd_packets/00041882 [13:12:21]File name is /storage/ofd_packets/00041882 [13:12:21]Write 344 bytes [13:12:21]NVStorageSaveData done [13:12:21]OFDSenderStorePacket done [13:12:21]KKMCreateOFDPacket done [13:12:21]NVStorageSaveData kkm_last_timestamp [13:12:21]File name is /storage/kkm_last_timestamp [13:12:21]Write 4 bytes [13:12:21]NVStorageSaveData done [13:12:21]ExternCall_PrintAddStr [13:12:21]wPrintStart [13:12:21]Write to MH i2c: 01 00 00 E2 06 E8 [13:12:21]Write i2c OK [13:12:21]MH_I2C_Read... [13:12:21]Read from MH i2c: 01 [13:12:21]MH_I2C_Read... [13:12:21]Read from MH i2c: 01 07 00 [13:12:21]MH_I2C_Read... [13:12:21]Read from MH i2c: 01 07 00 E2 06 00 00 00 00 00 FF 0F FD [13:12:21]RasterBufferAndPrint [13:12:21]line Счет N : (3)183910 [13:12:21]line ИНН: 02508201610067 [13:12:21]line Контрольно-Кассовый Чек [13:12:21]line ПРОДАЖА [13:12:21]line Товар: 4700003010353 [13:12:21]line Напиток Let`s Go! с/с груша ПЭТ 1л [13:12:21]line 2.000 * 80.00 [13:12:21]line = 160.00 [13:12:21]line НДС 12% НСП 1% [13:12:21]line > о реализуемом товаре [13:12:21]line ИТОГО: 160.00 [13:12:21]line НСП 1% : 1.42 [13:12:21]line НДС 12% : 16.99 [13:12:21]line Наличными: 160.00 [13:12:21]line Безнал.: 0.00 [13:12:21]line Место: АЗС № 97 "Партнер Нефть" [13:12:21]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [13:12:21]line СНО: Общий режим [13:12:21]line Чек 71 29.07.2024 13:12 [13:12:21]line Смена: 427 ФФД: 1.0 [13:12:21]line ЗНМ: 0300000053 [13:12:21]line РНМ: 0000000000092626 [13:12:21]line Версия ККМ: 001 [13:12:21]line ФМ: 0000000000874958 [13:12:21]line ФД: 41882 [13:12:21]line ФПД: 275785654853816 [13:12:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T131220&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41882&fm=275785654853816&tin=02508201610067®Number=0000000000092626&sum=16000 [13:12:21]line 0 [13:12:21]OFD Sender: Processing packet 41882 [packets to send 57, broken 56] [13:12:21]ProducePacketName [13:12:21]name=ofd_packets/00041882 [13:12:21]OFD Sender: To server: pG, [13:12:21]CommunicateWithHost lk.salyk.kg:30040 [13:12:21]ConnectInit lk.salyk.kg [13:12:21]written 0, free lines is 4095 [13:12:21]Write to MH i2c: 01 00 00 0B 07 12 [13:12:21]Write i2c OK [13:12:21]MH_I2C_Read... [13:12:21]Read from MH i2c: 01 [13:12:21]MH_I2C_Read... [13:12:21]Read from MH i2c: 01 07 00 [13:12:21]MH_I2C_Read... [13:12:21]Read from MH i2c: 01 07 00 0B 07 00 00 00 00 00 FD 0C 22 [13:12:21]RasterBufferAndPrint [13:12:21]line [13:12:21]line [13:12:21]line [13:12:21]line [13:12:21]line [13:12:21]written 0, free lines is 3330 [13:12:21]MH_Cut [13:12:21]Write to MH i2c: D1 01 00 12 07 01 EB [13:12:21]Write i2c OK [13:12:21]MH_I2C_Read... [13:12:21]Read from MH i2c: D1 [13:12:21]MH_I2C_Read... [13:12:21]Read from MH i2c: D1 01 00 [13:12:21]MH_I2C_Read... [13:12:21]Read from MH i2c: D1 01 00 12 07 00 EA [13:12:21]Write to MH i2c: 01 00 00 13 07 1A [13:12:21]Write i2c OK [13:12:21]MH_I2C_Read... [13:12:21]Connected sock=8 [13:12: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 35 38 3A 01 00 00 52 2F 32 01 0E 6A 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 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 34 95 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 9A A3 00 00 35 04 06 00 FA D3 59 FD E0 B8 AF 4B E8 D0 56 4E 0A 63 [13:12: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 35 38 4F 00 00 00 37 E0 47 00 D8 FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 9A A3 00 00 F4 03 04 00 49 41 A7 66 B6 04 01 00 00 4C 6A 3B A6 F4 7D E4 2E [13:12:22]CommunicateWithHost err = 0 [13:12:22]CheckOFDResponse [13:12:22]1017 (14) - 77093643461234 [13:12:22]1041 (16) - 0000000000874958 [13:12:22]1040 (4) - 41882 [13:12:22]1012 (4) - 29.07.2024 07:14 [13:12:22]1206 (1) - 0 [13:12:22]OFD Sender: Remove packet 41882 [13:12:22]ProducePacketName [13:12:22]name=ofd_packets/00041882 [13:12:22]NVStorageDeleteData [13:12:22]*** Cut start [13:12:22]*** Partial cut [13:12:22]*** CUTSNS_PIN = 1 [13:12:22]*** CUTSNS_PIN = 0 [13:12:23]*** Brake cut motor [13:12:23]OFD Sender: No OFD packet to send [13:12:23]Read from MH i2c: 01 [13:12:23]MH_I2C_Read... [13:12:23]*** Stop cut motor [13:12:23]*** Cut end [13:12:23]Read from MH i2c: 01 07 00 [13:12:23]MH_I2C_Read... [13:12:23]Read from MH i2c: 01 07 00 13 07 00 00 00 00 00 FF 0F 2F [13:12:23]process_action close_receipt done [13:12:23]requested_data is exist [13:12:23]produce_requested_data [13:12:23]requested_item fm.sn is exist - process it [13:12:23]wFMCommunicate request_size=4 [13:12:23]MH_SAM_APDU [13:12:23]CAPDU: 80 11 00 00 [13:12:23]Write to MH i2c: E2 08 00 14 07 80 11 00 00 00 00 00 00 95 [13:12:23]Write i2c OK [13:12:23]MH_I2C_Read... [13:12:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:23]Read from MH i2c: E2 [13:12:23]MH_I2C_Read... [13:12:23]Read from MH i2c: E2 17 00 [13:12:23]MH_I2C_Read... [13:12:23]Read from MH i2c: E2 17 00 14 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 F1 [13:12:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [13:12:23]wFMCommunicate OK [13:12:23]requested_item fd.num is exist - process it [13:12:23]SAM_PROTO_GetFieldsCounters [13:12:23]wFMCommunicate request_size=4 [13:12:23]MH_SAM_APDU [13:12:23]CAPDU: 80 13 00 00 [13:12:23]Write to MH i2c: E2 08 00 15 07 80 13 00 00 00 00 00 00 98 [13:12:23]Write i2c OK [13:12:23]MH_I2C_Read... [13:12:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:12:23]Read from MH i2c: E2 [13:12:23]MH_I2C_Read... [13:12:23]Read from MH i2c: E2 62 00 [13:12:23]MH_I2C_Read... [13:12:23]Read from MH i2c: E2 62 00 15 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 9A A3 00 00 0E 04 04 00 AB 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 80 [13:12: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 9A A3 00 00 0E 04 04 00 AB 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:12:23]wFMCommunicate OK [13:12:23]SAM_PROTO_GetFieldsCounters done [13:12:23]requested_item shift.num is exist - process it [13:12:23]requested_item shift.opened is exist - process it [13:12:23]req_shift_opened [13:12:23]FM_GetShiftState [13:12:23]SAM_PROTO_GetShiftState [13:12:23]wFMCommunicate request_size=4 [13:12:23]MH_SAM_APDU [13:12:23]CAPDU: 80 13 01 00 [13:12:23]Write to MH i2c: E2 08 00 16 07 80 13 01 00 00 00 00 00 9A [13:12:23]Write i2c OK [13:12:23]MH_I2C_Read... [13:12:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:23]Read from MH i2c: E2 [13:12:23]MH_I2C_Read... [13:12:23]Read from MH i2c: E2 0E 00 [13:12:23]MH_I2C_Read... [13:12:23]Read from MH i2c: E2 0E 00 16 07 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 36 [13:12:23]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [13:12:23]wFMCommunicate OK [13:12:23]SAM_PROTO_GetShiftState done [13:12:23]FM_GetShiftState done [13:12:23]req_shift_opened done [13:12:23]requested_item shift.open_date is exist - process it [13:12:23]req_shift_open_date [13:12:23]req_shift_open_date done [13:12:23]produce_requested_data done [13:12:23]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41882,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [13:12:23]process_action_free close_receipt [13:12:23]json_value_free [13:12:23]json_value_free done [13:12:23]process_json_proto returns [13:12:23]Send response to host [13:12:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41882,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [13:12:23]free response buf [13:12:23]execute_script done [13:12:23]execute_script returns [13:12:23]free content buf [13:12:23]Sock 10.Close socket [13:12:23]Sock 10.Thread stoped [13:12:28]OFD Sender: No OFD packet to send [13:12:29]accept exits with 9 [13:12:29]New connection [13:12:29]New thread 3066903908 created [13:12:29]Thread 3066760548 joined [13:12:29]Waiting for new connection... [13:12:29] Sock 9.Parse request [13:12:29]Sock 9.Check first char [13:12:29]Sock 9.First char is OK [13:12:29]request: POST /json_proto HTTP/1.0 [13:12:29]Method: POST [13:12:29]URL: /json_proto [13:12:29]Method is POST - this is cgi request [13:12:29]url: /json_proto [13:12:29]query_string will be loaded in cgi processing [13:12:29]execute_cgi json_proto POST (null) [13:12:29]execute_cgi path=json_proto method=POST [13:12:29]POST find Content-Length [13:12:29]Host: 172.17.43.132:8080 [13:12:29]Content-Length: 616 [13:12:29]Content-Type: application/json [13:12:29] [13:12:29]POST finish read [13:12:29]Found Content-Length = 616 [13:12:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183911", "tax_sys" : 0, "items" : [ { "code": "4870002329487", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1,5\u043B", "price" : 175.00, "quantity" : 2.000, "sum" : 350.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 350.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:12:29]execute_script... [13:12:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183911", "tax_sys" : 0, "items" : [ { "code": "4870002329487", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1,5\u043B", "price" : 175.00, "quantity" : 2.000, "sum" : 350.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 350.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:12:29]POST & json_proto [13:12:29]process_json_proto [13:12:29]json parsed OK: [13:12:29]protocol is kg_v1.0 [13:12:29]action value=close_receipt [13:12:29]process_action close_receipt [13:12:29]cmd_close_receipt [13:12:29]MH_GetDate [13:12:29]Write to MH i2c: F0 00 00 17 07 0D [13:12:29]Write i2c OK [13:12:29]MH_I2C_Read... [13:12:29]Read from MH i2c: F0 [13:12:29]MH_I2C_Read... [13:12:29]Read from MH i2c: F0 09 00 [13:12:29]MH_I2C_Read... [13:12:29]Read from MH i2c: F0 09 00 17 07 00 3E 95 A7 66 F8 53 A7 66 4E [13:12:29]GetLastDocTimeStamp 1722258740 [13:12:29]current date 1722258750 [13:12:29]FM_GetShiftState [13:12:29]SAM_PROTO_GetShiftState [13:12:29]wFMCommunicate request_size=4 [13:12:29]MH_SAM_APDU [13:12:29]CAPDU: 80 13 01 00 [13:12:29]Write to MH i2c: E2 08 00 18 07 80 13 01 00 00 00 00 00 9C [13:12:29]Write i2c OK [13:12:29]MH_I2C_Read... [13:12:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:29]Read from MH i2c: E2 [13:12:29]MH_I2C_Read... [13:12:29]Read from MH i2c: E2 0E 00 [13:12:29]MH_I2C_Read... [13:12:29]Read from MH i2c: E2 0E 00 18 07 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 38 [13:12:29]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [13:12:29]wFMCommunicate OK [13:12:29]SAM_PROTO_GetShiftState done [13:12:29]FM_GetShiftState done [13:12:29]opened in 1722211496 [13:12:29]opened+sec_in_day 1722297896 [13:12:29]quantity*price = 35000 [13:12:29]sum+1 = 35001 [13:12:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 350.00 НСП 1% : 3.10 НДС 12% : 37.17 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 72 29.07.2024 13:12 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41883 ФПД: 43123501234229 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T131230&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41883&fm=43123501234229&tin=02508201610067®Number=0000000000092626&sum=35000 0 [13:12:30]StoreToDocumentArchive [13:12:30]shift 427 fd 41883 [13:12:30]save to /storage/0427/doc_00041883 [13:12:30]save last doc name /storage/0427/doc_00041883 to /storage/kkm_last_doc_name [13:12:30]save OK [13:12:30]Clear old archive folders... [13:12:30]ProcessDocumentItem done err = 0, tmpTLVsize=268 [13:12:30]tlvbuf is 008604C0 [13:12:30]SAM_PROTO_ClearQueue [13:12:30]wFMCommunicate request_size=4 [13:12:30]MH_SAM_APDU [13:12:30]CAPDU: 80 09 00 00 [13:12:30]Write to MH i2c: E2 08 00 25 07 80 09 00 00 00 00 00 00 9E [13:12:30]Write i2c OK [13:12:30]MH_I2C_Read... [13:12:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:12:30]Read from MH i2c: E2 [13:12:30]MH_I2C_Read... [13:12:30]Read from MH i2c: E2 03 00 [13:12:30]MH_I2C_Read... [13:12:30]Read from MH i2c: E2 03 00 25 07 00 90 00 A0 [13:12:30]RAPDU: 90 00 [13:12:30]wFMCommunicate OK [13:12:30]SAM_PROTO_ClearQueue done [13:12:30]KKMCreateOFDPacket [13:12:30]OFDProtocolAddRootSTLVToBuf [13:12:30]FM_MakeSignedData [13:12:30]FM_MakeSignedData [13:12:30]SAM_PROTO_SignData [13:12:30]wFMCommunicate request_size=4 [13:12:30]MH_SAM_APDU [13:12:30]CAPDU: 80 0D 01 02 [13:12:30]Write to MH i2c: E2 08 00 26 07 80 0D 01 02 00 00 00 00 A6 [13:12:30]Write i2c OK [13:12:30]MH_I2C_Read... [13:12:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:12:30]Read from MH i2c: E2 [13:12:30]MH_I2C_Read... [13:12:30]Read from MH i2c: E2 03 00 [13:12:30]MH_I2C_Read... [13:12:30]Read from MH i2c: E2 03 00 26 07 00 90 00 A1 [13:12:30]RAPDU: 90 00 [13:12:30]wFMCommunicate OK [13:12:30]wFMCommunicate request_size=255 [13:12:30]MH_SAM_APDU [13:12:30]CAPDU: 80 0D 02 02 FA 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 38 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 B8 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 3E 95 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 [13:12:30]Write to MH i2c: E2 02 01 27 07 80 0D 02 02 FA 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 38 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 B8 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 3E 95 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 00 00 96 [13:12:30]Write i2c OK [13:12:30]MH_I2C_Read... [13:12:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:30]Read from MH i2c: E2 [13:12:30]MH_I2C_Read... [13:12:30]Read from MH i2c: E2 03 00 [13:12:30]MH_I2C_Read... [13:12:30]Read from MH i2c: E2 03 00 27 07 00 90 00 A2 [13:12:30]RAPDU: 90 00 [13:12:30]wFMCommunicate OK [13:12:30]wFMCommunicate request_size=27 [13:12:30]MH_SAM_APDU [13:12:30]CAPDU: 80 0D 02 02 16 34 39 35 38 10 04 04 00 9B A3 00 00 35 04 06 00 27 38 78 F8 F8 35 [13:12:30]Write to MH i2c: E2 1E 00 28 07 80 0D 02 02 16 00 34 39 35 38 10 04 04 00 9B A3 00 00 35 04 06 00 27 38 78 F8 F8 35 00 00 40 [13:12:30]Write i2c OK [13:12:30]MH_I2C_Read... [13:12:30]recv_with_timeout no data received [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 28 07 00 90 00 A3 [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 29 07 80 0D 03 02 00 00 00 00 AB [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 29 07 00 D8 7B 49 06 75 01 36 52 90 00 4C [13:12:31]RAPDU: D8 7B 49 06 75 01 36 52 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 2A 07 80 11 00 00 00 00 00 00 AB [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 2A 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 07 [13:12:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [13:12:31]wFMCommunicate OK [13:12:31]CreateOFDProtocolMessage done [13:12:31]OFDSenderStorePacket 41883 [13:12:31]StoreOFDPacket docnum=41883 [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 35 38 20 01 00 00 02 36 18 01 C0 B6 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 38 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 B8 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 3E 95 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 9B A3 00 00 35 04 06 00 27 38 78 F8 F8 35 D8 7B 49 06 75 01 36 52 [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/00041883 [13:12:31]NVStorageSaveData ofd_packets/00041883 [13:12:31]File name is /storage/ofd_packets/00041883 [13:12:31]Write 318 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 2B 07 32 [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 2B 07 00 00 00 00 00 FF 0F 47 [13:12:31]RasterBufferAndPrint [13:12:31]line Счет N : (3)183911 [13:12:31]line ИНН: 02508201610067 [13:12:31]line Контрольно-Кассовый Чек [13:12:31]line ПРОДАЖА [13:12:31]line Товар: 4870002329487 [13:12:31]line Напиток Pepsi 1,5л [13:12:31]line 2.000 * 175.00 [13:12:31]line = 350.00 [13:12:31]line НДС 12% НСП 1% [13:12:31]line > о реализуемом товаре [13:12:31]line ИТОГО: 350.00 [13:12:31]line НСП 1% : 3.10 [13:12:31]line НДС 12% : 37.17 [13:12:31]line Наличными: 350.00 [13:12:31]line Безнал.: 0.00 [13:12:31]line Место: АЗС № 97 "Партнер Нефть" [13:12:31]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [13:12:31]line СНО: Общий режим [13:12:31]line Чек 72 29.07.2024 13:12 [13:12:31]line Смена: 427 ФФД: 1.0 [13:12:31]line ЗНМ: 0300000053 [13:12:31]line РНМ: 0000000000092626 [13:12:31]line Версия ККМ: 001 [13:12:31]line ФМ: 0000000000874958 [13:12:31]line ФД: 41883 [13:12:31]line ФПД: 43123501234229 [13:12:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T131230&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41883&fm=43123501234229&tin=02508201610067®Number=0000000000092626&sum=35000 [13:12:31]line 0 [13:12:31]written 0, free lines is 4095 [13:12:31]OFD Sender: Processing packet 41883 [packets to send 57, broken 56] [13:12:31]ProducePacketName [13:12:31]name=ofd_packets/00041883 [13:12:31]OFD Sender: To server: pG, [13:12:31]CommunicateWithHost lk.salyk.kg:30040 [13:12:31]ConnectInit lk.salyk.kg [13:12:31]Write to MH i2c: 01 00 00 53 07 5A [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 53 07 00 00 00 00 00 0F 0D 7D [13:12:31]RasterBufferAndPrint [13:12:31]line [13:12:31]line [13:12:31]line [13:12:31]line [13:12:31]line [13:12:31]written 0, free lines is 3357 [13:12:31]MH_Cut [13:12:31]Write to MH i2c: D1 01 00 5A 07 01 33 [13:12:31]Write i2c OK [13:12:31]MH_I2C_Read... [13:12:31]Read from MH i2c: D1 [13:12:31]MH_I2C_Read... [13:12:31]Read from MH i2c: D1 01 00 [13:12:31]MH_I2C_Read... [13:12:31]Read from MH i2c: D1 01 00 5A 07 00 32 [13:12:31]Write to MH i2c: 01 00 00 5B 07 62 [13:12:31]Write i2c OK [13:12:31]MH_I2C_Read... [13:12:32]*** Cut start [13:12:32]*** Partial cut [13:12:32]*** CUTSNS_PIN = 1 [13:12:32]*** CUTSNS_PIN = 0 [13:12:32]*** Brake cut motor [13:12:32]Read from MH i2c: 01 [13:12:32]MH_I2C_Read... [13:12:32]*** Stop cut motor [13:12:32]*** Cut end [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 5B 07 00 00 00 00 00 FF 0F 77 [13:12:32]process_action close_receipt done [13:12:32]requested_data is exist [13:12:32]produce_requested_data [13:12:32]requested_item fm.sn is exist - process it [13:12:32]wFMCommunicate request_size=4 [13:12:32]MH_SAM_APDU [13:12:32]CAPDU: 80 11 00 00 [13:12:32]Write to MH i2c: E2 08 00 5C 07 80 11 00 00 00 00 00 00 DD [13:12:32]Write i2c OK [13:12:32]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 5C 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 39 [13:12:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 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 5D 07 80 13 00 00 00 00 00 00 E0 [13:12:33]Write i2c OK [13:12:33]MH_I2C_Read... [13:12:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:12:33]Read from MH i2c: E2 [13:12:33]MH_I2C_Read... [13:12:33]Read from MH i2c: E2 62 00 [13:12:33]MH_I2C_Read... [13:12:33]Read from MH i2c: E2 62 00 5D 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 9B A3 00 00 0E 04 04 00 AB 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 CC [13:12: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 9B A3 00 00 0E 04 04 00 AB 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:12:33]wFMCommunicate OK [13:12:33]SAM_PROTO_GetFieldsCounters done [13:12:33]requested_item shift.num is exist - process it [13:12:33]requested_item shift.opened is exist - process it [13:12:33]req_shift_opened [13:12:33]FM_GetShiftState [13:12:33]SAM_PROTO_GetShiftState [13:12:33]wFMCommunicate request_size=4 [13:12:33]MH_SAM_APDU [13:12:33]CAPDU: 80 13 01 00 [13:12:33]Write to MH i2c: E2 08 00 5E 07 80 13 01 00 00 00 00 00 E2 [13:12:33]Write i2c OK [13:12:33]MH_I2C_Read... [13:12:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:33]Read from MH i2c: E2 [13:12:33]MH_I2C_Read... [13:12:33]Read from MH i2c: E2 0E 00 [13:12:33]MH_I2C_Read... [13:12:33]Read from MH i2c: E2 0E 00 5E 07 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 7E [13:12:33]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [13:12:33]wFMCommunicate OK [13:12:33]SAM_PROTO_GetShiftState done [13:12:33]FM_GetShiftState done [13:12:33]req_shift_opened done [13:12:33]requested_item shift.open_date is exist - process it [13:12:33]req_shift_open_date [13:12:33]req_shift_open_date done [13:12:33]produce_requested_data done [13:12:33]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41883,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [13:12:33]process_action_free close_receipt [13:12:33]json_value_free [13:12:33]json_value_free done [13:12:33]process_json_proto returns [13:12:33]Send response to host [13:12:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41883,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [13:12:33]free response buf [13:12:33]execute_script done [13:12:33]execute_script returns [13:12:33]free content buf [13:12:33]Sock 9.Close socket [13:12:33]Sock 9.Thread stoped [13:12:36]ConnectInit Can't take IP for lk.salyk.kg [13:12:36]CommunicateWithHost connect error [13:12:36]CommunicateWithHost err = -1 [13:12:36]OFD Sender: Server communicate error [13:12:41]OFD Sender: Processing packet 41883 [packets to send 57, broken 56] [13:12:41]ProducePacketName [13:12:41]name=ofd_packets/00041883 [13:12:41]OFD Sender: To server: pG, [13:12:41]CommunicateWithHost lk.salyk.kg:30040 [13:12:41]ConnectInit lk.salyk.kg [13:12:46]recv_with_timeout no data received [13:12:48]Connected sock=8 [13:12: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 35 38 20 01 00 00 02 36 18 01 C0 B6 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 38 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 B8 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 3E 95 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 9B A3 00 00 35 04 06 00 27 38 78 F8 F8 35 D8 7B 49 06 75 01 36 52 [13:12:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 4F 00 00 00 C5 39 47 00 CC 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 35 38 10 04 04 00 9B A3 00 00 F4 03 04 00 64 41 A7 66 B6 04 01 00 00 8B E3 C1 60 45 53 6B 69 [13:12:50]CommunicateWithHost err = 0 [13:12:50]CheckOFDResponse [13:12:50]1017 (14) - 77093643461234 [13:12:50]1041 (16) - 0000000000874958 [13:12:50]1040 (4) - 41883 [13:12:50]1012 (4) - 29.07.2024 07:14 [13:12:50]1206 (1) - 0 [13:12:50]OFD Sender: Remove packet 41883 [13:12:50]ProducePacketName [13:12:50]name=ofd_packets/00041883 [13:12:50]NVStorageDeleteData [13:12:50]OFD Sender: No OFD packet to send [13:12:55]OFD Sender: No OFD packet to send [13:12:57]recv_with_timeout no data received [13:13:00]OFD Sender: No OFD packet to send [13:13:05]OFD Sender: No OFD packet to send [13:13:09]recv_with_timeout no data received [13:13:10]OFD Sender: No OFD packet to send [13:13:15]OFD Sender: No OFD packet to send [13:13:20]OFD Sender: No OFD packet to send [13:13:25]OFD Sender: No OFD packet to send [13:13:30]OFD Sender: No OFD packet to send [13:13:35]OFD Sender: No OFD packet to send [13:13:40]OFD Sender: No OFD packet to send [13:13:45]OFD Sender: No OFD packet to send [13:13:50]OFD Sender: No OFD packet to send [13:13:55]accept exits with 10 [13:13:55]New connection [13:13:55]New thread 3066760548 created [13:13:55]Thread 3066903908 joined [13:13:55]Waiting for new connection... [13:13:55] Sock 10.Parse request [13:13:55]Sock 10.Check first char [13:13:55]Sock 10.First char is OK [13:13:55]request: POST /json_proto HTTP/1.0 [13:13:55]Method: POST [13:13:55]URL: /json_proto [13:13:55]Method is POST - this is cgi request [13:13:55]url: /json_proto [13:13:55]query_string will be loaded in cgi processing [13:13:55]execute_cgi json_proto POST (null) [13:13:55]execute_cgi path=json_proto method=POST [13:13:55]POST find Content-Length [13:13:55]Host: 172.17.43.132:8080 [13:13:55]Content-Length: 626 [13:13:55]Content-Type: application/json [13:13:55] [13:13:55]POST finish read [13:13:55]Found Content-Length = 626 [13:13:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183912", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 4.000, "sum" : 460.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 460.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:13:55]execute_script... [13:13:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183912", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 4.000, "sum" : 460.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 460.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:13:55]POST & json_proto [13:13:55]process_json_proto [13:13:55]json parsed OK: [13:13:55]protocol is kg_v1.0 [13:13:55]action value=close_receipt [13:13:55]process_action close_receipt [13:13:55]cmd_close_receipt [13:13:55]MH_GetDate [13:13:55]Write to MH i2c: F0 00 00 5F 07 55 [13:13:55]Write i2c OK [13:13:55]MH_I2C_Read... [13:13:55]Read from MH i2c: F0 [13:13:55]MH_I2C_Read... [13:13:55]Read from MH i2c: F0 09 00 [13:13:55]MH_I2C_Read... [13:13:55]Read from MH i2c: F0 09 00 5F 07 00 94 95 A7 66 F8 53 A7 66 EC [13:13:55]GetLastDocTimeStamp 1722258750 [13:13:55]current date 1722258836 [13:13:55]FM_GetShiftState [13:13:55]SAM_PROTO_GetShiftState [13:13:55]wFMCommunicate request_size=4 [13:13:55]MH_SAM_APDU [13:13:55]CAPDU: 80 13 01 00 [13:13:55]Write to MH i2c: E2 08 00 60 07 80 13 01 00 00 00 00 00 E4 [13:13:55]Write i2c OK [13:13:55]MH_I2C_Read... [13:13:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:55]Read from MH i2c: E2 [13:13:55]MH_I2C_Read... [13:13:55]Read from MH i2c: E2 0E 00 [13:13:55]MH_I2C_Read... [13:13:55]Read from MH i2c: E2 0E 00 60 07 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 80 [13:13:55]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [13:13:55]wFMCommunicate OK [13:13:55]SAM_PROTO_GetShiftState done [13:13:55]FM_GetShiftState done [13:13:55]opened in 1722211496 [13:13:55]opened+sec_in_day 1722297896 [13:13:55]quantity*price = 46000 [13:13:55]sum+1 = 46001 [13:13:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 460.00 НСП 1% : 4.07 НДС 12% : 48.85 Наличными: 460.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 73 29.07.2024 13:13 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41884 ФПД: 23196490723073 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T131356&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41884&fm=23196490723073&tin=02508201610067®Number=0000000000092626&sum=46000 0 [13:13:56]StoreToDocumentArchive [13:13:56]shift 427 fd 41884 [13:13:56]save to /storage/0427/doc_00041884 [13:13:56]save last doc name /storage/0427/doc_00041884 to /storage/kkm_last_doc_name [13:13:56]save OK [13:13:56]Clear old archive folders... [13:13:56]ProcessDocumentItem done err = 0, tmpTLVsize=274 [13:13:56]tlvbuf is 007EFE70 [13:13:56]SAM_PROTO_ClearQueue [13:13:56]wFMCommunicate request_size=4 [13:13:56]MH_SAM_APDU [13:13:56]CAPDU: 80 09 00 00 [13:13:56]Write to MH i2c: E2 08 00 6D 07 80 09 00 00 00 00 00 00 E6 [13:13:56]Write i2c OK [13:13:56]MH_I2C_Read... [13:13:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:13:56]Read from MH i2c: E2 [13:13:56]MH_I2C_Read... [13:13:56]Read from MH i2c: E2 03 00 [13:13:56]MH_I2C_Read... [13:13:56]Read from MH i2c: E2 03 00 6D 07 00 90 00 E8 [13:13:56]RAPDU: 90 00 [13:13:56]wFMCommunicate OK [13:13:56]SAM_PROTO_ClearQueue done [13:13:56]KKMCreateOFDPacket [13:13:56]OFDProtocolAddRootSTLVToBuf [13:13:56]FM_MakeSignedData [13:13:56]FM_MakeSignedData [13:13:56]SAM_PROTO_SignData [13:13:56]wFMCommunicate request_size=4 [13:13:56]MH_SAM_APDU [13:13:56]CAPDU: 80 0D 01 02 [13:13:56]Write to MH i2c: E2 08 00 6E 07 80 0D 01 02 00 00 00 00 EE [13:13:56]Write i2c OK [13:13:56]MH_I2C_Read... [13:13:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:13:56]Read from MH i2c: E2 [13:13:56]MH_I2C_Read... [13:13:56]Read from MH i2c: E2 03 00 [13:13:56]MH_I2C_Read... [13:13:56]Read from MH i2c: E2 03 00 6E 07 00 90 00 E9 [13:13:56]RAPDU: 90 00 [13:13:56]wFMCommunicate OK [13:13:56]wFMCommunicate request_size=255 [13:13:56]MH_SAM_APDU [13:13:56]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 B0 B3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 B3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 13 00 00 00 00 07 04 06 00 B0 B3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 94 95 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 [13:13:56]Write to MH i2c: E2 02 01 6F 07 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 B0 B3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 B3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 13 00 00 00 00 07 04 06 00 B0 B3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 94 95 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 00 00 EB [13:13:56]Write i2c OK [13:13:56]MH_I2C_Read... [13:13:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:56]Read from MH i2c: E2 [13:13:56]MH_I2C_Read... [13:13:56]Read from MH i2c: E2 03 00 [13:13:56]MH_I2C_Read... [13:13:56]Read from MH i2c: E2 03 00 6F 07 00 90 00 EA [13:13:56]RAPDU: 90 00 [13:13:56]wFMCommunicate OK [13:13:56]wFMCommunicate request_size=33 [13:13:56]MH_SAM_APDU [13:13:56]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 39 35 38 10 04 04 00 9C A3 00 00 35 04 06 00 15 18 DA 96 EF 01 [13:13:56]Write to MH i2c: E2 24 00 70 07 80 0D 02 02 1C 00 30 30 30 30 38 37 34 39 35 38 10 04 04 00 9C A3 00 00 35 04 06 00 15 18 DA 96 EF 01 00 00 55 [13:13:56]Write i2c OK [13:13:56]MH_I2C_Read... [13:13:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:57]Read from MH i2c: E2 [13:13:57]MH_I2C_Read... [13:13:57]Read from MH i2c: E2 03 00 [13:13:57]MH_I2C_Read... [13:13:57]Read from MH i2c: E2 03 00 70 07 00 90 00 EB [13:13:57]RAPDU: 90 00 [13:13:57]wFMCommunicate OK [13:13:57]wFMCommunicate request_size=4 [13:13:57]MH_SAM_APDU [13:13:57]CAPDU: 80 0D 03 02 [13:13:57]Write to MH i2c: E2 08 00 71 07 80 0D 03 02 00 00 00 00 F3 [13:13:57]Write i2c OK [13:13:57]MH_I2C_Read... [13:13:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:13:57]Read from MH i2c: E2 [13:13:57]MH_I2C_Read... [13:13:57]Read from MH i2c: E2 0B 00 [13:13:57]MH_I2C_Read... [13:13:57]Read from MH i2c: E2 0B 00 71 07 00 71 F6 7B 54 F9 BB 2E E2 90 00 EE [13:13:57]RAPDU: 71 F6 7B 54 F9 BB 2E E2 90 00 [13:13:57]wFMCommunicate OK [13:13:57]SAM_PROTO_SignData done [13:13:57]FM_MakeSignedData done [13:13:57]CreateOFDProtocolMessage [13:13:57]wFMCommunicate request_size=4 [13:13:57]MH_SAM_APDU [13:13:57]CAPDU: 80 11 00 00 [13:13:57]Write to MH i2c: E2 08 00 72 07 80 11 00 00 00 00 00 00 F3 [13:13:57]Write i2c OK [13:13:57]MH_I2C_Read... [13:13:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:57]Read from MH i2c: E2 [13:13:57]MH_I2C_Read... [13:13:57]Read from MH i2c: E2 17 00 [13:13:57]MH_I2C_Read... [13:13:57]Read from MH i2c: E2 17 00 72 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 4F [13:13:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [13:13:57]wFMCommunicate OK [13:13:57]CreateOFDProtocolMessage done [13:13:57]OFDSenderStorePacket 41884 [13:13:57]StoreOFDPacket docnum=41884 [13:13:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 26 01 00 00 94 1D 1E 01 A9 6C 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 B0 B3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 B3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 13 00 00 00 00 07 04 06 00 B0 B3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 94 95 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 9C A3 00 00 35 04 06 00 15 18 DA 96 EF 01 71 F6 7B 54 F9 BB 2E E2 [13:13:57]CheckFolder [13:13:57]dirname=/storage/ofd_packets [13:13:57]CheckFolder done [13:13:57]ProducePacketName [13:13:57]name=ofd_packets/00041884 [13:13:57]NVStorageSaveData ofd_packets/00041884 [13:13:57]File name is /storage/ofd_packets/00041884 [13:13:57]Write 324 bytes [13:13:57]NVStorageSaveData done [13:13:57]OFDSenderStorePacket done [13:13:57]KKMCreateOFDPacket done [13:13:57]NVStorageSaveData kkm_last_timestamp [13:13:57]File name is /storage/kkm_last_timestamp [13:13:57]Write 4 bytes [13:13:57]NVStorageSaveData done [13:13:57]ExternCall_PrintAddStr [13:13:57]wPrintStart [13:13:57]Write to MH i2c: 01 00 00 73 07 7A [13:13:57]Write i2c OK [13:13:57]MH_I2C_Read... [13:13:57]Read from MH i2c: 01 [13:13:57]MH_I2C_Read... [13:13:57]Read from MH i2c: 01 07 00 [13:13:57]MH_I2C_Read... [13:13:57]Read from MH i2c: 01 07 00 73 07 00 00 00 00 00 FF 0F 8F [13:13:57]RasterBufferAndPrint [13:13:57]line Счет N : (3)183912 [13:13:57]line ИНН: 02508201610067 [13:13:57]line Контрольно-Кассовый Чек [13:13:57]line ПРОДАЖА [13:13:57]line Товар: 2000036240010 [13:13:57]line Кофе Латте (GABB TRADE) [13:13:57]line 4.000 * 115.00 [13:13:57]line = 460.00 [13:13:57]line НДС 12% НСП 1% [13:13:57]line > о реализуемом товаре [13:13:57]line ИТОГО: 460.00 [13:13:57]line НСП 1% : 4.07 [13:13:57]line НДС 12% : 48.85 [13:13:57]line Наличными: 460.00 [13:13:57]line Безнал.: 0.00 [13:13:57]line Место: АЗС № 97 "Партнер Нефть" [13:13:57]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [13:13:57]line СНО: Общий режим [13:13:57]line Чек 73 29.07.2024 13:13 [13:13:57]line Смена: 427 ФФД: 1.0 [13:13:57]line ЗНМ: 0300000053 [13:13:57]line РНМ: 0000000000092626 [13:13:57]line Версия ККМ: 001 [13:13:57]line ФМ: 0000000000874958 [13:13:57]line ФД: 41884 [13:13:57]line ФПД: 23196490723073 [13:13:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T131356&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41884&fm=23196490723073&tin=02508201610067®Number=0000000000092626&sum=46000 [13:13:57]line 0 [13:13:57]OFD Sender: Processing packet 41884 [packets to send 57, broken 56] [13:13:57]ProducePacketName [13:13:57]name=ofd_packets/00041884 [13:13:57]OFD Sender: To server: pG, [13:13:57]CommunicateWithHost lk.salyk.kg:30040 [13:13:57]ConnectInit lk.salyk.kg [13:13:57]written 0, free lines is 4095 [13:13:57]Write to MH i2c: 01 00 00 9B 07 A2 [13:13:57]Write i2c OK [13:13:57]MH_I2C_Read... [13:13:57]Read from MH i2c: 01 [13:13:57]MH_I2C_Read... [13:13:57]Read from MH i2c: 01 07 00 [13:13:57]MH_I2C_Read... [13:13:57]Read from MH i2c: 01 07 00 9B 07 00 00 00 00 00 16 0D CC [13:13:57]RasterBufferAndPrint [13:13:57]line [13:13:57]line [13:13:57]line [13:13:57]line [13:13:57]line [13:13:57]written 0, free lines is 3356 [13:13:57]MH_Cut [13:13:57]Write to MH i2c: D1 01 00 A2 07 01 7B [13:13:57]Write i2c OK [13:13:57]MH_I2C_Read... [13:13:57]Read from MH i2c: D1 [13:13:57]MH_I2C_Read... [13:13:57]Read from MH i2c: D1 01 00 [13:13:57]MH_I2C_Read... [13:13:57]Read from MH i2c: D1 01 00 A2 07 00 7A [13:13:57]Write to MH i2c: 01 00 00 A3 07 AA [13:13:57]Write i2c OK [13:13:57]MH_I2C_Read... [13:13:58]*** Cut start [13:13:58]*** Partial cut [13:13:58]*** CUTSNS_PIN = 1 [13:13:58]*** CUTSNS_PIN = 0 [13:13:58]*** Brake cut motor [13:13:59]Read from MH i2c: 01 [13:13:59]MH_I2C_Read... [13:13:59]*** Stop cut motor [13:13:59]*** Cut end [13:13:59]Read from MH i2c: 01 07 00 [13:13:59]MH_I2C_Read... [13:13:59]Read from MH i2c: 01 07 00 A3 07 00 00 00 00 00 FF 0F BF [13:13:59]process_action close_receipt done [13:13:59]requested_data is exist [13:13:59]produce_requested_data [13:13:59]requested_item fm.sn is exist - process it [13:13:59]wFMCommunicate request_size=4 [13:13:59]MH_SAM_APDU [13:13:59]CAPDU: 80 11 00 00 [13:13:59]Write to MH i2c: E2 08 00 A4 07 80 11 00 00 00 00 00 00 25 [13:13:59]Write i2c OK [13:13:59]MH_I2C_Read... [13:13:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:59]Read from MH i2c: E2 [13:13:59]MH_I2C_Read... [13:13:59]Read from MH i2c: E2 17 00 [13:13:59]MH_I2C_Read... [13:13:59]Read from MH i2c: E2 17 00 A4 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 81 [13:13:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [13:13:59]wFMCommunicate OK [13:13:59]requested_item fd.num is exist - process it [13:13:59]SAM_PROTO_GetFieldsCounters [13:13:59]wFMCommunicate request_size=4 [13:13:59]MH_SAM_APDU [13:13:59]CAPDU: 80 13 00 00 [13:13:59]Write to MH i2c: E2 08 00 A5 07 80 13 00 00 00 00 00 00 28 [13:13:59]Write i2c OK [13:13:59]MH_I2C_Read... [13:13:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:13:59]Read from MH i2c: E2 [13:13:59]MH_I2C_Read... [13:13:59]Read from MH i2c: E2 62 00 [13:13:59]MH_I2C_Read... [13:13:59]Read from MH i2c: E2 62 00 A5 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 9C A3 00 00 0E 04 04 00 AB 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 18 [13:13:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 9C A3 00 00 0E 04 04 00 AB 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:13:59]wFMCommunicate OK [13:13:59]SAM_PROTO_GetFieldsCounters done [13:13:59]requested_item shift.num is exist - process it [13:13:59]requested_item shift.opened is exist - process it [13:13:59]req_shift_opened [13:13:59]FM_GetShiftState [13:13:59]SAM_PROTO_GetShiftState [13:13:59]wFMCommunicate request_size=4 [13:13:59]MH_SAM_APDU [13:13:59]CAPDU: 80 13 01 00 [13:13:59]Write to MH i2c: E2 08 00 A6 07 80 13 01 00 00 00 00 00 2A [13:13:59]Write i2c OK [13:13:59]MH_I2C_Read... [13:13:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:59]Read from MH i2c: E2 [13:13:59]MH_I2C_Read... [13:13:59]Read from MH i2c: E2 0E 00 [13:13:59]MH_I2C_Read... [13:13:59]Read from MH i2c: E2 0E 00 A6 07 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 C6 [13:13:59]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [13:13:59]wFMCommunicate OK [13:13:59]SAM_PROTO_GetShiftState done [13:13:59]FM_GetShiftState done [13:13:59]req_shift_opened done [13:13:59]requested_item shift.open_date is exist - process it [13:13:59]req_shift_open_date [13:13:59]req_shift_open_date done [13:13:59]produce_requested_data done [13:13:59]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41884,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [13:13:59]process_action_free close_receipt [13:13:59]json_value_free [13:13:59]json_value_free done [13:13:59]process_json_proto returns [13:13:59]Send response to host [13:13:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41884,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [13:13:59]free response buf [13:13:59]execute_script done [13:13:59]execute_script returns [13:13:59]free content buf [13:13:59]Sock 10.Close socket [13:13:59]Sock 10.Thread stoped [13:14:03]recv_with_timeout no data received [13:14:34]Connected sock=11 [13:14: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 35 38 26 01 00 00 94 1D 1E 01 A9 6C 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 B0 B3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 B3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 13 00 00 00 00 07 04 06 00 B0 B3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 94 95 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 9C A3 00 00 35 04 06 00 15 18 DA 96 EF 01 71 F6 7B 54 F9 BB 2E E2 [13: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 35 38 4F 00 00 00 57 08 47 00 8F 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 9C A3 00 00 F4 03 04 00 D0 41 A7 66 B6 04 01 00 00 A7 1B DA 5F 22 8F 93 B0 [13:14:37]CommunicateWithHost err = 0 [13:14:37]CheckOFDResponse [13:14:37]1017 (14) - 77093643461234 [13:14:37]1041 (16) - 0000000000874958 [13:14:37]1040 (4) - 41884 [13:14:37]1012 (4) - 29.07.2024 07:16 [13:14:37]1206 (1) - 0 [13:14:37]OFD Sender: Remove packet 41884 [13:14:37]ProducePacketName [13:14:37]name=ofd_packets/00041884 [13:14:37]NVStorageDeleteData [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:51]recv_with_timeout no data received [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:22]recv_with_timeout no data received [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:08]OFD Sender: No OFD packet to send [13:16:13]recv_with_timeout no data received [13:16:13]OFD Sender: No OFD packet to send [13:16:18]OFD Sender: No OFD packet to send [13:16:23]OFD Sender: No OFD packet to send [13:16:28]OFD Sender: No OFD packet to send [13:16:33]OFD Sender: No OFD packet to send [13:16:38]OFD Sender: No OFD packet to send [13:16:43]OFD Sender: No OFD packet to send [13:16:48]OFD Sender: No OFD packet to send [13:16:53]OFD Sender: No OFD packet to send [13:16:58]OFD Sender: No OFD packet to send [13:17:03]OFD Sender: No OFD packet to send [13:17:08]OFD Sender: No OFD packet to send [13:17:13]OFD Sender: No OFD packet to send [13:17:18]OFD Sender: No OFD packet to send [13:17:23]OFD Sender: No OFD packet to send [13:17:28]OFD Sender: No OFD packet to send [13:17:33]OFD Sender: No OFD packet to send [13:17:38]OFD Sender: No OFD packet to send [13:17:43]OFD Sender: No OFD packet to send [13:17:48]OFD Sender: No OFD packet to send [13:17:53]OFD Sender: No OFD packet to send [13:17:58]OFD Sender: No OFD packet to send [13:17:59]accept exits with 8 [13:17:59]New connection [13:17:59]New thread 3066903908 created [13:17:59]Thread 3066760548 joined [13:17:59]Waiting for new connection... [13:17:59] Sock 8.Parse request [13:17:59]Sock 8.Check first char [13:17:59]Sock 8.First char is OK [13:17:59]request: POST /json_proto HTTP/1.0 [13:17:59]Method: POST [13:17:59]URL: /json_proto [13:17:59]Method is POST - this is cgi request [13:17:59]url: /json_proto [13:17:59]query_string will be loaded in cgi processing [13:17:59]execute_cgi json_proto POST (null) [13:17:59]execute_cgi path=json_proto method=POST [13:17:59]POST find Content-Length [13:17:59]Host: 172.17.43.132:8080 [13:17:59]Content-Length: 675 [13:17:59]Content-Type: application/json [13:17:59] [13:17:59]POST finish read [13:17:59]Found Content-Length = 675 [13:17:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183913", "tax_sys" : 0, "items" : [ { "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 4.000, "sum" : 28.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 28.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:17:59]execute_script... [13:17:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183913", "tax_sys" : 0, "items" : [ { "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 4.000, "sum" : 28.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 28.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:17:59]POST & json_proto [13:17:59]process_json_proto [13:17:59]json parsed OK: [13:17:59]protocol is kg_v1.0 [13:17:59]action value=close_receipt [13:17:59]process_action close_receipt [13:17:59]cmd_close_receipt [13:17:59]MH_GetDate [13:17:59]Write to MH i2c: F0 00 00 A7 07 9D [13:17:59]Write i2c OK [13:17:59]MH_I2C_Read... [13:17:59]Read from MH i2c: F0 [13:17:59]MH_I2C_Read... [13:17:59]Read from MH i2c: F0 09 00 [13:17:59]MH_I2C_Read... [13:17:59]Read from MH i2c: F0 09 00 A7 07 00 88 96 A7 66 F8 53 A7 66 29 [13:17:59]GetLastDocTimeStamp 1722258836 [13:17:59]current date 1722259080 [13:17:59]FM_GetShiftState [13:17:59]SAM_PROTO_GetShiftState [13:17:59]wFMCommunicate request_size=4 [13:17:59]MH_SAM_APDU [13:17:59]CAPDU: 80 13 01 00 [13:17:59]Write to MH i2c: E2 08 00 A8 07 80 13 01 00 00 00 00 00 2C [13:17:59]Write i2c OK [13:17:59]MH_I2C_Read... [13:17:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:59]Read from MH i2c: E2 [13:17:59]MH_I2C_Read... [13:17:59]Read from MH i2c: E2 0E 00 [13:17:59]MH_I2C_Read... [13:17:59]Read from MH i2c: E2 0E 00 A8 07 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 C8 [13:17:59]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [13:17:59]wFMCommunicate OK [13:17:59]SAM_PROTO_GetShiftState done [13:17:59]FM_GetShiftState done [13:17:59]opened in 1722211496 [13:17:59]opened+sec_in_day 1722297896 [13:17:59]quantity*price = 2800 [13:17:59]sum+1 = 2801 [13:17:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 28.00 НСП 1% : 0.25 НДС 12% : 2.97 Наличными: 28.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 74 29.07.2024 13:18 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41885 ФПД: 101531134013025 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T131800&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41885&fm=101531134013025&tin=02508201610067®Number=0000000000092626&sum=2800 0 [13:18:00]StoreToDocumentArchive [13:18:00]shift 427 fd 41885 [13:18:00]save to /storage/0427/doc_00041885 [13:18:00]save last doc name /storage/0427/doc_00041885 to /storage/kkm_last_doc_name [13:18:00]save OK [13:18:00]Clear old archive folders... [13:18:00]ProcessDocumentItem done err = 0, tmpTLVsize=287 [13:18:00]tlvbuf is 00861360 [13:18:00]SAM_PROTO_ClearQueue [13:18:00]wFMCommunicate request_size=4 [13:18:00]MH_SAM_APDU [13:18:00]CAPDU: 80 09 00 00 [13:18:00]Write to MH i2c: E2 08 00 B5 07 80 09 00 00 00 00 00 00 2E [13:18:00]Write i2c OK [13:18:00]MH_I2C_Read... [13:18:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:18:00]Read from MH i2c: E2 [13:18:00]MH_I2C_Read... [13:18:00]Read from MH i2c: E2 03 00 [13:18:00]MH_I2C_Read... [13:18:00]Read from MH i2c: E2 03 00 B5 07 00 90 00 30 [13:18:00]RAPDU: 90 00 [13:18:00]wFMCommunicate OK [13:18:00]SAM_PROTO_ClearQueue done [13:18:00]KKMCreateOFDPacket [13:18:00]OFDProtocolAddRootSTLVToBuf [13:18:00]FM_MakeSignedData [13:18:00]FM_MakeSignedData [13:18:00]SAM_PROTO_SignData [13:18:00]wFMCommunicate request_size=4 [13:18:00]MH_SAM_APDU [13:18:00]CAPDU: 80 0D 01 02 [13:18:00]Write to MH i2c: E2 08 00 B6 07 80 0D 01 02 00 00 00 00 36 [13:18:00]Write i2c OK [13:18:00]MH_I2C_Read... [13:18:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:18:00]Read from MH i2c: E2 [13:18:00]MH_I2C_Read... [13:18:00]Read from MH i2c: E2 03 00 [13:18:00]MH_I2C_Read... [13:18:00]Read from MH i2c: E2 03 00 B6 07 00 90 00 31 [13:18:00]RAPDU: 90 00 [13:18:00]wFMCommunicate OK [13:18:00]wFMCommunicate request_size=255 [13:18:00]MH_SAM_APDU [13:18:00]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 F0 0A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 0A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 01 00 00 00 00 07 04 06 00 F0 0A 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 88 96 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 [13:18:00]Write to MH i2c: E2 02 01 B7 07 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 F0 0A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 0A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 01 00 00 00 00 07 04 06 00 F0 0A 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 88 96 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 00 00 FE [13:18:00]Write i2c OK [13:18:00]MH_I2C_Read... [13:18:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:18:00]Read from MH i2c: E2 [13:18:00]MH_I2C_Read... [13:18:00]Read from MH i2c: E2 03 00 [13:18:00]MH_I2C_Read... [13:18:00]Read from MH i2c: E2 03 00 B7 07 00 90 00 32 [13:18:00]RAPDU: 90 00 [13:18:00]wFMCommunicate OK [13:18:00]wFMCommunicate request_size=46 [13:18:00]MH_SAM_APDU [13:18:00]CAPDU: 80 0D 02 02 29 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 9D A3 00 00 35 04 06 00 5C 57 8F 2D 2E 61 [13:18:00]Write to MH i2c: E2 31 00 B8 07 80 0D 02 02 29 00 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 9D A3 00 00 35 04 06 00 5C 57 8F 2D 2E 61 00 00 0C [13:18:00]Write i2c OK [13:18:00]MH_I2C_Read... [13:18:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:18:00]Read from MH i2c: E2 [13:18:00]MH_I2C_Read... [13:18:00]Read from MH i2c: E2 03 00 [13:18:00]MH_I2C_Read... [13:18:00]Read from MH i2c: E2 03 00 B8 07 00 90 00 33 [13:18:00]RAPDU: 90 00 [13:18:00]wFMCommunicate OK [13:18:00]wFMCommunicate request_size=4 [13:18:00]MH_SAM_APDU [13:18:00]CAPDU: 80 0D 03 02 [13:18:00]Write to MH i2c: E2 08 00 B9 07 80 0D 03 02 00 00 00 00 3B [13:18:00]Write i2c OK [13:18:00]MH_I2C_Read... [13:18:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:18:00]Read from MH i2c: E2 [13:18:00]MH_I2C_Read... [13:18:00]Read from MH i2c: E2 0B 00 [13:18:00]MH_I2C_Read... [13:18:00]Read from MH i2c: E2 0B 00 B9 07 00 C5 E5 39 4E 69 49 76 18 90 00 AD [13:18:00]RAPDU: C5 E5 39 4E 69 49 76 18 90 00 [13:18:00]wFMCommunicate OK [13:18:00]SAM_PROTO_SignData done [13:18:00]FM_MakeSignedData done [13:18:00]CreateOFDProtocolMessage [13:18:00]wFMCommunicate request_size=4 [13:18:00]MH_SAM_APDU [13:18:00]CAPDU: 80 11 00 00 [13:18:00]Write to MH i2c: E2 08 00 BA 07 80 11 00 00 00 00 00 00 3B [13:18:00]Write i2c OK [13:18:00]MH_I2C_Read... [13:18:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:18:00]Read from MH i2c: E2 [13:18:00]MH_I2C_Read... [13:18:00]Read from MH i2c: E2 17 00 [13:18:00]MH_I2C_Read... [13:18:00]Read from MH i2c: E2 17 00 BA 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 97 [13:18:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [13:18:00]wFMCommunicate OK [13:18:00]CreateOFDProtocolMessage done [13:18:00]OFDSenderStorePacket 41885 [13:18:00]StoreOFDPacket docnum=41885 [13:18:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 33 01 00 00 71 72 2B 01 61 67 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 F0 0A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 0A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 01 00 00 00 00 07 04 06 00 F0 0A 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 88 96 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 9D A3 00 00 35 04 06 00 5C 57 8F 2D 2E 61 C5 E5 39 4E 69 49 76 18 [13:18:00]CheckFolder [13:18:00]dirname=/storage/ofd_packets [13:18:00]CheckFolder done [13:18:00]ProducePacketName [13:18:00]name=ofd_packets/00041885 [13:18:00]NVStorageSaveData ofd_packets/00041885 [13:18:00]File name is /storage/ofd_packets/00041885 [13:18:00]Write 337 bytes [13:18:00]NVStorageSaveData done [13:18:00]OFDSenderStorePacket done [13:18:00]KKMCreateOFDPacket done [13:18:00]NVStorageSaveData kkm_last_timestamp [13:18:00]File name is /storage/kkm_last_timestamp [13:18:00]Write 4 bytes [13:18:00]NVStorageSaveData done [13:18:00]ExternCall_PrintAddStr [13:18:00]wPrintStart [13:18:00]Write to MH i2c: 01 00 00 BB 07 C2 [13:18:00]Write i2c OK [13:18:00]MH_I2C_Read... [13:18:00]Read from MH i2c: 01 [13:18:00]MH_I2C_Read... [13:18:00]Read from MH i2c: 01 07 00 [13:18:00]MH_I2C_Read... [13:18:00]Read from MH i2c: 01 07 00 BB 07 00 00 00 00 00 FF 0F D7 [13:18:00]RasterBufferAndPrint [13:18:00]line Счет N : (3)183913 [13:18:00]line ИНН: 02508201610067 [13:18:00]line Контрольно-Кассовый Чек [13:18:00]line ПРОДАЖА [13:18:00]line Товар: 2000053020015 [13:18:00]line Бумажные стаканы 250мл 1шт [13:18:00]line 4.000 * 7.00 [13:18:00]line = 28.00 [13:18:00]line НДС 12% НСП 1% [13:18:00]line > о реализуемом товаре [13:18:00]line ИТОГО: 28.00 [13:18:00]line НСП 1% : 0.25 [13:18:00]line НДС 12% : 2.97 [13:18:00]line Наличными: 28.00 [13:18:00]line Безнал.: 0.00 [13:18:00]line Место: АЗС № 97 "Партнер Нефть" [13:18:00]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [13:18:00]line СНО: Общий режим [13:18:00]line Чек 74 29.07.2024 13:18 [13:18:00]line Смена: 427 ФФД: 1.0 [13:18:00]line ЗНМ: 0300000053 [13:18:00]line РНМ: 0000000000092626 [13:18:00]line Версия ККМ: 001 [13:18:00]line ФМ: 0000000000874958 [13:18:00]line ФД: 41885 [13:18:00]line ФПД: 101531134013025 [13:18:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T131800&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41885&fm=101531134013025&tin=02508201610067®Number=0000000000092626&sum=2800 [13:18:01]line 0 [13:18:01]OFD Sender: Processing packet 41885 [packets to send 57, broken 56] [13:18:01]ProducePacketName [13:18:01]name=ofd_packets/00041885 [13:18:01]OFD Sender: To server: pG, [13:18:01]CommunicateWithHost lk.salyk.kg:30040 [13:18:01]ConnectInit lk.salyk.kg [13:18:01]written 0, free lines is 4095 [13:18:01]Write to MH i2c: 01 00 00 E4 07 EB [13:18:01]Write i2c OK [13:18:01]MH_I2C_Read... [13:18:01]Read from MH i2c: 01 [13:18:01]MH_I2C_Read... [13:18:01]Read from MH i2c: 01 07 00 [13:18:01]MH_I2C_Read... [13:18:01]Read from MH i2c: 01 07 00 E4 07 00 00 00 00 00 EE 0C EC [13:18:01]RasterBufferAndPrint [13:18:01]line [13:18:01]line [13:18:01]line [13:18:01]line [13:18:01]line [13:18:01]written 0, free lines is 3316 [13:18:01]MH_Cut [13:18:01]Write to MH i2c: D1 01 00 EB 07 01 C4 [13:18:01]Write i2c OK [13:18:01]MH_I2C_Read... [13:18:01]Read from MH i2c: D1 [13:18:01]MH_I2C_Read... [13:18:01]Read from MH i2c: D1 01 00 [13:18:01]MH_I2C_Read... [13:18:01]Read from MH i2c: D1 01 00 EB 07 00 C3 [13:18:01]Write to MH i2c: 01 00 00 EC 07 F3 [13:18:01]Write i2c OK [13:18:01]MH_I2C_Read... [13:18:02]*** Cut start [13:18:02]*** Partial cut [13:18:02]*** CUTSNS_PIN = 1 [13:18:02]*** CUTSNS_PIN = 0 [13:18:02]*** Brake cut motor [13:18:03]Read from MH i2c: 01 [13:18:03]MH_I2C_Read... [13:18:03]*** Stop cut motor [13:18:03]*** Cut end [13:18:03]Read from MH i2c: 01 07 00 [13:18:03]MH_I2C_Read... [13:18:03]Read from MH i2c: 01 07 00 EC 07 00 00 00 00 00 FF 0F 08 [13:18:03]process_action close_receipt done [13:18:03]requested_data is exist [13:18:03]produce_requested_data [13:18:03]requested_item fm.sn is exist - process it [13:18:03]wFMCommunicate request_size=4 [13:18:03]MH_SAM_APDU [13:18:03]CAPDU: 80 11 00 00 [13:18:03]Write to MH i2c: E2 08 00 ED 07 80 11 00 00 00 00 00 00 6E [13:18:03]Write i2c OK [13:18:03]MH_I2C_Read... [13:18:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:18:03]Read from MH i2c: E2 [13:18:03]MH_I2C_Read... [13:18:03]Read from MH i2c: E2 17 00 [13:18:03]MH_I2C_Read... [13:18:03]Read from MH i2c: E2 17 00 ED 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 CA [13:18:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [13:18:03]wFMCommunicate OK [13:18:03]requested_item fd.num is exist - process it [13:18:03]SAM_PROTO_GetFieldsCounters [13:18:03]wFMCommunicate request_size=4 [13:18:03]MH_SAM_APDU [13:18:03]CAPDU: 80 13 00 00 [13:18:03]Write to MH i2c: E2 08 00 EE 07 80 13 00 00 00 00 00 00 71 [13:18:03]Write i2c OK [13:18:03]MH_I2C_Read... [13:18:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:18:03]Read from MH i2c: E2 [13:18:03]MH_I2C_Read... [13:18:03]Read from MH i2c: E2 62 00 [13:18:03]MH_I2C_Read... [13:18:03]Read from MH i2c: E2 62 00 EE 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 9D A3 00 00 0E 04 04 00 AB 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 65 [13:18: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 9D A3 00 00 0E 04 04 00 AB 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:18:03]wFMCommunicate OK [13:18:03]SAM_PROTO_GetFieldsCounters done [13:18:03]requested_item shift.num is exist - process it [13:18:03]requested_item shift.opened is exist - process it [13:18:03]req_shift_opened [13:18:03]FM_GetShiftState [13:18:03]SAM_PROTO_GetShiftState [13:18:03]wFMCommunicate request_size=4 [13:18:03]MH_SAM_APDU [13:18:03]CAPDU: 80 13 01 00 [13:18:03]Write to MH i2c: E2 08 00 EF 07 80 13 01 00 00 00 00 00 73 [13:18:03]Write i2c OK [13:18:03]MH_I2C_Read... [13:18:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:18:03]Read from MH i2c: E2 [13:18:03]MH_I2C_Read... [13:18:03]Read from MH i2c: E2 0E 00 [13:18:03]MH_I2C_Read... [13:18:03]Read from MH i2c: E2 0E 00 EF 07 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 0F [13:18:03]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [13:18:03]wFMCommunicate OK [13:18:03]SAM_PROTO_GetShiftState done [13:18:03]FM_GetShiftState done [13:18:03]req_shift_opened done [13:18:03]requested_item shift.open_date is exist - process it [13:18:03]req_shift_open_date [13:18:03]req_shift_open_date done [13:18:03]produce_requested_data done [13:18:03]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41885,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [13:18:03]process_action_free close_receipt [13:18:03]json_value_free [13:18:03]json_value_free done [13:18:03]process_json_proto returns [13:18:03]Send response to host [13:18:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41885,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [13:18:03]free response buf [13:18:03]execute_script done [13:18:03]execute_script returns [13:18:03]free content buf [13:18:03]Sock 8.Close socket [13:18:03]Sock 8.Thread stoped [13:18:06]ConnectInit Can't take IP for lk.salyk.kg [13:18:06]CommunicateWithHost connect error [13:18:06]CommunicateWithHost err = -1 [13:18:06]OFD Sender: Server communicate error [13:18:11]OFD Sender: Processing packet 41885 [packets to send 57, broken 56] [13:18:11]ProducePacketName [13:18:11]name=ofd_packets/00041885 [13:18:11]OFD Sender: To server: pG, [13:18:11]CommunicateWithHost lk.salyk.kg:30040 [13:18:11]ConnectInit lk.salyk.kg [13:18:15]Connected sock=8 [13:18: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 35 38 33 01 00 00 71 72 2B 01 61 67 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 F0 0A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 0A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 01 00 00 00 00 07 04 06 00 F0 0A 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 88 96 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 9D A3 00 00 35 04 06 00 5C 57 8F 2D 2E 61 C5 E5 39 4E 69 49 76 18 [13: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 35 38 4F 00 00 00 2D E2 47 00 34 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 35 38 10 04 04 00 9D A3 00 00 F4 03 04 00 AA 42 A7 66 B6 04 01 00 00 00 BA 35 9F 19 86 73 ED [13:18:17]CommunicateWithHost err = 0 [13:18:17]CheckOFDResponse [13:18:17]1017 (14) - 77093643461234 [13:18:17]1041 (16) - 0000000000874958 [13:18:17]1040 (4) - 41885 [13:18:17]1012 (4) - 29.07.2024 07:20 [13:18:17]1206 (1) - 0 [13:18:17]OFD Sender: Remove packet 41885 [13:18:17]ProducePacketName [13:18:17]name=ofd_packets/00041885 [13:18:17]NVStorageDeleteData [13:18:17]OFD Sender: No OFD packet to send [13:18:22]OFD Sender: No OFD packet to send [13:18:27]OFD Sender: No OFD packet to send [13:18:32]OFD Sender: No OFD packet to send [13:18:37]OFD Sender: No OFD packet to send [13:18:42]OFD Sender: No OFD packet to send [13:18:47]OFD Sender: No OFD packet to send [13:18:52]OFD Sender: No OFD packet to send [13:18:57]OFD Sender: No OFD packet to send [13:19:02]OFD Sender: No OFD packet to send [13:19:05]recv_with_timeout no data received [13:19:07]OFD Sender: No OFD packet to send [13:19:12]OFD Sender: No OFD packet to send [13:19:17]OFD Sender: No OFD packet to send [13:19:22]OFD Sender: No OFD packet to send [13:19:26]accept exits with 9 [13:19:26]New connection [13:19:26]New thread 3066760548 created [13:19:26]Thread 3066903908 joined [13:19:26]Waiting for new connection... [13:19:26] Sock 9.Parse request [13:19:26]Sock 9.Check first char [13:19:26]Sock 9.First char is OK [13:19:26]request: POST /json_proto HTTP/1.0 [13:19:26]Method: POST [13:19:26]URL: /json_proto [13:19:26]Method is POST - this is cgi request [13:19:26]url: /json_proto [13:19:26]query_string will be loaded in cgi processing [13:19:26]execute_cgi json_proto POST (null) [13:19:26]execute_cgi path=json_proto method=POST [13:19:26]POST find Content-Length [13:19:26]Host: 172.17.43.132:8080 [13:19:26]Content-Length: 782 [13:19:26]Content-Type: application/json [13:19:26] [13:19:26]POST finish read [13:19:26]Found Content-Length = 782 [13:19:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183914", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:19:26]execute_script... [13:19:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183914", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:19:26]POST & json_proto [13:19:26]process_json_proto [13:19:26]json parsed OK: [13:19:26]protocol is kg_v1.0 [13:19:26]action value=close_receipt [13:19:26]process_action close_receipt [13:19:26]cmd_close_receipt [13:19:26]MH_GetDate [13:19:26]Write to MH i2c: F0 00 00 F0 07 E6 [13:19:26]Write i2c OK [13:19:26]MH_I2C_Read... [13:19:26]Read from MH i2c: F0 [13:19:26]MH_I2C_Read... [13:19:26]Read from MH i2c: F0 09 00 [13:19:26]MH_I2C_Read... [13:19:26]Read from MH i2c: F0 09 00 F0 07 00 DF 96 A7 66 F8 53 A7 66 C9 [13:19:26]GetLastDocTimeStamp 1722259080 [13:19:26]current date 1722259167 [13:19:26]FM_GetShiftState [13:19:26]SAM_PROTO_GetShiftState [13:19:26]wFMCommunicate request_size=4 [13:19:26]MH_SAM_APDU [13:19:26]CAPDU: 80 13 01 00 [13:19:26]Write to MH i2c: E2 08 00 F1 07 80 13 01 00 00 00 00 00 75 [13:19:26]Write i2c OK [13:19:26]MH_I2C_Read... [13:19:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:19:26]Read from MH i2c: E2 [13:19:26]MH_I2C_Read... [13:19:26]Read from MH i2c: E2 0E 00 [13:19:26]MH_I2C_Read... [13:19:26]Read from MH i2c: E2 0E 00 F1 07 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 11 [13:19:26]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [13:19:26]wFMCommunicate OK [13:19:26]SAM_PROTO_GetShiftState done [13:19:26]FM_GetShiftState done [13:19:26]opened in 1722211496 [13:19:26]opened+sec_in_day 1722297896 [13:19:26]quantity*price = 14000 [13:19:26]sum+1 = 14001 [13:19:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 0.00 Безнал.: 140.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 75 29.07.2024 13:19 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874958 ФД: 41886 ФПД: 38293284547250 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T131927&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41886&fm=38293284547250&tin=02508201610067®Number=0000000000092626&sum=14000 0 [13:19:27]StoreToDocumentArchive [13:19:27]shift 427 fd 41886 [13:19:27]save to /storage/0427/doc_00041886 [13:19:27]save last doc name /storage/0427/doc_00041886 to /storage/kkm_last_doc_name [13:19:27]save OK [13:19:27]Clear old archive folders... [13:19:27]ProcessDocumentItem done err = 0, tmpTLVsize=273 [13:19:27]tlvbuf is 00860F90 [13:19:27]SAM_PROTO_ClearQueue [13:19:27]wFMCommunicate request_size=4 [13:19:27]MH_SAM_APDU [13:19:27]CAPDU: 80 09 00 00 [13:19:27]Write to MH i2c: E2 08 00 FE 07 80 09 00 00 00 00 00 00 77 [13:19:27]Write i2c OK [13:19:27]MH_I2C_Read... [13:19:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:19:27]Read from MH i2c: E2 [13:19:27]MH_I2C_Read... [13:19:27]Read from MH i2c: E2 03 00 [13:19:27]MH_I2C_Read... [13:19:27]Read from MH i2c: E2 03 00 FE 07 00 90 00 79 [13:19:27]RAPDU: 90 00 [13:19:27]wFMCommunicate OK [13:19:27]SAM_PROTO_ClearQueue done [13:19:27]KKMCreateOFDPacket [13:19:27]OFDProtocolAddRootSTLVToBuf [13:19:27]FM_MakeSignedData [13:19:27]FM_MakeSignedData [13:19:27]SAM_PROTO_SignData [13:19:27]wFMCommunicate request_size=4 [13:19:27]MH_SAM_APDU [13:19:27]CAPDU: 80 0D 01 02 [13:19:27]Write to MH i2c: E2 08 00 FF 07 80 0D 01 02 00 00 00 00 7F [13:19:27]Write i2c OK [13:19:27]MH_I2C_Read... [13:19:27]OFD Sender: No OFD packet to send [13:19:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:19:27]Read from MH i2c: E2 [13:19:27]MH_I2C_Read... [13:19:27]Read from MH i2c: E2 03 00 [13:19:27]MH_I2C_Read... [13:19:27]Read from MH i2c: E2 03 00 FF 07 00 90 00 7A [13:19:27]RAPDU: 90 00 [13:19:27]wFMCommunicate OK [13:19:27]wFMCommunicate request_size=255 [13:19:27]MH_SAM_APDU [13:19:27]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 DF 96 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 [13:19:27]Write to MH i2c: E2 02 01 00 08 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 DF 96 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 00 00 EE [13:19:27]Write i2c OK [13:19:27]MH_I2C_Read... [13:19:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:19:27]Read from MH i2c: E2 [13:19:27]MH_I2C_Read... [13:19:27]Read from MH i2c: E2 03 00 [13:19:27]MH_I2C_Read... [13:19:27]Read from MH i2c: E2 03 00 00 08 00 90 00 7C [13:19:27]RAPDU: 90 00 [13:19:27]wFMCommunicate OK [13:19:27]wFMCommunicate request_size=32 [13:19:27]MH_SAM_APDU [13:19:27]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 39 35 38 10 04 04 00 9E A3 00 00 35 04 06 00 22 D3 D9 9F 6A B2 [13:19:27]Write to MH i2c: E2 23 00 01 08 80 0D 02 02 1B 00 30 30 30 38 37 34 39 35 38 10 04 04 00 9E A3 00 00 35 04 06 00 22 D3 D9 9F 6A B2 00 00 B3 [13:19:27]Write i2c OK [13:19:27]MH_I2C_Read... [13:19:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:19:27]Read from MH i2c: E2 [13:19:27]MH_I2C_Read... [13:19:27]Read from MH i2c: E2 03 00 [13:19:27]MH_I2C_Read... [13:19:27]Read from MH i2c: E2 03 00 01 08 00 90 00 7D [13:19:27]RAPDU: 90 00 [13:19:27]wFMCommunicate OK [13:19:27]wFMCommunicate request_size=4 [13:19:27]MH_SAM_APDU [13:19:27]CAPDU: 80 0D 03 02 [13:19:27]Write to MH i2c: E2 08 00 02 08 80 0D 03 02 00 00 00 00 85 [13:19:27]Write i2c OK [13:19:27]MH_I2C_Read... [13:19:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:19:28]Read from MH i2c: E2 [13:19:28]MH_I2C_Read... [13:19:28]Read from MH i2c: E2 0B 00 [13:19:28]MH_I2C_Read... [13:19:28]Read from MH i2c: E2 0B 00 02 08 00 85 89 25 0E 20 F4 74 60 90 00 AF [13:19:28]RAPDU: 85 89 25 0E 20 F4 74 60 90 00 [13:19:28]wFMCommunicate OK [13:19:28]SAM_PROTO_SignData done [13:19:28]FM_MakeSignedData done [13:19:28]CreateOFDProtocolMessage [13:19:28]wFMCommunicate request_size=4 [13:19:28]MH_SAM_APDU [13:19:28]CAPDU: 80 11 00 00 [13:19:28]Write to MH i2c: E2 08 00 03 08 80 11 00 00 00 00 00 00 85 [13:19:28]Write i2c OK [13:19:28]MH_I2C_Read... [13:19:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:28]Read from MH i2c: E2 [13:19:28]MH_I2C_Read... [13:19:28]Read from MH i2c: E2 17 00 [13:19:28]MH_I2C_Read... [13:19:28]Read from MH i2c: E2 17 00 03 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 E1 [13:19:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [13:19:28]wFMCommunicate OK [13:19:28]CreateOFDProtocolMessage done [13:19:28]OFDSenderStorePacket 41886 [13:19:28]StoreOFDPacket docnum=41886 [13:19:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 25 01 00 00 40 B8 1D 01 8B 1B 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 DF 96 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 9E A3 00 00 35 04 06 00 22 D3 D9 9F 6A B2 85 89 25 0E 20 F4 74 60 [13:19:28]CheckFolder [13:19:28]dirname=/storage/ofd_packets [13:19:28]CheckFolder done [13:19:28]ProducePacketName [13:19:28]name=ofd_packets/00041886 [13:19:28]NVStorageSaveData ofd_packets/00041886 [13:19:28]File name is /storage/ofd_packets/00041886 [13:19:28]Write 323 bytes [13:19:28]NVStorageSaveData done [13:19:28]OFDSenderStorePacket done [13:19:28]KKMCreateOFDPacket done [13:19:28]NVStorageSaveData kkm_last_timestamp [13:19:28]File name is /storage/kkm_last_timestamp [13:19:28]Write 4 bytes [13:19:28]NVStorageSaveData done [13:19:28]ExternCall_PrintAddStr [13:19:28]wPrintStart [13:19:28]Write to MH i2c: 01 00 00 04 08 0C [13:19:28]Write i2c OK [13:19:28]MH_I2C_Read... [13:19:28]Read from MH i2c: 01 [13:19:28]MH_I2C_Read... [13:19:28]Read from MH i2c: 01 07 00 [13:19:28]MH_I2C_Read... [13:19:28]Read from MH i2c: 01 07 00 04 08 00 00 00 00 00 FF 0F 21 [13:19:28]RasterBufferAndPrint [13:19:28]line Счет N : (3)183914 [13:19:28]line ИНН: 02508201610067 [13:19:28]line Контрольно-Кассовый Чек [13:19:28]line ПРОДАЖА [13:19:28]line Товар: 48743570 [13:19:28]line Сигареты Winston XStyle Blue [13:19:28]line 1.000 * 140.00 [13:19:28]line = 140.00 [13:19:28]line НДС 12% НСП 1% [13:19:28]line > о реализуемом товаре [13:19:28]line ИТОГО: 140.00 [13:19:28]line НСП 1% : 1.24 [13:19:28]line НДС 12% : 14.87 [13:19:28]line Наличными: 0.00 [13:19:28]line Безнал.: 140.00 [13:19:28]line Место: АЗС № 97 "Партнер Нефть" [13:19:28]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [13:19:28]line СНО: Общий режим [13:19:28]line Чек 75 29.07.2024 13:19 [13:19:28]line Смена: 427 ФФД: 1.0 [13:19:28]line ЗНМ: 0300000053 [13:19:28]line РНМ: 0000000000092626 [13:19:28]line Версия ККМ: 001 [13:19:28]line Платежная система: O! деньги [13:19:28]line ФМ: 0000000000874958 [13:19:28]line ФД: 41886 [13:19:28]line ФПД: 38293284547250 [13:19:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T131927&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41886&fm=38293284547250&tin=02508201610067®Number=0000000000092626&sum=14000 [13:19:28]line 0 [13:19:28]OFD Sender: Processing packet 41886 [packets to send 57, broken 56] [13:19:28]ProducePacketName [13:19:28]name=ofd_packets/00041886 [13:19:28]OFD Sender: To server: pG, [13:19:28]CommunicateWithHost lk.salyk.kg:30040 [13:19:28]ConnectInit lk.salyk.kg [13:19:28]written 0, free lines is 4095 [13:19:28]Write to MH i2c: 01 00 00 2E 08 36 [13:19:28]Write i2c OK [13:19:28]MH_I2C_Read... [13:19:28]Read from MH i2c: 01 [13:19:28]MH_I2C_Read... [13:19:28]Read from MH i2c: 01 07 00 [13:19:28]MH_I2C_Read... [13:19:28]Read from MH i2c: 01 07 00 2E 08 00 00 00 00 00 E7 0C 30 [13:19:28]RasterBufferAndPrint [13:19:28]line [13:19:28]line [13:19:28]line [13:19:28]line [13:19:28]line [13:19:28]written 0, free lines is 3309 [13:19:28]MH_Cut [13:19:28]Write to MH i2c: D1 01 00 35 08 01 0F [13:19:28]Write i2c OK [13:19:28]MH_I2C_Read... [13:19:28]Read from MH i2c: D1 [13:19:28]MH_I2C_Read... [13:19:28]Read from MH i2c: D1 01 00 [13:19:28]MH_I2C_Read... [13:19:28]Read from MH i2c: D1 01 00 35 08 00 0E [13:19:28]Write to MH i2c: 01 00 00 36 08 3E [13:19:28]Write i2c OK [13:19:28]MH_I2C_Read... [13:19:29]*** Cut start [13:19:29]*** Partial cut [13:19:29]*** CUTSNS_PIN = 1 [13:19:29]*** CUTSNS_PIN = 0 [13:19:29]*** Brake cut motor [13:19:30]Connected sock=8 [13: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 35 38 25 01 00 00 40 B8 1D 01 8B 1B 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 DF 96 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 9E A3 00 00 35 04 06 00 22 D3 D9 9F 6A B2 85 89 25 0E 20 F4 74 60 [13:19:30]*** Stop cut motor [13:19:30]*** Cut end [13:19:30]Read from MH i2c: 01 [13:19:30]MH_I2C_Read... [13:19:30]Read from MH i2c: 01 07 00 [13:19:30]MH_I2C_Read... [13:19:30]Read from MH i2c: 01 07 00 36 08 00 00 00 00 00 FF 0F 53 [13:19:30]process_action close_receipt done [13:19:30]requested_data is exist [13:19:30]produce_requested_data [13:19:30]requested_item fm.sn is exist - process it [13:19:30]wFMCommunicate request_size=4 [13:19:30]MH_SAM_APDU [13:19:30]CAPDU: 80 11 00 00 [13:19:30]Write to MH i2c: E2 08 00 37 08 80 11 00 00 00 00 00 00 B9 [13:19:30]Write i2c OK [13:19:30]MH_I2C_Read... [13:19:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:30]Read from MH i2c: E2 [13:19:30]MH_I2C_Read... [13:19:30]Read from MH i2c: E2 17 00 [13:19:30]MH_I2C_Read... [13:19:30]Read from MH i2c: E2 17 00 37 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 15 [13:19:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [13:19:30]wFMCommunicate OK [13:19:30]requested_item fd.num is exist - process it [13:19:30]SAM_PROTO_GetFieldsCounters [13:19:30]wFMCommunicate request_size=4 [13:19:30]MH_SAM_APDU [13:19:30]CAPDU: 80 13 00 00 [13:19:30]Write to MH i2c: E2 08 00 38 08 80 13 00 00 00 00 00 00 BC [13:19:30]Write i2c OK [13:19:30]MH_I2C_Read... [13:19:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:19:30]Read from MH i2c: E2 [13:19:30]MH_I2C_Read... [13:19:30]Read from MH i2c: E2 62 00 [13:19:30]MH_I2C_Read... [13:19:30]Read from MH i2c: E2 62 00 38 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 9E A3 00 00 0E 04 04 00 AB 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 B4 [13:19:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 9E A3 00 00 0E 04 04 00 AB 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:19:30]wFMCommunicate OK [13:19:30]SAM_PROTO_GetFieldsCounters done [13:19:30]requested_item shift.num is exist - process it [13:19:30]requested_item shift.opened is exist - process it [13:19:30]req_shift_opened [13:19:30]FM_GetShiftState [13:19:30]SAM_PROTO_GetShiftState [13:19:30]wFMCommunicate request_size=4 [13:19:30]MH_SAM_APDU [13:19:30]CAPDU: 80 13 01 00 [13:19:30]Write to MH i2c: E2 08 00 39 08 80 13 01 00 00 00 00 00 BE [13:19:30]Write i2c OK [13:19:30]MH_I2C_Read... [13:19:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:19:30]Read from MH i2c: E2 [13:19:30]MH_I2C_Read... [13:19:30]Read from MH i2c: E2 0E 00 [13:19:30]MH_I2C_Read... [13:19:30]Read from MH i2c: E2 0E 00 39 08 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 5A [13:19:30]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [13:19:30]wFMCommunicate OK [13:19:30]SAM_PROTO_GetShiftState done [13:19:30]FM_GetShiftState done [13:19:30]req_shift_opened done [13:19:30]requested_item shift.open_date is exist - process it [13:19:30]req_shift_open_date [13:19:30]req_shift_open_date done [13:19:30]produce_requested_data done [13:19:30]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41886,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [13:19:30]process_action_free close_receipt [13:19:30]json_value_free [13:19:30]json_value_free done [13:19:30]process_json_proto returns [13:19:30]Send response to host [13:19:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41886,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [13:19:30]free response buf [13:19:30]execute_script done [13:19:30]execute_script returns [13:19:30]free content buf [13:19:30]Sock 9.Close socket [13:19:30]Sock 9.Thread stoped [13:19: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 35 38 4F 00 00 00 2F 32 47 00 02 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 35 38 10 04 04 00 9E A3 00 00 F4 03 04 00 F5 42 A7 66 B6 04 01 00 00 1F 74 5C B2 E3 53 88 37 [13:19:32]CommunicateWithHost err = 0 [13:19:32]CheckOFDResponse [13:19:32]1017 (14) - 77093643461234 [13:19:32]1041 (16) - 0000000000874958 [13:19:32]1040 (4) - 41886 [13:19:32]1012 (4) - 29.07.2024 07:21 [13:19:32]1206 (1) - 0 [13:19:32]OFD Sender: Remove packet 41886 [13:19:32]ProducePacketName [13:19:32]name=ofd_packets/00041886 [13:19:32]NVStorageDeleteData [13:19:32]OFD Sender: No OFD packet to send [13:19:37]OFD Sender: No OFD packet to send [13:19:42]OFD Sender: No OFD packet to send [13:19:47]OFD Sender: No OFD packet to send [13:19:52]OFD Sender: No OFD packet to send [13:19:57]OFD Sender: No OFD packet to send [13:20:02]OFD Sender: No OFD packet to send [13:20:07]OFD Sender: No OFD packet to send [13:20:12]OFD Sender: No OFD packet to send [13:20:17]OFD Sender: No OFD packet to send [13:20:22]OFD Sender: No OFD packet to send [13:20:27]OFD Sender: No OFD packet to send [13:20:32]OFD Sender: No OFD packet to send [13:20:37]OFD Sender: No OFD packet to send [13:20:42]OFD Sender: No OFD packet to send [13:20:47]OFD Sender: No OFD packet to send [13:20:52]OFD Sender: No OFD packet to send [13:20:57]OFD Sender: No OFD packet to send [13:21:02]OFD Sender: No OFD packet to send [13:21:07]OFD Sender: No OFD packet to send [13:21:12]OFD Sender: No OFD packet to send [13:21:17]OFD Sender: No OFD packet to send [13:21:22]OFD Sender: No OFD packet to send [13:21:27]OFD Sender: No OFD packet to send [13:21:32]OFD Sender: No OFD packet to send [13:21:37]OFD Sender: No OFD packet to send [13:21:42]OFD Sender: No OFD packet to send [13:21:47]OFD Sender: No OFD packet to send [13:28:05]ConnectInit Can't connect to host [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:47]accept exits with 10 [13:28:47]New connection [13:28:47]New thread 3066903908 created [13:28:47]Thread 3066760548 joined [13:28:47]Waiting for new connection... [13:28:47] Sock 10.Parse request [13:28:47]Sock 10.Check first char [13:28:47]Sock 10.First char is OK [13:28:47]request: POST /json_proto HTTP/1.0 [13:28:47]Method: POST [13:28:47]URL: /json_proto [13:28:47]Method is POST - this is cgi request [13:28:47]url: /json_proto [13:28:47]query_string will be loaded in cgi processing [13:28:47]execute_cgi json_proto POST (null) [13:28:47]execute_cgi path=json_proto method=POST [13:28:47]POST find Content-Length [13:28:47]Host: 172.17.43.132:8080 [13:28:47]Content-Length: 696 [13:28:47]Content-Type: application/json [13:28:47] [13:28:47]POST finish read [13:28:47]Found Content-Length = 696 [13:28:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183915", "tax_sys" : 0, "items" : [ { "code": "4870202521261", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u043B\u0435\u0441\u043D\u044B\u0435 \u044F\u0433\u043E\u0434\u044B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:28:47]execute_script... [13:28: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 : (3)183915", "tax_sys" : 0, "items" : [ { "code": "4870202521261", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u043B\u0435\u0441\u043D\u044B\u0435 \u044F\u0433\u043E\u0434\u044B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:28:47]POST & json_proto [13:28:47]process_json_proto [13:28:47]json parsed OK: [13:28:47]protocol is kg_v1.0 [13:28:47]action value=close_receipt [13:28:47]process_action close_receipt [13:28:47]cmd_close_receipt [13:28:47]MH_GetDate [13:28:47]Write to MH i2c: F0 00 00 3A 08 31 [13:28:47]Write i2c OK [13:28:47]MH_I2C_Read... [13:28:47]Read from MH i2c: F0 [13:28:47]MH_I2C_Read... [13:28:47]Read from MH i2c: F0 09 00 [13:28:47]MH_I2C_Read... [13:28:47]Read from MH i2c: F0 09 00 3A 08 00 10 99 A7 66 F8 53 A7 66 48 [13:28:47]GetLastDocTimeStamp 1722259167 [13:28:47]current date 1722259728 [13:28:47]FM_GetShiftState [13:28:47]SAM_PROTO_GetShiftState [13:28:47]wFMCommunicate request_size=4 [13:28:47]MH_SAM_APDU [13:28:47]CAPDU: 80 13 01 00 [13:28:47]Write to MH i2c: E2 08 00 3B 08 80 13 01 00 00 00 00 00 C0 [13:28:47]Write i2c OK [13:28:47]MH_I2C_Read... [13:28:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:28:47]Read from MH i2c: E2 [13:28:47]MH_I2C_Read... [13:28:47]Read from MH i2c: E2 0E 00 [13:28:47]MH_I2C_Read... [13:28:47]Read from MH i2c: E2 0E 00 3B 08 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 5C [13:28:47]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [13:28:47]wFMCommunicate OK [13:28:47]SAM_PROTO_GetShiftState done [13:28:47]FM_GetShiftState done [13:28:47]opened in 1722211496 [13:28:47]opened+sec_in_day 1722297896 [13:28:47]quantity*price = 11000 [13:28:47]sum+1 = 11001 [13:28:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 77 29.07.2024 14:13 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41888 ФПД: 203776968047904 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T141342&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41888&fm=203776968047904&tin=02508201610067®Number=0000000000092626&sum=6500 0 [14:13:43]StoreToDocumentArchive [14:13:43]shift 427 fd 41888 [14:13:43]save to /storage/0427/doc_00041888 [14:13:43]save last doc name /storage/0427/doc_00041888 to /storage/kkm_last_doc_name [14:13:43]save OK [14:13:43]Clear old archive folders... [14:13:43]ProcessDocumentItem done err = 0, tmpTLVsize=272 [14:13:43]tlvbuf is 00E43B40 [14:13:43]SAM_PROTO_ClearQueue [14:13:43]wFMCommunicate request_size=4 [14:13:43]MH_SAM_APDU [14:13:43]CAPDU: 80 09 00 00 [14:13:43]Write to MH i2c: E2 08 00 3E 00 80 09 00 00 00 00 00 00 B0 [14:13:43]Write i2c OK [14:13:43]MH_I2C_Read... [14:13:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:13:43]Read from MH i2c: E2 [14:13:43]MH_I2C_Read... [14:13:43]Read from MH i2c: E2 03 00 [14:13:43]MH_I2C_Read... [14:13:43]Read from MH i2c: E2 03 00 3E 00 00 90 00 B2 [14:13:43]RAPDU: 90 00 [14:13:43]wFMCommunicate OK [14:13:43]SAM_PROTO_ClearQueue done [14:13:43]KKMCreateOFDPacket [14:13:43]OFDProtocolAddRootSTLVToBuf [14:13:43]FM_MakeSignedData [14:13:43]FM_MakeSignedData [14:13:43]SAM_PROTO_SignData [14:13:43]wFMCommunicate request_size=4 [14:13:43]MH_SAM_APDU [14:13:43]CAPDU: 80 0D 01 02 [14:13:43]Write to MH i2c: E2 08 00 3F 00 80 0D 01 02 00 00 00 00 B8 [14:13:43]Write i2c OK [14:13:43]MH_I2C_Read... [14:13:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:13:44]Read from MH i2c: E2 [14:13:44]MH_I2C_Read... [14:13:44]Read from MH i2c: E2 03 00 [14:13:44]MH_I2C_Read... [14:13:44]Read from MH i2c: E2 03 00 3F 00 00 90 00 B3 [14:13:44]RAPDU: 90 00 [14:13:44]wFMCommunicate OK [14:13:44]wFMCommunicate request_size=255 [14:13:44]MH_SAM_APDU [14:13:44]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 96 A3 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 OFD Sender: No OFD packet to send [14:13:44]30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 [14:13:44]Write to MH i2c: E2 02 01 40 00 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 96 A3 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 00 00 43 [14:13:44]Write i2c OK [14:13:44]MH_I2C_Read... [14:13:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:13:44]Read from MH i2c: E2 [14:13:44]MH_I2C_Read... [14:13:44]Read from MH i2c: E2 03 00 [14:13:44]MH_I2C_Read... [14:13:44]Read from MH i2c: E2 03 00 40 00 00 90 00 B4 [14:13:44]RAPDU: 90 00 [14:13:44]wFMCommunicate OK [14:13:44]wFMCommunicate request_size=31 [14:13:44]MH_SAM_APDU [14:13:44]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 39 35 38 10 04 04 00 A0 A3 00 00 35 04 06 00 B9 55 85 CB 3D 20 [14:13:44]Write to MH i2c: E2 22 00 41 00 80 0D 02 02 1A 00 30 30 38 37 34 39 35 38 10 04 04 00 A0 A3 00 00 35 04 06 00 B9 55 85 CB 3D 20 00 00 ED [14:13:44]Write i2c OK [14:13:44]MH_I2C_Read... [14:13:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:13:44]Read from MH i2c: E2 [14:13:44]MH_I2C_Read... [14:13:44]Read from MH i2c: E2 03 00 [14:13:44]MH_I2C_Read... [14:13:44]Read from MH i2c: E2 03 00 41 00 00 90 00 B5 [14:13:44]RAPDU: 90 00 [14:13:44]wFMCommunicate OK [14:13:44]wFMCommunicate request_size=4 [14:13:44]MH_SAM_APDU [14:13:44]CAPDU: 80 0D 03 02 [14:13:44]Write to MH i2c: E2 08 00 42 00 80 0D 03 02 00 00 00 00 BD [14:13:44]Write i2c OK [14:13:44]MH_I2C_Read... [14:13:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:13:44]Read from MH i2c: E2 [14:13:44]MH_I2C_Read... [14:13:44]Read from MH i2c: E2 0B 00 [14:13:44]MH_I2C_Read... [14:13:44]Read from MH i2c: E2 0B 00 42 00 00 25 34 FB 56 A9 61 DA 53 90 00 9F [14:13:44]RAPDU: 25 34 FB 56 A9 61 DA 53 90 00 [14:13:44]wFMCommunicate OK [14:13:44]SAM_PROTO_SignData done [14:13:44]FM_MakeSignedData done [14:13:44]CreateOFDProtocolMessage [14:13:44]wFMCommunicate request_size=4 [14:13:44]MH_SAM_APDU [14:13:44]CAPDU: 80 11 00 00 [14:13:44]Write to MH i2c: E2 08 00 43 00 80 11 00 00 00 00 00 00 BD [14:13:44]Write i2c OK [14:13:44]MH_I2C_Read... [14:13:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:44]Read from MH i2c: E2 [14:13:44]MH_I2C_Read... [14:13:44]Read from MH i2c: E2 17 00 [14:13:44]MH_I2C_Read... [14:13:44]Read from MH i2c: E2 17 00 43 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 19 [14:13:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [14:13:44]wFMCommunicate OK [14:13:44]CreateOFDProtocolMessage done [14:13:44]OFDSenderStorePacket 41888 [14:13:44]StoreOFDPacket docnum=41888 [14:13:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 24 01 00 00 89 15 1C 01 81 64 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 96 A3 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 A0 A3 00 00 35 04 06 00 B9 55 85 CB 3D 20 25 34 FB 56 A9 61 DA 53 [14:13:44]CheckFolder [14:13:44]dirname=/storage/ofd_packets [14:13:44]CheckFolder done [14:13:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183916", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:13:42]execute_script... [14: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 : (3)183916", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:13:42]POST & json_proto [14:13:42]process_json_proto [14:13:42]json parsed OK: [14:13:42]protocol is kg_v1.0 [14:13:42]action value=close_receipt [14:13:42]process_action close_receipt [14:13:42]cmd_close_receipt [14:13:42]MH_GetDate [14:13:42]Write to MH i2c: F0 00 00 30 00 1F [14:13:42]Write i2c OK [14:13:42]MH_I2C_Read... [14:13:42]Read from MH i2c: F0 [14:13:42]MH_I2C_Read... [14:13:42]Read from MH i2c: F0 09 00 [14:13:42]MH_I2C_Read... [14:13:42]Read from MH i2c: F0 09 00 30 00 00 96 A3 A7 66 64 A3 A7 66 82 [14:13:42]GetLastDocTimeStamp 1722259728 [14:13:42]current date 1722262422 [14:13:42]FM_GetShiftState [14:13:42]SAM_PROTO_GetShiftState [14:13:42]wFMCommunicate request_size=4 [14:13:42]MH_SAM_APDU [14:13:42]CAPDU: 80 13 01 00 [14:13:42]Write to MH i2c: E2 08 00 31 00 80 13 01 00 00 00 00 00 AE [14:13:42]Write i2c OK [14:13:42]MH_I2C_Read... [14:13:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:42]Read from MH i2c: E2 [14:13:42]MH_I2C_Read... [14:13:42]Read from MH i2c: E2 0E 00 [14:13:42]MH_I2C_Read... [14:13:42]Read from MH i2c: E2 0E 00 31 00 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 4A [14:13:42]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [14:13:42]wFMCommunicate OK [14:13:42]SAM_PROTO_GetShiftState done [14:13:42]FM_GetShiftState done [14:13:42]opened in 1722211496 [14:13:42]opened+sec_in_day 1722297896 [14:13:42]quantity*price = 6500 [14:13:42]sum+1 = 6501 [14:13:42]Check (price>sum+1) || (price+1 о реализуемом товаре [14:13:44]line ИТОГО: 65.00 [14:13:44]line НСП 1% : 0.57 [14:13:44]line НДС 12% : 6.90 [14:13:44]line Наличными: 65.00 [14:13:44]line Безнал.: 0.00 [14:13:44]line Место: АЗС № 97 "Партнер Нефть" [14:13:44]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [14:13:44]line СНО: Общий режим [14:13:44]line Чек 77 29.07.2024 14:13 [14:13:44]line Смена: 427 ФФД: 1.0 [14:13:44]line ЗНМ: 0300000053 [14:13:44]line РНМ: 0000000000092626 [14:13:44]line Версия ККМ: 001 [14:13:44]line ФМ: 0000000000874958 [14:13:44]line ФД: 41888 [14:13:44]line ФПД: 203776968047904 [14:13:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T141342&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41888&fm=203776968047904&tin=02508201610067®Number=0000000000092626&sum=6500 [14:13:44]line 0 [14:13:44]written 0, free lines is 4095 [14:13:44]OFD Sender: Processing packet 41888 [packets to send 57, broken 56] [14:13:44]ProducePacketName [14:13:44]name=ofd_packets/00041888 [14:13:44]OFD Sender: To server: pG, [14:13:44]CommunicateWithHost lk.salyk.kg:30040 [14:13:44]ConnectInit lk.salyk.kg [14:13:45]Write to MH i2c: 01 00 00 6C 00 6C [14:13:45]Write i2c OK [14:13:45]MH_I2C_Read... [14:13:45]Read from MH i2c: 01 [14:13:45]MH_I2C_Read... [14:13:45]Read from MH i2c: 01 07 00 [14:13:45]MH_I2C_Read... [14:13:45]Read from MH i2c: 01 07 00 6C 00 00 00 00 00 00 16 0D 96 [14:13:45]RasterBufferAndPrint [14:13:45]line [14:13:45]line [14:13:45]line [14:13:45]line [14:13:45]line [14:13:45]written 0, free lines is 3368 [14:13:45]MH_Cut [14:13:45]Write to MH i2c: D1 01 00 73 00 01 45 [14:13:45]Write i2c OK [14:13:45]MH_I2C_Read... [14:13:45]Read from MH i2c: D1 [14:13:45]MH_I2C_Read... [14:13:45]Read from MH i2c: D1 01 00 [14:13:45]MH_I2C_Read... [14:13:45]Read from MH i2c: D1 01 00 73 00 00 44 [14:13:45]Write to MH i2c: 01 00 00 74 00 74 [14:13:45]Write i2c OK [14:13:45]MH_I2C_Read... [14:13:45]*** Cut start [14:13:45]*** Partial cut [14:13:45]*** CUTSNS_PIN = 1 [14:13:45]*** CUTSNS_PIN = 0 [14:13:46]*** Brake cut motor [14:13:46]Read from MH i2c: 01 [14:13:46]MH_I2C_Read... [14:13:46]*** Stop cut motor [14:13:46]*** Cut end [14:13:46]Read from MH i2c: 01 07 00 [14:13:46]MH_I2C_Read... [14:13:46]Read from MH i2c: 01 07 00 74 00 00 00 00 00 00 FF 0F 89 [14:13:46]process_action close_receipt done [14:13:46]requested_data is exist [14:13:46]produce_requested_data [14:13:46]requested_item fm.sn is exist - process it [14:13:46]wFMCommunicate request_size=4 [14:13:46]MH_SAM_APDU [14:13:46]CAPDU: 80 11 00 00 [14:13:46]Write to MH i2c: E2 08 00 75 00 80 11 00 00 00 00 00 00 EF [14:13:46]Write i2c OK [14:13:46]MH_I2C_Read... [14:13:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:46]Read from MH i2c: E2 [14:13:46]MH_I2C_Read... [14:13:46]Read from MH i2c: E2 17 00 [14:13:46]MH_I2C_Read... [14:13:46]Read from MH i2c: E2 17 00 75 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 4B [14:13:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [14:13:46]wFMCommunicate OK [14:13:46]requested_item fd.num is exist - process it [14:13:46]SAM_PROTO_GetFieldsCounters [14:13:46]wFMCommunicate request_size=4 [14:13:46]MH_SAM_APDU [14:13:46]CAPDU: 80 13 00 00 [14:13:46]Write to MH i2c: E2 08 00 76 00 80 13 00 00 00 00 00 00 F2 [14:13:46]Write i2c OK [14:13:46]MH_I2C_Read... [14:13:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:13:46]Read from MH i2c: E2 [14:13:46]MH_I2C_Read... [14:13:46]Read from MH i2c: E2 62 00 [14:13:46]MH_I2C_Read... [14:13:46]Read from MH i2c: E2 62 00 76 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 A0 A3 00 00 0E 04 04 00 AB 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 F2 [14: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 A0 A3 00 00 0E 04 04 00 AB 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 [14:13:46]wFMCommunicate OK [14:13:46]SAM_PROTO_GetFieldsCounters done [14:13:46]requested_item shift.num is exist - process it [14:13:46]requested_item shift.opened is exist - process it [14:13:46]req_shift_opened [14:13:46]FM_GetShiftState [14:13:46]SAM_PROTO_GetShiftState [14:13:46]wFMCommunicate request_size=4 [14:13:46]MH_SAM_APDU [14:13:46]CAPDU: 80 13 01 00 [14:13:46]Write to MH i2c: E2 08 00 77 00 80 13 01 00 00 00 00 00 F4 [14:13:46]Write i2c OK [14:13:46]MH_I2C_Read... [14:13:46]Connected sock=11 [14:13: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 35 38 24 01 00 00 89 15 1C 01 81 64 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 *** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:46]04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 96 A3 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 A0 A3 00 00 35 04 06 00 B9 55 85 CB 3D 20 25 34 FB 56 A9 61 DA 53 [14:13:47]Read from MH i2c: E2 [14:13:47]MH_I2C_Read... [14:13:47]Read from MH i2c: E2 0E 00 [14:13:47]MH_I2C_Read... [14:13:47]Read from MH i2c: E2 0E 00 77 00 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 90 [14:13:47]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [14:13:47]wFMCommunicate OK [14:13:47]SAM_PROTO_GetShiftState done [14:13:47]FM_GetShiftState done [14:13:47]req_shift_opened done [14:13:47]requested_item shift.open_date is exist - process it [14:13:47]req_shift_open_date [14:13:47]req_shift_open_date done [14:13:47]produce_requested_data done [14:13:47]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41888,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [14:13:47]process_action_free close_receipt [14:13:47]json_value_free [14:13:47]json_value_free done [14:13:47]process_json_proto returns [14:13:47]Send response to host [14:13:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41888,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [14:13:47]free response buf [14:13:47]execute_script done [14:13:47]execute_script returns [14:13:47]free content buf [14:13:47]Sock 9.Close socket [14:13:47]Sock 9.Thread stoped [14:13: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 35 38 4F 00 00 00 57 67 47 00 9B 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 35 38 10 04 04 00 A0 A3 00 00 F4 03 04 00 AF 4F A7 66 B6 04 01 00 00 D4 74 53 35 B3 96 C4 59 [14:13:47]CommunicateWithHost err = 0 [14:13:47]CheckOFDResponse [14:13:47]1017 (14) - 77093643461234 [14:13:47]1041 (16) - 0000000000874958 [14:13:47]1040 (4) - 41888 [14:13:47]1012 (4) - 29.07.2024 08:15 [14:13:47]1206 (1) - 0 [14:13:47]OFD Sender: Remove packet 41888 [14:13:47]ProducePacketName [14:13:47]name=ofd_packets/00041888 [14:13:47]NVStorageDeleteData [14:13:48]OFD Sender: No OFD packet to send [14:13:48]accept exits with 7 [14:13:48]New connection [14:13:48]New thread 3066510692 created [14:13:48]Thread 3066654052 joined [14:13:48]Waiting for new connection... [14:13:48] Sock 7.Parse request [14:13:48]Sock 7.Check first char [14:13:48]Sock 7.First char is OK [14:13:48]request: POST /json_proto HTTP/1.0 [14:13:48]Method: POST [14:13:48]URL: /json_proto [14:13:48]Method is POST - this is cgi request [14:13:48]url: /json_proto [14:13:48]query_string will be loaded in cgi processing [14:13:48]execute_cgi json_proto POST (null) [14:13:48]execute_cgi path=json_proto method=POST [14:13:48]POST find Content-Length [14:13:48]Host: 172.17.43.132:8080 [14:13:48]Content-Length: 699 [14:13:48]Content-Type: application/json [14:13:48] [14:13:48]POST finish read [14:13:48]Found Content-Length = 699 [14:13:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183917", "tax_sys" : 0, "items" : [ { "code": "4620016303269", "name": "\u0412\u043B\u0430\u0436\u043D\u0430\u044F \u0442\u0443\u0430\u043B\u0435\u0442\u043D\u0430\u044F \u0431\u0443\u043C\u0430\u0433\u0430 80 VOK", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:13:48]execute_script... [14:13:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183917", "tax_sys" : 0, "items" : [ { "code": "4620016303269", "name": "\u0412\u043B\u0430\u0436\u043D\u0430\u044F \u0442\u0443\u0430\u043B\u0435\u0442\u043D\u0430\u044F \u0431\u0443\u043C\u0430\u0433\u0430 80 VOK", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:13:48]POST & json_proto [14:13:48]process_json_proto [14:13:48]json parsed OK: [14:13:48]protocol is kg_v1.0 [14:13:48]action value=close_receipt [14:13:48]process_action close_receipt [14:13:48]cmd_close_receipt [14:13:48]MH_GetDate [14:13:48]Write to MH i2c: F0 00 00 78 00 67 [14:13:48]Write i2c OK [14:13:48]MH_I2C_Read... [14:13:48]Read from MH i2c: F0 [14:13:48]MH_I2C_Read... [14:13:48]Read from MH i2c: F0 09 00 [14:13:48]MH_I2C_Read... [14:13:48]Read from MH i2c: F0 09 00 78 00 00 9C A3 A7 66 64 A3 A7 66 D0 [14:13:48]GetLastDocTimeStamp 1722262422 [14:13:48]current date 1722262428 [14:13:48]FM_GetShiftState [14:13:48]SAM_PROTO_GetShiftState [14:13:48]wFMCommunicate request_size=4 [14:13:48]MH_SAM_APDU [14:13:48]CAPDU: 80 13 01 00 [14:13:48]Write to MH i2c: E2 08 00 79 00 80 13 01 00 00 00 00 00 F6 [14:13:48]Write i2c OK [14:13:48]MH_I2C_Read... [14:13:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:48]Read from MH i2c: E2 [14:13:48]MH_I2C_Read... [14:13:48]Read from MH i2c: E2 0E 00 [14:13:48]MH_I2C_Read... [14:13:48]Read from MH i2c: E2 0E 00 79 00 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 92 [14:13:48]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [14:13:48]wFMCommunicate OK [14:13:48]SAM_PROTO_GetShiftState done [14:13:48]FM_GetShiftState done [14:13:48]opened in 1722211496 [14:13:48]opened+sec_in_day 1722297896 [14:13:48]quantity*price = 14000 [14:13:48]sum+1 = 14001 [14:13:48]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160181 Вода Байтик 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000005489 Вода Бонаква 1л б/г 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 207.00 НСП 1% : 1.83 НДС 12% : 21.98 Наличными: 0.00 Безнал.: 207.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 89 29.07.2024 16:49 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874958 ФД: 41900 ФПД: 124312449658255 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T164948&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41900&fm=124312449658255&tin=02508201610067®Number=0000000000092626&sum=20700 0 [16:49:49]StoreToDocumentArchive [16:49:49]shift 427 fd 41900 [16:49:49]save to /storage/0427/doc_00041900 [16:49:49]save last doc name /storage/0427/doc_00041900 to /storage/kkm_last_doc_name [16:49:49]save OK [16:49:49]Clear old archive folders... [16:49:49]ProcessDocumentItem done err = 0, tmpTLVsize=500 [16:49:49]tlvbuf is 003230B0 [16:49:49]SAM_PROTO_ClearQueue [16:49:49]wFMCommunicate request_size=4 [16:49:49]MH_SAM_APDU [16:49:49]CAPDU: 80 09 00 00 [16:49:49]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [16:49:49]Write i2c OK [16:49:49]MH_I2C_Read... [16:49:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:49:49]Read from MH i2c: E2 [16:49:49]MH_I2C_Read... [16:49:49]Read from MH i2c: E2 03 00 [16:49:49]MH_I2C_Read... [16:49:49]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [16:49:49]RAPDU: 90 00 [16:49:49]wFMCommunicate OK [16:49:49]SAM_PROTO_ClearQueue done [16:49:49]KKMCreateOFDPacket [16:49:49]OFDProtocolAddRootSTLVToBuf [16:49:49]FM_MakeSignedData [16:49:49]FM_MakeSignedData [16:49:49]SAM_PROTO_SignData [16:49:49]wFMCommunicate request_size=4 [16:49:49]MH_SAM_APDU [16:49:49]CAPDU: 80 0D 01 02 [16:49:49]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [16:49:49]Write i2c OK [16:49:49]MH_I2C_Read... [16:49:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:49:49]Read from MH i2c: E2 [16:49:49]MH_I2C_Read... [16:49:49]Read from MH i2c: E2 03 00 [16:49:49]MH_I2C_Read... [16:49:49]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [16:49:49]RAPDU: 90 00 [16:49:49]wFMCommunicate OK [16:49:49]wFMCommunicate request_size=255 [16:49:49]MH_SAM_APDU [16:49:49]CAPDU: 80 0D 02 02 FA 03 00 F4 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5D 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 31 38 31 06 04 19 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 B0 D0 B9 D1 82 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 [16:49:49]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 F4 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5D 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 31 38 31 06 04 19 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 B0 D0 B9 D1 82 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 00 00 54 [16:49:49]Write i2c OK [16:49:49]MH_I2C_Read... [16:49:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:49:49]Read from MH i2c: E2 [16:49:49]MH_I2C_Read... [16:49:49]Read from MH i2c: E2 03 00 [16:49:49]MH_I2C_Read... [16:49:49]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [16:49:49]RAPDU: 90 00 [16:49:49]wFMCommunicate OK [16:49:49]wFMCommunicate request_size=255 [16:49:49]MH_SAM_APDU [16:49:49]CAPDU: 80 0D 02 02 FA 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DC 50 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 2C C8 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 AC A3 00 00 35 04 06 00 71 0F [16:49:49]Write to MH i2c: E2 02 01 2E 00 80 0D 02 02 FA 00 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DC 50 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 2C C8 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 AC A3 00 00 35 04 06 00 71 0F 00 00 AA [16:49:50]Write i2c OK [16:49:50]MH_I2C_Read... [16:49:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:49:50]Read from MH i2c: E2 [16:49:50]MH_I2C_Read... [16:49:50]Read from MH i2c: E2 03 00 [16:49:50]MH_I2C_Read... [16:49:50]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [16:49:50]RAPDU: 90 00 [16:49:50]wFMCommunicate OK [16:49:50]wFMCommunicate request_size=9 [16:49:50]MH_SAM_APDU [16:49:50]CAPDU: 80 0D 02 02 04 BF 67 2D 8F [16:49:50]Write to MH i2c: E2 0C 00 2F 00 80 0D 02 02 04 00 BF 67 2D 8F 00 00 93 [16:49:50]Write i2c OK [16:49:50]MH_I2C_Read... [16:49:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:49:50]Read from MH i2c: E2 [16:49:50]MH_I2C_Read... [16:49:50]Read from MH i2c: E2 03 00 [16:49:50]MH_I2C_Read... [16:49:50]Read from MH i2c: E2 03 00 2F 00 00 90 00 A3 [16:49:50]RAPDU: 90 00 [16:49:50]wFMCommunicate OK [16:49:50]wFMCommunicate request_size=4 [16:49:50]MH_SAM_APDU [16:49:50]CAPDU: 80 0D 03 02 [16:49:50]Write to MH i2c: E2 08 00 30 00 80 0D 03 02 00 00 00 00 AB [16:49:50]Write i2c OK [16:49:50]MH_I2C_Read... [16:49:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:49:50]Read from MH i2c: E2 [16:49:50]MH_I2C_Read... [16:49:50]Read from MH i2c: E2 0B 00 [16:49:50]MH_I2C_Read... [16:49:50]Read from MH i2c: E2 0B 00 30 00 00 34 88 3F AD 03 FC 41 15 90 00 A9 [16:49:50]RAPDU: 34 88 3F AD 03 FC 41 15 90 00 [16:49:50]wFMCommunicate OK [16:49:50]SAM_PROTO_SignData done [16:49:50]FM_MakeSignedData done [16:49:50]CreateOFDProtocolMessage [16:49:50]wFMCommunicate request_size=4 [16:49:50]MH_SAM_APDU [16:49:50]CAPDU: 80 11 00 00 [16:49:50]Write to MH i2c: E2 08 00 31 00 80 11 00 00 00 00 00 00 AB [16:49:50]Write i2c OK [16:49:50]MH_I2C_Read... [16:49:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:49:50]Read from MH i2c: E2 [16:49:50]MH_I2C_Read... [16:49:50]Read from MH i2c: E2 17 00 [16:49:50]MH_I2C_Read... [16:49:50]Read from MH i2c: E2 17 00 31 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 07 [16:49:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [16:49:50]wFMCommunicate OK [16:49:50]CreateOFDProtocolMessage done [16:49:50]OFDSenderStorePacket 41900 [16:49:50]StoreOFDPacket docnum=41900 [16:49:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 08 02 00 00 60 C7 00 02 F7 D4 5A 03 01 00 03 00 F4 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5D 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 31 38 31 06 04 19 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 B0 D0 B9 D1 82 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DC 50 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 2C C8 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 AC A3 00 00 35 04 06 00 71 0F BF 67 2D 8F 34 88 3F AD 03 FC 41 15 [16:49:50]CheckFolder [16:49:50]dirname=/storage/ofd_packets [16:49:50]CheckFolder done [16:49:50]ProducePacketName [16:49:50]name=ofd_packets/00041900 [16:49:50]NVStorageSaveData ofd_packets/00041900 [16:49:50]File name is /storage/ofd_packets/00041900 [16:49:50]Write 550 bytes [16:49:50]NVStorageSaveData done [16:49:50]OFDSenderStorePacket done [16:49:50]KKMCreateOFDPacket done [16:49:50]NVStorageSaveData kkm_last_timestamp [16:49:50]File name is /storage/kkm_last_timestamp [16:49:50]Write 4 bytes [16:49:50]NVStorageSaveData done [16:49:50]ExternCall_PrintAddStr [16:49:50]wPrintStart [16:49:50]Write to MH i2c: 01 00 00 32 00 32 [16:49:50]Write i2c OK [16:49:50]MH_I2C_Read... [16:49:50]Read from MH i2c: 01 [16:49:50]MH_I2C_Read... [16:49:50]Read from MH i2c: 01 07 00 [16:49:50]MH_I2C_Read... [16:49:50]Read from MH i2c: 01 07 00 32 00 00 00 00 00 00 FF 0F 47 [16:49:50]RasterBufferAndPrint [16:49:50]line Счет N : (3)183928 [16:49:50]line ИНН: 02508201610067 [16:49:50]line Контрольно-Кассовый Чек [16:49:50]line ПРОДАЖА [16:49:50]line Товар: 5449000189356 [16:49:50]line Холодный чай Fuse манго ананас 1л [16:49:50]line 1.000 * 107.00 [16:49:50]line = 107.00 [16:49:50]line НДС 12% НСП 1% [16:49:50]line > о реализуемом товаре [16:49:50]line Товар: 4700000160181 [16:49:50]line Вода Байтик 1л [16:49:50]line 1.000 * 50.00 [16:49:50]line = 50.00 [16:49:50]line НДС 12% НСП 1% [16:49:50]line > о реализуемом товаре [16:49:50]line Товар: 5449000005489 [16:49:50]line Вода Бонаква 1л б/г [16:49:50]line 1.000 * 50.00 [16:49:50]line = 50.00 [16:49:50]line НДС 12% НСП 1% [16:49:50]line > о реализуемом товаре [16:49:50]line ИТОГО: 207.00 [16:49:50]line НСП 1% : 1.83 [16:49:50]line НДС 12% : 21.98 [16:49:50]line Наличными: 0.00 [16:49:50]line Безнал.: 207.00 [16:49:50]line Место: АЗС № 97 "Партнер Нефть" [16:49:50]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [16:49:50]line СНО: Общий режим [16:49:50]line Чек 89 29.07.2024 16:49 [16:49:50]line Смена: 427 ФФД: 1.0 [16:49:50]line ЗНМ: 0300000053 [16:49:50]line РНМ: 0000000000092626 [16:49:50]line Версия ККМ: 001 [16:49:50]line Платежная система: O! деньги [16:49:50]line ФМ: 0000000000874958 [16:49:50]line ФД: 41900 [16:49:50]line ФПД: 124312449658255 [16:49:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T164948&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41900&fm=124312449658255&tin=02508201610067®Number=0000000000092626&sum=20700 [16:49:50]line 0 [16:49:50]written 0, free lines is 4095 [16:49:51]Write to MH i2c: 01 00 00 69 00 69 [16:49:51]Write i2c OK [16:49:51]MH_I2C_Read... [16:49:51]Read from MH i2c: 01 [16:49:51]MH_I2C_Read... [16:49:51]Read from MH i2c: 01 07 00 [16:49:51]MH_I2C_Read... [16:49:51]Read from MH i2c: 01 07 00 69 00 00 00 00 00 00 55 0C D1 [16:49:51]RasterBufferAndPrint [16:49:51]line [16:49:51]line [16:49:51]line [16:49:51]line [16:49:51]line [16:49:51]written 0, free lines is 3183 [16:49:51]MH_Cut [16:49:51]Write to MH i2c: D1 01 00 70 00 01 42 [16:49:51]Write i2c OK [16:49:51]MH_I2C_Read... [16:49:51]Read from MH i2c: D1 [16:49:51]MH_I2C_Read... [16:49:51]Read from MH i2c: D1 01 00 [16:49:51]MH_I2C_Read... [16:49:51]Read from MH i2c: D1 01 00 70 00 00 41 [16:49:51]Write to MH i2c: 01 00 00 71 00 71 [16:49:51]Write i2c OK [16:49:51]MH_I2C_Read... [16:49:51]ConnectInit Can't take IP for lk.salyk.kg [16:49:51]CommunicateWithHost connect error [16:49:51]CommunicateWithHost err = -1 [16:49:51]OFD Sender: Server communicate error [16:49:51]OFD Sender: Processing packet 41896 [packets to send 61, broken 56] [16:49:51]ProducePacketName [16:49:51]name=ofd_packets/00041896 [16:49:51]OFD Sender: To server: pG, [16:49:51]CommunicateWithHost lk.salyk.kg:30040 [16:49:51]ConnectInit lk.salyk.kg [16:49:51]*** Cut start [16:49:51]*** Partial cut [16:49:51]*** CUTSNS_PIN = 1 [16:49:51]*** CUTSNS_PIN = 0 [16:49:52]ConnectInit Can't connect to host [16:49:52]*** Brake cut motor [16:49:52]Read from MH i2c: 01 [16:49:52]MH_I2C_Read... [16:49:52]*** Stop cut motor [16:49:52]*** Cut end [16:49:52]Read from MH i2c: 01 07 00 [16:49:52]MH_I2C_Read... [16:49:52]Read from MH i2c: 01 07 00 71 00 00 00 00 00 00 FF 0F 86 [16:49:52]process_action close_receipt done [16:49:52]requested_data is exist [16:49:52]produce_requested_data [16:49:52]requested_item fm.sn is exist - process it [16:49:52]wFMCommunicate request_size=4 [16:49:52]MH_SAM_APDU [16:49:52]CAPDU: 80 11 00 00 [16:49:52]Write to MH i2c: E2 08 00 72 00 80 11 00 00 00 00 00 00 EC [16:49:52]Write i2c OK [16:49:52]MH_I2C_Read... [16:49:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:49:52]Read from MH i2c: E2 [16:49:52]MH_I2C_Read... [16:49:52]Read from MH i2c: E2 17 00 [16:49:52]MH_I2C_Read... [16:49:52]Read from MH i2c: E2 17 00 72 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 48 [16:49:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [16:49:52]wFMCommunicate OK [16:49:52]requested_item fd.num is exist - process it [16:49:52]SAM_PROTO_GetFieldsCounters [16:49:52]wFMCommunicate request_size=4 [16:49:52]MH_SAM_APDU [16:49:52]CAPDU: 80 13 00 00 [16:49:52]Write to MH i2c: E2 08 00 73 00 80 13 00 00 00 00 00 00 EF [16:49:52]Write i2c OK [16:49:52]MH_I2C_Read... [16:49:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:49:52]Read from MH i2c: E2 [16:49:52]MH_I2C_Read... [16:49:52]Read from MH i2c: E2 62 00 [16:49:52]MH_I2C_Read... [16:49:52]Read from MH i2c: E2 62 00 73 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 AC A3 00 00 0E 04 04 00 AB 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 1F [16: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 AC A3 00 00 0E 04 04 00 AB 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 [16:49:52]wFMCommunicate OK [16:49:52]SAM_PROTO_GetFieldsCounters done [16:49:52]requested_item shift.num is exist - process it [16:49:52]requested_item shift.opened is exist - process it [16:49:52]req_shift_opened [16:49:52]FM_GetShiftState [16:49:52]SAM_PROTO_GetShiftState [16:49:52]wFMCommunicate request_size=4 [16:49:52]MH_SAM_APDU [16:49:52]CAPDU: 80 13 01 00 [16:49:52]Write to MH i2c: E2 08 00 74 00 80 13 01 00 00 00 00 00 F1 [16:49:52]Write i2c OK [16:49:52]MH_I2C_Read... [16:49:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:49:53]Read from MH i2c: E2 [16:49:53]MH_I2C_Read... [16:49:53]Read from MH i2c: E2 0E 00 [16:49:53]MH_I2C_Read... [16:49:53]Read from MH i2c: E2 0E 00 74 00 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 8D [16:49:53]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [16:49:53]wFMCommunicate OK [16:49:53]SAM_PROTO_GetShiftState done [16:49:53]FM_GetShiftState done [16:49:53]req_shift_opened done [16:49:53]requested_item shift.open_date is exist - process it [16:49:53]req_shift_open_date [16:49:53]req_shift_open_date done [16:49:53]produce_requested_data done [16:49:53]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41900,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [16:49:53]process_action_free close_receipt [16:49:53]json_value_free [16:49:53]json_value_free done [16:49:53]process_json_proto returns [16:49:53]Send response to host [16:49:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41900,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [16:49:53]free response buf [16:49:53]execute_script done [16:49:53]execute_script returns [16:49:53]free content buf [16:49:53]Sock 8.Close socket [16:49:53]Sock 8.Thread stoped [16:49:54]accept exits with 11 [16:49:54]New connection [16:49:54]New thread 3066858852 created [16:49:54]Thread 3067002212 joined [16:49:54]Waiting for new connection... [16:49:54] Sock 11.Parse request [16:49:54]Sock 11.Check first char [16:49:54]Sock 11.First char is OK [16:49:54]request: POST /json_proto HTTP/1.0 [16:49:54]Method: POST [16:49:54]URL: /json_proto [16:49:54]Method is POST - this is cgi request [16:49:54]url: /json_proto [16:49:54]query_string will be loaded in cgi processing [16:49:54]execute_cgi json_proto POST (null) [16:49:54]execute_cgi path=json_proto method=POST [16:49:54]POST find Content-Length [16:49:54]Host: 172.17.43.132:8080 [16:49:54]Content-Length: 614 [16:49:54]Content-Type: application/json [16:49:54] [16:49:54]POST finish read [16:49:54]Found Content-Length = 614 [16:49:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183929", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 111.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:49:54]execute_script... [16:49: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 : (3)183929", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 111.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:49:54]POST & json_proto [16:49:54]process_json_proto [16:49:54]json parsed OK: [16:49:54]protocol is kg_v1.0 [16:49:54]action value=close_receipt [16:49:54]process_action close_receipt [16:49:54]cmd_close_receipt [16:49:54]MH_GetDate [16:49:54]Write to MH i2c: F0 00 00 75 00 64 [16:49:54]Write i2c OK [16:49:54]MH_I2C_Read... [16:49:54]Read from MH i2c: F0 [16:49:54]MH_I2C_Read... [16:49:54]Read from MH i2c: F0 09 00 [16:49:54]MH_I2C_Read... [16:49:54]Read from MH i2c: F0 09 00 75 00 00 32 C8 A7 66 64 A3 A7 66 88 [16:49:54]GetLastDocTimeStamp 1722271788 [16:49:54]current date 1722271794 [16:49:54]FM_GetShiftState [16:49:54]SAM_PROTO_GetShiftState [16:49:54]wFMCommunicate request_size=4 [16:49:54]MH_SAM_APDU [16:49:54]CAPDU: 80 13 01 00 [16:49:54]Write to MH i2c: E2 08 00 76 00 80 13 01 00 00 00 00 00 F3 [16:49:54]Write i2c OK [16:49:54]MH_I2C_Read... [16:49:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:49:54]Read from MH i2c: E2 [16:49:54]MH_I2C_Read... [16:49:54]Read from MH i2c: E2 0E 00 [16:49:54]MH_I2C_Read... [16:49:54]Read from MH i2c: E2 0E 00 76 00 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 8F [16:49:54]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [16:49:54]wFMCommunicate OK [16:49:54]SAM_PROTO_GetShiftState done [16:49:54]FM_GetShiftState done [16:49:54]opened in 1722211496 [16:49:54]opened+sec_in_day 1722297896 [16:49:54]quantity*price = 11100 [16:49:54]sum+1 = 11101 [16:49:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 111.00 НСП 1% : 0.98 НДС 12% : 11.79 Наличными: 111.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 90 29.07.2024 16:49 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41901 ФПД: 95737202636282 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T164954&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41901&fm=95737202636282&tin=02508201610067®Number=0000000000092626&sum=11100 0 [16:49:55]StoreToDocumentArchive [16:49:55]shift 427 fd 41901 [16:49:55]save to /storage/0427/doc_00041901 [16:49:55]save last doc name /storage/0427/doc_00041901 to /storage/kkm_last_doc_name [16:49:55]save OK [16:49:55]Clear old archive folders... [16:49:55]ProcessDocumentItem done err = 0, tmpTLVsize=266 [16:49:55]tlvbuf is 0033CDB0 [16:49:55]SAM_PROTO_ClearQueue [16:49:55]wFMCommunicate request_size=4 [16:49:55]MH_SAM_APDU [16:49:55]CAPDU: 80 09 00 00 [16:49:55]Write to MH i2c: E2 08 00 83 00 80 09 00 00 00 00 00 00 F5 [16:49:55]Write i2c OK [16:49:55]MH_I2C_Read... [16:49:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:49:55]Read from MH i2c: E2 [16:49:55]MH_I2C_Read... [16:49:55]Read from MH i2c: E2 03 00 [16:49:55]MH_I2C_Read... [16:49:55]Read from MH i2c: E2 03 00 83 00 00 90 00 F7 [16:49:55]RAPDU: 90 00 [16:49:55]wFMCommunicate OK [16:49:55]SAM_PROTO_ClearQueue done [16:49:55]KKMCreateOFDPacket [16:49:55]OFDProtocolAddRootSTLVToBuf [16:49:55]FM_MakeSignedData [16:49:55]FM_MakeSignedData [16:49:55]SAM_PROTO_SignData [16:49:55]wFMCommunicate request_size=4 [16:49:55]MH_SAM_APDU [16:49:55]CAPDU: 80 0D 01 02 [16:49:55]Write to MH i2c: E2 08 00 84 00 80 0D 01 02 00 00 00 00 FD [16:49:55]Write i2c OK [16:49:55]MH_I2C_Read... [16:49:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:49:55]Read from MH i2c: E2 [16:49:55]MH_I2C_Read... [16:49:55]Read from MH i2c: E2 03 00 [16:49:55]MH_I2C_Read... [16:49:55]Read from MH i2c: E2 03 00 84 00 00 90 00 F8 [16:49:55]RAPDU: 90 00 [16:49:55]wFMCommunicate OK [16:49:55]wFMCommunicate request_size=255 [16:49:55]MH_SAM_APDU [16:49:55]CAPDU: 80 0D 02 02 FA 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 5C 2B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 32 C8 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 [16:49:55]Write to MH i2c: E2 02 01 85 00 80 0D 02 02 FA 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 5C 2B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 32 C8 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 00 00 25 [16:49:56]Write i2c OK [16:49:56]MH_I2C_Read... [16:49:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:49:56]Read from MH i2c: E2 [16:49:56]MH_I2C_Read... [16:49:56]Read from MH i2c: E2 03 00 [16:49:56]MH_I2C_Read... [16:49:56]Read from MH i2c: E2 03 00 85 00 00 90 00 F9 [16:49:56]RAPDU: 90 00 [16:49:56]wFMCommunicate OK [16:49:56]wFMCommunicate request_size=25 [16:49:56]MH_SAM_APDU [16:49:56]CAPDU: 80 0D 02 02 14 35 38 10 04 04 00 AD A3 00 00 35 04 06 00 57 12 8D F4 75 FA [16:49:56]Write to MH i2c: E2 1C 00 86 00 80 0D 02 02 14 00 35 38 10 04 04 00 AD A3 00 00 35 04 06 00 57 12 8D F4 75 FA 00 00 95 [16:49:56]Write i2c OK [16:49:56]MH_I2C_Read... [16:49:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:49:56]Read from MH i2c: E2 [16:49:56]MH_I2C_Read... [16:49:56]Read from MH i2c: E2 03 00 [16:49:56]MH_I2C_Read... [16:49:56]Read from MH i2c: E2 03 00 86 00 00 90 00 FA [16:49:56]RAPDU: 90 00 [16:49:56]wFMCommunicate OK [16:49:56]wFMCommunicate request_size=4 [16:49:56]MH_SAM_APDU [16:49:56]CAPDU: 80 0D 03 02 [16:49:56]Write to MH i2c: E2 08 00 87 00 80 0D 03 02 00 00 00 00 02 [16:49:56]Write i2c OK [16:49:56]MH_I2C_Read... [16:49:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:49:56]Read from MH i2c: E2 [16:49:56]MH_I2C_Read... [16:49:56]Read from MH i2c: E2 0B 00 [16:49:56]MH_I2C_Read... [16:49:56]Read from MH i2c: E2 0B 00 87 00 00 C0 F6 70 EF F7 27 02 42 90 00 7A [16:49:56]RAPDU: C0 F6 70 EF F7 27 02 42 90 00 [16:49:56]wFMCommunicate OK [16:49:56]SAM_PROTO_SignData done [16:49:56]FM_MakeSignedData done [16:49:56]CreateOFDProtocolMessage [16:49:56]wFMCommunicate request_size=4 [16:49:56]MH_SAM_APDU [16:49:56]CAPDU: 80 11 00 00 [16:49:56]Write to MH i2c: E2 08 00 88 00 80 11 00 00 00 00 00 00 02 [16:49:56]Write i2c OK [16:49:56]MH_I2C_Read... [16:49:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:49:56]Read from MH i2c: E2 [16:49:56]MH_I2C_Read... [16:49:56]Read from MH i2c: E2 17 00 [16:49:56]MH_I2C_Read... [16:49:56]Read from MH i2c: E2 17 00 88 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 5E [16:49:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [16:49:56]wFMCommunicate OK [16:49:56]CreateOFDProtocolMessage done [16:49:56]OFDSenderStorePacket 41901 [16:49:56]StoreOFDPacket docnum=41901 [16:49:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 1E 01 00 00 F9 41 16 01 42 D3 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 5C 2B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 32 C8 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 AD A3 00 00 35 04 06 00 57 12 8D F4 75 FA C0 F6 70 EF F7 27 02 42 [16:49:56]CheckFolder [16:49:56]dirname=/storage/ofd_packets [16:49:56]CheckFolder done [16:49:56]ProducePacketName [16:49:56]name=ofd_packets/00041901 [16:49:56]NVStorageSaveData ofd_packets/00041901 [16:49:56]File name is /storage/ofd_packets/00041901 [16:49:56]Write 316 bytes [16:49:56]NVStorageSaveData done [16:49:56]OFDSenderStorePacket done [16:49:56]KKMCreateOFDPacket done [16:49:56]NVStorageSaveData kkm_last_timestamp [16:49:56]File name is /storage/kkm_last_timestamp [16:49:56]Write 4 bytes [16:49:56]NVStorageSaveData done [16:49:56]ExternCall_PrintAddStr [16:49:56]wPrintStart [16:49:56]Write to MH i2c: 01 00 00 89 00 89 [16:49:56]ConnectInit Can't take IP for lk.salyk.kg [16:49:56]CommunicateWithHost connect error [16:49:56]CommunicateWithHost err = -1 [16:49:56]OFD Sender: Server communicate error [16:49:56]Write i2c OK [16:49:56]MH_I2C_Read... [16:49:56]Read from MH i2c: 01 [16:49:56]MH_I2C_Read... [16:49:56]Read from MH i2c: 01 07 00 [16:49:56]MH_I2C_Read... [16:49:56]Read from MH i2c: 01 07 00 89 00 00 00 00 00 00 FF 0F 9E [16:49:56]RasterBufferAndPrint [16:49:56]line Счет N : (3)183929 [16:49:56]line ИНН: 02508201610067 [16:49:56]line Контрольно-Кассовый Чек [16:49:56]line ПРОДАЖА [16:49:56]line Товар: 4870001570071 [16:49:56]line Напиток Pepsi 1л [16:49:56]line 1.000 * 111.00 [16:49:56]line = 111.00 [16:49:56]line НДС 12% НСП 1% [16:49:56]line > о реализуемом товаре [16:49:56]line ИТОГО: 111.00 [16:49:56]line НСП 1% : 0.98 [16:49:56]line НДС 12% : 11.79 [16:49:56]line Наличными: 111.00 [16:49:56]line Безнал.: 0.00 [16:49:56]line Место: АЗС № 97 "Партнер Нефть" [16:49:56]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [16:49:56]line СНО: Общий режим [16:49:56]line Чек 90 29.07.2024 16:49 [16:49:56]line Смена: 427 ФФД: 1.0 [16:49:56]line ЗНМ: 0300000053 [16:49:56]line РНМ: 0000000000092626 [16:49:56]line Версия ККМ: 001 [16:49:56]line ФМ: 0000000000874958 [16:49:56]line ФД: 41901 [16:49:56]line ФПД: 95737202636282 [16:49:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T164954&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41901&fm=95737202636282&tin=02508201610067®Number=0000000000092626&sum=11100 [16:49:56]line 0 [16:49:56]written 0, free lines is 4095 [16:49:56]OFD Sender: Processing packet 41896 [packets to send 62, broken 56] [16:49:56]ProducePacketName [16:49:56]name=ofd_packets/00041896 [16:49:56]OFD Sender: To server: pG, [16:49:56]CommunicateWithHost lk.salyk.kg:30040 [16:49:56]ConnectInit lk.salyk.kg [16:49:57]Write to MH i2c: 01 00 00 B1 00 B1 [16:49:57]Write i2c OK [16:49:57]MH_I2C_Read... [16:49:57]Read from MH i2c: 01 [16:49:57]MH_I2C_Read... [16:49:57]Read from MH i2c: 01 07 00 [16:49:57]MH_I2C_Read... [16:49:57]Read from MH i2c: 01 07 00 B1 00 00 00 00 00 00 1A 0D DF [16:49:57]RasterBufferAndPrint [16:49:57]line [16:49:57]line [16:49:57]line [16:49:57]line [16:49:57]line [16:49:57]written 0, free lines is 3378 [16:49:57]MH_Cut [16:49:57]Write to MH i2c: D1 01 00 B8 00 01 8A [16:49:57]Write i2c OK [16:49:57]MH_I2C_Read... [16:49:57]Read from MH i2c: D1 [16:49:57]MH_I2C_Read... [16:49:57]Read from MH i2c: D1 01 00 [16:49:57]MH_I2C_Read... [16:49:57]Read from MH i2c: D1 01 00 B8 00 00 89 [16:49:57]Write to MH i2c: 01 00 00 B9 00 B9 [16:49:57]Write i2c OK [16:49:57]MH_I2C_Read... [16:49:57]*** Cut start [16:49:57]*** Partial cut [16:49:57]*** CUTSNS_PIN = 1 [16:49:57]*** CUTSNS_PIN = 0 [16:49:58]*** Brake cut motor [16:49:58]Read from MH i2c: 01 [16:49:58]MH_I2C_Read... [16:49:58]*** Stop cut motor [16:49:58]*** Cut end [16:49:58]Read from MH i2c: 01 07 00 [16:49:58]MH_I2C_Read... [16:49:58]Read from MH i2c: 01 07 00 B9 00 00 00 00 00 00 FF 0F CE [16:49:58]process_action close_receipt done [16:49:58]requested_data is exist [16:49:58]produce_requested_data [16:49:58]requested_item fm.sn is exist - process it [16:49:58]wFMCommunicate request_size=4 [16:49:58]MH_SAM_APDU [16:49:58]CAPDU: 80 11 00 00 [16:49:58]Write to MH i2c: E2 08 00 BA 00 80 11 00 00 00 00 00 00 34 [16:49:58]Write i2c OK [16:49:58]MH_I2C_Read... [16:49:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:49:58]Read from MH i2c: E2 [16:49:58]MH_I2C_Read... [16:49:58]Read from MH i2c: E2 17 00 [16:49:58]MH_I2C_Read... [16:49:58]Read from MH i2c: E2 17 00 BA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 90 [16:49:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [16:49:58]wFMCommunicate OK [16:49:58]requested_item fd.num is exist - process it [16:49:58]SAM_PROTO_GetFieldsCounters [16:49:58]wFMCommunicate request_size=4 [16:49:58]MH_SAM_APDU [16:49:58]CAPDU: 80 13 00 00 [16:49:58]Write to MH i2c: E2 08 00 BB 00 80 13 00 00 00 00 00 00 37 [16:49:58]Write i2c OK [16:49:58]MH_I2C_Read... [16:49:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:49:58]Read from MH i2c: E2 [16:49:58]MH_I2C_Read... [16:49:58]Read from MH i2c: E2 62 00 [16:49:58]MH_I2C_Read... [16:49:58]Read from MH i2c: E2 62 00 BB 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 AD A3 00 00 0E 04 04 00 AB 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 6B [16:49:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 AD A3 00 00 0E 04 04 00 AB 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 [16:49:58]wFMCommunicate OK [16:49:58]SAM_PROTO_GetFieldsCounters done [16:49:58]requested_item shift.num is exist - process it [16:49:58]requested_item shift.opened is exist - process it [16:49:58]req_shift_opened [16:49:58]FM_GetShiftState [16:49:58]SAM_PROTO_GetShiftState [16:49:58]wFMCommunicate request_size=4 [16:49:58]MH_SAM_APDU [16:49:58]CAPDU: 80 13 01 00 [16:49:58]Write to MH i2c: E2 08 00 BC 00 80 13 01 00 00 00 00 00 39 [16:49:58]Write i2c OK [16:49:58]MH_I2C_Read... [16:49:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:49:58]Read from MH i2c: E2 [16:49:58]MH_I2C_Read... [16:49:58]Read from MH i2c: E2 0E 00 [16:49:58]MH_I2C_Read... [16:49:58]Read from MH i2c: E2 0E 00 BC 00 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 D5 [16:49:58]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [16:49:58]wFMCommunicate OK [16:49:58]SAM_PROTO_GetShiftState done [16:49:58]FM_GetShiftState done [16:49:58]req_shift_opened done [16:49:58]requested_item shift.open_date is exist - process it [16:49:58]req_shift_open_date [16:49:58]req_shift_open_date done [16:49:58]produce_requested_data done [16:49:58]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41901,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [16:49:58]process_action_free close_receipt [16:49:58]json_value_free [16:49:58]json_value_free done [16:49:58]process_json_proto returns [16:49:58]Send response to host [16:49:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41901,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [16:49:58]free response buf [16:49:58]execute_script done [16:49:58]execute_script returns [16:49:58]free content buf [16:49:58]Sock 11.Close socket [16:49:58]Sock 11.Thread stoped [16:50:00]ConnectInit Can't connect to host [16:50:00]accept exits with 8 [16:50:00]New connection [16:50:00]New thread 3067002212 created [16:50:00]Thread 3066858852 joined [16:50:00]Waiting for new connection... [16:50:00] Sock 8.Parse request [16:50:00]Sock 8.Check first char [16:50:00]Sock 8.First char is OK [16:50:00]request: POST /json_proto HTTP/1.0 [16:50:00]Method: POST [16:50:00]URL: /json_proto [16:50:00]Method is POST - this is cgi request [16:50:00]url: /json_proto [16:50:00]query_string will be loaded in cgi processing [16:50:00]execute_cgi json_proto POST (null) [16:50:00]execute_cgi path=json_proto method=POST [16:50:00]POST find Content-Length [16:50:00]Host: 172.17.43.132:8080 [16:50:00]Content-Length: 951 [16:50:00]Content-Type: application/json [16:50:00] [16:50:00]POST finish read [16:50:00]Found Content-Length = 951 [16:50:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183930", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001571030", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043A\u043B\u0443\u0431\u043D,\u043A\u0438\u0432\u0438 \u041F\u042D\u0422 1\u043B", "price" : 84.00, "quantity" : 1.000, "sum" : 84.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 224.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:50:00]execute_script... [16:50:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183930", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001571030", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043A\u043B\u0443\u0431\u043D,\u043A\u0438\u0432\u0438 \u041F\u042D\u0422 1\u043B", "price" : 84.00, "quantity" : 1.000, "sum" : 84.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 224.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:50:00]POST & json_proto [16:50:00]process_json_proto [16:50:00]json parsed OK: [16:50:00]protocol is kg_v1.0 [16:50:00]action value=close_receipt [16:50:00]process_action close_receipt [16:50:00]cmd_close_receipt [16:50:00]MH_GetDate [16:50:00]Write to MH i2c: F0 00 00 BD 00 AC [16:50:00]Write i2c OK [16:50:00]MH_I2C_Read... [16:50:00]Read from MH i2c: F0 [16:50:00]MH_I2C_Read... [16:50:00]Read from MH i2c: F0 09 00 [16:50:00]MH_I2C_Read... [16:50:00]Read from MH i2c: F0 09 00 BD 00 00 38 C8 A7 66 64 A3 A7 66 D6 [16:50:00]GetLastDocTimeStamp 1722271794 [16:50:00]current date 1722271800 [16:50:00]FM_GetShiftState [16:50:00]SAM_PROTO_GetShiftState [16:50:00]wFMCommunicate request_size=4 [16:50:00]MH_SAM_APDU [16:50:00]CAPDU: 80 13 01 00 [16:50:00]Write to MH i2c: E2 08 00 BE 00 80 13 01 00 00 00 00 00 3B [16:50:00]Write i2c OK [16:50:00]MH_I2C_Read... [16:50:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:00]Read from MH i2c: E2 [16:50:00]MH_I2C_Read... [16:50:00]Read from MH i2c: E2 0E 00 [16:50:00]MH_I2C_Read... [16:50:00]Read from MH i2c: E2 0E 00 BE 00 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 D7 [16:50:00]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [16:50:00]wFMCommunicate OK [16:50:00]SAM_PROTO_GetShiftState done [16:50:00]FM_GetShiftState done [16:50:00]opened in 1722211496 [16:50:00]opened+sec_in_day 1722297896 [16:50:00]quantity*price = 14000 [16:50:00]sum+1 = 14001 [16:50:00]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001571030 Вода ASU пит н.газ клубн,киви ПЭТ 1л 1.000 * 84.00 = 84.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 224.00 НСП 1% : 1.98 НДС 12% : 23.79 Наличными: 224.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 91 29.07.2024 16:50 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41902 ФПД: 146112000535568 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T165001&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41902&fm=146112000535568&tin=02508201610067®Number=0000000000092626&sum=22400 0 [16:50:01]StoreToDocumentArchive [16:50:01]shift 427 fd 41902 [16:50:01]save to /storage/0427/doc_00041902 [16:50:01]save last doc name /storage/0427/doc_00041902 to /storage/kkm_last_doc_name [16:50:01]save OK [16:50:01]Clear old archive folders... [16:50:01]ProcessDocumentItem done err = 0, tmpTLVsize=407 [16:50:01]tlvbuf is 00322B50 [16:50:01]SAM_PROTO_ClearQueue [16:50:01]wFMCommunicate request_size=4 [16:50:01]MH_SAM_APDU [16:50:01]CAPDU: 80 09 00 00 [16:50:01]Write to MH i2c: E2 08 00 CB 00 80 09 00 00 00 00 00 00 3D [16:50:01]Write i2c OK [16:50:01]MH_I2C_Read... [16:50:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:50:01]Read from MH i2c: E2 [16:50:01]MH_I2C_Read... [16:50:01]Read from MH i2c: E2 03 00 [16:50:01]MH_I2C_Read... [16:50:01]Read from MH i2c: E2 03 00 CB 00 00 90 00 3F [16:50:01]RAPDU: 90 00 [16:50:02]wFMCommunicate OK [16:50:02]SAM_PROTO_ClearQueue done [16:50:02]KKMCreateOFDPacket [16:50:02]OFDProtocolAddRootSTLVToBuf [16:50:02]FM_MakeSignedData [16:50:02]FM_MakeSignedData [16:50:02]SAM_PROTO_SignData [16:50:02]wFMCommunicate request_size=4 [16:50:02]MH_SAM_APDU [16:50:02]CAPDU: 80 0D 01 02 [16:50:02]Write to MH i2c: E2 08 00 CC 00 80 0D 01 02 00 00 00 00 45 [16:50:02]Write i2c OK [16:50:02]MH_I2C_Read... [16:50:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:50:02]Read from MH i2c: E2 [16:50:02]MH_I2C_Read... [16:50:02]Read from MH i2c: E2 03 00 [16:50:02]MH_I2C_Read... [16:50:02]Read from MH i2c: E2 03 00 CC 00 00 90 00 40 [16:50:02]RAPDU: 90 00 [16:50:02]wFMCommunicate OK [16:50:02]wFMCommunicate request_size=255 [16:50:02]MH_SAM_APDU [16:50:02]CAPDU: 80 0D 02 02 FA 03 00 97 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 20 00 00 00 00 13 04 06 00 D0 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 [16:50:02]Write to MH i2c: E2 02 01 CD 00 80 0D 02 02 FA 00 03 00 97 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 20 00 00 00 00 13 04 06 00 D0 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 B2 [16:50:02]Write i2c OK [16:50:02]MH_I2C_Read... [16:50:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:02]Read from MH i2c: E2 [16:50:02]MH_I2C_Read... [16:50:02]Read from MH i2c: E2 03 00 [16:50:02]MH_I2C_Read... [16:50:02]Read from MH i2c: E2 03 00 CD 00 00 90 00 41 [16:50:02]RAPDU: 90 00 [16:50:02]wFMCommunicate OK [16:50:02]wFMCommunicate request_size=166 [16:50:02]MH_SAM_APDU [16:50:02]CAPDU: 80 0D 02 02 A1 80 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 09 00 00 00 00 07 04 06 00 80 57 00 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 39 C8 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 AE A3 00 00 35 04 06 00 84 E3 59 E3 AC 10 [16:50:02]Write to MH i2c: E2 A9 00 CE 00 80 0D 02 02 A1 00 80 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 09 00 00 00 00 07 04 06 00 80 57 00 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 39 C8 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 AE A3 00 00 35 04 06 00 84 E3 59 E3 AC 10 00 00 5D [16:50:02]Write i2c OK [16:50:02]MH_I2C_Read... [16:50:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:02]Read from MH i2c: E2 [16:50:02]MH_I2C_Read... [16:50:02]Read from MH i2c: E2 03 00 [16:50:02]MH_I2C_Read... [16:50:02]Read from MH i2c: E2 03 00 CE 00 00 90 00 42 [16:50:02]RAPDU: 90 00 [16:50:02]wFMCommunicate OK [16:50:02]wFMCommunicate request_size=4 [16:50:02]MH_SAM_APDU [16:50:02]CAPDU: 80 0D 03 02 [16:50:02]Write to MH i2c: E2 08 00 CF 00 80 0D 03 02 00 00 00 00 4A [16:50:02]Write i2c OK [16:50:02]MH_I2C_Read... [16:50:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:50:03]Read from MH i2c: E2 [16:50:03]MH_I2C_Read... [16:50:03]Read from MH i2c: E2 0B 00 [16:50:03]MH_I2C_Read... [16:50:03]Read from MH i2c: E2 0B 00 CF 00 00 99 1A 54 9E FE 24 E8 BF 90 00 B9 [16:50:03]RAPDU: 99 1A 54 9E FE 24 E8 BF 90 00 [16:50:03]wFMCommunicate OK [16:50:03]SAM_PROTO_SignData done [16:50:03]FM_MakeSignedData done [16:50:03]CreateOFDProtocolMessage [16:50:03]wFMCommunicate request_size=4 [16:50:03]MH_SAM_APDU [16:50:03]CAPDU: 80 11 00 00 [16:50:03]Write to MH i2c: E2 08 00 D0 00 80 11 00 00 00 00 00 00 4A [16:50:03]Write i2c OK [16:50:03]MH_I2C_Read... [16:50:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:03]Read from MH i2c: E2 [16:50:03]MH_I2C_Read... [16:50:03]Read from MH i2c: E2 17 00 [16:50:03]MH_I2C_Read... [16:50:03]Read from MH i2c: E2 17 00 D0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 A6 [16:50:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [16:50:03]wFMCommunicate OK [16:50:03]CreateOFDProtocolMessage done [16:50:03]OFDSenderStorePacket 41902 [16:50:03]StoreOFDPacket docnum=41902 [16:50:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 AB 01 00 00 8C 7E A3 01 D4 DD 5A 03 01 00 03 00 97 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 20 00 00 00 00 13 04 06 00 D0 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 09 00 00 00 00 07 04 06 00 80 57 00 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 39 C8 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 AE A3 00 00 35 04 06 00 84 E3 59 E3 AC 10 99 1A 54 9E FE 24 E8 BF [16:50:03]CheckFolder [16:50:03]dirname=/storage/ofd_packets [16:50:03]CheckFolder done [16:50:03]ProducePacketName [16:50:03]name=ofd_packets/00041902 [16:50:03]NVStorageSaveData ofd_packets/00041902 [16:50:03]File name is /storage/ofd_packets/00041902 [16:50:03]Write 457 bytes [16:50:03]NVStorageSaveData done [16:50:03]OFDSenderStorePacket done [16:50:03]KKMCreateOFDPacket done [16:50:03]NVStorageSaveData kkm_last_timestamp [16:50:03]File name is /storage/kkm_last_timestamp [16:50:03]Write 4 bytes [16:50:03]NVStorageSaveData done [16:50:03]ExternCall_PrintAddStr [16:50:03]wPrintStart [16:50:03]Write to MH i2c: 01 00 00 D1 00 D1 [16:50:03]Write i2c OK [16:50:03]MH_I2C_Read... [16:50:03]Read from MH i2c: 01 [16:50:03]MH_I2C_Read... [16:50:03]Read from MH i2c: 01 07 00 [16:50:03]MH_I2C_Read... [16:50:03]Read from MH i2c: 01 07 00 D1 00 00 00 00 00 00 FF 0F E6 [16:50:03]RasterBufferAndPrint [16:50:03]line Счет N : (3)183930 [16:50:03]line ИНН: 02508201610067 [16:50:03]line Контрольно-Кассовый Чек [16:50:03]line ПРОДАЖА [16:50:03]line Товар: 48743587 [16:50:03]line Сигареты Winston XStyle Silver [16:50:03]line 1.000 * 140.00 [16:50:03]line = 140.00 [16:50:03]line НДС 12% НСП 1% [16:50:03]line > о реализуемом товаре [16:50:03]line Товар: 4870001571030 [16:50:03]line Вода ASU пит н.газ клубн,киви ПЭТ 1л [16:50:03]line 1.000 * 84.00 [16:50:03]line = 84.00 [16:50:03]line НДС 12% НСП 1% [16:50:03]line > о реализуемом товаре [16:50:03]line ИТОГО: 224.00 [16:50:03]line НСП 1% : 1.98 [16:50:03]line НДС 12% : 23.79 [16:50:03]line Наличными: 224.00 [16:50:03]line Безнал.: 0.00 [16:50:03]line Место: АЗС № 97 "Партнер Нефть" [16:50:03]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [16:50:03]line СНО: Общий режим [16:50:03]line Чек 91 29.07.2024 16:50 [16:50:03]line Смена: 427 ФФД: 1.0 [16:50:03]line ЗНМ: 0300000053 [16:50:03]line РНМ: 0000000000092626 [16:50:03]line Версия ККМ: 001 [16:50:03]line ФМ: 0000000000874958 [16:50:03]line ФД: 41902 [16:50:03]line ФПД: 146112000535568 [16:50:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T165001&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41902&fm=146112000535568&tin=02508201610067®Number=0000000000092626&sum=22400 [16:50:03]line 0 [16:50:03]OFD Sender: Processing packet 41896 [packets to send 63, broken 56] [16:50:03]ProducePacketName [16:50:03]name=ofd_packets/00041896 [16:50:03]OFD Sender: To server: pG, [16:50:03]CommunicateWithHost lk.salyk.kg:30040 [16:50:03]ConnectInit lk.salyk.kg [16:50:03]written 0, free lines is 4095 [16:50:03]Write to MH i2c: 01 00 00 01 01 02 [16:50:03]Write i2c OK [16:50:03]MH_I2C_Read... [16:50:03]Read from MH i2c: 01 [16:50:03]MH_I2C_Read... [16:50:03]Read from MH i2c: 01 07 00 [16:50:03]MH_I2C_Read... [16:50:03]Read from MH i2c: 01 07 00 01 01 00 00 00 00 00 B2 0C C7 [16:50:03]RasterBufferAndPrint [16:50:03]line [16:50:03]line [16:50:03]line [16:50:03]line [16:50:03]line [16:50:03]written 0, free lines is 3284 [16:50:03]MH_Cut [16:50:03]Write to MH i2c: D1 01 00 08 01 01 DB [16:50:03]Write i2c OK [16:50:03]MH_I2C_Read... [16:50:03]Read from MH i2c: D1 [16:50:03]MH_I2C_Read... [16:50:03]Read from MH i2c: D1 01 00 [16:50:03]MH_I2C_Read... [16:50:03]Read from MH i2c: D1 01 00 08 01 00 DA [16:50:03]Write to MH i2c: 01 00 00 09 01 0A [16:50:03]Write i2c OK [16:50:03]MH_I2C_Read... [16:50:04]*** Cut start [16:50:04]*** Partial cut [16:50:04]*** CUTSNS_PIN = 1 [16:50:04]*** CUTSNS_PIN = 0 [16:50:04]*** Brake cut motor [16:50:05]ConnectInit Can't connect to host [16:50:05]Read from MH i2c: 01 [16:50:05]MH_I2C_Read... [16:50:05]*** Stop cut motor [16:50:05]*** Cut end [16:50:05]Read from MH i2c: 01 07 00 [16:50:05]MH_I2C_Read... [16:50:05]Read from MH i2c: 01 07 00 09 01 00 00 00 00 00 FF 0F 1F [16:50:05]process_action close_receipt done [16:50:05]requested_data is exist [16:50:05]produce_requested_data [16:50:05]requested_item fm.sn is exist - process it [16:50:05]wFMCommunicate request_size=4 [16:50:05]MH_SAM_APDU [16:50:05]CAPDU: 80 11 00 00 [16:50:05]Write to MH i2c: E2 08 00 0A 01 80 11 00 00 00 00 00 00 85 [16:50:05]Write i2c OK [16:50:05]MH_I2C_Read... [16:50:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:05]Read from MH i2c: E2 [16:50:05]MH_I2C_Read... [16:50:05]Read from MH i2c: E2 17 00 [16:50:05]MH_I2C_Read... [16:50:05]Read from MH i2c: E2 17 00 0A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 E1 [16:50:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [16:50:05]wFMCommunicate OK [16:50:05]requested_item fd.num is exist - process it [16:50:05]SAM_PROTO_GetFieldsCounters [16:50:05]wFMCommunicate request_size=4 [16:50:05]MH_SAM_APDU [16:50:05]CAPDU: 80 13 00 00 [16:50:05]Write to MH i2c: E2 08 00 0B 01 80 13 00 00 00 00 00 00 88 [16:50:05]Write i2c OK [16:50:05]MH_I2C_Read... [16:50:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:50:05]Read from MH i2c: E2 [16:50:05]MH_I2C_Read... [16:50:05]Read from MH i2c: E2 62 00 [16:50:05]MH_I2C_Read... [16:50:05]Read from MH i2c: E2 62 00 0B 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 AE A3 00 00 0E 04 04 00 AB 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 C0 [16:50: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 AE A3 00 00 0E 04 04 00 AB 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 [16:50:05]wFMCommunicate OK [16:50:05]SAM_PROTO_GetFieldsCounters done [16:50:05]requested_item shift.num is exist - process it [16:50:05]requested_item shift.opened is exist - process it [16:50:05]req_shift_opened [16:50:05]FM_GetShiftState [16:50:05]SAM_PROTO_GetShiftState [16:50:05]wFMCommunicate request_size=4 [16:50:05]MH_SAM_APDU [16:50:05]CAPDU: 80 13 01 00 [16:50:05]Write to MH i2c: E2 08 00 0C 01 80 13 01 00 00 00 00 00 8A [16:50:05]Write i2c OK [16:50:05]MH_I2C_Read... [16:50:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:05]Read from MH i2c: E2 [16:50:05]MH_I2C_Read... [16:50:05]Read from MH i2c: E2 0E 00 [16:50:05]MH_I2C_Read... [16:50:05]Read from MH i2c: E2 0E 00 0C 01 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 26 [16:50:05]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [16:50:05]wFMCommunicate OK [16:50:05]SAM_PROTO_GetShiftState done [16:50:05]FM_GetShiftState done [16:50:05]req_shift_opened done [16:50:05]requested_item shift.open_date is exist - process it [16:50:05]req_shift_open_date [16:50:05]req_shift_open_date done [16:50:05]produce_requested_data done [16:50:05]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41902,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [16:50:05]process_action_free close_receipt [16:50:05]json_value_free [16:50:05]json_value_free done [16:50:05]process_json_proto returns [16:50:05]Send response to host [16:50:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41902,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [16:50:05]free response buf [16:50:05]execute_script done [16:50:05]execute_script returns [16:50:05]free content buf [16:50:05]Sock 8.Close socket [16:50:05]Sock 8.Thread stoped [16:50:06]accept exits with 11 [16:50:06]New connection [16:50:06]New thread 3066858852 created [16:50:06]Thread 3067002212 joined [16:50:06]Waiting for new connection... [16:50:06] Sock 11.Parse request [16:50:06]Sock 11.Check first char [16:50:06]Sock 11.First char is OK [16:50:06]request: POST /json_proto HTTP/1.0 [16:50:06]Method: POST [16:50:06]URL: /json_proto [16:50:06]Method is POST - this is cgi request [16:50:06]url: /json_proto [16:50:06]query_string will be loaded in cgi processing [16:50:06]execute_cgi json_proto POST (null) [16:50:06]execute_cgi path=json_proto method=POST [16:50:06]POST find Content-Length [16:50:06]Host: 172.17.43.132:8080 [16:50:06]Content-Length: 1164 [16:50:06]Content-Type: application/json [16:50:06] [16:50:06]POST finish read [16:50:06]Found Content-Length = 1164 [16:50:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183931", "tax_sys" : 0, "items" : [ { "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 0,45 \u0436/\u0431", "price" : 95.00, "quantity" : 2.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 2.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091522", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Esse Blue", "price" : 148.00, "quantity" : 1.000, "sum" : 148.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 508.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:50:06]execute_script... [16:50:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183931", "tax_sys" : 0, "items" : [ { "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 0,45 \u0436/\u0431", "price" : 95.00, "quantity" : 2.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 2.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091522", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Esse Blue", "price" : 148.00, "quantity" : 1.000, "sum" : 148.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 508.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:50:06]POST & json_proto [16:50:06]process_json_proto [16:50:06]json parsed OK: [16:50:06]protocol is kg_v1.0 [16:50:06]action value=close_receipt [16:50:06]process_action close_receipt [16:50:06]cmd_close_receipt [16:50:06]MH_GetDate [16:50:06]Write to MH i2c: F0 00 00 0D 01 FD [16:50:06]Write i2c OK [16:50:06]MH_I2C_Read... [16:50:06]Read from MH i2c: F0 [16:50:06]MH_I2C_Read... [16:50:06]Read from MH i2c: F0 09 00 [16:50:06]MH_I2C_Read... [16:50:06]Read from MH i2c: F0 09 00 0D 01 00 3F C8 A7 66 64 A3 A7 66 2E [16:50:06]GetLastDocTimeStamp 1722271801 [16:50:06]current date 1722271807 [16:50:06]FM_GetShiftState [16:50:06]SAM_PROTO_GetShiftState [16:50:06]wFMCommunicate request_size=4 [16:50:06]MH_SAM_APDU [16:50:06]CAPDU: 80 13 01 00 [16:50:06]Write to MH i2c: E2 08 00 0E 01 80 13 01 00 00 00 00 00 8C [16:50:06]Write i2c OK [16:50:06]MH_I2C_Read... [16:50:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:06]Read from MH i2c: E2 [16:50:06]MH_I2C_Read... [16:50:06]Read from MH i2c: E2 0E 00 [16:50:06]MH_I2C_Read... [16:50:06]Read from MH i2c: E2 0E 00 0E 01 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 28 [16:50:06]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [16:50:06]wFMCommunicate OK [16:50:06]SAM_PROTO_GetShiftState done [16:50:06]FM_GetShiftState done [16:50:06]opened in 1722211496 [16:50:06]opened+sec_in_day 1722297896 [16:50:06]quantity*price = 19000 [16:50:06]sum+1 = 19001 [16:50:06]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4600682557456 Напиток FLash up energy эн ж/б 0,5/0,45л 2.000 * 85.00 = 170.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4640030091522 Сигареты Esse Blue 1.000 * 148.00 = 148.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 508.00 НСП 1% : 4.49 НДС 12% : 53.95 Наличными: 508.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 92 29.07.2024 16:50 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41903 ФПД: 234397974841471 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T165007&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41903&fm=234397974841471&tin=02508201610067®Number=0000000000092626&sum=50800 0 [16:50:09]StoreToDocumentArchive [16:50:09]shift 427 fd 41903 [16:50:09]save to /storage/0427/doc_00041903 [16:50:09]save last doc name /storage/0427/doc_00041903 to /storage/kkm_last_doc_name [16:50:09]save OK [16:50:09]Clear old archive folders... [16:50:09]ProcessDocumentItem done err = 0, tmpTLVsize=510 [16:50:09]tlvbuf is 002FC3C0 [16:50:09]SAM_PROTO_ClearQueue [16:50:09]wFMCommunicate request_size=4 [16:50:09]MH_SAM_APDU [16:50:09]CAPDU: 80 09 00 00 [16:50:09]Write to MH i2c: E2 08 00 1B 01 80 09 00 00 00 00 00 00 8E [16:50:09]Write i2c OK [16:50:09]MH_I2C_Read... [16:50:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:50:09]Read from MH i2c: E2 [16:50:09]MH_I2C_Read... [16:50:09]Read from MH i2c: E2 03 00 [16:50:09]MH_I2C_Read... [16:50:09]Read from MH i2c: E2 03 00 1B 01 00 90 00 90 [16:50:09]RAPDU: 90 00 [16:50:09]wFMCommunicate OK [16:50:09]SAM_PROTO_ClearQueue done [16:50:09]KKMCreateOFDPacket [16:50:09]OFDProtocolAddRootSTLVToBuf [16:50:09]FM_MakeSignedData [16:50:09]FM_MakeSignedData [16:50:09]SAM_PROTO_SignData [16:50:09]wFMCommunicate request_size=4 [16:50:09]MH_SAM_APDU [16:50:09]CAPDU: 80 0D 01 02 [16:50:09]Write to MH i2c: E2 08 00 1C 01 80 0D 01 02 00 00 00 00 96 [16:50:09]Write i2c OK [16:50:09]MH_I2C_Read... [16:50:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:50:09]Read from MH i2c: E2 [16:50:09]MH_I2C_Read... [16:50:09]Read from MH i2c: E2 03 00 [16:50:09]MH_I2C_Read... [16:50:09]Read from MH i2c: E2 03 00 1C 01 00 90 00 91 [16:50:09]RAPDU: 90 00 [16:50:09]wFMCommunicate OK [16:50:09]wFMCommunicate request_size=255 [16:50:09]MH_SAM_APDU [16:50:09]CAPDU: 80 0D 02 02 FA 03 00 FE 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 [16:50:09]Write to MH i2c: E2 02 01 1D 01 80 0D 02 02 FA 00 03 00 FE 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 00 00 9F [16:50:09]Write i2c OK [16:50:09]MH_I2C_Read... [16:50:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:10]Read from MH i2c: E2 [16:50:10]MH_I2C_Read... [16:50:10]Read from MH i2c: E2 03 00 [16:50:10]MH_I2C_Read... [16:50:10]Read from MH i2c: E2 03 00 1D 01 00 90 00 92 [16:50:10]RAPDU: 90 00 [16:50:10]wFMCommunicate OK [16:50:10]wFMCommunicate request_size=255 [16:50:10]MH_SAM_APDU [16:50:10]CAPDU: 80 0D 02 02 FA 01 23 04 5E 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 35 32 32 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 39 00 00 00 00 13 04 06 00 D0 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 C6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 15 00 00 00 00 07 04 06 00 70 C6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 3F C8 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 [16:50:10]Write to MH i2c: E2 02 01 1E 01 80 0D 02 02 FA 00 01 23 04 5E 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 35 32 32 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 39 00 00 00 00 13 04 06 00 D0 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 C6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 15 00 00 00 00 07 04 06 00 70 C6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 3F C8 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 00 00 DA [16:50:10]Write i2c OK [16:50:10]MH_I2C_Read... [16:50:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:10]Read from MH i2c: E2 [16:50:10]MH_I2C_Read... [16:50:10]Read from MH i2c: E2 03 00 [16:50:10]MH_I2C_Read... [16:50:10]Read from MH i2c: E2 03 00 1E 01 00 90 00 93 [16:50:10]RAPDU: 90 00 [16:50:10]wFMCommunicate OK [16:50:10]wFMCommunicate request_size=19 [16:50:10]MH_SAM_APDU [16:50:10]CAPDU: 80 0D 02 02 0E AF A3 00 00 35 04 06 00 D5 2F 08 06 C8 7F [16:50:10]Write to MH i2c: E2 16 00 1F 01 80 0D 02 02 0E 00 AF A3 00 00 35 04 06 00 D5 2F 08 06 C8 7F 00 00 A0 [16:50:10]Write i2c OK [16:50:10]MH_I2C_Read... [16:50:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:10]Read from MH i2c: E2 [16:50:10]MH_I2C_Read... [16:50:10]Read from MH i2c: E2 03 00 [16:50:10]MH_I2C_Read... [16:50:10]Read from MH i2c: E2 03 00 1F 01 00 90 00 94 [16:50:10]RAPDU: 90 00 [16:50:10]wFMCommunicate OK [16:50:10]wFMCommunicate request_size=4 [16:50:10]MH_SAM_APDU [16:50:10]CAPDU: 80 0D 03 02 [16:50:10]Write to MH i2c: E2 08 00 20 01 80 0D 03 02 00 00 00 00 9C [16:50:10]Write i2c OK [16:50:10]MH_I2C_Read... [16:50:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:50:10]Read from MH i2c: E2 [16:50:10]MH_I2C_Read... [16:50:10]Read from MH i2c: E2 0B 00 [16:50:10]MH_I2C_Read... [16:50:10]Read from MH i2c: E2 0B 00 20 01 00 51 39 EA 39 87 BC 98 F7 90 00 1C [16:50:10]RAPDU: 51 39 EA 39 87 BC 98 F7 90 00 [16:50:10]wFMCommunicate OK [16:50:10]SAM_PROTO_SignData done [16:50:10]FM_MakeSignedData done [16:50:10]CreateOFDProtocolMessage [16:50:10]wFMCommunicate request_size=4 [16:50:10]MH_SAM_APDU [16:50:10]CAPDU: 80 11 00 00 [16:50:10]Write to MH i2c: E2 08 00 21 01 80 11 00 00 00 00 00 00 9C [16:50:10]Write i2c OK [16:50:10]MH_I2C_Read... [16:50:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:10]Read from MH i2c: E2 [16:50:10]MH_I2C_Read... [16:50:10]Read from MH i2c: E2 17 00 [16:50:10]MH_I2C_Read... [16:50:10]Read from MH i2c: E2 17 00 21 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 F8 [16:50:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [16:50:10]wFMCommunicate OK [16:50:10]CreateOFDProtocolMessage done [16:50:10]OFDSenderStorePacket 41903 [16:50:10]StoreOFDPacket docnum=41903 [16:50:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 12 02 00 00 4D 9C 0A 02 7B 3D 5A 03 01 00 03 00 FE 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 35 32 32 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 39 00 00 00 00 13 04 06 00 D0 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 C6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 15 00 00 00 00 07 04 06 00 70 C6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 3F C8 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 AF A3 00 00 35 04 06 00 D5 2F 08 06 C8 7F 51 39 EA 39 87 BC 98 F7 [16:50:10]CheckFolder [16:50:10]dirname=/storage/ofd_packets [16:50:10]CheckFolder done [16:50:10]ProducePacketName [16:50:10]name=ofd_packets/00041903 [16:50:10]NVStorageSaveData ofd_packets/00041903 [16:50:10]File name is /storage/ofd_packets/00041903 [16:50:10]Write 560 bytes [16:50:10]NVStorageSaveData done [16:50:10]OFDSenderStorePacket done [16:50:10]KKMCreateOFDPacket done [16:50:10]NVStorageSaveData kkm_last_timestamp [16:50:10]File name is /storage/kkm_last_timestamp [16:50:10]Write 4 bytes [16:50:10]NVStorageSaveData done [16:50:10]ExternCall_PrintAddStr [16:50:10]wPrintStart [16:50:10]Write to MH i2c: 01 00 00 22 01 23 [16:50:10]Write i2c OK [16:50:10]MH_I2C_Read... [16:50:10]Read from MH i2c: 01 [16:50:10]MH_I2C_Read... [16:50:10]Read from MH i2c: 01 07 00 [16:50:10]MH_I2C_Read... [16:50:10]Read from MH i2c: 01 07 00 22 01 00 00 00 00 00 FF 0F 38 [16:50:10]RasterBufferAndPrint [16:50:10]line Счет N : (3)183931 [16:50:10]line ИНН: 02508201610067 [16:50:10]line Контрольно-Кассовый Чек [16:50:10]line ПРОДАЖА [16:50:10]line Товар: 4700000481453 [16:50:10]line Напиток энерг Nitro Max 0,45 ж/б [16:50:10]line 2.000 * 95.00 [16:50:10]line = 190.00 [16:50:10]line НДС 12% НСП 1% [16:50:10]line > о реализуемом товаре [16:50:10]line Товар: 4600682557456 [16:50:10]line Напиток FLash up energy эн ж/б 0,5/0,45л [16:50:10]line 2.000 * 85.00 [16:50:10]line = 170.00 [16:50:10]line НДС 12% НСП 1% [16:50:10]line > о реализуемом товаре [16:50:10]line Товар: 4640030091522 [16:50:10]line Сигареты Esse Blue [16:50:10]line 1.000 * 148.00 [16:50:10]line = 148.00 [16:50:10]line НДС 12% НСП 1% [16:50:10]line > о реализуемом товаре [16:50:11]line ИТОГО: 508.00 [16:50:11]line НСП 1% : 4.49 [16:50:11]line НДС 12% : 53.95 [16:50:11]line Наличными: 508.00 [16:50:11]OFD Sender: Processing packet 41896 [packets to send 64, broken 56] [16:50:11]line Безнал.: 0.00 [16:50:11]ProducePacketName [16:50:11]line Место: АЗС № 97 "Партнер Нефть" [16:50:11]name=ofd_packets/00041896 [16:50:11]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [16:50:11]OFD Sender: To server: pG, [16:50:11]CommunicateWithHost lk.salyk.kg:30040 [16:50:11]line СНО: Общий режим [16:50:11]ConnectInit lk.salyk.kg [16:50:11]line Чек 92 29.07.2024 16:50 [16:50:11]line Смена: 427 ФФД: 1.0 [16:50:11]line ЗНМ: 0300000053 [16:50:11]line РНМ: 0000000000092626 [16:50:11]line Версия ККМ: 001 [16:50:11]line ФМ: 0000000000874958 [16:50:11]line ФД: 41903 [16:50:11]line ФПД: 234397974841471 [16:50:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T165007&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41903&fm=234397974841471&tin=02508201610067®Number=0000000000092626&sum=50800 [16:50:11]line 0 [16:50:11]written 0, free lines is 4095 [16:50:11]Write to MH i2c: 01 00 00 58 01 59 [16:50:11]Write i2c OK [16:50:11]MH_I2C_Read... [16:50:11]Read from MH i2c: 01 [16:50:11]MH_I2C_Read... [16:50:11]Read from MH i2c: 01 07 00 [16:50:11]MH_I2C_Read... [16:50:11]Read from MH i2c: 01 07 00 58 01 00 00 00 00 00 6D 0C D9 [16:50:11]RasterBufferAndPrint [16:50:11]line [16:50:11]line [16:50:11]line [16:50:11]line [16:50:11]line [16:50:11]written 0, free lines is 3217 [16:50:11]MH_Cut [16:50:11]Write to MH i2c: D1 01 00 5F 01 01 32 [16:50:11]Write i2c OK [16:50:11]MH_I2C_Read... [16:50:11]Read from MH i2c: D1 [16:50:11]MH_I2C_Read... [16:50:11]Read from MH i2c: D1 01 00 [16:50:11]MH_I2C_Read... [16:50:11]Read from MH i2c: D1 01 00 5F 01 00 31 [16:50:11]Write to MH i2c: 01 00 00 60 01 61 [16:50:11]Write i2c OK [16:50:11]MH_I2C_Read... [16:50:12]*** Cut start [16:50:12]*** Partial cut [16:50:12]*** CUTSNS_PIN = 1 [16:50:12]*** CUTSNS_PIN = 0 [16:50:12]*** Brake cut motor [16:50:13]Read from MH i2c: 01 [16:50:13]MH_I2C_Read... [16:50:13]*** Stop cut motor [16:50:13]*** Cut end [16:50:13]Read from MH i2c: 01 07 00 [16:50:13]MH_I2C_Read... [16:50:13]Read from MH i2c: 01 07 00 60 01 00 00 00 00 00 FF 0F 76 [16:50:13]process_action close_receipt done [16:50:13]requested_data is exist [16:50:13]produce_requested_data [16:50:13]requested_item fm.sn is exist - process it [16:50:13]wFMCommunicate request_size=4 [16:50:13]MH_SAM_APDU [16:50:13]CAPDU: 80 11 00 00 [16:50:13]Write to MH i2c: E2 08 00 61 01 80 11 00 00 00 00 00 00 DC [16:50:13]Write i2c OK [16:50:13]MH_I2C_Read... [16:50:13]Read from MH i2c: E2 [16:50:13]MH_I2C_Read... [16:50:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:13]Read from MH i2c: E2 17 00 [16:50:13]MH_I2C_Read... [16:50:13]Read from MH i2c: E2 17 00 61 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 38 [16:50:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [16:50:13]wFMCommunicate OK [16:50:13]requested_item fd.num is exist - process it [16:50:13]SAM_PROTO_GetFieldsCounters [16:50:13]wFMCommunicate request_size=4 [16:50:13]MH_SAM_APDU [16:50:13]CAPDU: 80 13 00 00 [16:50:13]Write to MH i2c: E2 08 00 62 01 80 13 00 00 00 00 00 00 DF [16:50:13]Write i2c OK [16:50:13]MH_I2C_Read... [16:50:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:50:13]Read from MH i2c: E2 [16:50:13]MH_I2C_Read... [16:50:13]Read from MH i2c: E2 62 00 [16:50:13]MH_I2C_Read... [16:50:13]Read from MH i2c: E2 62 00 62 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 AF A3 00 00 0E 04 04 00 AB 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 [16:50: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 AF A3 00 00 0E 04 04 00 AB 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 [16:50:13]wFMCommunicate OK [16:50:13]SAM_PROTO_GetFieldsCounters done [16:50:13]requested_item shift.num is exist - process it [16:50:13]requested_item shift.opened is exist - process it [16:50:13]req_shift_opened [16:50:13]FM_GetShiftState [16:50:13]SAM_PROTO_GetShiftState [16:50:13]wFMCommunicate request_size=4 [16:50:13]MH_SAM_APDU [16:50:13]CAPDU: 80 13 01 00 [16:50:13]Write to MH i2c: E2 08 00 63 01 80 13 01 00 00 00 00 00 E1 [16:50:13]Write i2c OK [16:50:13]MH_I2C_Read... [16:50:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:13]Read from MH i2c: E2 [16:50:13]MH_I2C_Read... [16:50:13]Read from MH i2c: E2 0E 00 [16:50:13]MH_I2C_Read... [16:50:13]Read from MH i2c: E2 0E 00 63 01 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 7D [16:50:13]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [16:50:13]wFMCommunicate OK [16:50:13]SAM_PROTO_GetShiftState done [16:50:13]FM_GetShiftState done [16:50:13]req_shift_opened done [16:50:13]requested_item shift.open_date is exist - process it [16:50:13]req_shift_open_date [16:50:13]req_shift_open_date done [16:50:13]produce_requested_data done [16:50:13]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41903,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [16:50:13]process_action_free close_receipt [16:50:13]json_value_free [16:50:13]json_value_free done [16:50:13]process_json_proto returns [16:50:13]Send response to host [16:50:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41903,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [16:50:13]free response buf [16:50:13]execute_script done [16:50:13]execute_script returns [16:50:13]free content buf [16:50:13]Sock 11.Close socket [16:50:13]Sock 11.Thread stoped [16:50:14]accept exits with 8 [16:50:14]New connection [16:50:14]New thread 3067002212 created [16:50:14]Thread 3066858852 joined [16:50:14]Waiting for new connection... [16:50:14] Sock 8.Parse request [16:50:14]Sock 8.Check first char [16:50:14]Sock 8.First char is OK [16:50:14]request: POST /json_proto HTTP/1.0 [16:50:14]Method: POST [16:50:14]URL: /json_proto [16:50:14]Method is POST - this is cgi request [16:50:14]url: /json_proto [16:50:14]query_string will be loaded in cgi processing [16:50:14]execute_cgi json_proto POST (null) [16:50:14]execute_cgi path=json_proto method=POST [16:50:14]POST find Content-Length [16:50:14]Host: 172.17.43.132:8080 [16:50:14]Content-Length: 782 [16:50:14]Content-Type: application/json [16:50:14] [16:50:14]POST finish read [16:50:14]Found Content-Length = 782 [16:50:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183932", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:50:14]execute_script... [16:50: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 : (3)183932", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:50:14]POST & json_proto [16:50:14]process_json_proto [16:50:14]json parsed OK: [16:50:14]protocol is kg_v1.0 [16:50:14]action value=close_receipt [16:50:14]process_action close_receipt [16:50:14]cmd_close_receipt [16:50:14]MH_GetDate [16:50:14]Write to MH i2c: F0 00 00 64 01 54 [16:50:14]Write i2c OK [16:50:14]MH_I2C_Read... [16:50:14]Read from MH i2c: F0 [16:50:14]MH_I2C_Read... [16:50:14]Read from MH i2c: F0 09 00 [16:50:14]MH_I2C_Read... [16:50:14]Read from MH i2c: F0 09 00 64 01 00 46 C8 A7 66 64 A3 A7 66 8C [16:50:14]GetLastDocTimeStamp 1722271807 [16:50:14]current date 1722271814 [16:50:14]FM_GetShiftState [16:50:14]SAM_PROTO_GetShiftState [16:50:14]wFMCommunicate request_size=4 [16:50:14]MH_SAM_APDU [16:50:14]CAPDU: 80 13 01 00 [16:50:14]Write to MH i2c: E2 08 00 65 01 80 13 01 00 00 00 00 00 E3 [16:50:14]Write i2c OK [16:50:14]MH_I2C_Read... [16:50:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:14]Read from MH i2c: E2 [16:50:14]MH_I2C_Read... [16:50:14]Read from MH i2c: E2 0E 00 [16:50:14]MH_I2C_Read... [16:50:14]Read from MH i2c: E2 0E 00 65 01 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 7F [16:50:14]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [16:50:14]wFMCommunicate OK [16:50:14]SAM_PROTO_GetShiftState done [16:50:14]FM_GetShiftState done [16:50:14]opened in 1722211496 [16:50:14]opened+sec_in_day 1722297896 [16:50:14]quantity*price = 14000 [16:50:14]sum+1 = 14001 [16:50:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 0.00 Безнал.: 140.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 93 29.07.2024 16:50 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874958 ФД: 41904 ФПД: 25934789381233 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T165014&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41904&fm=25934789381233&tin=02508201610067®Number=0000000000092626&sum=14000 0 [16:50:16]StoreToDocumentArchive [16:50:16]shift 427 fd 41904 [16:50:16]save to /storage/0427/doc_00041904 [16:50:16]save last doc name /storage/0427/doc_00041904 to /storage/kkm_last_doc_name [16:50:16]save OK [16:50:16]Clear old archive folders... [16:50:16]ProcessDocumentItem done err = 0, tmpTLVsize=273 [16:50:16]tlvbuf is 00385610 [16:50:16]SAM_PROTO_ClearQueue [16:50:16]wFMCommunicate request_size=4 [16:50:16]MH_SAM_APDU [16:50:16]CAPDU: 80 09 00 00 [16:50:16]Write to MH i2c: E2 08 00 72 01 80 09 00 00 00 00 00 00 E5 [16:50:16]Write i2c OK [16:50:16]MH_I2C_Read... [16:50:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:50:16]Read from MH i2c: E2 [16:50:16]MH_I2C_Read... [16:50:16]Read from MH i2c: E2 03 00 [16:50:16]MH_I2C_Read... [16:50:16]Read from MH i2c: E2 03 00 72 01 00 90 00 E7 [16:50:16]RAPDU: 90 00 [16:50:16]wFMCommunicate OK [16:50:16]SAM_PROTO_ClearQueue done [16:50:16]KKMCreateOFDPacket [16:50:16]OFDProtocolAddRootSTLVToBuf [16:50:16]FM_MakeSignedData [16:50:16]FM_MakeSignedData [16:50:16]SAM_PROTO_SignData [16:50:16]wFMCommunicate request_size=4 [16:50:16]MH_SAM_APDU [16:50:16]CAPDU: 80 0D 01 02 [16:50:16]Write to MH i2c: E2 08 00 73 01 80 0D 01 02 00 00 00 00 ED [16:50:16]Write i2c OK [16:50:16]MH_I2C_Read... [16:50:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:50:16]Read from MH i2c: E2 [16:50:16]MH_I2C_Read... [16:50:16]Read from MH i2c: E2 03 00 [16:50:16]MH_I2C_Read... [16:50:16]Read from MH i2c: E2 03 00 73 01 00 90 00 E8 [16:50:16]RAPDU: 90 00 [16:50:16]wFMCommunicate OK [16:50:16]wFMCommunicate request_size=255 [16:50:16]MH_SAM_APDU [16:50:16]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 46 C8 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 [16:50:16]Write to MH i2c: E2 02 01 74 01 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 46 C8 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 00 00 06 [16:50:16]Write i2c OK [16:50:16]MH_I2C_Read... [16:50:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:17]Read from MH i2c: E2 [16:50:17]MH_I2C_Read... [16:50:17]Read from MH i2c: E2 03 00 [16:50:17]MH_I2C_Read... [16:50:17]Read from MH i2c: E2 03 00 74 01 00 90 00 E9 [16:50:17]RAPDU: 90 00 [16:50:17]wFMCommunicate OK [16:50:17]wFMCommunicate request_size=32 [16:50:17]MH_SAM_APDU [16:50:17]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 39 35 38 10 04 04 00 B0 A3 00 00 35 04 06 00 17 96 69 E8 8C 71 [16:50:17]Write to MH i2c: E2 23 00 75 01 80 0D 02 02 1B 00 30 30 30 38 37 34 39 35 38 10 04 04 00 B0 A3 00 00 35 04 06 00 17 96 69 E8 8C 71 00 00 A4 [16:50:17]Write i2c OK [16:50:17]MH_I2C_Read... [16:50:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:17]Read from MH i2c: E2 [16:50:17]MH_I2C_Read... [16:50:17]Read from MH i2c: E2 03 00 [16:50:17]MH_I2C_Read... [16:50:17]Read from MH i2c: E2 03 00 75 01 00 90 00 EA [16:50:17]RAPDU: 90 00 [16:50:17]wFMCommunicate OK [16:50:17]wFMCommunicate request_size=4 [16:50:17]MH_SAM_APDU [16:50:17]CAPDU: 80 0D 03 02 [16:50:17]Write to MH i2c: E2 08 00 76 01 80 0D 03 02 00 00 00 00 F2 [16:50:17]Write i2c OK [16:50:17]MH_I2C_Read... [16:50:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:50:17]Read from MH i2c: E2 [16:50:17]MH_I2C_Read... [16:50:17]Read from MH i2c: E2 0B 00 [16:50:17]MH_I2C_Read... [16:50:17]Read from MH i2c: E2 0B 00 76 01 00 C9 6D B2 2A 70 A8 A5 91 90 00 53 [16:50:17]RAPDU: C9 6D B2 2A 70 A8 A5 91 90 00 [16:50:17]wFMCommunicate OK [16:50:17]SAM_PROTO_SignData done [16:50:17]FM_MakeSignedData done [16:50:17]CreateOFDProtocolMessage [16:50:17]wFMCommunicate request_size=4 [16:50:17]MH_SAM_APDU [16:50:17]CAPDU: 80 11 00 00 [16:50:17]Write to MH i2c: E2 08 00 77 01 80 11 00 00 00 00 00 00 F2 [16:50:17]Write i2c OK [16:50:17]MH_I2C_Read... [16:50:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:17]Read from MH i2c: E2 [16:50:17]MH_I2C_Read... [16:50:17]Read from MH i2c: E2 17 00 [16:50:17]MH_I2C_Read... [16:50:17]Read from MH i2c: E2 17 00 77 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 4E [16:50:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [16:50:17]wFMCommunicate OK [16:50:17]CreateOFDProtocolMessage done [16:50:17]OFDSenderStorePacket 41904 [16:50:17]StoreOFDPacket docnum=41904 [16:50:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 25 01 00 00 06 97 1D 01 A7 A2 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 46 C8 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 B0 A3 00 00 35 04 06 00 17 96 69 E8 8C 71 C9 6D B2 2A 70 A8 A5 91 [16:50:17]CheckFolder [16:50:17]dirname=/storage/ofd_packets [16:50:17]CheckFolder done [16:50:17]ProducePacketName [16:50:17]name=ofd_packets/00041904 [16:50:17]NVStorageSaveData ofd_packets/00041904 [16:50:17]File name is /storage/ofd_packets/00041904 [16:50:17]Write 323 bytes [16:50:17]NVStorageSaveData done [16:50:17]OFDSenderStorePacket done [16:50:17]KKMCreateOFDPacket done [16:50:17]NVStorageSaveData kkm_last_timestamp [16:50:17]File name is /storage/kkm_last_timestamp [16:50:17]Write 4 bytes [16:50:17]NVStorageSaveData done [16:50:17]ExternCall_PrintAddStr [16:50:17]wPrintStart [16:50:17]Write to MH i2c: 01 00 00 78 01 79 [16:50:17]Write i2c OK [16:50:17]MH_I2C_Read... [16:50:17]Read from MH i2c: 01 [16:50:17]MH_I2C_Read... [16:50:17]Read from MH i2c: 01 07 00 [16:50:17]MH_I2C_Read... [16:50:17]Read from MH i2c: 01 07 00 78 01 00 00 00 00 00 FF 0F 8E [16:50:17]RasterBufferAndPrint [16:50:17]line Счет N : (3)183932 [16:50:17]line ИНН: 02508201610067 [16:50:17]line Контрольно-Кассовый Чек [16:50:17]line ПРОДАЖА [16:50:17]line Товар: 48743570 [16:50:17]line Сигареты Winston XStyle Blue [16:50:17]line 1.000 * 140.00 [16:50:17]line = 140.00 [16:50:17]line НДС 12% НСП 1% [16:50:17]line > о реализуемом товаре [16:50:17]line ИТОГО: 140.00 [16:50:17]line НСП 1% : 1.24 [16:50:17]line НДС 12% : 14.87 [16:50:17]line Наличными: 0.00 [16:50:17]line Безнал.: 140.00 [16:50:17]line Место: АЗС № 97 "Партнер Нефть" [16:50:17]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [16:50:17]line СНО: Общий режим [16:50:17]line Чек 93 29.07.2024 16:50 [16:50:17]line Смена: 427 ФФД: 1.0 [16:50:17]line ЗНМ: 0300000053 [16:50:17]line РНМ: 0000000000092626 [16:50:17]line Версия ККМ: 001 [16:50:17]line Платежная система: O! деньги [16:50:17]line ФМ: 0000000000874958 [16:50:17]line ФД: 41904 [16:50:17]line ФПД: 25934789381233 [16:50:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T165014&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41904&fm=25934789381233&tin=02508201610067®Number=0000000000092626&sum=14000 [16:50:17]line 0 [16:50:17]OFD Sender: Processing packet 41896 [packets to send 65, broken 56] [16:50:17]ProducePacketName [16:50:17]name=ofd_packets/00041896 [16:50:17]OFD Sender: To server: pG, [16:50:17]CommunicateWithHost lk.salyk.kg:30040 [16:50:17]ConnectInit lk.salyk.kg [16:50:17]written 0, free lines is 4095 [16:50:18]Write to MH i2c: 01 00 00 A2 01 A3 [16:50:18]Write i2c OK [16:50:18]MH_I2C_Read... [16:50:18]Read from MH i2c: 01 [16:50:18]MH_I2C_Read... [16:50:18]Read from MH i2c: 01 07 00 [16:50:18]MH_I2C_Read... [16:50:18]Read from MH i2c: 01 07 00 A2 01 00 00 00 00 00 00 0D B7 [16:50:18]RasterBufferAndPrint [16:50:18]line [16:50:18]line [16:50:18]line [16:50:18]line [16:50:18]line [16:50:18]written 0, free lines is 3371 [16:50:18]MH_Cut [16:50:18]Write to MH i2c: D1 01 00 A9 01 01 7C [16:50:18]Write i2c OK [16:50:18]MH_I2C_Read... [16:50:18]Read from MH i2c: D1 [16:50:18]MH_I2C_Read... [16:50:18]Read from MH i2c: D1 01 00 [16:50:18]MH_I2C_Read... [16:50:18]Read from MH i2c: D1 01 00 A9 01 00 7B [16:50:18]Write to MH i2c: 01 00 00 AA 01 AB [16:50:18]Write i2c OK [16:50:18]MH_I2C_Read... [16:50:18]*** Cut start [16:50:18]*** Partial cut [16:50:18]*** CUTSNS_PIN = 1 [16:50:18]*** CUTSNS_PIN = 0 [16:50:19]*** Brake cut motor [16:50:19]Read from MH i2c: 01 [16:50:19]MH_I2C_Read... [16:50:19]*** Stop cut motor [16:50:19]*** Cut end [16:50:19]Read from MH i2c: 01 07 00 [16:50:19]MH_I2C_Read... [16:50:19]Read from MH i2c: 01 07 00 AA 01 00 00 00 00 00 FF 0F C0 [16:50:19]process_action close_receipt done [16:50:19]requested_data is exist [16:50:19]produce_requested_data [16:50:19]requested_item fm.sn is exist - process it [16:50:19]wFMCommunicate request_size=4 [16:50:19]MH_SAM_APDU [16:50:19]CAPDU: 80 11 00 00 [16:50:19]Write to MH i2c: E2 08 00 AB 01 80 11 00 00 00 00 00 00 26 [16:50:19]Write i2c OK [16:50:19]MH_I2C_Read... [16:50:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:19]Read from MH i2c: E2 [16:50:19]MH_I2C_Read... [16:50:19]Read from MH i2c: E2 17 00 [16:50:19]MH_I2C_Read... [16:50:19]Read from MH i2c: E2 17 00 AB 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 82 [16:50:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [16:50:19]wFMCommunicate OK [16:50:19]requested_item fd.num is exist - process it [16:50:19]SAM_PROTO_GetFieldsCounters [16:50:19]wFMCommunicate request_size=4 [16:50:19]MH_SAM_APDU [16:50:19]CAPDU: 80 13 00 00 [16:50:19]Write to MH i2c: E2 08 00 AC 01 80 13 00 00 00 00 00 00 29 [16:50:19]Write i2c OK [16:50:19]MH_I2C_Read... [16:50:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:50:19]Read from MH i2c: E2 [16:50:19]MH_I2C_Read... [16:50:19]Read from MH i2c: E2 62 00 [16:50:19]MH_I2C_Read... [16:50:19]Read from MH i2c: E2 62 00 AC 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 B0 A3 00 00 0E 04 04 00 AB 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 [16:50: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 B0 A3 00 00 0E 04 04 00 AB 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 [16:50:19]wFMCommunicate OK [16:50:19]SAM_PROTO_GetFieldsCounters done [16:50:19]requested_item shift.num is exist - process it [16:50:19]requested_item shift.opened is exist - process it [16:50:19]req_shift_opened [16:50:19]FM_GetShiftState [16:50:19]SAM_PROTO_GetShiftState [16:50:19]wFMCommunicate request_size=4 [16:50:19]MH_SAM_APDU [16:50:19]CAPDU: 80 13 01 00 [16:50:19]Write to MH i2c: E2 08 00 AD 01 80 13 01 00 00 00 00 00 2B [16:50:19]Write i2c OK [16:50:19]MH_I2C_Read... [16:50:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:19]Read from MH i2c: E2 [16:50:19]MH_I2C_Read... [16:50:19]Read from MH i2c: E2 0E 00 [16:50:19]MH_I2C_Read... [16:50:19]Read from MH i2c: E2 0E 00 AD 01 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 C7 [16:50:19]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [16:50:20]wFMCommunicate OK [16:50:20]SAM_PROTO_GetShiftState done [16:50:20]FM_GetShiftState done [16:50:20]req_shift_opened done [16:50:20]requested_item shift.open_date is exist - process it [16:50:20]req_shift_open_date [16:50:20]req_shift_open_date done [16:50:20]produce_requested_data done [16:50:20]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41904,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [16:50:20]process_action_free close_receipt [16:50:20]json_value_free [16:50:20]json_value_free done [16:50:20]process_json_proto returns [16:50:20]Send response to host [16:50:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41904,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [16:50:20]free response buf [16:50:20]execute_script done [16:50:20]execute_script returns [16:50:20]free content buf [16:50:20]Sock 8.Close socket [16:50:20]Sock 8.Thread stoped [16:50:21]accept exits with 11 [16:50:21]New connection [16:50:21]New thread 3066858852 created [16:50:21]Thread 3067002212 joined [16:50:21]Waiting for new connection... [16:50:21] Sock 11.Parse request [16:50:21]Sock 11.Check first char [16:50:21]Sock 11.First char is OK [16:50:21]request: POST /json_proto HTTP/1.0 [16:50:21]Method: POST [16:50:21]URL: /json_proto [16:50:21]Method is POST - this is cgi request [16:50:21]url: /json_proto [16:50:21]query_string will be loaded in cgi processing [16:50:21]execute_cgi json_proto POST (null) [16:50:21]execute_cgi path=json_proto method=POST [16:50:21]POST find Content-Length [16:50:21]Host: 172.17.43.132:8080 [16:50:21]Content-Length: 630 [16:50:21]Content-Type: application/json [16:50:21] [16:50:21]POST finish read [16:50:21]Found Content-Length = 630 [16:50:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183933", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:50:21]execute_script... [16:50: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 : (3)183933", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:50:21]POST & json_proto [16:50:21]process_json_proto [16:50:21]json parsed OK: [16:50:21]protocol is kg_v1.0 [16:50:21]action value=close_receipt [16:50:21]process_action close_receipt [16:50:21]cmd_close_receipt [16:50:21]MH_GetDate [16:50:21]Write to MH i2c: F0 00 00 AE 01 9E [16:50:21]Write i2c OK [16:50:21]MH_I2C_Read... [16:50:21]Read from MH i2c: F0 [16:50:21]MH_I2C_Read... [16:50:21]Read from MH i2c: F0 09 00 [16:50:21]MH_I2C_Read... [16:50:21]Read from MH i2c: F0 09 00 AE 01 00 4D C8 A7 66 64 A3 A7 66 DD [16:50:21]GetLastDocTimeStamp 1722271814 [16:50:21]current date 1722271821 [16:50:21]FM_GetShiftState [16:50:21]SAM_PROTO_GetShiftState [16:50:21]wFMCommunicate request_size=4 [16:50:21]MH_SAM_APDU [16:50:21]CAPDU: 80 13 01 00 [16:50:21]Write to MH i2c: E2 08 00 AF 01 80 13 01 00 00 00 00 00 2D [16:50:21]Write i2c OK [16:50:21]MH_I2C_Read... [16:50:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:21]Read from MH i2c: E2 [16:50:21]MH_I2C_Read... [16:50:21]Read from MH i2c: E2 0E 00 [16:50:21]MH_I2C_Read... [16:50:21]Read from MH i2c: E2 0E 00 AF 01 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 C9 [16:50:21]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [16:50:21]wFMCommunicate OK [16:50:21]SAM_PROTO_GetShiftState done [16:50:21]FM_GetShiftState done [16:50:21]opened in 1722211496 [16:50:21]opened+sec_in_day 1722297896 [16:50:21]quantity*price = 5000 [16:50:21]sum+1 = 5001 [16:50:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 94 29.07.2024 16:50 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41905 ФПД: 200696182945828 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T165021&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41905&fm=200696182945828&tin=02508201610067®Number=0000000000092626&sum=5000 0 [16:50:23]StoreToDocumentArchive [16:50:23]shift 427 fd 41905 [16:50:23]save to /storage/0427/doc_00041905 [16:50:23]save last doc name /storage/0427/doc_00041905 to /storage/kkm_last_doc_name [16:50:23]save OK [16:50:23]Clear old archive folders... [16:50:23]ProcessDocumentItem done err = 0, tmpTLVsize=269 [16:50:23]tlvbuf is 0036FF50 [16:50:23]SAM_PROTO_ClearQueue [16:50:23]wFMCommunicate request_size=4 [16:50:23]MH_SAM_APDU [16:50:23]CAPDU: 80 09 00 00 [16:50:23]Write to MH i2c: E2 08 00 BC 01 80 09 00 00 00 00 00 00 2F [16:50:23]Write i2c OK [16:50:23]MH_I2C_Read... [16:50:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:50:23]Read from MH i2c: E2 [16:50:23]MH_I2C_Read... [16:50:23]Read from MH i2c: E2 03 00 [16:50:23]MH_I2C_Read... [16:50:23]Read from MH i2c: E2 03 00 BC 01 00 90 00 31 [16:50:23]RAPDU: 90 00 [16:50:23]wFMCommunicate OK [16:50:23]SAM_PROTO_ClearQueue done [16:50:23]KKMCreateOFDPacket [16:50:23]OFDProtocolAddRootSTLVToBuf [16:50:23]FM_MakeSignedData [16:50:23]FM_MakeSignedData [16:50:23]SAM_PROTO_SignData [16:50:23]wFMCommunicate request_size=4 [16:50:23]MH_SAM_APDU [16:50:23]CAPDU: 80 0D 01 02 [16:50:23]Write to MH i2c: E2 08 00 BD 01 80 0D 01 02 00 00 00 00 37 [16:50:23]Write i2c OK [16:50:23]MH_I2C_Read... [16:50:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:50:23]Read from MH i2c: E2 [16:50:23]MH_I2C_Read... [16:50:23]Read from MH i2c: E2 03 00 [16:50:23]MH_I2C_Read... [16:50:23]Read from MH i2c: E2 03 00 BD 01 00 90 00 32 [16:50:23]RAPDU: 90 00 [16:50:23]wFMCommunicate OK [16:50:23]wFMCommunicate request_size=255 [16:50:23]MH_SAM_APDU [16:50:23]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 4D C8 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [16:50:23]Write to MH i2c: E2 02 01 BE 01 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 4D C8 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 7A [16:50:23]Write i2c OK [16:50:23]MH_I2C_Read... [16:50:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:23]Read from MH i2c: E2 [16:50:23]MH_I2C_Read... [16:50:23]Read from MH i2c: E2 03 00 [16:50:23]MH_I2C_Read... [16:50:23]Read from MH i2c: E2 03 00 BE 01 00 90 00 33 [16:50:23]RAPDU: 90 00 [16:50:24]wFMCommunicate OK [16:50:24]wFMCommunicate request_size=28 [16:50:24]MH_SAM_APDU [16:50:24]CAPDU: 80 0D 02 02 17 37 34 39 35 38 10 04 04 00 B1 A3 00 00 35 04 06 00 B6 88 38 B1 38 24 [16:50:24]Write to MH i2c: E2 1F 00 BF 01 80 0D 02 02 17 00 37 34 39 35 38 10 04 04 00 B1 A3 00 00 35 04 06 00 B6 88 38 B1 38 24 00 00 A7 [16:50:24]Write i2c OK [16:50:24]MH_I2C_Read... [16:50:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:24]Read from MH i2c: E2 [16:50:24]MH_I2C_Read... [16:50:24]Read from MH i2c: E2 03 00 [16:50:24]MH_I2C_Read... [16:50:24]Read from MH i2c: E2 03 00 BF 01 00 90 00 34 [16:50:24]RAPDU: 90 00 [16:50:24]wFMCommunicate OK [16:50:24]wFMCommunicate request_size=4 [16:50:24]MH_SAM_APDU [16:50:24]CAPDU: 80 0D 03 02 [16:50:24]Write to MH i2c: E2 08 00 C0 01 80 0D 03 02 00 00 00 00 3C [16:50:24]Write i2c OK [16:50:24]MH_I2C_Read... [16:50:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:50:24]Read from MH i2c: E2 [16:50:24]MH_I2C_Read... [16:50:24]Read from MH i2c: E2 0B 00 [16:50:24]MH_I2C_Read... [16:50:24]Read from MH i2c: E2 0B 00 C0 01 00 6A 46 00 24 37 79 CD E4 90 00 72 [16:50:24]RAPDU: 6A 46 00 24 37 79 CD E4 90 00 [16:50:24]wFMCommunicate OK [16:50:24]SAM_PROTO_SignData done [16:50:24]FM_MakeSignedData done [16:50:24]CreateOFDProtocolMessage [16:50:24]wFMCommunicate request_size=4 [16:50:24]MH_SAM_APDU [16:50:24]CAPDU: 80 11 00 00 [16:50:24]Write to MH i2c: E2 08 00 C1 01 80 11 00 00 00 00 00 00 3C [16:50:24]Write i2c OK [16:50:24]MH_I2C_Read... [16:50:24]Read from MH i2c: E2 [16:50:24]MH_I2C_Read... [16:50:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:24]Read from MH i2c: E2 17 00 [16:50:24]MH_I2C_Read... [16:50:24]Read from MH i2c: E2 17 00 C1 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 98 [16:50:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [16:50:24]wFMCommunicate OK [16:50:24]CreateOFDProtocolMessage done [16:50:24]OFDSenderStorePacket 41905 [16:50:24]StoreOFDPacket docnum=41905 [16:50:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 21 01 00 00 D6 A8 19 01 11 F9 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 4D C8 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 B1 A3 00 00 35 04 06 00 B6 88 38 B1 38 24 6A 46 00 24 37 79 CD E4 [16:50:24]CheckFolder [16:50:24]dirname=/storage/ofd_packets [16:50:24]CheckFolder done [16:50:24]ProducePacketName [16:50:24]name=ofd_packets/00041905 [16:50:24]NVStorageSaveData ofd_packets/00041905 [16:50:24]File name is /storage/ofd_packets/00041905 [16:50:24]Write 319 bytes [16:50:24]NVStorageSaveData done [16:50:24]OFDSenderStorePacket done [16:50:24]KKMCreateOFDPacket done [16:50:24]NVStorageSaveData kkm_last_timestamp [16:50:24]File name is /storage/kkm_last_timestamp [16:50:24]Write 4 bytes [16:50:24]NVStorageSaveData done [16:50:24]ExternCall_PrintAddStr [16:50:24]wPrintStart [16:50:24]Write to MH i2c: 01 00 00 C2 01 C3 [16:50:24]Write i2c OK [16:50:24]MH_I2C_Read... [16:50:24]Read from MH i2c: 01 [16:50:24]MH_I2C_Read... [16:50:24]Read from MH i2c: 01 07 00 [16:50:24]MH_I2C_Read... [16:50:24]Read from MH i2c: 01 07 00 C2 01 00 00 00 00 00 FF 0F D8 [16:50:24]RasterBufferAndPrint [16:50:24]line Счет N : (3)183933 [16:50:24]line ИНН: 02508201610067 [16:50:24]line Контрольно-Кассовый Чек [16:50:24]line ПРОДАЖА [16:50:24]line Товар: 4700000160358 [16:50:24]line Вода Легенда 1л [16:50:24]line 1.000 * 50.00 [16:50:24]line = 50.00 [16:50:24]line НДС 12% НСП 1% [16:50:24]line > о реализуемом товаре [16:50:24]line ИТОГО: 50.00 [16:50:24]line НСП 1% : 0.44 [16:50:24]line НДС 12% : 5.31 [16:50:24]line Наличными: 50.00 [16:50:24]OFD Sender: Processing packet 41896 [packets to send 66, broken 56] [16:50:24]line Безнал.: 0.00 [16:50:24]ProducePacketName [16:50:24]line Место: АЗС № 97 "Партнер Нефть" [16:50:24]name=ofd_packets/00041896 [16:50:24]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [16:50:24]OFD Sender: To server: pG, [16:50:24]line СНО: Общий режим [16:50:24]CommunicateWithHost lk.salyk.kg:30040 [16:50:24]line Чек 94 29.07.2024 16:50 [16:50:24]line Смена: 427 ФФД: 1.0 [16:50:24]line ЗНМ: 0300000053 [16:50:24]line РНМ: 0000000000092626 [16:50:24]line Версия ККМ: 001 [16:50:24]line ФМ: 0000000000874958 [16:50:24]line ФД: 41905 [16:50:24]line ФПД: 200696182945828 [16:50:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T165021&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41905&fm=200696182945828&tin=02508201610067®Number=0000000000092626&sum=5000 [16:50:24]ConnectInit lk.salyk.kg [16:50:24]line 0 [16:50:24]written 0, free lines is 4095 [16:50:24]Write to MH i2c: 01 00 00 EA 01 EB [16:50:24]Write i2c OK [16:50:24]MH_I2C_Read... [16:50:24]Read from MH i2c: 01 [16:50:24]MH_I2C_Read... [16:50:24]Read from MH i2c: 01 07 00 [16:50:24]MH_I2C_Read... [16:50:24]Read from MH i2c: 01 07 00 EA 01 00 00 00 00 00 1A 0D 19 [16:50:24]RasterBufferAndPrint [16:50:24]line [16:50:24]line [16:50:24]line [16:50:24]line [16:50:24]line [16:50:24]written 0, free lines is 3405 [16:50:24]MH_Cut [16:50:24]Write to MH i2c: D1 01 00 F1 01 01 C4 [16:50:24]Write i2c OK [16:50:24]MH_I2C_Read... [16:50:24]Read from MH i2c: D1 [16:50:24]MH_I2C_Read... [16:50:24]Read from MH i2c: D1 01 00 [16:50:24]MH_I2C_Read... [16:50:24]Read from MH i2c: D1 01 00 F1 01 00 C3 [16:50:24]Write to MH i2c: 01 00 00 F2 01 F3 [16:50:24]Write i2c OK [16:50:24]MH_I2C_Read... [16:50:25]*** Cut start [16:50:25]*** Partial cut [16:50:25]*** CUTSNS_PIN = 1 [16:50:25]*** CUTSNS_PIN = 0 [16:50:25]*** Brake cut motor [16:50:26]Read from MH i2c: 01 [16:50:26]MH_I2C_Read... [16:50:26]*** Stop cut motor [16:50:26]*** Cut end [16:50:26]Read from MH i2c: 01 07 00 [16:50:26]MH_I2C_Read... [16:50:26]Read from MH i2c: 01 07 00 F2 01 00 00 00 00 00 FF 0F 08 [16:50:26]process_action close_receipt done [16:50:26]requested_data is exist [16:50:26]produce_requested_data [16:50:26]requested_item fm.sn is exist - process it [16:50:26]wFMCommunicate request_size=4 [16:50:26]MH_SAM_APDU [16:50:26]CAPDU: 80 11 00 00 [16:50:26]Write to MH i2c: E2 08 00 F3 01 80 11 00 00 00 00 00 00 6E [16:50:26]Write i2c OK [16:50:26]MH_I2C_Read... [16:50:26]Read from MH i2c: E2 [16:50:26]MH_I2C_Read... [16:50:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:26]Read from MH i2c: E2 17 00 [16:50:26]MH_I2C_Read... [16:50:26]Read from MH i2c: E2 17 00 F3 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 CA [16:50:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [16:50:26]wFMCommunicate OK [16:50:26]requested_item fd.num is exist - process it [16:50:26]SAM_PROTO_GetFieldsCounters [16:50:26]wFMCommunicate request_size=4 [16:50:26]MH_SAM_APDU [16:50:26]CAPDU: 80 13 00 00 [16:50:26]Write to MH i2c: E2 08 00 F4 01 80 13 00 00 00 00 00 00 71 [16:50:26]Write i2c OK [16:50:26]MH_I2C_Read... [16:50:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:50:26]Read from MH i2c: E2 [16:50:26]MH_I2C_Read... [16:50:26]Read from MH i2c: E2 62 00 [16:50:26]MH_I2C_Read... [16:50:26]Read from MH i2c: E2 62 00 F4 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 B1 A3 00 00 0E 04 04 00 AB 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 B5 [16:50: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 B1 A3 00 00 0E 04 04 00 AB 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 [16:50:26]wFMCommunicate OK [16:50:26]SAM_PROTO_GetFieldsCounters done [16:50:26]requested_item shift.num is exist - process it [16:50:26]requested_item shift.opened is exist - process it [16:50:26]req_shift_opened [16:50:26]FM_GetShiftState [16:50:26]SAM_PROTO_GetShiftState [16:50:26]wFMCommunicate request_size=4 [16:50:26]MH_SAM_APDU [16:50:26]CAPDU: 80 13 01 00 [16:50:26]Write to MH i2c: E2 08 00 F5 01 80 13 01 00 00 00 00 00 73 [16:50:26]Write i2c OK [16:50:26]MH_I2C_Read... [16:50:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:26]Read from MH i2c: E2 [16:50:26]MH_I2C_Read... [16:50:26]Read from MH i2c: E2 0E 00 [16:50:26]MH_I2C_Read... [16:50:26]Read from MH i2c: E2 0E 00 F5 01 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 0F [16:50:26]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [16:50:26]wFMCommunicate OK [16:50:26]SAM_PROTO_GetShiftState done [16:50:26]FM_GetShiftState done [16:50:26]req_shift_opened done [16:50:26]requested_item shift.open_date is exist - process it [16:50:26]req_shift_open_date [16:50:26]req_shift_open_date done [16:50:26]produce_requested_data done [16:50:26]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41905,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [16:50:26]process_action_free close_receipt [16:50:26]json_value_free [16:50:26]json_value_free done [16:50:26]process_json_proto returns [16:50:26]Send response to host [16:50:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41905,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [16:50:26]free response buf [16:50:26]execute_script done [16:50:26]execute_script returns [16:50:26]free content buf [16:50:26]Sock 11.Close socket [16:50:26]Sock 11.Thread stoped [16:50:28]accept exits with 8 [16:50:28]New connection [16:50:28]New thread 3067002212 created [16:50:28]Thread 3066858852 joined [16:50:28]Waiting for new connection... [16:50:28] Sock 8.Parse request [16:50:28]Sock 8.Check first char [16:50:28]Sock 8.First char is OK [16:50:28]request: POST /json_proto HTTP/1.0 [16:50:28]Method: POST [16:50:28]URL: /json_proto [16:50:28]Method is POST - this is cgi request [16:50:28]url: /json_proto [16:50:28]query_string will be loaded in cgi processing [16:50:28]execute_cgi json_proto POST (null) [16:50:28]execute_cgi path=json_proto method=POST [16:50:28]POST find Content-Length [16:50:28]Host: 172.17.43.132:8080 [16:50:28]Content-Length: 976 [16:50:28]Content-Type: application/json [16:50:28] [16:50:28]POST finish read [16:50:28]Found Content-Length = 976 [16:50:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183934", "tax_sys" : 0, "items" : [ { "code": "5449000000996", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,33\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002325113", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A PEPSI \u0433\u0430\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 \u0441\u0442 0,25\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 175.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:50:28]execute_script... [16:50:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183934", "tax_sys" : 0, "items" : [ { "code": "5449000000996", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,33\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002325113", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A PEPSI \u0433\u0430\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 \u0441\u0442 0,25\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 175.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:50:28]POST & json_proto [16:50:28]process_json_proto [16:50:28]json parsed OK: [16:50:28]protocol is kg_v1.0 [16:50:28]action value=close_receipt [16:50:28]process_action close_receipt [16:50:28]cmd_close_receipt [16:50:28]MH_GetDate [16:50:28]Write to MH i2c: F0 00 00 F6 01 E6 [16:50:28]Write i2c OK [16:50:28]MH_I2C_Read... [16:50:28]Read from MH i2c: F0 [16:50:28]MH_I2C_Read... [16:50:28]Read from MH i2c: F0 09 00 [16:50:28]MH_I2C_Read... [16:50:28]Read from MH i2c: F0 09 00 F6 01 00 55 C8 A7 66 64 A3 A7 66 2D [16:50:28]GetLastDocTimeStamp 1722271821 [16:50:28]current date 1722271829 [16:50:28]FM_GetShiftState [16:50:28]SAM_PROTO_GetShiftState [16:50:28]wFMCommunicate request_size=4 [16:50:28]MH_SAM_APDU [16:50:28]CAPDU: 80 13 01 00 [16:50:28]Write to MH i2c: E2 08 00 F7 01 80 13 01 00 00 00 00 00 75 [16:50:28]Write i2c OK [16:50:28]MH_I2C_Read... [16:50:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:28]Read from MH i2c: E2 [16:50:28]MH_I2C_Read... [16:50:28]Read from MH i2c: E2 0E 00 [16:50:28]MH_I2C_Read... [16:50:28]Read from MH i2c: E2 0E 00 F7 01 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 11 [16:50:28]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [16:50:28]wFMCommunicate OK [16:50:28]SAM_PROTO_GetShiftState done [16:50:28]FM_GetShiftState done [16:50:28]opened in 1722211496 [16:50:28]opened+sec_in_day 1722297896 [16:50:28]quantity*price = 8500 [16:50:28]sum+1 = 8501 [16:50:28]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870002325113 Напиток PEPSI газированный ст 0,25л 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 175.00 НСП 1% : 1.55 НДС 12% : 18.59 Наличными: 175.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 95 29.07.2024 16:50 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41906 ФПД: 154056315186982 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T165029&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41906&fm=154056315186982&tin=02508201610067®Number=0000000000092626&sum=17500 0 [16:50:30]StoreToDocumentArchive [16:50:30]shift 427 fd 41906 [16:50:30]save to /storage/0427/doc_00041906 [16:50:30]save last doc name /storage/0427/doc_00041906 to /storage/kkm_last_doc_name [16:50:30]save OK [16:50:30]Clear old archive folders... [16:50:30]ProcessDocumentItem done err = 0, tmpTLVsize=410 [16:50:30]tlvbuf is 00386C60 [16:50:30]SAM_PROTO_ClearQueue [16:50:30]wFMCommunicate request_size=4 [16:50:30]MH_SAM_APDU [16:50:30]CAPDU: 80 09 00 00 [16:50:30]Write to MH i2c: E2 08 00 04 02 80 09 00 00 00 00 00 00 78 [16:50:30]Write i2c OK [16:50:30]MH_I2C_Read... [16:50:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:50:30]Read from MH i2c: E2 [16:50:30]MH_I2C_Read... [16:50:30]Read from MH i2c: E2 03 00 [16:50:30]MH_I2C_Read... [16:50:30]Read from MH i2c: E2 03 00 04 02 00 90 00 7A [16:50:30]RAPDU: 90 00 [16:50:30]wFMCommunicate OK [16:50:30]SAM_PROTO_ClearQueue done [16:50:30]KKMCreateOFDPacket [16:50:30]OFDProtocolAddRootSTLVToBuf [16:50:30]FM_MakeSignedData [16:50:30]FM_MakeSignedData [16:50:30]SAM_PROTO_SignData [16:50:30]wFMCommunicate request_size=4 [16:50:30]MH_SAM_APDU [16:50:30]CAPDU: 80 0D 01 02 [16:50:30]Write to MH i2c: E2 08 00 05 02 80 0D 01 02 00 00 00 00 80 [16:50:30]Write i2c OK [16:50:30]MH_I2C_Read... [16:50:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:50:30]Read from MH i2c: E2 [16:50:30]MH_I2C_Read... [16:50:30]Read from MH i2c: E2 03 00 [16:50:30]MH_I2C_Read... [16:50:30]Read from MH i2c: E2 03 00 05 02 00 90 00 7B [16:50:30]RAPDU: 90 00 [16:50:30]wFMCommunicate OK [16:50:30]wFMCommunicate request_size=255 [16:50:30]MH_SAM_APDU [16:50:30]CAPDU: 80 0D 02 02 FA 03 00 9A 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 31 31 33 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 45 50 53 49 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D1 81 D1 82 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC [16:50:31]Write to MH i2c: E2 02 01 06 02 80 0D 02 02 FA 00 03 00 9A 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 31 31 33 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 45 50 53 49 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D1 81 D1 82 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 00 00 1E [16:50:31]Write i2c OK [16:50:31]MH_I2C_Read... [16:50:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:31]Read from MH i2c: E2 [16:50:31]MH_I2C_Read... [16:50:31]Read from MH i2c: E2 03 00 [16:50:31]MH_I2C_Read... [16:50:31]Read from MH i2c: E2 03 00 06 02 00 90 00 7C [16:50:31]RAPDU: 90 00 [16:50:31]wFMCommunicate OK [16:50:31]wFMCommunicate request_size=169 [16:50:31]MH_SAM_APDU [16:50:31]CAPDU: 80 0D 02 02 A4 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 07 00 00 00 00 07 04 06 00 5C 44 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 55 C8 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 B2 A3 00 00 35 04 06 00 8C 1D 07 F1 2F 26 [16:50:31]Write to MH i2c: E2 AC 00 07 02 80 0D 02 02 A4 00 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 07 00 00 00 00 07 04 06 00 5C 44 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 55 C8 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 B2 A3 00 00 35 04 06 00 8C 1D 07 F1 2F 26 00 00 BF [16:50:31]Write i2c OK [16:50:31]MH_I2C_Read... [16:50:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:32]Read from MH i2c: E2 [16:50:32]MH_I2C_Read... [16:50:32]Read from MH i2c: E2 03 00 [16:50:32]MH_I2C_Read... [16:50:32]Read from MH i2c: E2 03 00 07 02 00 90 00 7D [16:50:32]RAPDU: 90 00 [16:50:32]wFMCommunicate OK [16:50:32]wFMCommunicate request_size=4 [16:50:32]MH_SAM_APDU [16:50:32]CAPDU: 80 0D 03 02 [16:50:32]Write to MH i2c: E2 08 00 08 02 80 0D 03 02 00 00 00 00 85 [16:50:32]Write i2c OK [16:50:32]MH_I2C_Read... [16:50:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:50:32]Read from MH i2c: E2 [16:50:32]MH_I2C_Read... [16:50:32]Read from MH i2c: E2 0B 00 [16:50:32]MH_I2C_Read... [16:50:32]Read from MH i2c: E2 0B 00 08 02 00 CD 40 6C 39 B4 38 9C 5A 90 00 1A [16:50:32]RAPDU: CD 40 6C 39 B4 38 9C 5A 90 00 [16:50:32]wFMCommunicate OK [16:50:32]SAM_PROTO_SignData done [16:50:32]FM_MakeSignedData done [16:50:32]CreateOFDProtocolMessage [16:50:32]wFMCommunicate request_size=4 [16:50:32]MH_SAM_APDU [16:50:32]CAPDU: 80 11 00 00 [16:50:32]Write to MH i2c: E2 08 00 09 02 80 11 00 00 00 00 00 00 85 [16:50:32]Write i2c OK [16:50:32]MH_I2C_Read... [16:50:32]Read from MH i2c: E2 [16:50:32]MH_I2C_Read... [16:50:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:32]Read from MH i2c: E2 17 00 [16:50:32]MH_I2C_Read... [16:50:32]Read from MH i2c: E2 17 00 09 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 E1 [16:50:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [16:50:32]wFMCommunicate OK [16:50:32]CreateOFDProtocolMessage done [16:50:32]OFDSenderStorePacket 41906 [16:50:32]StoreOFDPacket docnum=41906 [16:50:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 AE 01 00 00 28 01 A6 01 93 E3 5A 03 01 00 03 00 9A 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 31 31 33 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 45 50 53 49 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D1 81 D1 82 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 07 00 00 00 00 07 04 06 00 5C 44 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 55 C8 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 B2 A3 00 00 35 04 06 00 8C 1D 07 F1 2F 26 CD 40 6C 39 B4 38 9C 5A [16:50:32]CheckFolder [16:50:32]dirname=/storage/ofd_packets [16:50:32]CheckFolder done [16:50:32]ProducePacketName [16:50:32]name=ofd_packets/00041906 [16:50:32]NVStorageSaveData ofd_packets/00041906 [16:50:32]File name is /storage/ofd_packets/00041906 [16:50:32]Write 460 bytes [16:50:32]NVStorageSaveData done [16:50:32]OFDSenderStorePacket done [16:50:32]KKMCreateOFDPacket done [16:50:32]NVStorageSaveData kkm_last_timestamp [16:50:32]File name is /storage/kkm_last_timestamp [16:50:32]OFD Sender: Processing packet 41896 [packets to send 67, broken 56] [16:50:32]ProducePacketName [16:50:32]name=ofd_packets/00041896 [16:50:32]OFD Sender: To server: pG, [16:50:32]CommunicateWithHost lk.salyk.kg:30040 [16:50:32]ConnectInit lk.salyk.kg [16:50:32]Write 4 bytes [16:50:32]NVStorageSaveData done [16:50:32]ExternCall_PrintAddStr [16:50:32]wPrintStart [16:50:32]Write to MH i2c: 01 00 00 0A 02 0C [16:50:32]Write i2c OK [16:50:32]MH_I2C_Read... [16:50:32]Read from MH i2c: 01 [16:50:32]MH_I2C_Read... [16:50:32]Read from MH i2c: 01 07 00 [16:50:32]MH_I2C_Read... [16:50:32]Read from MH i2c: 01 07 00 0A 02 00 00 00 00 00 FF 0F 21 [16:50:32]RasterBufferAndPrint [16:50:32]line Счет N : (3)183934 [16:50:32]line ИНН: 02508201610067 [16:50:32]line Контрольно-Кассовый Чек [16:50:32]line ПРОДАЖА [16:50:32]line Товар: 5449000000996 [16:50:32]line Напиток Кока-Кола 0,33л [16:50:32]line 1.000 * 85.00 [16:50:32]line = 85.00 [16:50:32]line НДС 12% НСП 1% [16:50:32]line > о реализуемом товаре [16:50:32]line Товар: 4870002325113 [16:50:32]line Напиток PEPSI газированный ст 0,25л [16:50:32]line 1.000 * 90.00 [16:50:32]line = 90.00 [16:50:32]line НДС 12% НСП 1% [16:50:32]line > о реализуемом товаре [16:50:32]line ИТОГО: 175.00 [16:50:32]line НСП 1% : 1.55 [16:50:32]line НДС 12% : 18.59 [16:50:32]line Наличными: 175.00 [16:50:32]line Безнал.: 0.00 [16:50:32]line Место: АЗС № 97 "Партнер Нефть" [16:50:32]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [16:50:32]line СНО: Общий режим [16:50:32]line Чек 95 29.07.2024 16:50 [16:50:32]line Смена: 427 ФФД: 1.0 [16:50:32]line ЗНМ: 0300000053 [16:50:32]line РНМ: 0000000000092626 [16:50:32]line Версия ККМ: 001 [16:50:32]line ФМ: 0000000000874958 [16:50:32]line ФД: 41906 [16:50:32]line ФПД: 154056315186982 [16:50:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T165029&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41906&fm=154056315186982&tin=02508201610067®Number=0000000000092626&sum=17500 [16:50:32]line 0 [16:50:32]written 0, free lines is 4095 [16:50:33]Write to MH i2c: 01 00 00 39 02 3B [16:50:33]Write i2c OK [16:50:33]MH_I2C_Read... [16:50:33]Read from MH i2c: 01 [16:50:33]MH_I2C_Read... [16:50:33]Read from MH i2c: 01 07 00 [16:50:33]MH_I2C_Read... [16:50:33]Read from MH i2c: 01 07 00 39 02 00 00 00 00 00 CB 0C 19 [16:50:33]RasterBufferAndPrint [16:50:33]line [16:50:33]line [16:50:33]line [16:50:33]line [16:50:33]line [16:50:33]written 0, free lines is 3332 [16:50:33]MH_Cut [16:50:33]Write to MH i2c: D1 01 00 40 02 01 14 [16:50:33]Write i2c OK [16:50:33]MH_I2C_Read... [16:50:33]Read from MH i2c: D1 [16:50:33]MH_I2C_Read... [16:50:33]Read from MH i2c: D1 01 00 [16:50:33]MH_I2C_Read... [16:50:33]Read from MH i2c: D1 01 00 40 02 00 13 [16:50:33]Write to MH i2c: 01 00 00 41 02 43 [16:50:33]Write i2c OK [16:50:33]MH_I2C_Read... [16:50:33]*** Cut start [16:50:33]*** Partial cut [16:50:33]*** CUTSNS_PIN = 1 [16:50:33]*** CUTSNS_PIN = 0 [16:50:34]*** Brake cut motor [16:50:34]Read from MH i2c: 01 [16:50:34]MH_I2C_Read... [16:50:34]*** Stop cut motor [16:50:34]*** Cut end [16:50:34]Read from MH i2c: 01 07 00 [16:50:34]MH_I2C_Read... [16:50:34]Read from MH i2c: 01 07 00 41 02 00 00 00 00 00 FF 0F 58 [16:50:34]process_action close_receipt done [16:50:34]requested_data is exist [16:50:34]produce_requested_data [16:50:34]requested_item fm.sn is exist - process it [16:50:34]wFMCommunicate request_size=4 [16:50:34]MH_SAM_APDU [16:50:34]CAPDU: 80 11 00 00 [16:50:34]Write to MH i2c: E2 08 00 42 02 80 11 00 00 00 00 00 00 BE [16:50:34]Write i2c OK [16:50:34]MH_I2C_Read... [16:50:34]Read from MH i2c: E2 [16:50:34]MH_I2C_Read... [16:50:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:34]Read from MH i2c: E2 17 00 [16:50:34]MH_I2C_Read... [16:50:34]Read from MH i2c: E2 17 00 42 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 1A [16:50:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [16:50:34]wFMCommunicate OK [16:50:34]requested_item fd.num is exist - process it [16:50:34]SAM_PROTO_GetFieldsCounters [16:50:34]wFMCommunicate request_size=4 [16:50:34]MH_SAM_APDU [16:50:34]CAPDU: 80 13 00 00 [16:50:34]Write to MH i2c: E2 08 00 43 02 80 13 00 00 00 00 00 00 C1 [16:50:34]Write i2c OK [16:50:34]MH_I2C_Read... [16:50:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:50:34]Read from MH i2c: E2 [16:50:34]MH_I2C_Read... [16:50:34]Read from MH i2c: E2 62 00 [16:50:34]MH_I2C_Read... [16:50:34]Read from MH i2c: E2 62 00 43 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 B2 A3 00 00 0E 04 04 00 AB 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 09 [16:50: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 B2 A3 00 00 0E 04 04 00 AB 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 [16:50:35]wFMCommunicate OK [16:50:35]SAM_PROTO_GetFieldsCounters done [16:50:35]requested_item shift.num is exist - process it [16:50:35]requested_item shift.opened is exist - process it [16:50:35]req_shift_opened [16:50:35]FM_GetShiftState [16:50:35]SAM_PROTO_GetShiftState [16:50:35]wFMCommunicate request_size=4 [16:50:35]MH_SAM_APDU [16:50:35]CAPDU: 80 13 01 00 [16:50:35]Write to MH i2c: E2 08 00 44 02 80 13 01 00 00 00 00 00 C3 [16:50:35]Write i2c OK [16:50:35]MH_I2C_Read... [16:50:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:35]Read from MH i2c: E2 [16:50:35]MH_I2C_Read... [16:50:35]Read from MH i2c: E2 0E 00 [16:50:35]MH_I2C_Read... [16:50:35]Read from MH i2c: E2 0E 00 44 02 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 5F [16:50:35]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [16:50:35]wFMCommunicate OK [16:50:35]SAM_PROTO_GetShiftState done [16:50:35]FM_GetShiftState done [16:50:35]req_shift_opened done [16:50:35]requested_item shift.open_date is exist - process it [16:50:35]req_shift_open_date [16:50:35]req_shift_open_date done [16:50:35]produce_requested_data done [16:50:35]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41906,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [16:50:35]process_action_free close_receipt [16:50:35]json_value_free [16:50:35]json_value_free done [16:50:35]process_json_proto returns [16:50:35]Send response to host [16:50:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41906,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [16:50:35]free response buf [16:50:35]execute_script done [16:50:35]execute_script returns [16:50:35]free content buf [16:50:35]Sock 8.Close socket [16:50:35]Sock 8.Thread stoped [16:50:36]accept exits with 11 [16:50:36]New connection [16:50:36]New thread 3066858852 created [16:50:36]Thread 3067002212 joined [16:50:36]Waiting for new connection... [16:50:36] Sock 11.Parse request [16:50:36]Sock 11.Check first char [16:50:36]Sock 11.First char is OK [16:50:36]request: POST /json_proto HTTP/1.0 [16:50:36]Method: POST [16:50:36]URL: /json_proto [16:50:36]Method is POST - this is cgi request [16:50:36]url: /json_proto [16:50:36]query_string will be loaded in cgi processing [16:50:36]execute_cgi json_proto POST (null) [16:50:36]execute_cgi path=json_proto method=POST [16:50:36]POST find Content-Length [16:50:36]Host: 172.17.43.132:8080 [16:50:36]Content-Length: 614 [16:50:36]Content-Type: application/json [16:50:36] [16:50:36]POST finish read [16:50:36]Found Content-Length = 614 [16:50:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183935", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 111.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:50:36]execute_script... [16:50: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 : (3)183935", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 111.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:50:36]POST & json_proto [16:50:36]process_json_proto [16:50:36]json parsed OK: [16:50:36]protocol is kg_v1.0 [16:50:36]action value=close_receipt [16:50:36]process_action close_receipt [16:50:36]cmd_close_receipt [16:50:36]MH_GetDate [16:50:36]Write to MH i2c: F0 00 00 45 02 36 [16:50:36]Write i2c OK [16:50:36]MH_I2C_Read... [16:50:36]Read from MH i2c: F0 [16:50:36]MH_I2C_Read... [16:50:36]Read from MH i2c: F0 09 00 [16:50:36]MH_I2C_Read... [16:50:36]Read from MH i2c: F0 09 00 45 02 00 5C C8 A7 66 64 A3 A7 66 84 [16:50:36]GetLastDocTimeStamp 1722271829 [16:50:36]current date 1722271836 [16:50:36]FM_GetShiftState [16:50:36]SAM_PROTO_GetShiftState [16:50:36]wFMCommunicate request_size=4 [16:50:36]MH_SAM_APDU [16:50:36]CAPDU: 80 13 01 00 [16:50:36]Write to MH i2c: E2 08 00 46 02 80 13 01 00 00 00 00 00 C5 [16:50:36]Write i2c OK [16:50:36]MH_I2C_Read... [16:50:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:36]Read from MH i2c: E2 [16:50:36]MH_I2C_Read... [16:50:36]Read from MH i2c: E2 0E 00 [16:50:36]MH_I2C_Read... [16:50:36]Read from MH i2c: E2 0E 00 46 02 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 61 [16:50:36]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [16:50:36]wFMCommunicate OK [16:50:36]SAM_PROTO_GetShiftState done [16:50:36]FM_GetShiftState done [16:50:36]opened in 1722211496 [16:50:36]opened+sec_in_day 1722297896 [16:50:36]quantity*price = 11100 [16:50:36]sum+1 = 11101 [16:50:36]Check (price>sum+1) || (price+1 о реализуемом товаре [16:50:40]line ИТОГО: 111.00 [16:50:40]line НСП 1% : 0.98 [16:50:40]line НДС 12% : 11.79 [16:50:40]line Наличными: 111.00 [16:50:40]line Безнал.: 0.00 [16:50:40]line Место: АЗС № 97 "Партнер Нефть" [16:50:40]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [16:50:40]line СНО: Общий режим [16:50:40]line Чек 96 29.07.2024 16:50 [16:50:40]line Смена: 427 ФФД: 1.0 [16:50:40]line ЗНМ: 0300000053 [16:50:40]line РНМ: 0000000000092626 [16:50:40]line Версия ККМ: 001 [16:50:40]OFD Sender: To server: pG, [16:50:40]CommunicateWithHost lk.salyk.kg:30040 [16:50:40]ConnectInit lk.salyk.kg [16:50:40]line ФМ: 0000000000874958 [16:50:40]line ФД: 41907 [16:50:40]line ФПД: 96900065272392 [16:50:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T165037&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41907&fm=96900065272392&tin=02508201610067®Number=0000000000092626&sum=11100 [16:50:40]line 0 [16:50:40]written 0, free lines is 4095 [16:50:41]Write to MH i2c: 01 00 00 81 02 83 [16:50:41]Write i2c OK [16:50:41]MH_I2C_Read... [16:50:41]Read from MH i2c: 01 [16:50:41]MH_I2C_Read... [16:50:41]Read from MH i2c: 01 07 00 [16:50:41]MH_I2C_Read... [16:50:41]Read from MH i2c: 01 07 00 81 02 00 00 00 00 00 17 0D AE [16:50:41]RasterBufferAndPrint [16:50:41]line [16:50:41]line [16:50:41]line [16:50:41]line [16:50:41]line [16:50:41]written 0, free lines is 3417 [16:50:41]MH_Cut [16:50:41]Write to MH i2c: D1 01 00 88 02 01 5C [16:50:41]Write i2c OK [16:50:41]MH_I2C_Read... [16:50:41]Read from MH i2c: D1 [16:50:41]MH_I2C_Read... [16:50:41]Read from MH i2c: D1 01 00 [16:50:41]MH_I2C_Read... [16:50:41]Read from MH i2c: D1 01 00 88 02 00 5B [16:50:41]Write to MH i2c: 01 00 00 89 02 8B [16:50:41]Write i2c OK [16:50:41]MH_I2C_Read... [16:50:41]*** Cut start [16:50:41]*** Partial cut [16:50:41]*** CUTSNS_PIN = 1 [16:50:41]*** CUTSNS_PIN = 0 [16:50:42]*** Brake cut motor [16:50:42]Read from MH i2c: 01 [16:50:42]MH_I2C_Read... [16:50:42]*** Stop cut motor [16:50:42]*** Cut end [16:50:42]Read from MH i2c: 01 07 00 [16:50:42]MH_I2C_Read... [16:50:42]Read from MH i2c: 01 07 00 89 02 00 00 00 00 00 FF 0F A0 [16:50:42]process_action close_receipt done [16:50:42]requested_data is exist [16:50:42]produce_requested_data [16:50:42]requested_item fm.sn is exist - process it [16:50:42]wFMCommunicate request_size=4 [16:50:42]MH_SAM_APDU [16:50:42]CAPDU: 80 11 00 00 [16:50:42]Write to MH i2c: E2 08 00 8A 02 80 11 00 00 00 00 00 00 06 [16:50:42]Write i2c OK [16:50:42]MH_I2C_Read... [16:50:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:42]Read from MH i2c: E2 [16:50:42]MH_I2C_Read... [16:50:42]Read from MH i2c: E2 17 00 [16:50:42]MH_I2C_Read... [16:50:42]Read from MH i2c: E2 17 00 8A 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 62 [16:50:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [16:50:42]wFMCommunicate OK [16:50:42]requested_item fd.num is exist - process it [16:50:42]SAM_PROTO_GetFieldsCounters [16:50:42]wFMCommunicate request_size=4 [16:50:42]MH_SAM_APDU [16:50:42]CAPDU: 80 13 00 00 [16:50:42]Write to MH i2c: E2 08 00 8B 02 80 13 00 00 00 00 00 00 09 [16:50:42]Write i2c OK [16:50:42]MH_I2C_Read... [16:50:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:50:42]Read from MH i2c: E2 [16:50:42]MH_I2C_Read... [16:50:42]Read from MH i2c: E2 62 00 [16:50:42]MH_I2C_Read... [16:50:42]Read from MH i2c: E2 62 00 8B 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 B3 A3 00 00 0E 04 04 00 AB 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 55 [16:50: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 Connected sock=10 [16:50:43]10 Data to sent: 04 87 04 95 00 F6 B3 70 A3 47 00 2C 00 01 0E 04 04 00 AB 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 00 30 60 30 00 30 00 30 00 30 57 30 04 30 04 30 00 61 00 00 00 19 04 04 00 00 30 00 30 00 38 00 37 90 34 00 39 [16:50:43]35 wFMCommunicate OK [16:50:43]38 SAM_PROTO_GetFieldsCounters done [16:50:43]2E requested_item shift.num is exist - process it [16:50:43]requested_item shift.opened is exist - process it [16:50:43]req_shift_opened [16:50:43]FM_GetShiftState [16:50:43]SAM_PROTO_GetShiftState [16:50:43]wFMCommunicate request_size=4 [16:50:43]MH_SAM_APDU [16:50:43]CAPDU: 80 13 01 00 [16:50:43]Write to MH i2c: E2 08 00 8C 02 80 13 01 00 00 00 00 00 0B [16:50:43]01 00 00 F1 FD 26 01 35 20 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 Write i2c OK [16:50:43]30 MH_I2C_Read... [16:50:43]33 Read from MH i2c: 36 E2 32 [16:50:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:43]MH_I2C_Read... [16:50:43]32 30 30 31 32 06 Read from MH i2c: 04 E2 28 0E 00 00 D0 [16:50:43]9A MH_I2C_Read... [16:50:43]D0 BE D1 84 D0 B5 Read from MH i2c: 20 E2 D0 0E 9A 00 8C D0 B0 D0 BF D1 83 D1 87 D0 B8 02 D0 00 BD 09 D0 00 BE 01 20 A8 58 DC 4C A6 28 66 47 41 42 42 20 54 52 41 44 45 00 00 29 00 FF 00 03 90 08 00 03 E8 03 00 00 00 00 00 00 37 A7 04 [16:50:43]06 RAPDU: 00 09 C8 00 32 01 00 A8 00 DC 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F A6 00 66 F6 00 03 00 01 00 00 00 01 90 F7 00 03 [16:50:43]06 00 73 00 00 00 00 00 EE 03 wFMCommunicate OK [16:50:43]0F SAM_PROTO_GetShiftState done [16:50:43]00 FM_GetShiftState done [16:50:43]F2 req_shift_opened done [16:50:43]03 01 00 01 F3 03 06 00 64 05 requested_item shift.open_date is exist - process it [16:50:43]00 req_shift_open_date [16:50:43]00 req_shift_open_date done [16:50:43]00 produce_requested_data done [16:50:43]00 produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41907,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [16:50:43]07 process_action_free close_receipt [16:50:43]04 json_value_free [16:50:43]06 json_value_free done [16:50:43]00 process_json_proto returns [16:50:43]00 Send response to host [16:50:43]00 {"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41907,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [16:50:43]00 free response buf [16:50:43]00 execute_script done [16:50:43]00 execute_script returns [16:50:43]00 free content buf [16:50:43]39 Sock 11.Close socket [16:50:43]04 Sock 11.Thread stoped [16:50:43]06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 A7 A5 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 A9 A3 00 00 35 04 06 00 11 3A FE 2F 14 2A 22 CC 48 14 25 55 E4 4C [16:50: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 35 38 4F 00 00 00 62 70 47 00 95 B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 A9 A3 00 00 F4 03 04 00 78 74 A7 66 B6 04 01 00 00 45 1E 3B 69 3C 61 A9 20 [16:50:44]CommunicateWithHost err = 0 [16:50:44]CheckOFDResponse [16:50:44]1017 (14) - 77093643461234 [16:50:44]1041 (16) - 0000000000874958 [16:50:44]1040 (4) - 41897 [16:50:44]1012 (4) - 29.07.2024 10:52 [16:50:44]1206 (1) - 0 [16:50:44]OFD Sender: Remove packet 41897 [16:50:44]ProducePacketName [16:50:44]name=ofd_packets/00041897 [16:50:44]NVStorageDeleteData [16:50:45]OFD Sender: Processing packet 41898 [packets to send 66, broken 56] [16:50:45]ProducePacketName [16:50:45]name=ofd_packets/00041898 [16:50:45]OFD Sender: To server: pG, [16:50:45]CommunicateWithHost lk.salyk.kg:30040 [16:50:45]ConnectInit lk.salyk.kg [16:50:45]accept exits with 8 [16:50:45]New connection [16:50:45]New thread 3067002212 created [16:50:45]Thread 3066858852 joined [16:50:45]Waiting for new connection... [16:50:45] Sock 8.Parse request [16:50:45]Sock 8.Check first char [16:50:45]Sock 8.First char is OK [16:50:45]request: POST /json_proto HTTP/1.0 [16:50:45]Method: POST [16:50:45]URL: /json_proto [16:50:45]Method is POST - this is cgi request [16:50:45]url: /json_proto [16:50:45]query_string will be loaded in cgi processing [16:50:45]execute_cgi json_proto POST (null) [16:50:45]execute_cgi path=json_proto method=POST [16:50:45]POST find Content-Length [16:50:45]Host: 172.17.43.132:8080 [16:50:45]Content-Length: 718 [16:50:45]Content-Type: application/json [16:50:45] [16:50:45]POST finish read [16:50:45]Found Content-Length = 718 [16:50:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183936", "tax_sys" : 0, "items" : [ { "code": "4606532000189", "name": "\u0422\u043E\u0440\u043C\u043E\u0437\u043D\u0430\u044F \u0436\u0438\u0434\u043A\u043E\u0441\u0442\u044C \u0420\u043E\u0441\u0414\u043E\u0442-4 0,455\u043A\u0433", "price" : 250.00, "quantity" : 1.000, "sum" : 250.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 250.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:50:45]execute_script... [16: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 : (3)183936", "tax_sys" : 0, "items" : [ { "code": "4606532000189", "name": "\u0422\u043E\u0440\u043C\u043E\u0437\u043D\u0430\u044F \u0436\u0438\u0434\u043A\u043E\u0441\u0442\u044C \u0420\u043E\u0441\u0414\u043E\u0442-4 0,455\u043A\u0433", "price" : 250.00, "quantity" : 1.000, "sum" : 250.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 250.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:50:45]POST & json_proto [16:50:45]process_json_proto [16:50:45]json parsed OK: [16:50:45]protocol is kg_v1.0 [16:50:45]action value=close_receipt [16:50:45]process_action close_receipt [16:50:45]cmd_close_receipt [16:50:45]MH_GetDate [16:50:45]Write to MH i2c: F0 00 00 8D 02 7E [16:50:45]Write i2c OK [16:50:45]MH_I2C_Read... [16:50:45]Read from MH i2c: F0 [16:50:45]MH_I2C_Read... [16:50:45]Read from MH i2c: F0 09 00 [16:50:45]MH_I2C_Read... [16:50:45]Read from MH i2c: F0 09 00 8D 02 00 65 C8 A7 66 64 A3 A7 66 D5 [16:50:45]GetLastDocTimeStamp 1722271837 [16:50:45]current date 1722271845 [16:50:45]FM_GetShiftState [16:50:45]SAM_PROTO_GetShiftState [16:50:45]wFMCommunicate request_size=4 [16:50:45]MH_SAM_APDU [16:50:45]CAPDU: 80 13 01 00 [16:50:45]Write to MH i2c: E2 08 00 8E 02 80 13 01 00 00 00 00 00 0D [16:50:45]Write i2c OK [16:50:45]MH_I2C_Read... [16:50:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:45]Read from MH i2c: E2 [16:50:45]MH_I2C_Read... [16:50:45]Read from MH i2c: E2 0E 00 [16:50:45]MH_I2C_Read... [16:50:45]Read from MH i2c: E2 0E 00 8E 02 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 A9 [16:50:45]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [16:50:45]wFMCommunicate OK [16:50:45]SAM_PROTO_GetShiftState done [16:50:45]FM_GetShiftState done [16:50:45]opened in 1722211496 [16:50:45]opened+sec_in_day 1722297896 [16:50:45]quantity*price = 25000 [16:50:45]sum+1 = 25001 [16:50:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 250.00 НСП 1% : 2.21 НДС 12% : 26.55 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 97 29.07.2024 16:50 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41908 ФПД: 115790899393243 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T165046&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41908&fm=115790899393243&tin=02508201610067®Number=0000000000092626&sum=25000 0 [16:50:47]StoreToDocumentArchive [16:50:47]shift 427 fd 41908 [16:50:47]save to /storage/0427/doc_00041908 [16:50:47]save last doc name /storage/0427/doc_00041908 to /storage/kkm_last_doc_name [16:50:47]save OK [16:50:47]Clear old archive folders... [16:50:47]ProcessDocumentItem done err = 0, tmpTLVsize=302 [16:50:47]tlvbuf is 00445770 [16:50:47]SAM_PROTO_ClearQueue [16:50:47]wFMCommunicate request_size=4 [16:50:47]MH_SAM_APDU [16:50:47]CAPDU: 80 09 00 00 [16:50:47]Write to MH i2c: E2 08 00 9B 02 80 09 00 00 00 00 00 00 0F [16:50:47]Write i2c OK [16:50:47]MH_I2C_Read... [16:50:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:50:47]Read from MH i2c: E2 [16:50:47]MH_I2C_Read... [16:50:47]Read from MH i2c: E2 03 00 [16:50:47]MH_I2C_Read... [16:50:47]Read from MH i2c: E2 03 00 9B 02 00 90 00 11 [16:50:47]RAPDU: 90 00 [16:50:47]wFMCommunicate OK [16:50:47]SAM_PROTO_ClearQueue done [16:50:47]KKMCreateOFDPacket [16:50:47]OFDProtocolAddRootSTLVToBuf [16:50:47]FM_MakeSignedData [16:50:47]FM_MakeSignedData [16:50:47]SAM_PROTO_SignData [16:50:47]wFMCommunicate request_size=4 [16:50:47]MH_SAM_APDU [16:50:47]CAPDU: 80 0D 01 02 [16:50:47]Write to MH i2c: E2 08 00 9C 02 80 0D 01 02 00 00 00 00 17 [16:50:47]Write i2c OK [16:50:47]MH_I2C_Read... [16:50:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:50:47]Read from MH i2c: E2 [16:50:47]MH_I2C_Read... [16:50:47]Read from MH i2c: E2 03 00 [16:50:47]MH_I2C_Read... [16:50:47]Read from MH i2c: E2 03 00 9C 02 00 90 00 12 [16:50:47]RAPDU: 90 00 [16:50:47]wFMCommunicate OK [16:50:47]wFMCommunicate request_size=255 [16:50:47]MH_SAM_APDU [16:50:47]CAPDU: 80 0D 02 02 FA 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 30 36 35 33 32 30 30 30 31 38 39 06 04 3C 00 D0 A2 D0 BE D1 80 D0 BC D0 BE D0 B7 D0 BD D0 B0 D1 8F 20 D0 B6 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D0 A0 D0 BE D1 81 D0 94 D0 BE D1 82 2D 34 20 30 2C 34 35 35 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A8 61 00 00 00 00 13 04 06 00 A8 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 Connected sock=10 [16:50:48]00 Data to sent: 01 87 F3 95 03 06 00 5F 0A 00 00 00 00 F6 07 70 04 47 06 2C 00 A8 61 00 00 00 00 39 04 06 01 00 00 30 00 30 00 30 00 30 00 30 00 30 00 30 1F 30 04 30 02 30 00 38 01 37 00 34 12 39 04 35 04 00 61 00 00 00 F4 03 04 38 00 8B 66 01 C8 00 A7 66 0E 04 04 00 AB 01 00 00 00 C7 B9 32 04 83 01 01 00 09 01 E6 0D 5A 04 03 [16:50:48]01 Write to MH i2c: 00 E2 03 02 00 01 77 9D 01 02 1E 80 04 0D 01 02 00 02 01 FA 23 00 03 00 2E 01 1E 04 01 00 04 01 61 23 00 04 8A 80 00 8A 04 0D 00 34 36 30 04 36 0D 35 00 33 34 32 37 30 30 30 30 30 30 31 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 38 8A 39 04 06 0D 04 00 32 30 30 30 30 33 36 32 3C 34 00 30 D0 30 A2 31 D0 30 BE 06 D1 04 80 20 D0 00 BC D0 D0 9A BE D0 D0 BE B7 D1 D0 84 BD D0 D0 B0 D1 8F 20 D0 B6 B5 D0 20 B8 D0 D0 9B B4 D0 D0 B0 BA D1 D0 82 BE D1 D1 82 81 D0 D1 B5 82 20 D1 28 8C 47 20 41 D0 42 A0 D0 BE D1 81 D0 94 D0 BE 42 D1 20 82 54 2D 52 34 20 30 2C 34 35 35 D0 BA D0 41 B3 44 FF 45 03 29 08 00 03 E8 03 00 00 00 00 00 FF 37 03 04 08 06 00 00 A8 61 00 00 00 00 13 04 06 00 A8 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 03 5F E8 0A 03 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 37 00 04 1F 06 04 02 00 01 00 12 04 04 00 00 61 EC 00 2C 00 00 00 F4 03 04 00 66 C8 A7 66 0E 00 04 00 04 00 00 13 AB 01 00 00 B9 04 01 00 01 0D 04 00 00 29 [16:50:49]04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 5B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 09 00 00 00 00 07 04 06 00 CC 5B 00 00 00 00 39 04 06 00 00 00 Write i2c OK [16:50:49]00 MH_I2C_Read... [16:50:49]00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 AD A5 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 *** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:49]00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 AA A3 00 00 35 04 06 00 EE 6C 17 21 DD 2A 0E 1B 6C 74 F6 9D 16 48 [16:50:49]Read from MH i2c: E2 [16:50:49]MH_I2C_Read... [16:50:49]Read from MH i2c: E2 03 00 [16:50:49]MH_I2C_Read... [16:50:49]Read from MH i2c: E2 03 00 9D 02 00 90 00 13 [16:50:49]RAPDU: 90 00 [16:50:49]wFMCommunicate OK [16:50:49]wFMCommunicate request_size=61 [16:50:49]MH_SAM_APDU [16:50:49]CAPDU: 80 0D 02 02 38 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 B4 A3 00 00 35 04 06 00 69 4F AB 6D 32 DB [16:50:49]Write to MH i2c: E2 40 00 9E 02 80 0D 02 02 38 00 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 B4 A3 00 00 35 04 06 00 69 4F AB 6D 32 DB 00 00 8C [16:50:49]Write i2c OK [16:50:49]MH_I2C_Read... [16:50:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:49]Read from MH i2c: E2 [16:50:49]MH_I2C_Read... [16:50:49]Read from MH i2c: E2 03 00 [16:50:49]MH_I2C_Read... [16:50:49]Read from MH i2c: E2 03 00 9E 02 00 90 00 14 [16:50:49]RAPDU: 90 00 [16:50:49]wFMCommunicate OK [16:50:49]wFMCommunicate request_size=4 [16:50:49]MH_SAM_APDU [16:50:49]CAPDU: 80 0D 03 02 [16:50:50]Write to MH i2c: E2 08 00 9F 02 80 0D 03 02 00 00 00 00 1C [16:50:50]Write i2c OK [16:50:50]MH_I2C_Read... [16:50:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:50:50]Read from MH i2c: E2 [16:50:50]MH_I2C_Read... [16:50:50]Read from MH i2c: E2 0B 00 [16:50:50]MH_I2C_Read... [16:50:50]Read from MH i2c: E2 0B 00 9F 02 00 78 59 E5 E2 A3 DC 3B B8 90 00 27 [16:50:50]RAPDU: 78 59 E5 E2 A3 DC 3B B8 90 00 [16:50:50]wFMCommunicate OK [16:50:50]SAM_PROTO_SignData done [16:50:50]FM_MakeSignedData done [16:50:50]CreateOFDProtocolMessage [16:50:50]wFMCommunicate request_size=4 [16:50:50]MH_SAM_APDU [16:50:50]CAPDU: 80 11 00 00 [16:50:50]Write to MH i2c: E2 08 00 A0 02 80 11 00 00 00 00 00 00 1C [16:50:50]Write i2c OK [16:50:50]MH_I2C_Read... [16:50:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:50]Read from MH i2c: E2 [16:50:50]MH_I2C_Read... [16:50:50]Read from MH i2c: E2 17 00 [16:50:50]MH_I2C_Read... [16:50:50]Read from MH i2c: E2 17 00 A0 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 78 [16:50:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [16:50:50]wFMCommunicate OK [16:50:50]CreateOFDProtocolMessage done [16:50:50]OFDSenderStorePacket 41908 [16:50:50]StoreOFDPacket docnum=41908 [16:50:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 42 01 00 00 7E 5A 3A 01 24 D9 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 30 36 35 33 32 30 30 30 31 38 39 06 04 3C 00 D0 A2 D0 BE D1 80 D0 BC D0 BE D0 B7 D0 BD D0 B0 D1 8F 20 D0 B6 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D0 A0 D0 BE D1 81 D0 94 D0 BE D1 82 2D 34 20 30 2C 34 35 35 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A8 61 00 00 00 00 13 04 06 00 A8 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 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 66 C8 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 B4 A3 00 00 35 04 06 00 69 4F AB 6D 32 DB 78 59 E5 E2 A3 DC 3B B8 [16:50:50]CheckFolder [16:50:50]dirname=/storage/ofd_packets [16:50:50]CheckFolder done [16:50:50]ProducePacketName [16:50:50]name=ofd_packets/00041908 [16:50:50]NVStorageSaveData ofd_packets/00041908 [16:50:50]File name is /storage/ofd_packets/00041908 [16:50:50]Write 352 bytes [16:50:50]NVStorageSaveData done [16:50:50]OFDSenderStorePacket done [16:50:50]KKMCreateOFDPacket done [16:50:50]NVStorageSaveData kkm_last_timestamp [16:50:50]File name is /storage/kkm_last_timestamp [16:50:50]Write 4 bytes [16:50:50]NVStorageSaveData done [16:50:50]ExternCall_PrintAddStr [16:50:50]wPrintStart [16:50:50]Write to MH i2c: 01 00 00 A1 02 A3 [16:50:50]Write i2c OK [16:50:50]MH_I2C_Read... [16:50:50]Read from MH i2c: 01 [16:50:50]MH_I2C_Read... [16:50:50]Read from MH i2c: 01 07 00 [16:50:50]MH_I2C_Read... [16:50:50]Read from MH i2c: 01 07 00 A1 02 00 00 00 00 00 FF 0F B8 [16:50:50]RasterBufferAndPrint [16:50:50]line Счет N : (3)183936 [16:50:50]line ИНН: 02508201610067 [16:50:50]line Контрольно-Кассовый Чек [16:50:50]line ПРОДАЖА [16:50:50]line Товар: 4606532000189 [16:50:50]line Тормозная жидкость РосДот-4 0,455кг [16:50:50]line 1.000 * 250.00 [16:50:50]line = 250.00 [16:50:50]line НДС 12% НСП 1% [16:50:50]line > о реализуемом товаре [16:50:50]line ИТОГО: 250.00 [16:50:50]line НСП 1% : 2.21 [16:50:50]line НДС 12% : 26.55 [16:50:50]line Наличными: 250.00 [16:50:50]line Безнал.: 0.00 [16:50:50]line Место: АЗС № 97 "Партнер Нефть" [16:50:50]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [16:50:50]line СНО: Общий режим [16:50:50]line Чек 97 29.07.2024 16:50 [16:50:50]line Смена: 427 ФФД: 1.0 [16:50:50]line ЗНМ: 0300000053 [16:50:50]line РНМ: 0000000000092626 [16:50:50]line Версия ККМ: 001 [16:50:50]line ФМ: 0000000000874958 [16:50:50]line ФД: 41908 [16:50:50]line ФПД: 115790899393243 [16:50:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T165046&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41908&fm=115790899393243&tin=02508201610067®Number=0000000000092626&sum=25000 [16:50:50]line 0 [16:50:50]written 0, free lines is 4095 [16:50:50]Write to MH i2c: 01 00 00 CA 02 CC [16:50:50]Write i2c OK [16:50:50]MH_I2C_Read... [16:50:50]Read from MH i2c: 01 [16:50:50]MH_I2C_Read... [16:50:50]Read from MH i2c: 01 07 00 [16:50:50]MH_I2C_Read... [16:50:50]Read from MH i2c: 01 07 00 CA 02 00 00 00 00 00 11 0D F1 [16:50:50]RasterBufferAndPrint [16:50:50]line [16:50:50]line [16:50:50]line [16:50:50]line [16:50:50]line [16:50:50]written 0, free lines is 3420 [16:50:50]MH_Cut [16:50:50]Write to MH i2c: D1 01 00 D1 02 01 A5 [16:50:50]Write i2c OK [16:50:50]MH_I2C_Read... [16:50:50]Read from MH i2c: D1 [16:50:50]MH_I2C_Read... [16:50:50]Read from MH i2c: D1 01 00 [16:50:50]MH_I2C_Read... [16:50:50]Read from MH i2c: D1 01 00 D1 02 00 A4 [16:50:50]Write to MH i2c: 01 00 00 D2 02 D4 [16:50:50]Write i2c OK [16:50:50]MH_I2C_Read... [16:50:51]*** Cut start [16:50:51]*** Partial cut [16:50:51]*** CUTSNS_PIN = 1 [16:50:51]*** CUTSNS_PIN = 0 [16:50:51]*** Brake cut motor [16:50:52]Read from MH i2c: 01 [16:50:52]MH_I2C_Read... [16:50:52]*** Stop cut motor [16:50:52]*** Cut end [16:50:52]Read from MH i2c: 01 07 00 [16:50:52]MH_I2C_Read... [16:50:52]Read from MH i2c: 01 07 00 D2 02 00 00 00 00 00 FF 0F E9 [16:50:52]process_action close_receipt done [16:50:52]requested_data is exist [16:50:52]produce_requested_data [16:50:52]requested_item fm.sn is exist - process it [16:50:52]wFMCommunicate request_size=4 [16:50:52]MH_SAM_APDU [16:50:52]CAPDU: 80 11 00 00 [16:50:52]Write to MH i2c: E2 08 00 D3 02 80 11 00 00 00 00 00 00 4F [16:50:52]Write i2c OK [16:50:52]MH_I2C_Read... [16:50:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:52]Read from MH i2c: E2 [16:50:52]MH_I2C_Read... [16:50:52]Read from MH i2c: E2 17 00 [16:50:52]MH_I2C_Read... [16:50:52]Read from MH i2c: E2 17 00 D3 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 AB [16:50:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [16:50:52]wFMCommunicate OK [16:50:52]requested_item fd.num is exist - process it [16:50:52]SAM_PROTO_GetFieldsCounters [16:50:52]wFMCommunicate request_size=4 [16:50:52]MH_SAM_APDU [16:50:52]CAPDU: 80 13 00 00 [16:50:52]Write to MH i2c: E2 08 00 D4 02 80 13 00 00 00 00 00 00 52 [16:50:52]Write i2c OK [16:50:52]MH_I2C_Read... [16:50:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:50:52]Read from MH i2c: E2 [16:50:52]MH_I2C_Read... [16:50:52]Read from MH i2c: E2 62 00 [16:50:52]Received data: MH_I2C_Read... [16:50:52]87 95 Read from MH i2c: F6 E2 70 62 47 00 2C D4 01 02 00 00 30 5D 30 00 30 B9 30 04 30 01 30 00 30 01 30 11 30 04 30 10 38 37 34 39 35 38 4F 00 00 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 B4 A3 00 00 0E 04 04 00 AB 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 96 00 00 00 00 90 00 A2 [16:50:52]RAPDU: CF 5D 47 00 00 B9 DA 04 01 00 01 11 04 10 00 30 5A 30 A5 30 07 30 01 30 30 30 30 30 30 38 37 34 00 39 07 35 00 38 3B 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 B4 A3 00 00 0E 04 04 00 AB 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 [16:50:53]wFMCommunicate OK [16:50:53]SAM_PROTO_GetFieldsCounters done [16:50:53]requested_item shift.num is exist - process it [16:50:53]requested_item shift.opened is exist - process it [16:50:53]req_shift_opened [16:50:53]FM_GetShiftState [16:50:53]SAM_PROTO_GetShiftState [16:50:53]wFMCommunicate request_size=4 [16:50:53]MH_SAM_APDU [16:50:53]CAPDU: 80 13 01 00 [16:50:53]Write to MH i2c: E2 08 00 D5 02 80 13 01 00 00 00 00 00 F9 00 03 54 0E [16:50:53]00 37 37 30 Write i2c OK [16:50:53]39 MH_I2C_Read... [16:50:53]33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 *** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:53]30 38 37 34 39 35 38 Read from MH i2c: 10 E2 04 [16:50:53]04 MH_I2C_Read... [16:50:53]00 Read from MH i2c: AA E2 A3 0E 00 00 00 F4 [16:50:53]03 MH_I2C_Read... [16:50:53]04 00 Read from MH i2c: E2 80 0E 74 00 A7 D5 66 02 B6 00 04 09 01 00 00 01 00 A8 EB DC 4B A6 DA 66 0E 00 9D 00 67 00 98 00 77 90 [16:50:53]00 CommunicateWithHost err = 0 [16:50:53]F0 CheckOFDResponse [16:50:53] [16:50:53]1017 (14) - 77093643461234 [16:50:53]RAPDU: 1041 (16) - 0000000000874958 [16:50:53]09 1040 (4) - 41898 [16:50:53]00 01 1012 (4) - 29.07.2024 10:52 [16:50:53]A8 1206 (1) - 0 [16:50:53]DC OFD Sender: Remove packet 41898 [16:50:53]A6 ProducePacketName [16:50:53]66 name=ofd_packets/00041898 [16:50:53]00 NVStorageDeleteData [16:50:53]00 00 00 90 00 [16:50:53]wFMCommunicate OK [16:50:53]SAM_PROTO_GetShiftState done [16:50:53]FM_GetShiftState done [16:50:53]req_shift_opened done [16:50:53]requested_item shift.open_date is exist - process it [16:50:53]req_shift_open_date [16:50:53]req_shift_open_date done [16:50:53]produce_requested_data done [16:50:53]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41908,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [16:50:53]process_action_free close_receipt [16:50:53]json_value_free [16:50:53]json_value_free done [16:50:53]process_json_proto returns [16:50:53]Send response to host [16:50:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41908,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [16:50:53]free response buf [16:50:53]execute_script done [16:50:53]execute_script returns [16:50:53]free content buf [16:50:53]Sock 8.Close socket [16:50:53]Sock 8.Thread stoped [16:50:54]OFD Sender: Processing packet 41899 [packets to send 66, broken 56] [16:50:54]ProducePacketName [16:50:54]name=ofd_packets/00041899 [16:50:54]OFD Sender: To server: pG, [16:50:54]CommunicateWithHost lk.salyk.kg:30040 [16:50:54]ConnectInit lk.salyk.kg [16:50:57]Connected sock=8 [16:50: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 35 38 26 01 00 00 D0 ED 1E 01 6C 0D 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 B3 A5 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 AB A3 00 00 35 04 06 00 B2 A8 77 89 67 F8 22 3C FB C3 4A 24 42 18 [16:50:59]accept exits with 12 [16:50:59]New connection [16:50:59]New thread 3066858852 created [16:50:59]Thread 3067002212 joined [16:50:59]Waiting for new connection... [16:50:59] Sock 12.Parse request [16:50:59]Sock 12.Check first char [16:50:59]Sock 12.First char is OK [16:50:59]request: POST /json_proto HTTP/1.0 [16:50:59]Method: POST [16:50:59]URL: /json_proto [16:50:59]Method is POST - this is cgi request [16:50:59]url: /json_proto [16:50:59]query_string will be loaded in cgi processing [16:50:59]execute_cgi json_proto POST (null) [16:50:59]execute_cgi path=json_proto method=POST [16:50:59]POST find Content-Length [16:50:59]Host: 172.17.43.132:8080 [16:50:59]Content-Length: 669 [16:50:59]Content-Type: application/json [16:50:59] [16:50:59]POST finish read [16:50:59]Found Content-Length = 669 [16:50:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183937", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 110.00, "quantity" : 2.000, "sum" : 220.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 220.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:50:59]execute_script... [16:50:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183937", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 110.00, "quantity" : 2.000, "sum" : 220.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 220.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:50:59]POST & json_proto [16:50:59]process_json_proto [16:50:59]json parsed OK: [16:50:59]protocol is kg_v1.0 [16:50:59]action value=close_receipt [16:50:59]process_action close_receipt [16:50:59]cmd_close_receipt [16:50:59]MH_GetDate [16:50:59]Write to MH i2c: F0 00 00 D6 02 C7 [16:50:59]Write i2c OK [16:50:59]MH_I2C_Read... [16:50:59]Read from MH i2c: F0 [16:50:59]MH_I2C_Read... [16:50:59]Read from MH i2c: F0 09 00 [16:50:59]MH_I2C_Read... [16:50:59]Read from MH i2c: F0 09 00 D6 02 00 73 C8 A7 66 64 A3 A7 66 2C [16:50:59]GetLastDocTimeStamp 1722271846 [16:50:59]current date 1722271859 [16:50:59]FM_GetShiftState [16:50:59]SAM_PROTO_GetShiftState [16:50:59]wFMCommunicate request_size=4 [16:50:59]MH_SAM_APDU [16:50:59]CAPDU: 80 13 01 00 [16:50:59]Write to MH i2c: E2 08 00 D7 02 80 13 01 00 00 00 00 00 56 [16:50:59]Write i2c OK [16:50:59]MH_I2C_Read... [16:50:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:59]Read from MH i2c: E2 [16:50:59]MH_I2C_Read... [16:50:59]Read from MH i2c: E2 0E 00 [16:50:59]MH_I2C_Read... [16:50:59]Read from MH i2c: E2 0E 00 D7 02 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 F2 [16:50:59]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [16:50:59]wFMCommunicate OK [16:50:59]SAM_PROTO_GetShiftState done [16:50:59]FM_GetShiftState done [16:50:59]opened in 1722211496 [16:50:59]opened+sec_in_day 1722297896 [16:50:59]quantity*price = 22000 [16:50:59]sum+1 = 22001 [16:50:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 220.00 НСП 1% : 1.95 НДС 12% : 23.36 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 98 29.07.2024 16:51 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41909 ФПД: 279421638921636 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T165100&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41909&fm=279421638921636&tin=02508201610067®Number=0000000000092626&sum=22000 0 [16:51:01]StoreToDocumentArchive [16:51:01]shift 427 fd 41909 [16:51:01]save to /storage/0427/doc_00041909 [16:51:01]save last doc name /storage/0427/doc_00041909 to /storage/kkm_last_doc_name [16:51:01]save OK [16:51:01]Clear old archive folders... [16:51:01]ProcessDocumentItem done err = 0, tmpTLVsize=293 [16:51:01]tlvbuf is 00445420 [16:51:01]SAM_PROTO_ClearQueue [16:51:01]wFMCommunicate request_size=4 [16:51:01]MH_SAM_APDU [16:51:01]CAPDU: 80 09 00 00 [16:51:01]Write to MH i2c: E2 08 00 E4 02 80 09 00 00 00 00 00 00 58 [16:51:01]Write i2c OK [16:51:01]MH_I2C_Read... [16:51:01]OFD Sender: Processing packet 41900 [packets to send 65, broken 56] [16:51:01]ProducePacketName [16:51:01]name=ofd_packets/00041900 [16:51:01]OFD Sender: To server: pG, [16:51:01]CommunicateWithHost lk.salyk.kg:30040 [16:51:01]ConnectInit lk.salyk.kg [16:51:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:51:01]Read from MH i2c: E2 [16:51:01]MH_I2C_Read... [16:51:01]Read from MH i2c: E2 03 00 [16:51:01]MH_I2C_Read... [16:51:01]Read from MH i2c: E2 03 00 E4 02 00 90 00 5A [16:51:01]RAPDU: 90 00 [16:51:01]wFMCommunicate OK [16:51:01]SAM_PROTO_ClearQueue done [16:51:01]KKMCreateOFDPacket [16:51:01]OFDProtocolAddRootSTLVToBuf [16:51:01]FM_MakeSignedData [16:51:01]FM_MakeSignedData [16:51:01]SAM_PROTO_SignData [16:51:01]wFMCommunicate request_size=4 [16:51:01]MH_SAM_APDU [16:51:01]CAPDU: 80 0D 01 02 [16:51:01]Write to MH i2c: E2 08 00 E5 02 80 0D 01 02 00 00 00 00 60 [16:51:01]Write i2c OK [16:51:01]MH_I2C_Read... [16:51:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:51:02]Read from MH i2c: E2 [16:51:02]MH_I2C_Read... [16:51:02]Read from MH i2c: E2 03 00 [16:51:02]MH_I2C_Read... [16:51:02]Read from MH i2c: E2 03 00 E5 02 00 90 00 5B [16:51:02]RAPDU: 90 00 [16:51:02]wFMCommunicate OK [16:51:02]wFMCommunicate request_size=255 [16:51:02]MH_SAM_APDU [16:51:02]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F0 55 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 20 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 62 00 00 00 F4 03 04 00 74 C8 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [16:51:02]Write to MH i2c: E2 02 01 E6 02 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F0 55 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 20 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 62 00 00 00 F4 03 04 00 74 C8 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 1D [16:51:02]Write i2c OK [16:51:02]MH_I2C_Read... [16:51:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:51:03]Read from MH i2c: E2 [16:51:03]MH_I2C_Read... [16:51:03]Read from MH i2c: E2 03 00 [16:51:03]MH_I2C_Read... [16:51:03]Read from MH i2c: E2 03 00 E6 02 00 90 00 5C [16:51:03]RAPDU: 90 00 [16:51:03]wFMCommunicate OK [16:51:03]wFMCommunicate request_size=52 [16:51:03]MH_SAM_APDU [16:51:03]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 B5 A3 00 00 35 04 06 00 FE 21 EB 87 CD A4 [16:51:03]Write to MH i2c: E2 37 00 E7 02 80 0D 02 02 2F 00 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 B5 A3 00 00 35 04 06 00 FE 21 EB 87 CD A4 00 00 89 [16:51:03]Write i2c OK [16:51:03]MH_I2C_Read... [16:51:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:51:03]Read from MH i2c: E2 [16:51:03]MH_I2C_Read... [16:51:03]Read from MH i2c: E2 03 00 [16:51:03]MH_I2C_Read... [16:51:03]Read from MH i2c: E2 03 00 E7 02 00 90 00 5D [16:51:03]RAPDU: 90 00 [16:51:03]wFMCommunicate OK [16:51:03]wFMCommunicate request_size=4 [16:51:03]MH_SAM_APDU [16:51:03]CAPDU: 80 0D 03 02 [16:51:03]Write to MH i2c: E2 08 00 E8 02 80 0D 03 02 00 00 00 00 65 [16:51:03]Write i2c OK [16:51:03]MH_I2C_Read... [16:51:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:51:03]Read from MH i2c: E2 [16:51:03]MH_I2C_Read... [16:51:03]Read from MH i2c: E2 0B 00 [16:51:03]MH_I2C_Read... [16:51:03]Read from MH i2c: E2 0B 00 E8 02 00 4A 47 09 08 82 71 A7 AD 90 00 4F [16:51:03]RAPDU: 4A 47 09 08 82 71 A7 AD 90 00 [16:51:03]wFMCommunicate OK [16:51:03]SAM_PROTO_SignData done [16:51:03]FM_MakeSignedData done [16:51:03]CreateOFDProtocolMessage [16:51:03]wFMCommunicate request_size=4 [16:51:03]MH_SAM_APDU [16:51:03]CAPDU: 80 11 00 00 [16:51:03]Write to MH i2c: E2 08 00 E9 02 80 11 00 00 00 00 00 00 65 [16:51:03]Write i2c OK [16:51:03]MH_I2C_Read... [16:51:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:51:03]Read from MH i2c: E2 [16:51:03]MH_I2C_Read... [16:51:03]Read from MH i2c: E2 17 00 [16:51:03]MH_I2C_Read... [16:51:03]Read from MH i2c: E2 17 00 E9 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 C1 [16:51:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [16:51:03]wFMCommunicate OK [16:51:03]CreateOFDProtocolMessage done [16:51:03]OFDSenderStorePacket 41909 [16:51:03]StoreOFDPacket docnum=41909 [16:51:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 39 01 00 00 90 A0 31 01 64 0F 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F0 55 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 20 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 62 00 00 00 F4 03 04 00 74 C8 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 B5 A3 00 00 35 04 06 00 FE 21 EB 87 CD A4 4A 47 09 08 82 71 A7 AD [16:51:03]CheckFolder [16:51:03]dirname=/storage/ofd_packets [16:51:03]CheckFolder done [16:51:03]ProducePacketName [16:51:03]name=ofd_packets/00041909 [16:51:03]NVStorageSaveData ofd_packets/00041909 [16:51:03]File name is /storage/ofd_packets/00041909 [16:51:03]Write 343 bytes [16:51:03]NVStorageSaveData done [16:51:03]OFDSenderStorePacket done [16:51:03]KKMCreateOFDPacket done [16:51:03]NVStorageSaveData kkm_last_timestamp [16:51:03]File name is /storage/kkm_last_timestamp [16:51:03]Write 4 bytes [16:51:03]NVStorageSaveData done [16:51:03]ExternCall_PrintAddStr [16:51:03]wPrintStart [16:51:03]Write to MH i2c: 01 00 00 EA 02 EC [16:51:03]Write i2c OK [16:51:03]MH_I2C_Read... [16:51:03]Read from MH i2c: 01 [16:51:03]MH_I2C_Read... [16:51:03]Read from MH i2c: 01 07 00 [16:51:03]MH_I2C_Read... [16:51:03]Read from MH i2c: 01 07 00 EA 02 00 00 00 00 00 FF 0F 01 [16:51:03]RasterBufferAndPrint [16:51:03]line Счет N : (3)183937 [16:51:03]line ИНН: 02508201610067 [16:51:03]line Контрольно-Кассовый Чек [16:51:03]line ПРОДАЖА [16:51:03]line Товар: 4870022003305 [16:51:03]line Напиток Gorilla эн нат ж/б 0,5/0,45л [16:51:03]line 2.000 * 110.00 [16:51:03]line = 220.00 [16:51:03]line НДС 12% НСП 1% [16:51:03]line > о реализуемом товаре [16:51:03]line ИТОГО: 220.00 [16:51:03]line НСП 1% : 1.95 [16:51:03]line НДС 12% : 23.36 [16:51:03]line Наличными: 220.00 [16:51:03]line Безнал.: 0.00 [16:51:03]line Место: АЗС № 97 "Партнер Нефть" [16:51:03]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [16:51:03]line СНО: Общий режим [16:51:03]line Чек 98 29.07.2024 16:51 [16:51:03]line Смена: 427 ФФД: 1.0 [16:51:03]line ЗНМ: 0300000053 [16:51:03]line РНМ: 0000000000092626 [16:51:03]line Версия ККМ: 001 [16:51:03]line ФМ: 0000000000874958 [16:51:03]line ФД: 41909 [16:51:03]line ФПД: 279421638921636 [16:51:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T165100&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41909&fm=279421638921636&tin=02508201610067®Number=0000000000092626&sum=22000 [16:51:03]line 0 [16:51:03]written 0, free lines is 4095 [16:51:04]Write to MH i2c: 01 00 00 13 03 16 [16:51:04]Write i2c OK [16:51:04]MH_I2C_Read... [16:51:04]Read from MH i2c: 01 [16:51:04]MH_I2C_Read... [16:51:04]Read from MH i2c: 01 07 00 [16:51:04]MH_I2C_Read... [16:51:04]Read from MH i2c: 01 07 00 13 03 00 00 00 00 00 19 0D 43 [16:51:04]RasterBufferAndPrint [16:51:04]line [16:51:04]line [16:51:04]line [16:51:04]line [16:51:04]line [16:51:04]written 0, free lines is 3429 [16:51:04]MH_Cut [16:51:04]Write to MH i2c: D1 01 00 1A 03 01 EF [16:51:04]Write i2c OK [16:51:04]MH_I2C_Read... [16:51:04]Read from MH i2c: D1 [16:51:04]MH_I2C_Read... [16:51:04]Read from MH i2c: D1 01 00 [16:51:04]MH_I2C_Read... [16:51:04]Read from MH i2c: D1 01 00 1A 03 00 EE [16:51:04]Write to MH i2c: 01 00 00 1B 03 1E [16:51:04]Write i2c OK [16:51:04]MH_I2C_Read... [16:51:04]Connected sock=10 [16:51:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 *** Cut start [16:51:04]34 39 35 38 08 02 00 00 60 C7 00 02 F7 D4 5A 03 01 00 03 00 F4 01 1E 04 01 00 *** Partial cut [16:51:04]01 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 00 D0 A5 D0 BE D0 *** CUTSNS_PIN = 1 [16:51:05]BB D0 BE D0 B4 D0 BD *** CUTSNS_PIN = 0 [16:51:05]D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 *** Brake cut motor [16:51:05]23 04 5D 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 31 38 31 06 04 19 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 B0 D0 B9 D1 82 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 50 00 00 00 00 EB 03 26 00 EF 03 0F Read from MH i2c: 00 01 F6 [16:51:05]03 MH_I2C_Read... [16:51:05]01 *** Stop cut motor [16:51:05]00 *** Cut end [16:51:05]01 F7 03 06 00 B7 Read from MH i2c: 00 01 00 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 [16:51:05]96 MH_I2C_Read... [16:51:05]08 Read from MH i2c: 00 01 00 07 00 00 00 1B 07 03 04 00 06 00 00 00 00 00 00 00 00 FF 00 0F 00 00 39 04 06 00 DC 50 00 33 00 [16:51:05]00 process_action close_receipt done [16:51:05]00 requested_data is exist [16:51:05]1F produce_requested_data [16:51:05]04 requested_item fm.sn is exist - process it [16:51:05]02 wFMCommunicate request_size=4 [16:51:05]00 01 00 12 04 04 00 59 00 MH_SAM_APDU [16:51:05]00 CAPDU: 00 80 F4 11 03 00 04 00 00 [16:51:05]2C Write to MH i2c: C8 E2 A7 08 66 00 0E 04 04 00 AB 01 00 00 B9 1C 04 03 01 80 00 11 01 00 0D 00 04 00 10 00 00 00 30 00 30 99 [16:51:05]30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 Write i2c OK [16:51:05]39 MH_I2C_Read... [16:51:05]35 Read from MH i2c: 38 E2 10 [16:51:05]04 MH_I2C_Read... [16:51:05]04 Read from MH i2c: 00 E2 *** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:51:06]17 AC 00 A3 [16:51:06]00 00 35 04 06 00 71 0F MH_I2C_Read... [16:51:06]BF Read from MH i2c: 67 E2 2D 17 8F 00 34 1C 88 3F AD 03 FC 41 15 [16:51:06]03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 F5 [16:51:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [16:51:06]wFMCommunicate OK [16:51:06]requested_item fd.num is exist - process it [16:51:06]SAM_PROTO_GetFieldsCounters [16:51:06]wFMCommunicate request_size=4 [16:51:06]MH_SAM_APDU [16:51:06]CAPDU: 80 13 00 00 [16:51:06]Write to MH i2c: E2 08 00 1D 03 80 13 00 00 00 00 00 00 9C [16:51:06]Write i2c OK [16:51:06]MH_I2C_Read... [16:51:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:51:06]Read from MH i2c: E2 [16:51:06]MH_I2C_Read... [16:51:06]Read from MH i2c: E2 62 00 [16:51:06]MH_I2C_Read... [16:51:06]Read from MH i2c: E2 62 00 1D 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 B5 A3 00 00 0E 04 04 00 AB 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 [16:51:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 B5 A3 00 00 0E 04 04 00 AB 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 [16:51:06]wFMCommunicate OK [16:51:06]SAM_PROTO_GetFieldsCounters done [16:51:06]requested_item shift.num is exist - process it [16:51:06]requested_item shift.opened is exist - process it [16:51:06]req_shift_opened [16:51:06]FM_GetShiftState [16:51:06]SAM_PROTO_GetShiftState [16:51:06]wFMCommunicate request_size=4 [16:51:06]MH_SAM_APDU [16:51:06]CAPDU: 80 13 01 00 [16:51:06]Write to MH i2c: E2 08 00 1E 03 80 13 01 00 00 00 00 00 9E [16:51:06]Write i2c OK [16:51:06]MH_I2C_Read... [16:51:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:51:06]Read from MH i2c: E2 [16:51:06]MH_I2C_Read... [16:51:06]Read from MH i2c: E2 0E 00 [16:51:06]MH_I2C_Read... [16:51:06]Read from MH i2c: E2 0E 00 1E 03 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 3A [16:51:06]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [16:51:06]wFMCommunicate OK [16:51:06]SAM_PROTO_GetShiftState done [16:51:06]FM_GetShiftState done [16:51:06]req_shift_opened done [16:51:06]requested_item shift.open_date is exist - process it [16:51:06]req_shift_open_date [16:51:06]req_shift_open_date done [16:51:06]produce_requested_data done [16:51:06]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41909,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [16:51:06]process_action_free close_receipt [16:51:06]json_value_free [16:51:06]json_value_free done [16:51:06]process_json_proto returns [16:51:06]Send response to host [16:51:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41909,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [16:51:06]free response buf [16:51:06]execute_script done [16:51:06]execute_script returns [16:51:06]free content buf [16:51:06]Sock 12.Close socket [16:51:06]Sock 12.Thread stoped [16:51:08]accept exits with 9 [16:51:08]New connection [16:51:08]New thread 3067002212 created [16:51:08]Thread 3066858852 joined [16:51:08]Waiting for new connection... [16:51:08] Sock 9.Parse request [16:51:08]Sock 9.Check first char [16:51:08]Sock 9.First char is OK [16:51:08]request: POST /json_proto HTTP/1.0 [16:51:08]Method: POST [16:51:08]URL: /json_proto [16:51:08]Method is POST - this is cgi request [16:51:08]url: /json_proto [16:51:08]query_string will be loaded in cgi processing [16:51:08]execute_cgi json_proto POST (null) [16:51:08]execute_cgi path=json_proto method=POST [16:51:08]POST find Content-Length [16:51:08]Host: 172.17.43.132:8080 [16:51:08]Content-Length: 623 [16:51:08]Content-Type: application/json [16:51:08] [16:51:08]POST finish read [16:51:08]Found Content-Length = 623 [16:51:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183938", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:51:08]execute_script... [16:51:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183938", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:51:08]POST & json_proto [16:51:08]process_json_proto [16:51:08]json parsed OK: [16:51:08]protocol is kg_v1.0 [16:51:08]action value=close_receipt [16:51:08]process_action close_receipt [16:51:08]cmd_close_receipt [16:51:08]MH_GetDate [16:51:08]Write to MH i2c: F0 00 00 1F 03 11 [16:51:08]Write i2c OK [16:51:08]MH_I2C_Read... [16:51:08]Read from MH i2c: F0 [16:51:08]MH_I2C_Read... [16:51:08]Read from MH i2c: F0 09 00 [16:51:08]MH_I2C_Read... [16:51:08]Read from MH i2c: F0 09 00 1F 03 00 7C C8 A7 66 64 A3 A7 66 7F [16:51:08]GetLastDocTimeStamp 1722271860 [16:51:08]current date 1722271868 [16:51:08]FM_GetShiftState [16:51:08]SAM_PROTO_GetShiftState [16:51:08]wFMCommunicate request_size=4 [16:51:08]MH_SAM_APDU [16:51:08]CAPDU: 80 13 01 00 [16:51:08]Write to MH i2c: E2 08 00 20 03 80 13 01 00 00 00 00 00 A0 [16:51:08]Write i2c OK [16:51:08]MH_I2C_Read... [16:51:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:51:08]Read from MH i2c: E2 [16:51:08]MH_I2C_Read... [16:51:08]Read from MH i2c: E2 0E 00 [16:51:08]MH_I2C_Read... [16:51:08]Read from MH i2c: E2 0E 00 20 03 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 3C [16:51:08]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [16:51:08]wFMCommunicate OK [16:51:08]SAM_PROTO_GetShiftState done [16:51:08]FM_GetShiftState done [16:51:08]opened in 1722211496 [16:51:08]opened+sec_in_day 1722297896 [16:51:08]quantity*price = 14000 [16:51:08]sum+1 = 14001 [16:51:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 99 29.07.2024 16:51 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41910 ФПД: 238069682343228 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T165109&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41910&fm=238069682343228&tin=02508201610067®Number=0000000000092626&sum=14000 0 [16:51:10]StoreToDocumentArchive [16:51:10]shift 427 fd 41910 [16:51:10]save to /storage/0427/doc_00041910 [16:51:10]save last doc name /storage/0427/doc_00041910 to /storage/kkm_last_doc_name [16:51:10]save OK [16:51:10]Clear old archive folders... [16:51:10]ProcessDocumentItem done err = 0, tmpTLVsize=275 [16:51:10]tlvbuf is 002B1F80 [16:51:10]SAM_PROTO_ClearQueue [16:51:10]wFMCommunicate request_size=4 [16:51:10]MH_SAM_APDU [16:51:10]CAPDU: 80 09 00 00 [16:51:10]Write to MH i2c: E2 08 00 2D 03 80 09 00 00 00 00 00 00 A2 [16:51:10]Write i2c OK [16:51:10]MH_I2C_Read... [16:51:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:51:10]Read from MH i2c: E2 [16:51:10]MH_I2C_Read... [16:51:10]Read from MH i2c: E2 03 00 [16:51:10]MH_I2C_Read... [16:51:10]Read from MH i2c: E2 03 00 2D 03 00 90 00 A4 [16:51:11]RAPDU: 90 00 [16:51:11]wFMCommunicate OK [16:51:11]SAM_PROTO_ClearQueue done [16:51:11]KKMCreateOFDPacket [16:51:11]OFDProtocolAddRootSTLVToBuf [16:51:11]FM_MakeSignedData [16:51:11]FM_MakeSignedData [16:51:11]SAM_PROTO_SignData [16:51:11]wFMCommunicate request_size=4 [16:51:11]MH_SAM_APDU [16:51:11]CAPDU: 80 0D 01 02 [16:51:11]Write to MH i2c: E2 08 00 2E 03 80 0D 01 02 00 00 00 00 AA [16:51:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 Write i2c OK [16:51:11]30 MH_I2C_Read... [16:51:11]30 30 30 30 Read from MH i2c: 30 E2 38 [16:51:11]37 MH_I2C_Read... [16:51:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:51:11]Read from MH i2c: 34 E2 39 03 35 38 4F 00 00 00 96 9C 00 47 [16:51:11]00 MH_I2C_Read... [16:51:11]B9 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 Read from MH i2c: 30 E2 30 03 30 00 30 2E 30 03 38 00 37 90 34 00 39 A5 35 [16:51:11]38 10 04 04 00 AC A3 00 RAPDU: 00 90 F4 00 03 [16:51:11]04 wFMCommunicate OK [16:51:11]00 wFMCommunicate request_size=255 [16:51:11]90 MH_SAM_APDU [16:51:11]74 A7 66 B6 04 01 00 00 CAPDU: 6A 80 7C 0D 27 02 F6 7D FA 49 00 [16:51:11]CommunicateWithHost err = 0 [16:51:11]CheckOFDResponse [16:51:11]02 1017 (14) - 77093643461234 [16:51:11]FA 1041 (16) - 0000000000874958 [16:51:11]03 1040 (4) - 41900 [16:51:11]1012 (4) - 29.07.2024 10:53 [16:51:11]1206 (1) - 0 [16:51:11]OFD Sender: Remove packet 41900 [16:51:11]ProducePacketName [16:51:11]name=ofd_packets/00041900 [16:51:11]NVStorageDeleteData [16:51:11]00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 7D C8 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 [16:51:11]Write to MH i2c: E2 02 01 2F 03 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 OFD Sender: Processing packet 41901 [packets to send 65, broken 56] [16:51:12]03 ProducePacketName [16:51:12]01 name=ofd_packets/00041901 [16:51:12]00 OFD Sender: To server: pG, [16:51:12]01 CommunicateWithHost lk.salyk.kg:30040 [16:51:12]BC ConnectInit lk.salyk.kg [16:51:12]04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 7D C8 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 00 00 9B [16:51:12]Write i2c OK [16:51:12]MH_I2C_Read... [16:51:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:51:12]Read from MH i2c: E2 [16:51:12]MH_I2C_Read... [16:51:12]Read from MH i2c: E2 03 00 [16:51:12]MH_I2C_Read... [16:51:12]Read from MH i2c: E2 03 00 2F 03 00 90 00 A6 [16:51:12]RAPDU: 90 00 [16:51:12]wFMCommunicate OK [16:51:12]wFMCommunicate request_size=34 [16:51:12]MH_SAM_APDU [16:51:12]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 B6 A3 00 00 35 04 06 00 D8 85 EA D9 0D 3C [16:51:12]Write to MH i2c: E2 25 00 30 03 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 B6 A3 00 00 35 04 06 00 D8 85 EA D9 0D 3C 00 00 39 [16:51:12]Write i2c OK [16:51:12]MH_I2C_Read... [16:51:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:51:12]Read from MH i2c: E2 [16:51:12]MH_I2C_Read... [16:51:12]Read from MH i2c: E2 03 00 [16:51:12]MH_I2C_Read... [16:51:12]Read from MH i2c: E2 03 00 30 03 00 90 00 A7 [16:51:12]RAPDU: 90 00 [16:51:12]wFMCommunicate OK [16:51:12]wFMCommunicate request_size=4 [16:51:12]MH_SAM_APDU [16:51:12]CAPDU: 80 0D 03 02 [16:51:12]Write to MH i2c: E2 08 00 31 03 80 0D 03 02 00 00 00 00 AF [16:51:12]Write i2c OK [16:51:12]MH_I2C_Read... [16:51:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:51:12]Read from MH i2c: E2 [16:51:12]MH_I2C_Read... [16:51:12]Read from MH i2c: E2 0B 00 [16:51:12]MH_I2C_Read... [16:51:12]Read from MH i2c: E2 0B 00 31 03 00 DE 86 42 AD D4 37 B0 3B 90 00 F9 [16:51:12]RAPDU: DE 86 42 AD D4 37 B0 3B 90 00 [16:51:12]wFMCommunicate OK [16:51:12]SAM_PROTO_SignData done [16:51:12]FM_MakeSignedData done [16:51:12]CreateOFDProtocolMessage [16:51:12]wFMCommunicate request_size=4 [16:51:12]MH_SAM_APDU [16:51:12]CAPDU: 80 11 00 00 [16:51:12]Write to MH i2c: E2 08 00 32 03 80 11 00 00 00 00 00 00 AF [16:51:12]Write i2c OK [16:51:12]MH_I2C_Read... [16:51:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:51:13]Read from MH i2c: E2 [16:51:13]MH_I2C_Read... [16:51:13]Read from MH i2c: E2 17 00 [16:51:13]MH_I2C_Read... [16:51:13]Read from MH i2c: E2 17 00 32 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 0B [16:51:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [16:51:13]wFMCommunicate OK [16:51:13]CreateOFDProtocolMessage done [16:51:13]OFDSenderStorePacket 41910 [16:51:13]StoreOFDPacket docnum=41910 [16:51:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 27 01 00 00 C9 B4 1F 01 F9 BC 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 7D C8 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 B6 A3 00 00 35 04 06 00 D8 85 EA D9 0D 3C DE 86 42 AD D4 37 B0 3B [16:51:13]CheckFolder [16:51:13]dirname=/storage/ofd_packets [16:51:13]CheckFolder done [16:51:13]ProducePacketName [16:51:13]name=ofd_packets/00041910 [16:51:13]NVStorageSaveData ofd_packets/00041910 [16:51:13]File name is /storage/ofd_packets/00041910 [16:51:13]Write 325 bytes [16:51:13]NVStorageSaveData done [16:51:13]OFDSenderStorePacket done [16:51:13]KKMCreateOFDPacket done [16:51:13]NVStorageSaveData kkm_last_timestamp [16:51:13]File name is /storage/kkm_last_timestamp [16:51:13]Write 4 bytes [16:51:13]NVStorageSaveData done [16:51:13]ExternCall_PrintAddStr [16:51:13]wPrintStart [16:51:13]Write to MH i2c: 01 00 00 33 03 36 [16:51:13]Write i2c OK [16:51:13]MH_I2C_Read... [16:51:13]Read from MH i2c: 01 [16:51:13]MH_I2C_Read... [16:51:13]Read from MH i2c: 01 07 00 [16:51:13]MH_I2C_Read... [16:51:13]Read from MH i2c: 01 07 00 33 03 00 00 00 00 00 FF 0F 4B [16:51:13]RasterBufferAndPrint [16:51:13]line Счет N : (3)183938 [16:51:13]line ИНН: 02508201610067 [16:51:13]line Контрольно-Кассовый Чек [16:51:13]line ПРОДАЖА [16:51:13]line Товар: 48743587 [16:51:13]line Сигареты Winston XStyle Silver [16:51:13]line 1.000 * 140.00 [16:51:13]line = 140.00 [16:51:13]line НДС 12% НСП 1% [16:51:13]line > о реализуемом товаре [16:51:13]line ИТОГО: 140.00 [16:51:13]line НСП 1% : 1.24 [16:51:13]line НДС 12% : 14.87 [16:51:13]line Наличными: 140.00 [16:51:13]line Безнал.: 0.00 [16:51:13]line Место: АЗС № 97 "Партнер Нефть" [16:51:13]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [16:51:13]line СНО: Общий режим [16:51:13]line Чек 99 29.07.2024 16:51 [16:51:13]line Смена: 427 ФФД: 1.0 [16:51:13]line ЗНМ: 0300000053 [16:51:13]line РНМ: 0000000000092626 [16:51:13]line Версия ККМ: 001 [16:51:13]line ФМ: 0000000000874958 [16:51:13]line ФД: 41910 [16:51:13]line ФПД: 238069682343228 [16:51:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T165109&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41910&fm=238069682343228&tin=02508201610067®Number=0000000000092626&sum=14000 [16:51:13]line 0 [16:51:13]written 0, free lines is 4095 [16:51:13]Write to MH i2c: 01 00 00 5C 03 5F [16:51:13]Write i2c OK [16:51:13]MH_I2C_Read... [16:51:13]Read from MH i2c: 01 [16:51:13]MH_I2C_Read... [16:51:13]Read from MH i2c: 01 07 00 [16:51:13]MH_I2C_Read... [16:51:13]Read from MH i2c: 01 07 00 5C 03 00 00 00 00 00 15 0D 88 [16:51:13]RasterBufferAndPrint [16:51:13]line [16:51:13]line [16:51:13]line [16:51:13]line [16:51:13]line [16:51:13]written 0, free lines is 3435 [16:51:13]MH_Cut [16:51:13]Write to MH i2c: D1 01 00 63 03 01 38 [16:51:13]Write i2c OK [16:51:13]MH_I2C_Read... [16:51:13]Read from MH i2c: D1 [16:51:13]MH_I2C_Read... [16:51:13]Read from MH i2c: D1 01 00 [16:51:13]MH_I2C_Read... [16:51:13]Read from MH i2c: D1 01 00 63 03 00 37 [16:51:13]Write to MH i2c: 01 00 00 64 03 67 [16:51:13]Write i2c OK [16:51:13]MH_I2C_Read... [16:51:14]*** Cut start [16:51:14]*** Partial cut [16:51:14]*** CUTSNS_PIN = 1 [16:51:14]*** CUTSNS_PIN = 0 [16:51:14]*** Brake cut motor [16:51:15]Read from MH i2c: 01 [16:51:15]MH_I2C_Read... [16:51:15]*** Stop cut motor [16:51:15]*** Cut end [16:51:15]Read from MH i2c: 01 07 00 [16:51:15]MH_I2C_Read... [16:51:15]Read from MH i2c: 01 07 00 64 03 00 00 00 00 00 FF 0F 7C [16:51:15]process_action close_receipt done [16:51:15]requested_data is exist [16:51:15]produce_requested_data [16:51:15]requested_item fm.sn is exist - process it [16:51:15]wFMCommunicate request_size=4 [16:51:15]MH_SAM_APDU [16:51:15]CAPDU: 80 11 00 00 [16:51:15]Write to MH i2c: E2 08 00 65 03 80 11 00 00 00 00 00 00 E2 [16:51:15]Write i2c OK [16:51:15]MH_I2C_Read... [16:51:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:51:15]Read from MH i2c: E2 [16:51:15]MH_I2C_Read... [16:51:15]Read from MH i2c: E2 17 00 [16:51:15]MH_I2C_Read... [16:51:15]Read from MH i2c: E2 17 00 65 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 3E [16:51:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [16:51:15]wFMCommunicate OK [16:51:15]requested_item fd.num is exist - process it [16:51:15]SAM_PROTO_GetFieldsCounters [16:51:15]wFMCommunicate request_size=4 [16:51:15]MH_SAM_APDU [16:51:15]CAPDU: 80 13 00 00 [16:51:15]Write to MH i2c: E2 08 00 66 03 80 13 00 00 00 00 00 00 E5 [16:51:15]Write i2c OK [16:51:15]MH_I2C_Read... [16:51:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:51:15]Read from MH i2c: E2 [16:51:15]MH_I2C_Read... [16:51:15]Read from MH i2c: E2 62 00 [16:51:15]MH_I2C_Read... [16:51:15]Read from MH i2c: E2 62 00 66 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 B6 A3 00 00 0E 04 04 00 AB 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 3D [16:51:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 B6 A3 00 00 0E 04 04 00 AB 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 [16:51:15]wFMCommunicate OK [16:51:15]SAM_PROTO_GetFieldsCounters done [16:51:15]requested_item shift.num is exist - process it [16:51:15]requested_item shift.opened is exist - process it [16:51:15]req_shift_opened [16:51:15]FM_GetShiftState [16:51:15]SAM_PROTO_GetShiftState [16:51:15]wFMCommunicate request_size=4 [16:51:15]MH_SAM_APDU [16:51:15]CAPDU: 80 13 01 00 [16:51:15]Write to MH i2c: E2 08 00 67 03 80 13 01 00 00 00 00 00 E7 [16:51:15]Write i2c OK [16:51:15]MH_I2C_Read... [16:51:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:51:15]Read from MH i2c: E2 [16:51:15]MH_I2C_Read... [16:51:15]Read from MH i2c: E2 0E 00 [16:51:15]MH_I2C_Read... [16:51:15]Read from MH i2c: E2 0E 00 67 03 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 83 [16:51:15]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [16:51:15]wFMCommunicate OK [16:51:15]SAM_PROTO_GetShiftState done [16:51:15]FM_GetShiftState done [16:51:15]req_shift_opened done [16:51:15]requested_item shift.open_date is exist - process it [16:51:15]req_shift_open_date [16:51:15]req_shift_open_date done [16:51:15]produce_requested_data done [16:51:15]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41910,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [16:51:15]process_action_free close_receipt [16:51:15]json_value_free [16:51:15]json_value_free done [16:51:15]process_json_proto returns [16:51:15]Send response to host [16:51:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41910,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [16:51:15]free response buf [16:51:15]execute_script done [16:51:15]execute_script returns [16:51:16]free content buf [16:51:16]Sock 9.Close socket [16:51:16]Sock 9.Thread stoped [16:51:16]recv_with_timeout no data received [16:51:17]ConnectInit Can't take IP for lk.salyk.kg [16:51:17]CommunicateWithHost connect error [16:51:17]CommunicateWithHost err = -1 [16:51:17]OFD Sender: Server communicate error [16:51:17]OFD Sender: Processing packet 41901 [packets to send 66, broken 56] [16:51:17]ProducePacketName [16:51:17]name=ofd_packets/00041901 [16:51:17]OFD Sender: To server: pG, [16:51:17]CommunicateWithHost lk.salyk.kg:30040 [16:51:17]ConnectInit lk.salyk.kg [16:51:17]accept exits with 8 [16:51:17]New connection [16:51:17]New thread 3066858852 created [16:51:17]Thread 3067002212 joined [16:51:17]Waiting for new connection... [16:51:17] Sock 8.Parse request [16:51:17]Sock 8.Check first char [16:51:17]Sock 8.First char is OK [16:51:17]request: POST /json_proto HTTP/1.0 [16:51:17]Method: POST [16:51:17]URL: /json_proto [16:51:17]Method is POST - this is cgi request [16:51:17]url: /json_proto [16:51:17]query_string will be loaded in cgi processing [16:51:17]execute_cgi json_proto POST (null) [16:51:17]execute_cgi path=json_proto method=POST [16:51:17]POST find Content-Length [16:51:17]Host: 172.17.43.132:8080 [16:51:17]Content-Length: 688 [16:51:17]Content-Type: application/json [16:51:17] [16:51:17]POST finish read [16:51:17]Found Content-Length = 688 [16:51:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183939", "tax_sys" : 0, "items" : [ { "code": "4700003010070", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,25\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:51:17]execute_script... [16:51: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 : (3)183939", "tax_sys" : 0, "items" : [ { "code": "4700003010070", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,25\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:51:17]POST & json_proto [16:51:17]process_json_proto [16:51:17]json parsed OK: [16:51:17]protocol is kg_v1.0 [16:51:17]action value=close_receipt [16:51:17]process_action close_receipt [16:51:17]cmd_close_receipt [16:51:17]MH_GetDate [16:51:17]Write to MH i2c: F0 00 00 68 03 5A [16:51:17]Write i2c OK [16:51:17]MH_I2C_Read... [16:51:17]Read from MH i2c: F0 [16:51:17]MH_I2C_Read... [16:51:17]Read from MH i2c: F0 09 00 [16:51:17]MH_I2C_Read... [16:51:17]Read from MH i2c: F0 09 00 68 03 00 85 C8 A7 66 64 A3 A7 66 D1 [16:51:17]GetLastDocTimeStamp 1722271869 [16:51:17]current date 1722271877 [16:51:17]FM_GetShiftState [16:51:17]SAM_PROTO_GetShiftState [16:51:17]wFMCommunicate request_size=4 [16:51:17]MH_SAM_APDU [16:51:17]CAPDU: 80 13 01 00 [16:51:17]Write to MH i2c: E2 08 00 69 03 80 13 01 00 00 00 00 00 E9 [16:51:17]Write i2c OK [16:51:17]MH_I2C_Read... [16:51:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:51:17]Read from MH i2c: E2 [16:51:17]MH_I2C_Read... [16:51:17]Read from MH i2c: E2 0E 00 [16:51:17]MH_I2C_Read... [16:51:17]Read from MH i2c: E2 0E 00 69 03 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 85 [16:51:17]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [16:51:17]wFMCommunicate OK [16:51:17]SAM_PROTO_GetShiftState done [16:51:17]FM_GetShiftState done [16:51:17]opened in 1722211496 [16:51:17]opened+sec_in_day 1722297896 [16:51:17]quantity*price = 9500 [16:51:17]sum+1 = 9501 [16:51:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 100 29.07.2024 16:51 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41911 ФПД: 195404953695123 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T165118&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41911&fm=195404953695123&tin=02508201610067®Number=0000000000092626&sum=9500 0 [16:51:20]StoreToDocumentArchive [16:51:20]shift 427 fd 41911 [16:51:20]save to /storage/0427/doc_00041911 [16:51:20]save last doc name /storage/0427/doc_00041911 to /storage/kkm_last_doc_name [16:51:20]save OK [16:51:20]Clear old archive folders... [16:51:20]ProcessDocumentItem done err = 0, tmpTLVsize=299 [16:51:20]tlvbuf is 004A51C0 [16:51:20]SAM_PROTO_ClearQueue [16:51:20]wFMCommunicate request_size=4 [16:51:20]MH_SAM_APDU [16:51:20]CAPDU: 80 09 00 00 [16:51:20]Write to MH i2c: E2 08 00 76 03 80 09 00 00 00 00 00 00 EB [16:51:20]Write i2c OK [16:51:20]MH_I2C_Read... [16:51:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:51:20]Read from MH i2c: E2 [16:51:20]MH_I2C_Read... [16:51:20]Read from MH i2c: E2 03 00 [16:51:21]MH_I2C_Read... [16:51:21]Read from MH i2c: E2 03 00 76 03 00 90 00 ED [16:51:21]RAPDU: 90 00 [16:51:21]wFMCommunicate OK [16:51:21]SAM_PROTO_ClearQueue done [16:51:21]KKMCreateOFDPacket [16:51:21]OFDProtocolAddRootSTLVToBuf [16:51:21]FM_MakeSignedData [16:51:21]FM_MakeSignedData [16:51:21]SAM_PROTO_SignData [16:51:21]wFMCommunicate request_size=4 [16:51:21]MH_SAM_APDU [16:51:21]CAPDU: 80 0D 01 02 [16:51:21]Write to MH i2c: E2 08 00 77 03 80 0D 01 02 00 00 00 00 F3 [16:51:21]Write i2c OK [16:51:21]MH_I2C_Read... [16:51:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:51:21]Read from MH i2c: E2 [16:51:21]MH_I2C_Read... [16:51:21]Read from MH i2c: E2 03 00 [16:51:21]MH_I2C_Read... [16:51:21]Read from MH i2c: E2 03 00 77 03 00 90 00 EE [16:51:21]RAPDU: 90 00 [16:51:21]wFMCommunicate OK [16:51:21]wFMCommunicate request_size=255 [16:51:21]MH_SAM_APDU [16:51:21]CAPDU: 80 0D 02 02 FA 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 37 30 06 04 39 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 86 C8 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 [16:51:21]Write to MH i2c: E2 02 01 78 03 80 0D 02 02 FA 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 37 30 06 04 39 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 86 C8 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 00 00 05 [16:51:22]Write i2c OK [16:51:22]MH_I2C_Read... [16:51:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:51:22]Read from MH i2c: E2 [16:51:22]MH_I2C_Read... [16:51:22]Read from MH i2c: E2 03 00 [16:51:22]MH_I2C_Read... [16:51:22]Read from MH i2c: E2 03 00 78 03 00 90 00 EF [16:51:22]RAPDU: 90 00 [16:51:22]wFMCommunicate OK [16:51:22]wFMCommunicate request_size=58 [16:51:22]MH_SAM_APDU [16:51:22]CAPDU: 80 0D 02 02 35 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 B7 A3 00 00 35 04 06 00 B1 B8 42 DA 33 93 [16:51:22]Write to MH i2c: E2 3D 00 79 03 80 0D 02 02 35 00 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 B7 A3 00 00 35 04 06 00 B1 B8 42 DA 33 93 00 00 93 [16:51:22]Write i2c OK [16:51:22]MH_I2C_Read... [16:51:22]Received data: 87 95 F6 *** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:51:22]70 47 2C 01 00 Read from MH i2c: 30 E2 30 [16:51:22]30 MH_I2C_Read... [16:51:22]30 30 Read from MH i2c: 30 E2 30 03 30 30 30 38 37 34 39 35 00 38 [16:51:22]4F MH_I2C_Read... [16:51:22]00 00 00 69 21 47 00 AD FA Read from MH i2c: A5 E2 07 03 01 00 07 00 3B 00 F9 03 00 0E 79 00 03 37 00 37 90 30 00 39 F0 33 [16:51:22]36 RAPDU: 34 90 33 34 36 31 32 33 34 00 11 [16:51:22]04 wFMCommunicate OK [16:51:22]10 wFMCommunicate request_size=4 [16:51:22]00 MH_SAM_APDU [16:51:22]30 CAPDU: 30 80 0D 03 02 [16:51:22]Write to MH i2c: E2 08 00 7A 03 80 0D 03 30 02 30 00 30 00 30 00 30 00 30 F8 30 [16:51:22]30 Write i2c OK [16:51:22]38 MH_I2C_Read... [16:51:22]37 34 39 35 38 10 04 04 00 AD A3 00 00 F4 03 04 00 *** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:51:22]9D 74 A7 Read from MH i2c: 66 E2 B6 [16:51:22]04 01 00 00 AC E9 2A 23 MH_I2C_Read... [16:51:22]47 Read from MH i2c: FF E2 0A 79 [16:51:22]CommunicateWithHost err = 0 [16:51:22]0B CheckOFDResponse [16:51:22]00 1017 (14) - 77093643461234 [16:51:22]1041 (16) - 0000000000874958 [16:51:22]1040 (4) - 41901 [16:51:22]1012 (4) - 29.07.2024 10:53 [16:51:22]1206 (1) - 0 [16:51:22]OFD Sender: Remove packet 41901 [16:51:22]ProducePacketName [16:51:22]name=ofd_packets/00041901 [16:51:22]NVStorageDeleteData [16:51:22] [16:51:22]MH_I2C_Read... [16:51:22]Read from MH i2c: E2 0B 00 7A 03 00 53 B1 91 8B EE 4D 94 63 90 00 4B [16:51:22]RAPDU: 53 B1 91 8B EE 4D 94 63 90 00 [16:51:22]wFMCommunicate OK [16:51:22]SAM_PROTO_SignData done [16:51:22]FM_MakeSignedData done [16:51:22]CreateOFDProtocolMessage [16:51:22]wFMCommunicate request_size=4 [16:51:22]MH_SAM_APDU [16:51:22]CAPDU: 80 11 00 00 [16:51:22]Write to MH i2c: E2 08 00 7B 03 80 11 00 00 00 00 00 00 F8 [16:51:22]Write i2c OK [16:51:22]MH_I2C_Read... [16:51:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:51:23]Read from MH i2c: E2 [16:51:23]MH_I2C_Read... [16:51:23]Read from MH i2c: E2 17 00 [16:51:23]MH_I2C_Read... [16:51:23]Read from MH i2c: E2 17 00 7B 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 54 [16:51:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [16:51:23]wFMCommunicate OK [16:51:23]CreateOFDProtocolMessage done [16:51:23]OFDSenderStorePacket 41911 [16:51:23]StoreOFDPacket docnum=41911 [16:51:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 3F 01 00 00 FA 12 37 01 8D 38 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 37 30 06 04 39 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 86 C8 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 B7 A3 00 00 35 04 06 00 B1 B8 42 DA 33 93 53 B1 91 8B EE 4D 94 63 [16:51:23]CheckFolder [16:51:23]dirname=/storage/ofd_packets [16:51:23]CheckFolder done [16:51:23]ProducePacketName [16:51:23]name=ofd_packets/00041911 [16:51:23]NVStorageSaveData ofd_packets/00041911 [16:51:23]File name is /storage/ofd_packets/00041911 [16:51:23]Write 349 bytes [16:51:23]NVStorageSaveData done [16:51:23]OFDSenderStorePacket done [16:51:23]KKMCreateOFDPacket done [16:51:23]NVStorageSaveData kkm_last_timestamp [16:51:23]File name is /storage/kkm_last_timestamp [16:51:23]Write 4 bytes [16:51:23]NVStorageSaveData done [16:51:23]ExternCall_PrintAddStr [16:51:23]wPrintStart [16:51:23]Write to MH i2c: 01 00 00 7C 03 7F [16:51:23]Write i2c OK [16:51:23]MH_I2C_Read... [16:51:23]Read from MH i2c: 01 [16:51:23]MH_I2C_Read... [16:51:23]Read from MH i2c: 01 07 00 [16:51:23]MH_I2C_Read... [16:51:23]Read from MH i2c: 01 07 00 7C 03 00 00 00 00 00 FF 0F 94 [16:51:23]RasterBufferAndPrint [16:51:23]line Счет N : (3)183939 [16:51:23]line ИНН: 02508201610067 [16:51:23]line Контрольно-Кассовый Чек [16:51:23]line ПРОДАЖА [16:51:23]line Товар: 4700003010070 [16:51:23]line Чай хол Let`s Go! чер персик ПЭТ 1,25л [16:51:23]line 1.000 * 95.00 [16:51:23]line = 95.00 [16:51:23]line НДС 12% НСП 1% [16:51:23]line > о реализуемом товаре [16:51:23]line ИТОГО: 95.00 [16:51:23]line НСП 1% : 0.84 [16:51:23]line НДС 12% : 10.09 [16:51:23]line Наличными: 95.00 [16:51:23]line Безнал.: 0.00 [16:51:23]line Место: АЗС № 97 "Партнер Нефть" [16:51:23]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [16:51:23]line СНО: Общий режим [16:51:23]line Чек 100 29.07.2024 16:51 [16:51:23]line Смена: 427 ФФД: 1.0 [16:51:23]line ЗНМ: 0300000053 [16:51:23]line РНМ: 0000000000092626 [16:51:23]line Версия ККМ: 001 [16:51:23]line ФМ: 0000000000874958 [16:51:23]line ФД: 41911 [16:51:23]line ФПД: 195404953695123 [16:51:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T165118&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41911&fm=195404953695123&tin=02508201610067®Number=0000000000092626&sum=9500 [16:51:23]line 0 [16:51:23]written 0, free lines is 4095 [16:51:23]OFD Sender: Processing packet 41902 [packets to send 66, broken 56] [16:51:23]ProducePacketName [16:51:23]name=ofd_packets/00041902 [16:51:23]OFD Sender: To server: pG, [16:51:23]CommunicateWithHost lk.salyk.kg:30040 [16:51:23]ConnectInit lk.salyk.kg [16:51:23]Write to MH i2c: 01 00 00 A5 03 A8 [16:51:23]Write i2c OK [16:51:23]MH_I2C_Read... [16:51:23]Read from MH i2c: 01 [16:51:23]MH_I2C_Read... [16:51:23]Read from MH i2c: 01 07 00 [16:51:23]MH_I2C_Read... [16:51:23]Read from MH i2c: 01 07 00 A5 03 00 00 00 00 00 1C 0D D8 [16:51:23]RasterBufferAndPrint [16:51:23]line [16:51:23]line [16:51:23]line [16:51:23]line [16:51:23]line [16:51:23]written 0, free lines is 3445 [16:51:23]MH_Cut [16:51:23]Write to MH i2c: D1 01 00 AC 03 01 81 [16:51:23]Write i2c OK [16:51:23]MH_I2C_Read... [16:51:23]Read from MH i2c: D1 [16:51:23]MH_I2C_Read... [16:51:23]Read from MH i2c: D1 01 00 [16:51:23]MH_I2C_Read... [16:51:23]Read from MH i2c: D1 01 00 AC 03 00 80 [16:51:23]Write to MH i2c: 01 00 00 AD 03 B0 [16:51:23]Write i2c OK [16:51:23]MH_I2C_Read... [16:51:24]*** Cut start [16:51:24]*** Partial cut [16:51:24]*** CUTSNS_PIN = 1 [16:51:24]*** CUTSNS_PIN = 0 [16:51:24]*** Brake cut motor [16:51:25]Read from MH i2c: 01 [16:51:25]MH_I2C_Read... [16:51:25]*** Stop cut motor [16:51:25]*** Cut end [16:51:25]Read from MH i2c: 01 07 00 [16:51:25]MH_I2C_Read... [16:51:25]Read from MH i2c: 01 07 00 AD 03 00 00 00 00 00 FF 0F C5 [16:51:25]process_action close_receipt done [16:51:25]requested_data is exist [16:51:25]produce_requested_data [16:51:25]requested_item fm.sn is exist - process it [16:51:25]wFMCommunicate request_size=4 [16:51:25]MH_SAM_APDU [16:51:25]CAPDU: 80 11 00 00 [16:51:25]Write to MH i2c: E2 08 00 AE 03 80 11 00 00 00 00 00 00 2B [16:51:25]Write i2c OK [16:51:25]MH_I2C_Read... [16:51:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:51:25]Read from MH i2c: E2 [16:51:25]MH_I2C_Read... [16:51:25]Read from MH i2c: E2 17 00 [16:51:25]MH_I2C_Read... [16:51:25]Read from MH i2c: E2 17 00 AE 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 87 [16:51:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [16:51:25]wFMCommunicate OK [16:51:25]requested_item fd.num is exist - process it [16:51:25]SAM_PROTO_GetFieldsCounters [16:51:25]wFMCommunicate request_size=4 [16:51:25]MH_SAM_APDU [16:51:25]CAPDU: 80 13 00 00 [16:51:25]Write to MH i2c: E2 08 00 AF 03 80 13 00 00 00 00 00 00 2E [16:51:25]Write i2c OK [16:51:25]MH_I2C_Read... [16:51:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:51:25]Read from MH i2c: E2 [16:51:25]MH_I2C_Read... [16:51:25]Read from MH i2c: E2 62 00 [16:51:25]MH_I2C_Read... [16:51:25]Read from MH i2c: E2 62 00 AF 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 B7 A3 00 00 0E 04 04 00 AB 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 8A [16:51:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 B7 A3 00 00 0E 04 04 00 AB 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 [16:51:25]wFMCommunicate OK [16:51:25]SAM_PROTO_GetFieldsCounters done [16:51:25]requested_item shift.num is exist - process it [16:51:25]requested_item shift.opened is exist - process it [16:51:25]req_shift_opened [16:51:25]FM_GetShiftState [16:51:25]SAM_PROTO_GetShiftState [16:51:25]wFMCommunicate request_size=4 [16:51:25]MH_SAM_APDU [16:51:25]CAPDU: 80 13 01 00 [16:51:25]Write to MH i2c: E2 08 00 B0 03 80 13 01 00 00 00 00 00 30 [16:51:25]Write i2c OK [16:51:25]MH_I2C_Read... [16:51:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:51:25]Read from MH i2c: E2 [16:51:25]MH_I2C_Read... [16:51:25]Read from MH i2c: E2 0E 00 [16:51:25]MH_I2C_Read... [16:51:25]Read from MH i2c: E2 0E 00 B0 03 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 CC [16:51:26]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [16:51:26]wFMCommunicate OK [16:51:26]SAM_PROTO_GetShiftState done [16:51:26]FM_GetShiftState done [16:51:26]req_shift_opened done [16:51:26]requested_item shift.open_date is exist - process it [16:51:26]req_shift_open_date [16:51:26]req_shift_open_date done [16:51:26]produce_requested_data done [16:51:26]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41911,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [16:51:26]process_action_free close_receipt [16:51:26]json_value_free [16:51:26]json_value_free done [16:51:26]process_json_proto returns [16:51:26]Send response to host [16:51:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41911,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [16:51:26]free response buf [16:51:26]execute_script done [16:51:26]execute_script returns [16:51:26]free content buf [16:51:26]Sock 8.Close socket [16:51:26]Sock 8.Thread stoped [16:51:27]accept exits with 11 [16:51:27]New connection [16:51:27]New thread 3067002212 created [16:51:27]Thread 3066858852 joined [16:51:27]Waiting for new connection... [16:51:27] Sock 11.Parse request [16:51:27]Sock 11.Check first char [16:51:27]Sock 11.First char is OK [16:51:27]request: POST /json_proto HTTP/1.0 [16:51:27]Method: POST [16:51:27]URL: /json_proto [16:51:27]Method is POST - this is cgi request [16:51:27]url: /json_proto [16:51:27]query_string will be loaded in cgi processing [16:51:27]execute_cgi json_proto POST (null) [16:51:27]execute_cgi path=json_proto method=POST [16:51:27]POST find Content-Length [16:51:27]Host: 172.17.43.132:8080 [16:51:27]Content-Length: 645 [16:51:27]Content-Type: application/json [16:51:27] [16:51:27]POST finish read [16:51:27]Found Content-Length = 645 [16:51:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183940", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:51:27]execute_script... [16:51:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183940", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:51:27]POST & json_proto [16:51:27]process_json_proto [16:51:27]json parsed OK: [16:51:27]protocol is kg_v1.0 [16:51:27]action value=close_receipt [16:51:27]process_action close_receipt [16:51:27]cmd_close_receipt [16:51:27]MH_GetDate [16:51:27]Write to MH i2c: F0 00 00 B1 03 A3 [16:51:27]Write i2c OK [16:51:27]MH_I2C_Read... [16:51:27]Read from MH i2c: F0 [16:51:27]MH_I2C_Read... [16:51:27]Read from MH i2c: F0 09 00 [16:51:27]MH_I2C_Read... [16:51:27]Read from MH i2c: F0 09 00 B1 03 00 8F C8 A7 66 64 A3 A7 66 24 [16:51:27]GetLastDocTimeStamp 1722271878 [16:51:27]current date 1722271887 [16:51:27]FM_GetShiftState [16:51:27]SAM_PROTO_GetShiftState [16:51:27]wFMCommunicate request_size=4 [16:51:27]MH_SAM_APDU [16:51:27]CAPDU: 80 13 01 00 [16:51:27]Write to MH i2c: E2 08 00 B2 03 80 13 01 00 00 00 00 00 32 [16:51:27]Write i2c OK [16:51:27]MH_I2C_Read... [16:51:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:51:27]Read from MH i2c: E2 [16:51:27]MH_I2C_Read... [16:51:27]Read from MH i2c: E2 0E 00 [16:51:27]MH_I2C_Read... [16:51:27]Read from MH i2c: E2 0E 00 B2 03 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 CE [16:51:27]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [16:51:27]wFMCommunicate OK [16:51:27]SAM_PROTO_GetShiftState done [16:51:27]FM_GetShiftState done [16:51:27]opened in 1722211496 [16:51:27]opened+sec_in_day 1722297896 [16:51:27]quantity*price = 6000 [16:51:27]sum+1 = 6001 [16:51:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 101 29.07.2024 16:51 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41912 ФПД: 64911213066998 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T165128&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41912&fm=64911213066998&tin=02508201610067®Number=0000000000092626&sum=6000 0 [16:51:30]FF StoreToDocumentArchive [16:51:30]03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 shift 427 fd 41912 [16:51:30]00 save to /storage/0427/doc_00041912 [16:51:30]00 save last doc name /storage/0427/doc_00041912 to /storage/kkm_last_doc_name [16:51:30]F2 03 01 00 01 F6 03 save OK [16:51:30]01 Clear old archive folders... [16:51:30]00 01 BC 04 ProcessDocumentItem done err = 0, tmpTLVsize=276 [16:51:30]01 tlvbuf is 004B8B70 [16:51:30]00 SAM_PROTO_ClearQueue [16:51:30]01 wFMCommunicate request_size=4 [16:51:30]23 MH_SAM_APDU [16:51:30]04 CAPDU: 80 09 00 00 [16:51:30]Write to MH i2c: 80 E2 00 08 8A 00 BF 03 80 09 00 00 04 00 0D 00 00 00 00 34 [16:51:30]34 38 37 Write i2c OK [16:51:30]30 MH_I2C_Read... [16:51:30]30 30 31 35 37 *** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:51:30]31 30 33 30 06 04 3C 00 D0 92 D0 BE Read from MH i2c: D0 E2 B4 [16:51:31]D0 B0 20 41 53 55 20 MH_I2C_Read... [16:51:31]D0 Read from MH i2c: BF E2 D0 03 B8 00 [16:51:31]MH_I2C_Read... [16:51:31]D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF Read from MH i2c: 03 E2 08 03 00 03 E8 03 00 00 00 00 00 BF 00 03 37 04 06 00 D0 20 00 00 00 90 00 00 00 13 04 06 00 D0 20 36 00 [16:51:31]00 RAPDU: 00 00 F2 03 01 00 01 90 F6 00 03 [16:51:31]01 00 01 BC 04 01 00 wFMCommunicate OK [16:51:31]01 SAM_PROTO_ClearQueue done [16:51:31]FC KKMCreateOFDPacket [16:51:31]03 06 00 80 57 00 00 OFDProtocolAddRootSTLVToBuf [16:51:31]00 FM_MakeSignedData [16:51:31]00 FM_MakeSignedData [16:51:31]EB 03 26 00 EF 03 0F SAM_PROTO_SignData [16:51:31]00 wFMCommunicate request_size=4 [16:51:31]F6 MH_SAM_APDU [16:51:31]03 01 00 01 CAPDU: F7 80 03 0D 06 01 00 02 C6 [16:51:31]00 Write to MH i2c: 00 E2 00 08 00 00 C0 03 80 0D 01 02 00 00 EE 00 03 00 00 3C [16:51:31]0F 00 F2 03 01 00 01 F3 03 06 00 4B 09 00 00 00 00 07 04 06 00 80 *** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:51:31]Write i2c OK [16:51:31]MH_I2C_Read... [16:51:31]57 00 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 39 C8 A7 Read from MH i2c: 66 E2 0E [16:51:31]04 MH_I2C_Read... [16:51:31]04 Read from MH i2c: 00 E2 AB 03 01 00 00 [16:51:31]00 MH_I2C_Read... [16:51:31]B9 Read from MH i2c: 04 E2 01 03 00 00 01 C0 0D 03 04 00 10 90 00 00 30 37 30 [16:51:31]30 RAPDU: 30 90 30 00 30 [16:51:31]wFMCommunicate OK [16:51:31]wFMCommunicate request_size=255 [16:51:31]30 MH_SAM_APDU [16:51:31]30 CAPDU: 30 80 30 0D 30 02 39 02 FA 32 03 36 32 36 11 04 10 00 00 30 14 30 01 30 30 30 30 30 30 30 1E 30 04 38 01 37 34 39 35 38 10 04 00 04 01 23 00 04 AE 66 A3 00 00 8A 00 04 35 0D 04 00 06 34 00 37 84 30 E3 30 59 30 E3 30 AC 10 99 1A 54 9E FE 30 24 33 E8 31 BF [16:51:32]30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 90 C8 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 [16:51:32]Write to MH i2c: E2 02 01 C1 03 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 90 C8 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 00 00 ED [16:51:32]Write i2c OK [16:51:32]MH_I2C_Read... [16:51:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:51:33]Read from MH i2c: E2 [16:51:33]MH_I2C_Read... [16:51:33]Read from MH i2c: E2 03 00 [16:51:33]MH_I2C_Read... [16:51:33]Read from MH i2c: E2 03 00 C1 03 00 90 00 38 [16:51:33]RAPDU: 90 00 [16:51:33]wFMCommunicate OK [16:51:33]wFMCommunicate request_size=35 [16:51:33]MH_SAM_APDU [16:51:33]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 B8 A3 00 00 35 04 06 00 3B 09 51 CB FA F6 [16:51:33]Write to MH i2c: E2 26 00 C2 03 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 B8 A3 00 00 35 04 06 00 3B 09 51 CB FA F6 00 00 E6 [16:51:33]Write i2c OK [16:51:33]MH_I2C_Read... [16:51:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:51:33]Read from MH i2c: E2 [16:51:33]MH_I2C_Read... [16:51:33]Read from MH i2c: E2 03 00 [16:51:33]MH_I2C_Read... [16:51:33]Read from MH i2c: E2 03 00 C2 03 00 90 00 39 [16:51:33]RAPDU: 90 00 [16:51:33]wFMCommunicate OK [16:51:33]wFMCommunicate request_size=4 [16:51:33]MH_SAM_APDU [16:51:33]CAPDU: 80 0D 03 02 [16:51:33]Write to MH i2c: E2 08 00 C3 03 80 0D 03 02 00 00 00 00 41 [16:51:33]Write i2c OK [16:51:33]MH_I2C_Read... [16:51:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:51:33]Read from MH i2c: E2 [16:51:33]MH_I2C_Read... [16:51:33]Read from MH i2c: E2 0B 00 [16:51:33]MH_I2C_Read... [16:51:33]Read from MH i2c: E2 0B 00 C3 03 00 F9 AC BA 7B 97 0D DD C1 90 00 5E [16:51:33]RAPDU: F9 AC BA 7B 97 0D DD C1 90 00 [16:51:33]wFMCommunicate OK [16:51:33]SAM_PROTO_SignData done [16:51:33]FM_MakeSignedData done [16:51:33]CreateOFDProtocolMessage [16:51:33]wFMCommunicate request_size=4 [16:51:33]MH_SAM_APDU [16:51:33]CAPDU: 80 11 00 00 [16:51:33]Write to MH i2c: E2 08 00 C4 03 80 11 00 00 00 00 00 00 41 [16:51:33]Write i2c OK [16:51:33]MH_I2C_Read... [16:51:33]Received data: 87 95 *** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:51:33]F6 70 47 2C Read from MH i2c: 01 E2 00 [16:51:33]30 MH_I2C_Read... [16:51:33]30 Read from MH i2c: 30 30 30 30 30 E2 30 17 30 00 30 [16:51:33]38 MH_I2C_Read... [16:51:33]37 Read from MH i2c: 34 E2 39 17 35 00 38 C4 4F 03 00 00 00 11 00 04 4F 10 64 00 47 30 00 30 A5 30 DF 30 A5 30 07 30 01 30 00 30 07 30 00 30 3B 38 00 37 F9 34 03 39 0E 35 38 90 00 9D [16:51:33]RAPDU: 00 11 37 04 37 10 00 30 30 30 30 30 30 30 39 30 33 30 30 30 38 37 34 39 36 35 34 38 33 90 00 [16:51:34]wFMCommunicate OK [16:51:34]CreateOFDProtocolMessage done [16:51:34]OFDSenderStorePacket 41912 [16:51:34]StoreOFDPacket docnum=41912 [16:51:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 28 01 00 00 EA BF 20 01 53 31 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 90 C8 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 B8 A3 00 00 35 04 06 00 3B 09 51 CB FA F6 F9 AC BA 7B 97 0D DD C1 [16:51:34]CheckFolder [16:51:34]dirname=/storage/ofd_packets [16:51:34]CheckFolder done [16:51:34]ProducePacketName [16:51:34]name=ofd_packets/00041912 [16:51:34]NVStorageSaveData ofd_packets/00041912 [16:51:34]File name is /storage/ofd_packets/00041912 [16:51:34]Write 326 bytes [16:51:34]NVStorageSaveData done [16:51:34]OFDSenderStorePacket done [16:51:34]KKMCreateOFDPacket done [16:51:34]NVStorageSaveData kkm_last_timestamp [16:51:34]File name is /storage/kkm_last_timestamp [16:51:34]Write 4 bytes [16:51:34]34 NVStorageSaveData done [16:51:34]36 ExternCall_PrintAddStr [16:51:34]31 wPrintStart [16:51:34]32 Write to MH i2c: 33 01 34 00 11 04 10 00 30 30 30 00 30 C5 30 03 30 30 30 30 30 38 37 34 39 35 38 10 04 C8 04 [16:51:34]00 AE A3 00 00 Write i2c OK [16:51:34]F4 MH_I2C_Read... [16:51:34]03 04 00 A9 74 A7 66 B6 04 Read from MH i2c: 01 01 00 [16:51:34]00 MH_I2C_Read... [16:51:34]23 3E 63 CC Read from MH i2c: 7A 01 86 07 07 00 8D [16:51:34] [16:51:34]MH_I2C_Read... [16:51:34]CommunicateWithHost err = 0 [16:51:34]CheckOFDResponse [16:51:34]1017 (14) - 77093643461234 [16:51:34]1041 (16) - 0000000000874958 [16:51:34]1040 (4) - 41902 [16:51:34]1012 (4) - 29.07.2024 10:53 [16:51:34]1206 (1) - 0 [16:51:34]Read from MH i2c: OFD Sender: Remove packet 41902 [16:51:34]01 ProducePacketName [16:51:34]07 name=ofd_packets/00041902 [16:51:34]NVStorageDeleteData [16:51:34]00 C5 03 00 00 00 00 00 FF 0F DD [16:51:34]RasterBufferAndPrint [16:51:34]line Счет N : (3)183940 [16:51:34]line ИНН: 02508201610067 [16:51:34]line Контрольно-Кассовый Чек [16:51:34]line ПРОДАЖА [16:51:34]line Товар: 4700000310043 [16:51:34]line Вода Жалалабат 27 1л [16:51:34]line 1.000 * 60.00 [16:51:34]line = 60.00 [16:51:34]line НДС 12% НСП 1% [16:51:34]line > о реализуемом товаре [16:51:34]line ИТОГО: 60.00 [16:51:34]line НСП 1% : 0.53 [16:51:34]line НДС 12% : 6.37 [16:51:34]line Наличными: 60.00 [16:51:34]line Безнал.: 0.00 [16:51:34]line Место: АЗС № 97 "Партнер Нефть" [16:51:34]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [16:51:34]line СНО: Общий режим [16:51:34]line Чек 101 29.07.2024 16:51 [16:51:34]line Смена: 427 ФФД: 1.0 [16:51:34]line ЗНМ: 0300000053 [16:51:34]line РНМ: 0000000000092626 [16:51:34]line Версия ККМ: 001 [16:51:34]line ФМ: 0000000000874958 [16:51:34]line ФД: 41912 [16:51:34]line ФПД: 64911213066998 [16:51:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T165128&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41912&fm=64911213066998&tin=02508201610067®Number=0000000000092626&sum=6000 [16:51:34]line 0 [16:51:34]written 0, free lines is 4095 [16:51:34]OFD Sender: Processing packet 41903 [packets to send 66, broken 56] [16:51:34]ProducePacketName [16:51:34]name=ofd_packets/00041903 [16:51:34]OFD Sender: To server: pG, [16:51:34]CommunicateWithHost lk.salyk.kg:30040 [16:51:34]ConnectInit lk.salyk.kg [16:51:34]Write to MH i2c: 01 00 00 ED 03 F0 [16:51:34]Write i2c OK [16:51:34]MH_I2C_Read... [16:51:34]Read from MH i2c: 01 [16:51:34]MH_I2C_Read... [16:51:34]Read from MH i2c: 01 07 00 [16:51:34]MH_I2C_Read... [16:51:34]Read from MH i2c: 01 07 00 ED 03 00 00 00 00 00 40 0D 44 [16:51:34]RasterBufferAndPrint [16:51:34]line [16:51:34]line [16:51:34]line [16:51:34]line [16:51:34]line [16:51:34]written 0, free lines is 3486 [16:51:34]MH_Cut [16:51:34]Write to MH i2c: D1 01 00 F4 03 01 C9 [16:51:34]Write i2c OK [16:51:34]MH_I2C_Read... [16:51:34]Read from MH i2c: D1 [16:51:34]MH_I2C_Read... [16:51:34]Read from MH i2c: D1 01 00 [16:51:34]MH_I2C_Read... [16:51:34]Read from MH i2c: D1 01 00 F4 03 00 C8 [16:51:34]Write to MH i2c: 01 00 00 F5 03 F8 [16:51:34]Write i2c OK [16:51:34]MH_I2C_Read... [16:51:35]*** Cut start [16:51:35]*** Partial cut [16:51:35]*** CUTSNS_PIN = 1 [16:51:35]*** CUTSNS_PIN = 0 [16:51:35]*** Brake cut motor [16:51:36]Read from MH i2c: 01 [16:51:36]MH_I2C_Read... [16:51:36]*** Stop cut motor [16:51:36]*** Cut end [16:51:36]Read from MH i2c: 01 07 00 [16:51:36]MH_I2C_Read... [16:51:36]Read from MH i2c: 01 07 00 F5 03 00 00 00 00 00 FF 0F 0D [16:51:36]process_action close_receipt done [16:51:36]requested_data is exist [16:51:36]produce_requested_data [16:51:36]requested_item fm.sn is exist - process it [16:51:36]wFMCommunicate request_size=4 [16:51:36]MH_SAM_APDU [16:51:36]CAPDU: 80 11 00 00 [16:51:36]Write to MH i2c: E2 08 00 F6 03 80 11 00 00 00 00 00 00 73 [16:51:36]Write i2c OK [16:51:36]MH_I2C_Read... [16:51:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:51:36]Read from MH i2c: E2 [16:51:36]MH_I2C_Read... [16:51:36]Read from MH i2c: E2 17 00 [16:51:36]MH_I2C_Read... [16:51:36]Read from MH i2c: E2 17 00 F6 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 CF [16:51:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [16:51:36]wFMCommunicate OK [16:51:36]requested_item fd.num is exist - process it [16:51:36]SAM_PROTO_GetFieldsCounters [16:51:36]wFMCommunicate request_size=4 [16:51:36]MH_SAM_APDU [16:51:36]CAPDU: 80 13 00 00 [16:51:36]Write to MH i2c: E2 08 00 F7 03 80 13 00 00 00 00 00 00 76 [16:51:36]Write i2c OK [16:51:36]MH_I2C_Read... [16:51:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:51:36]Read from MH i2c: E2 [16:51:36]MH_I2C_Read... [16:51:36]Read from MH i2c: E2 62 00 [16:51:36]MH_I2C_Read... [16:51:36]Read from MH i2c: E2 62 00 F7 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 B8 A3 00 00 0E 04 04 00 AB 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 D6 [16:51: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 B8 A3 00 00 0E 04 04 00 AB 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 [16:51:36]wFMCommunicate OK [16:51:36]SAM_PROTO_GetFieldsCounters done [16:51:36]requested_item shift.num is exist - process it [16:51:36]requested_item shift.opened is exist - process it [16:51:36]req_shift_opened [16:51:36]FM_GetShiftState [16:51:37]SAM_PROTO_GetShiftState [16:51:37]wFMCommunicate request_size=4 [16:51:37]MH_SAM_APDU [16:51:37]CAPDU: 80 13 01 00 [16:51:37]Write to MH i2c: E2 08 00 F8 03 80 13 01 00 00 00 00 00 78 [16:51:37]Write i2c OK [16:51:37]MH_I2C_Read... [16:51:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:51:37]Read from MH i2c: E2 [16:51:37]MH_I2C_Read... [16:51:37]Read from MH i2c: E2 0E 00 [16:51:37]MH_I2C_Read... [16:51:37]Read from MH i2c: E2 0E 00 F8 03 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 14 [16:51:37]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [16:51:37]wFMCommunicate OK [16:51:37]SAM_PROTO_GetShiftState done [16:51:37]FM_GetShiftState done [16:51:37]req_shift_opened done [16:51:37]requested_item shift.open_date is exist - process it [16:51:37]req_shift_open_date [16:51:37]req_shift_open_date done [16:51:37]produce_requested_data done [16:51:37]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41912,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [16:51:37]process_action_free close_receipt [16:51:37]json_value_free [16:51:37]json_value_free done [16:51:37]process_json_proto returns [16:51:37]Send response to host [16:51:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41912,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [16:51:37]free response buf [16:51:37]execute_script done [16:51:37]execute_script returns [16:51:37]free content buf [16:51:37]Sock 11.Close socket [16:51:37]Sock 11.Thread stoped [16:51:37]Connected sock=9 [16:51: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 35 38 12 02 00 00 4D 9C 0A 02 7B 3D 5A 03 01 00 03 00 FE 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 35 32 32 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 39 00 00 00 00 13 04 06 00 D0 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 C6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 15 00 00 00 00 07 04 06 00 70 C6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 3F C8 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 AF A3 00 00 35 04 06 00 D5 2F 08 06 C8 7F 51 39 EA 39 87 BC 98 F7 [16:51:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 4F 00 00 00 43 8F 47 00 2A 6D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 AF A3 00 00 F4 03 04 00 AF 74 A7 66 B6 04 01 00 00 CE FA 47 7B E7 26 33 29 [16:51:39]CommunicateWithHost err = 0 [16:51:39]CheckOFDResponse [16:51:39]1017 (14) - 77093643461234 [16:51:39]1041 (16) - 0000000000874958 [16:51:39]1040 (4) - 41903 [16:51:39]1012 (4) - 29.07.2024 10:53 [16:51:39]1206 (1) - 0 [16:51:39]OFD Sender: Remove packet 41903 [16:51:39]ProducePacketName [16:51:39]name=ofd_packets/00041903 [16:51:39]NVStorageDeleteData [16:51:40]OFD Sender: Processing packet 41904 [packets to send 65, broken 56] [16:51:40]ProducePacketName [16:51:40]name=ofd_packets/00041904 [16:51:40]OFD Sender: To server: pG, [16:51:40]CommunicateWithHost lk.salyk.kg:30040 [16:51:40]ConnectInit lk.salyk.kg [16:51:42]accept exits with 8 [16:51:42]New connection [16:51:42]New thread 3066858852 created [16:51:42]Thread 3067002212 joined [16:51:42]Waiting for new connection... [16:51:42] Sock 8.Parse request [16:51:42]Sock 8.Check first char [16:51:42]Sock 8.First char is OK [16:51:42]request: POST /json_proto HTTP/1.0 [16:51:42]Method: POST [16:51:42]URL: /json_proto [16:51:42]Method is POST - this is cgi request [16:51:42]url: /json_proto [16:51:42]query_string will be loaded in cgi processing [16:51:42]execute_cgi json_proto POST (null) [16:51:42]execute_cgi path=json_proto method=POST [16:51:42]POST find Content-Length [16:51:42]Host: 172.17.43.132:8080 [16:51:42]Content-Length: 856 [16:51:42]Content-Type: application/json [16:51:42] [16:51:42]POST finish read [16:51:42]Found Content-Length = 856 [16:51:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183941", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003610560", "name": "\u0412\u043E\u0434\u0430 \u042D\u043D\u0435\u0441\u0430\u0439 5\u043B.", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 171.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:51:42]execute_script... [16:51:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183941", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003610560", "name": "\u0412\u043E\u0434\u0430 \u042D\u043D\u0435\u0441\u0430\u0439 5\u043B.", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 171.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:51:42]POST & json_proto [16:51:42]process_json_proto [16:51:42]json parsed OK: [16:51:42]protocol is kg_v1.0 [16:51:42]action value=close_receipt [16:51:42]process_action close_receipt [16:51:42]cmd_close_receipt [16:51:42]MH_GetDate [16:51:42]Write to MH i2c: F0 00 00 F9 03 EB [16:51:42]Write i2c OK [16:51:42]MH_I2C_Read... [16:51:42]Read from MH i2c: F0 [16:51:42]MH_I2C_Read... [16:51:42]Read from MH i2c: F0 09 00 [16:51:42]MH_I2C_Read... [16:51:42]Read from MH i2c: F0 09 00 F9 03 00 9F C8 A7 66 64 A3 A7 66 7C [16:51:42]GetLastDocTimeStamp 1722271888 [16:51:42]current date 1722271903 [16:51:42]FM_GetShiftState [16:51:42]SAM_PROTO_GetShiftState [16:51:42]wFMCommunicate request_size=4 [16:51:42]MH_SAM_APDU [16:51:42]CAPDU: 80 13 01 00 [16:51:42]Write to MH i2c: E2 08 00 FA 03 80 13 01 00 00 00 00 00 7A [16:51:42]Write i2c OK [16:51:42]MH_I2C_Read... [16:51:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:51:42]Read from MH i2c: E2 [16:51:42]MH_I2C_Read... [16:51:42]Read from MH i2c: E2 0E 00 [16:51:42]MH_I2C_Read... [16:51:42]Read from MH i2c: E2 0E 00 FA 03 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 16 [16:51:42]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [16:51:42]wFMCommunicate OK [16:51:42]SAM_PROTO_GetShiftState done [16:51:42]FM_GetShiftState done [16:51:42]opened in 1722211496 [16:51:42]opened+sec_in_day 1722297896 [16:51:42]quantity*price = 11100 [16:51:42]sum+1 = 11101 [16:51:42]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700003610560 Вода Энесай 5л. 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 171.00 НСП 1% : 1.51 НДС 12% : 18.16 Наличными: 171.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 102 29.07.2024 16:51 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41913 ФПД: 249990269980545 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T165143&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41913&fm=249990269980545&tin=02508201610067®Number=0000000000092626&sum=17100 0 [16:51:46]StoreToDocumentArchive [16:51:46]shift 427 fd 41913 [16:51:46]save to /storage/0427/doc_00041913 [16:51:46]save last doc name /storage/0427/doc_00041913 to /storage/kkm_last_doc_name [16:51:46]save OK [16:51:46]Clear old archive folders... [16:51:46]ProcessDocumentItem done err = 0, tmpTLVsize=364 [16:51:46]tlvbuf is 004BD0A0 [16:51:46]SAM_PROTO_ClearQueue [16:51:46]wFMCommunicate request_size=4 [16:51:46]MH_SAM_APDU [16:51:46]CAPDU: 80 09 00 00 [16:51:46]Write to MH i2c: E2 08 00 07 04 80 09 00 00 00 00 00 00 7D [16:51:46]Write i2c OK [16:51:46]MH_I2C_Read... [16:51:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:51:46]Read from MH i2c: E2 [16:51:46]MH_I2C_Read... [16:51:46]Read from MH i2c: E2 03 00 [16:51:46]MH_I2C_Read... [16:51:46]Read from MH i2c: E2 03 00 07 04 00 90 00 7F [16:51:46]RAPDU: 90 00 [16:51:46]wFMCommunicate OK [16:51:46]SAM_PROTO_ClearQueue done [16:51:46]KKMCreateOFDPacket [16:51:46]OFDProtocolAddRootSTLVToBuf [16:51:46]FM_MakeSignedData [16:51:46]FM_MakeSignedData [16:51:46]SAM_PROTO_SignData [16:51:46]wFMCommunicate request_size=4 [16:51:46]MH_SAM_APDU [16:51:46]CAPDU: 80 0D 01 02 [16:51:46]Write to MH i2c: E2 08 00 08 04 80 0D 01 02 00 00 00 00 85 [16:51:46]Write i2c OK [16:51:46]MH_I2C_Read... [16:51:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:51:46]Read from MH i2c: E2 [16:51:46]MH_I2C_Read... [16:51:46]Read from MH i2c: E2 03 00 [16:51:46]MH_I2C_Read... [16:51:46]Read from MH i2c: E2 03 00 08 04 00 90 00 80 [16:51:46]RAPDU: 90 00 [16:51:46]wFMCommunicate OK [16:51:46]wFMCommunicate request_size=255 [16:51:46]MH_SAM_APDU [16:51:46]CAPDU: 80 0D 02 02 FA 03 00 6C 01 1E 04 01 00 01 23 04 Received data: 5C 87 00 95 8A 04 0D 00 34 38 37 F6 30 70 30 47 30 31 35 37 30 30 2C 37 01 31 00 06 04 18 00 D0 9D D0 30 B0 30 D0 30 BF D0 B8 D1 82 D0 30 BE 30 D0 30 BA 20 50 65 70 73 69 30 20 30 31 30 D0 BB FF 03 08 00 30 03 38 E8 37 03 00 00 00 00 00 34 37 39 04 35 06 00 5C 2B 00 00 00 38 00 4F 13 00 04 00 00 06 82 00 5C 2B 00 00 00 00 30 F2 47 03 00 91 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 01 30 00 01 30 F6 30 03 30 01 30 30 30 38 37 34 39 00 35 01 38 BC 10 04 04 00 B0 A3 00 00 F4 03 04 00 B6 74 A7 66 B6 04 01 00 00 CB 98 43 A9 2D 69 40 DB [16:51:47]CommunicateWithHost err = 0 [16:51:47]CheckOFDResponse [16:51:47]1017 (14) - 77093643461234 [16:51:47]1041 (16) - 0000000000874958 [16:51:47]1040 (4) - 41904 [16:51:47]1012 (4) - 29.07.2024 10:53 [16:51:47]1206 (1) - 0 [16:51:47]OFD Sender: Remove packet 41904 [16:51:47]ProducePacketName [16:51:47]04 name=ofd_packets/00041904 [16:51:47]01 NVStorageDeleteData [16:51:47]00 01 23 04 5E 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 35 36 30 06 04 1A 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AD D0 BD D0 B5 D1 81 D0 B0 D0 B9 20 35 D0 BB 2E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 [16:51:47]Write to MH i2c: E2 02 01 09 04 80 0D 02 02 FA 00 03 00 6C 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 35 36 30 06 04 1A 00 D0 92 OFD Sender: Processing packet 41905 [packets to send 64, broken 56] [16:51:47]D0 ProducePacketName [16:51:47]BE name=ofd_packets/00041905 [16:51:47]D0 OFD Sender: To server: pG, [16:51:47]B4 CommunicateWithHost lk.salyk.kg:30040 [16:51:47]D0 ConnectInit lk.salyk.kg [16:51:47]B0 20 D0 AD D0 BD D0 B5 D1 81 D0 B0 D0 B9 20 35 D0 BB 2E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 00 00 29 [16:51:48]Write i2c OK [16:51:48]MH_I2C_Read... [16:51:48]Connected sock=9 [16:51: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 35 38 21 01 00 00 D6 A8 19 01 11 F9 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D *** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:51:48]00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 Read from MH i2c: B4 E2 D0 [16:51:48]B0 MH_I2C_Read... [16:51:48]20 31 D0 BB Read from MH i2c: FF E2 03 03 08 00 03 E8 03 00 00 00 [16:51:48]00 MH_I2C_Read... [16:51:48]00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 Read from MH i2c: 01 E2 00 03 01 F6 03 01 00 01 BC 00 04 09 01 04 00 01 FC 03 06 00 00 88 90 13 00 00 00 00 00 EB 03 26 81 00 [16:51:48]EF RAPDU: 03 90 0F 00 00 [16:51:48]F6 wFMCommunicate OK [16:51:48]03 01 00 01 F7 03 06 wFMCommunicate request_size=123 [16:51:48]00 2C 00 00 00 MH_SAM_APDU [16:51:48]00 CAPDU: 00 80 EE 0D 03 0F 00 F2 03 01 00 02 01 02 F3 76 03 07 06 00 00 00 00 00 07 04 06 00 CC 42 00 00 00 13 00 02 39 00 04 06 00 00 00 00 00 00 00 00 00 00 1F 07 04 04 02 06 00 00 01 88 00 13 00 00 00 00 12 39 04 04 04 06 00 00 00 00 00 00 00 00 66 1F 00 04 00 02 00 00 F4 01 03 00 04 12 00 04 9F 04 C8 00 A7 66 0E 04 04 00 AB 5E 01 00 00 00 00 B9 04 01 00 01 00 0D F4 04 03 10 00 30 30 30 30 30 04 30 00 30 4D 30 C8 30 A7 30 66 30 0E 39 04 32 04 36 00 32 AB 36 11 04 10 00 30 30 01 30 00 30 30 00 30 B9 30 04 30 01 00 01 0D 04 10 00 30 30 30 30 38 30 37 30 34 30 39 30 35 30 38 30 10 30 04 30 04 00 B9 A3 00 00 35 04 06 00 E3 5D 65 3D 4F 81 [16:51:49]Write to MH i2c: 30 E2 39 32 36 7E 32 00 36 0A 11 04 10 00 30 30 30 04 30 80 30 0D 30 02 30 30 30 30 38 37 34 02 39 76 35 00 38 10 04 04 00 B1 A3 07 00 00 35 04 06 00 00 00 B6 00 88 00 07 04 06 00 CC 42 38 00 B1 00 38 00 00 39 04 06 00 24 00 6A 00 46 00 00 00 00 1F 04 00 02 24 00 37 01 79 00 CD 12 E4 04 [16:51:49]04 00 66 00 00 00 F4 03 04 00 9F C8 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 B9 A3 00 00 35 04 06 00 E3 5D 65 3D 4F 81 00 00 60 [16:51:49]Write i2c OK [16:51:49]MH_I2C_Read... [16:51:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:51:49]Read from MH i2c: E2 [16:51:49]MH_I2C_Read... [16:51:49]Read from MH i2c: E2 03 00 [16:51:49]MH_I2C_Read... [16:51:49]Read from MH i2c: E2 03 00 0A 04 00 90 00 82 [16:51:49]RAPDU: 90 00 [16:51:49]wFMCommunicate OK [16:51:49]wFMCommunicate request_size=4 [16:51:49]MH_SAM_APDU [16:51:49]CAPDU: 80 0D 03 02 [16:51:49]Write to MH i2c: E2 08 00 0B 04 80 0D 03 02 00 00 00 00 8A [16:51:49]Write i2c OK [16:51:49]MH_I2C_Read... [16:51:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:51:49]Read from MH i2c: E2 [16:51:49]MH_I2C_Read... [16:51:49]Read from MH i2c: E2 0B 00 [16:51:49]MH_I2C_Read... [16:51:49]Read from MH i2c: E2 0B 00 0B 04 00 4C 34 A8 18 42 4D 18 D5 90 00 47 [16:51:50]RAPDU: 4C 34 A8 18 42 4D 18 D5 90 00 [16:51:50]wFMCommunicate OK [16:51:50]SAM_PROTO_SignData done [16:51:50]FM_MakeSignedData done [16:51:50]CreateOFDProtocolMessage [16:51:50]wFMCommunicate request_size=4 [16:51:50]MH_SAM_APDU [16:51:50]CAPDU: 80 11 00 00 [16:51:50]Write to MH i2c: E2 08 00 0C 04 80 11 00 00 00 00 00 00 8A [16:51:50]Write i2c OK [16:51:50]MH_I2C_Read... [16:51:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:51:50]Read from MH i2c: E2 [16:51:50]MH_I2C_Read... [16:51:50]Read from MH i2c: E2 17 00 [16:51:50]MH_I2C_Read... [16:51:50]Read from MH i2c: E2 17 00 0C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 E6 [16:51:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [16:51:50]wFMCommunicate OK [16:51:50]CreateOFDProtocolMessage done [16:51:50]OFDSenderStorePacket 41913 [16:51:50]StoreOFDPacket docnum=41913 [16:51:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 80 01 00 00 EE 9E 78 01 19 25 5A 03 01 00 03 00 6C 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 35 36 30 06 04 1A 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AD D0 BD D0 B5 D1 81 D0 B0 D0 B9 20 35 D0 BB 2E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 07 00 00 00 00 07 04 06 00 CC 42 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 9F C8 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 B9 A3 00 00 35 04 06 00 E3 5D 65 3D 4F 81 4C 34 A8 18 42 4D 18 D5 [16:51:50]CheckFolder [16:51:50]dirname=/storage/ofd_packets [16:51:50]CheckFolder done [16:51:50]ProducePacketName [16:51:50]name=ofd_packets/00041913 [16:51:50]NVStorageSaveData ofd_packets/00041913 [16:51:50]File name is /storage/ofd_packets/00041913 [16:51:50]Write 414 bytes [16:51:50]NVStorageSaveData done [16:51:50]OFDSenderStorePacket done [16:51:50]KKMCreateOFDPacket done [16:51:50]NVStorageSaveData kkm_last_timestamp [16:51:50]File name is /storage/kkm_last_timestamp [16:51:50]Write 4 bytes [16:51:50]NVStorageSaveData done [16:51:50]ExternCall_PrintAddStr [16:51:50]wPrintStart [16:51:50]Write to MH i2c: 01 00 00 0D 04 11 [16:51:50]Write i2c OK [16:51:50]MH_I2C_Read... [16:51:50]Read from MH i2c: 01 [16:51:50]MH_I2C_Read... [16:51:50]Read from MH i2c: 01 07 00 [16:51:50]MH_I2C_Read... [16:51:50]Read from MH i2c: 01 07 00 0D 04 00 00 00 00 00 FF 0F 26 [16:51:50]RasterBufferAndPrint [16:51:50]line Счет N : (3)183941 [16:51:50]line ИНН: 02508201610067 [16:51:50]line Контрольно-Кассовый Чек [16:51:50]line ПРОДАЖА [16:51:50]line Товар: 4870001570071 [16:51:50]line Напиток Pepsi 1л [16:51:50]line 1.000 * 111.00 [16:51:50]line = 111.00 [16:51:50]line НДС 12% НСП 1% [16:51:50]line > о реализуемом товаре [16:51:50]line Товар: 4700003610560 [16:51:50]line Вода Энесай 5л. [16:51:50]line 1.000 * 60.00 [16:51:50]line = 60.00 [16:51:50]line НДС 12% НСП 1% [16:51:50]line > о реализуемом товаре [16:51:50]line ИТОГО: 171.00 [16:51:50]line НСП 1% : 1.51 [16:51:50]line НДС 12% : 18.16 [16:51:50]line Наличными: 171.00 [16:51:50]line Безнал.: 0.00 [16:51:50]line Место: АЗС № 97 "Партнер Нефть" [16:51:50]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [16:51:50]line СНО: Общий режим [16:51:50]line Чек 102 29.07.2024 16:51 [16:51:50]line Смена: 427 ФФД: 1.0 [16:51:50]line ЗНМ: 0300000053 [16:51:50]line РНМ: 0000000000092626 [16:51:50]line Версия ККМ: 001 [16:51:50]line ФМ: 0000000000874958 [16:51:50]line ФД: 41913 [16:51:50]line ФПД: 249990269980545 [16:51:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T165143&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41913&fm=249990269980545&tin=02508201610067®Number=0000000000092626&sum=17100 [16:51:50]line 0 [16:51:50]written 0, free lines is 4095 [16:51:50]Write to MH i2c: 01 00 00 3B 04 3F [16:51:50]Write i2c OK [16:51:50]MH_I2C_Read... [16:51:50]Read from MH i2c: 01 [16:51:50]MH_I2C_Read... [16:51:50]Read from MH i2c: 01 07 00 [16:51:50]MH_I2C_Read... [16:51:50]Read from MH i2c: 01 07 00 3B 04 00 00 00 00 00 D3 0C 25 [16:51:50]RasterBufferAndPrint [16:51:50]line [16:51:50]line [16:51:50]line [16:51:50]line [16:51:50]line [16:51:50]written 0, free lines is 3387 [16:51:51]MH_Cut [16:51:51]Write to MH i2c: D1 01 00 42 04 01 18 [16:51:51]Write i2c OK [16:51:51]MH_I2C_Read... [16:51:51]Read from MH i2c: D1 [16:51:51]MH_I2C_Read... [16:51:51]Read from MH i2c: D1 01 00 [16:51:51]MH_I2C_Read... [16:51:51]Read from MH i2c: D1 01 00 42 04 00 17 [16:51:51]Write to MH i2c: 01 00 00 43 04 47 [16:51:51]Write i2c OK [16:51:51]MH_I2C_Read... [16:51:51]*** Cut start [16:51:51]*** Partial cut [16:51:51]*** CUTSNS_PIN = 1 [16:51:51]*** CUTSNS_PIN = 0 [16:51: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 35 38 4F 00 00 00 D3 5E 47 00 10 A8 A5 07 01 00 07 00 3B 00 *** Brake cut motor [16:51:52]F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 B1 A3 00 00 F4 03 04 00 BB 74 A7 66 B6 04 01 00 00 3D 9B 84 8F A7 6C B7 E6 [16:51:52]CommunicateWithHost err = 0 [16:51:52]CheckOFDResponse [16:51:52]1017 (14) - 77093643461234 [16:51:52]1041 (16) - 0000000000874958 [16:51:52]1040 (4) - 41905 [16:51:52]1012 (4) - 29.07.2024 10:53 [16:51:52]1206 (1) - 0 [16:51:52]OFD Sender: Remove packet 41905 [16:51:52]*** Stop cut motor [16:51:52]ProducePacketName [16:51:52]*** Cut end [16:51:52]name=ofd_packets/00041905 [16:51:52]Read from MH i2c: 01 [16:51:52]MH_I2C_Read... [16:51:52]Read from MH i2c: 01 NVStorageDeleteData [16:51:52]07 00 [16:51:52]MH_I2C_Read... [16:51:52]Read from MH i2c: 01 07 00 43 04 00 00 00 00 00 FF 0F 5C [16:51:52]process_action close_receipt done [16:51:52]requested_data is exist [16:51:52]produce_requested_data [16:51:52]requested_item fm.sn is exist - process it [16:51:52]wFMCommunicate request_size=4 [16:51:52]MH_SAM_APDU [16:51:52]CAPDU: 80 11 00 00 [16:51:52]Write to MH i2c: E2 08 00 44 04 80 11 00 00 00 00 00 00 C2 [16:51:52]Write i2c OK [16:51:52]MH_I2C_Read... [16:51:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:51:52]Read from MH i2c: E2 [16:51:52]MH_I2C_Read... [16:51:52]Read from MH i2c: E2 17 00 [16:51:52]MH_I2C_Read... [16:51:52]Read from MH i2c: E2 17 00 44 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 1E [16:51:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [16:51:52]wFMCommunicate OK [16:51:52]requested_item fd.num is exist - process it [16:51:52]SAM_PROTO_GetFieldsCounters [16:51:52]wFMCommunicate request_size=4 [16:51:52]MH_SAM_APDU [16:51:52]CAPDU: 80 13 00 00 [16:51:52]Write to MH i2c: E2 08 00 45 04 80 13 00 00 00 00 00 00 C5 [16:51:52]Write i2c OK [16:51:52]MH_I2C_Read... [16:51:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:51:52]Read from MH i2c: E2 [16:51:52]MH_I2C_Read... [16:51:52]Read from MH i2c: E2 62 00 [16:51:52]MH_I2C_Read... [16:51:52]Read from MH i2c: E2 62 00 45 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 OFD Sender: Processing packet 41906 [packets to send 64, broken 56] [16:51:52]38 37 34 39 35 38 0D ProducePacketName [16:51:52]04 name=ofd_packets/00041906 [16:51:52]10 OFD Sender: To server: pG, [16:51:53]00 CommunicateWithHost lk.salyk.kg:30040 [16:51:53]30 ConnectInit lk.salyk.kg [16:51:53]30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 B9 A3 00 00 0E 04 04 00 AB 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 29 [16:51:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 B9 A3 00 00 0E 04 04 00 AB 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 [16:51:53]wFMCommunicate OK [16:51:53]SAM_PROTO_GetFieldsCounters done [16:51:53]requested_item shift.num is exist - process it [16:51:53]requested_item shift.opened is exist - process it [16:51:53]req_shift_opened [16:51:53]FM_GetShiftState [16:51:53]SAM_PROTO_GetShiftState [16:51:53]wFMCommunicate request_size=4 [16:51:53]MH_SAM_APDU [16:51:53]CAPDU: 80 13 01 00 [16:51:53]Write to MH i2c: E2 08 00 46 04 80 13 01 00 00 00 00 00 C7 [16:51:53]Write i2c OK [16:51:53]MH_I2C_Read... [16:51:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:51:53]Read from MH i2c: E2 [16:51:53]MH_I2C_Read... [16:51:53]Read from MH i2c: E2 0E 00 [16:51:53]MH_I2C_Read... [16:51:53]Read from MH i2c: E2 0E 00 46 04 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 63 [16:51:53]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [16:51:53]wFMCommunicate OK [16:51:53]SAM_PROTO_GetShiftState done [16:51:53]FM_GetShiftState done [16:51:53]req_shift_opened done [16:51:53]requested_item shift.open_date is exist - process it [16:51:53]req_shift_open_date [16:51:53]req_shift_open_date done [16:51:53]produce_requested_data done [16:51:53]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41913,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [16:51:53]process_action_free close_receipt [16:51:53]json_value_free [16:51:53]json_value_free done [16:51:53]process_json_proto returns [16:51:53]Send response to host [16:51:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41913,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [16:51:53]free response buf [16:51:53]execute_script done [16:51:53]execute_script returns [16:51:53]free content buf [16:51:53]Sock 8.Close socket [16:51:53]Sock 8.Thread stoped [16:51:54]accept exits with 12 [16:51:54]New connection [16:51:54]New thread 3067002212 created [16:51:54]Thread 3066858852 joined [16:51:54]Waiting for new connection... [16:51:54] Sock 12.Parse request [16:51:54]Sock 12.Check first char [16:51:54]Sock 12.First char is OK [16:51:54]request: POST /json_proto HTTP/1.0 [16:51:54]Method: POST [16:51:54]URL: /json_proto [16:51:54]Method is POST - this is cgi request [16:51:54]url: /json_proto [16:51:54]query_string will be loaded in cgi processing [16:51:54]execute_cgi json_proto POST (null) [16:51:54]execute_cgi path=json_proto method=POST [16:51:54]POST find Content-Length [16:51:54]Host: 172.17.43.132:8080 [16:51:54]Content-Length: 1186 [16:51:54]Content-Type: application/json [16:51:54] [16:51:54]POST finish read [16:51:54]Found Content-Length = 1186 [16:51:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183942", "tax_sys" : 0, "items" : [ { "code": "5449000273673", "name": "\u0421\u043E\u043A Piko Pulpy \u043A\u0440\u0430\u0441\u043D\u044B\u0439 \u0432\u0438\u043D\u043E\u0433\u0440\u0430\u0434 \u041F\u042D\u0422 1\u043B", "price" : 180.00, "quantity" : 1.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 56.00, "quantity" : 1.000, "sum" : 56.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112003925", "name": "\u041A\u043E\u043D\u0434 ULKER-Albeni 40gr (6*24)", "price" : 55.00, "quantity" : 1.000, "sum" : 55.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 291.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:51:54]execute_script... [16:51: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 : (3)183942", "tax_sys" : 0, "items" : [ { "code": "5449000273673", "name": "\u0421\u043E\u043A Piko Pulpy \u043A\u0440\u0430\u0441\u043D\u044B\u0439 \u0432\u0438\u043D\u043E\u0433\u0440\u0430\u0434 \u041F\u042D\u0422 1\u043B", "price" : 180.00, "quantity" : 1.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 56.00, "quantity" : 1.000, "sum" : 56.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112003925", "name": "\u041A\u043E\u043D\u0434 ULKER-Albeni 40gr (6*24)", "price" : 55.00, "quantity" : 1.000, "sum" : 55.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 291.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:51:54]POST & json_proto [16:51:54]process_json_proto [16:51:54]json parsed OK: [16:51:54]protocol is kg_v1.0 [16:51:54]action value=close_receipt [16:51:54]process_action close_receipt [16:51:54]cmd_close_receipt [16:51:54]MH_GetDate [16:51:54]Write to MH i2c: F0 00 00 47 04 3A [16:51:54]Write i2c OK [16:51:54]MH_I2C_Read... [16:51:54]Read from MH i2c: F0 [16:51:54]MH_I2C_Read... [16:51:54]Read from MH i2c: F0 09 00 [16:51:54]MH_I2C_Read... [16:51:54]Read from MH i2c: F0 09 00 47 04 00 AB C8 A7 66 64 A3 A7 66 D7 [16:51:54]GetLastDocTimeStamp 1722271903 [16:51:54]current date 1722271915 [16:51:54]FM_GetShiftState [16:51:54]SAM_PROTO_GetShiftState [16:51:54]wFMCommunicate request_size=4 [16:51:54]MH_SAM_APDU [16:51:54]CAPDU: 80 13 01 00 [16:51:54]Write to MH i2c: E2 08 00 48 04 80 13 01 00 00 00 00 00 C9 [16:51:54]Write i2c OK [16:51:54]MH_I2C_Read... [16:51:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:51:55]Read from MH i2c: E2 [16:51:55]MH_I2C_Read... [16:51:55]Read from MH i2c: E2 0E 00 [16:51:55]MH_I2C_Read... [16:51:55]Read from MH i2c: E2 0E 00 48 04 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 65 [16:51:55]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [16:51:55]wFMCommunicate OK [16:51:55]SAM_PROTO_GetShiftState done [16:51:55]FM_GetShiftState done [16:51:55]opened in 1722211496 [16:51:55]opened+sec_in_day 1722297896 [16:51:55]quantity*price = 18000 [16:51:55]sum+1 = 18001 [16:51:55]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4607065001445 Шок батончик Snickers 50,5г 1.000 * 56.00 = 56.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870112003925 Конд ULKER-Albeni 40gr (6*24) 1.000 * 55.00 = 55.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 291.00 НСП 1% : 2.58 НДС 12% : 30.90 Наличными: 291.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 103 29.07.2024 16:51 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41914 ФПД: 2786810990797 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T165155&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41914&fm=2786810990797&tin=02508201610067®Number=0000000000092626&sum=29100 0 [16:51:59]StoreToDocumentArchive [16:51:59]shift 427 fd 41914 [16:51:59]save to /storage/0427/doc_00041914 [16:51:59]save last doc name /storage/0427/doc_00041914 to /storage/kkm_last_doc_name [16:51:59]save OK [16:51:59]Clear old archive folders... [16:51:59]ProcessDocumentItem done err = 0, tmpTLVsize=518 [16:51:59]tlvbuf is 004F22A0 [16:51:59]SAM_PROTO_ClearQueue [16:51:59]wFMCommunicate request_size=4 [16:51:59]MH_SAM_APDU [16:51:59]CAPDU: 80 09 00 00 [16:51:59]Write to MH i2c: E2 08 00 55 04 80 09 00 00 00 00 00 00 CB [16:51:59]Write i2c OK [16:51:59]MH_I2C_Read... [16:51:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:51:59]Read from MH i2c: E2 [16:51:59]MH_I2C_Read... [16:51:59]Read from MH i2c: E2 03 00 [16:51:59]MH_I2C_Read... [16:51:59]Read from MH i2c: E2 03 00 55 04 00 90 00 CD [16:51:59]RAPDU: 90 00 [16:51:59]wFMCommunicate OK [16:51:59]SAM_PROTO_ClearQueue done [16:51:59]KKMCreateOFDPacket [16:51:59]OFDProtocolAddRootSTLVToBuf [16:51:59]FM_MakeSignedData [16:51:59]FM_MakeSignedData [16:51:59]SAM_PROTO_SignData [16:51:59]wFMCommunicate request_size=4 [16:51:59]MH_SAM_APDU [16:51:59]CAPDU: 80 0D 01 02 [16:51:59]Write to MH i2c: E2 08 00 56 04 80 0D 01 02 00 00 00 00 D3 [16:52:00]Write i2c OK [16:52:00]MH_I2C_Read... [16:52:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:52:00]Read from MH i2c: E2 [16:52:00]MH_I2C_Read... [16:52:00]Read from MH i2c: E2 03 00 [16:52:00]MH_I2C_Read... [16:52:00]Read from MH i2c: E2 03 00 56 04 00 90 00 CE [16:52:00]RAPDU: 90 00 [16:52:00]wFMCommunicate OK [16:52:00]wFMCommunicate request_size=255 [16:52:00]MH_SAM_APDU [16:52:00]CAPDU: 80 0D 02 02 FA 03 00 06 02 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 37 33 06 04 3C 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 BA D1 80 D0 B0 D1 81 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 15 00 00 00 00 13 04 06 00 E0 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 [16:52:00]Write to MH i2c: E2 02 01 57 04 80 0D 02 02 FA 00 03 00 06 02 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 37 33 06 04 3C 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 BA D1 80 D0 B0 D1 81 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 15 00 00 00 00 13 04 06 00 E0 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 00 C4 [16:52:01]Write i2c OK [16:52:01]MH_I2C_Read... [16:52: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 35 38 4F 00 00 00 AF 60 47 00 5D 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 Read from MH i2c: 30 E2 30 [16:52:01]MH_I2C_Read... [16:52:01]30 Read from MH i2c: 30 E2 30 03 30 00 30 [16:52:01]30 MH_I2C_Read... [16:52:01]30 30 38 Read from MH i2c: 37 E2 34 03 *** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:52:01]00 39 57 35 04 38 00 10 90 04 04 00 B2 A3 00 00 00 CF F4 [16:52:01]03 04 00 C4 74 A7 RAPDU: 66 90 B6 00 04 [16:52:01]01 wFMCommunicate OK [16:52:01]00 00 65 CE 9F DD F7 wFMCommunicate request_size=255 [16:52:01]83 MH_SAM_APDU [16:52:01]3C CAPDU: 88 80 0D [16:52:01]02 CommunicateWithHost err = 0 [16:52:01]02 CheckOFDResponse [16:52:01]1017 (14) - 77093643461234 [16:52:01]1041 (16) - 0000000000874958 [16:52:01]1040 (4) - 41906 [16:52:01]1012 (4) - 29.07.2024 10:53 [16:52:01]1206 (1) - 0 [16:52:01]OFD Sender: Remove packet 41906 [16:52:01]ProducePacketName [16:52:01]FA name=ofd_packets/00041906 [16:52:01]00 NVStorageDeleteData [16:52:01]01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 12 0C 00 00 00 00 07 04 06 00 AC 71 00 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 AB C8 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 [16:52:02]Write to MH i2c: E2 02 01 58 04 80 0D 02 02 FA 00 00 01 23 04 65 00 8A 04 0D 00 34 38 OFD Sender: Processing packet 41907 [packets to send 63, broken 56] [16:52:02]37 ProducePacketName [16:52:02]30 31 31 name=ofd_packets/00041907 [16:52:02]32 OFD Sender: To server: pG, [16:52:02]30 CommunicateWithHost lk.salyk.kg:30040 [16:52:02]30 33 39 32 35 06 ConnectInit lk.salyk.kg [16:52:02]04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 12 0C 00 00 00 00 07 04 06 00 AC 71 00 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 AB C8 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 00 00 A4 [16:52:02]Write i2c OK [16:52:02]MH_I2C_Read... [16:52:02]Read from MH i2c: *** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:52:02]E2 [16:52:02]MH_I2C_Read... [16:52:02]Read from MH i2c: E2 03 00 [16:52:02]MH_I2C_Read... [16:52:02]Read from MH i2c: E2 03 00 58 04 00 90 00 D0 [16:52:02]RAPDU: 90 00 [16:52:02]wFMCommunicate OK [16:52:02]wFMCommunicate request_size=27 [16:52:02]MH_SAM_APDU [16:52:02]CAPDU: 80 0D 02 02 16 34 39 35 38 10 04 04 00 BA A3 00 00 35 04 06 00 02 88 DA E1 10 CD [16:52:02]Write to MH i2c: E2 1E 00 59 04 80 0D 02 02 16 00 34 39 35 38 10 04 04 00 BA A3 00 00 35 04 06 00 02 88 DA E1 10 CD 00 00 B3 [16:52:03]Write i2c OK [16:52:03]MH_I2C_Read... [16:52:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:52:03]Read from MH i2c: E2 [16:52:03]MH_I2C_Read... [16:52:03]Read from MH i2c: E2 03 00 [16:52:03]MH_I2C_Read... [16:52:03]Read from MH i2c: E2 03 00 59 04 00 90 00 D1 [16:52:03]RAPDU: 90 00 [16:52:03]wFMCommunicate OK [16:52:03]wFMCommunicate request_size=4 [16:52:03]MH_SAM_APDU [16:52:03]CAPDU: 80 0D 03 02 [16:52:03]Write to MH i2c: E2 08 00 5A 04 80 0D 03 02 00 00 00 00 D9 [16:52:03]Write i2c OK [16:52:03]MH_I2C_Read... [16:52:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:52:03]Read from MH i2c: E2 [16:52:03]MH_I2C_Read... [16:52:03]Read from MH i2c: E2 0B 00 [16:52:03]MH_I2C_Read... [16:52:03]Read from MH i2c: E2 0B 00 5A 04 00 E6 F6 16 34 36 10 37 68 90 00 E5 [16:52:03]RAPDU: E6 F6 16 34 36 10 37 68 90 00 [16:52:03]wFMCommunicate OK [16:52:03]SAM_PROTO_SignData done [16:52:03]FM_MakeSignedData done [16:52:03]CreateOFDProtocolMessage [16:52:03]wFMCommunicate request_size=4 [16:52:03]MH_SAM_APDU [16:52:03]CAPDU: 80 11 00 00 [16:52:03]Write to MH i2c: E2 08 00 5B 04 80 11 00 00 00 00 00 00 D9 [16:52:03]Write i2c OK [16:52:03]MH_I2C_Read... [16:52:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:52:03]Read from MH i2c: E2 [16:52:03]MH_I2C_Read... [16:52:03]Read from MH i2c: E2 17 00 [16:52:03]MH_I2C_Read... [16:52:03]Read from MH i2c: E2 17 00 5B 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 35 [16:52:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [16:52:03]wFMCommunicate OK [16:52:03]CreateOFDProtocolMessage done [16:52:03]OFDSenderStorePacket 41914 [16:52:03]StoreOFDPacket docnum=41914 [16:52:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 1A 02 00 00 02 3A 12 02 1A 96 5A 03 01 00 03 00 06 02 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 37 33 06 04 3C 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 BA D1 80 D0 B0 D1 81 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 15 00 00 00 00 13 04 06 00 E0 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 12 0C 00 00 00 00 07 04 06 00 AC 71 00 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 AB C8 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 BA A3 00 00 35 04 06 00 02 88 DA E1 10 CD E6 F6 16 34 36 10 37 68 [16:52:03]CheckFolder [16:52:03]dirname=/storage/ofd_packets [16:52:03]CheckFolder done [16:52:03]ProducePacketName [16:52:03]name=ofd_packets/00041914 [16:52:03]NVStorageSaveData ofd_packets/00041914 [16:52:03]File name is /storage/ofd_packets/00041914 [16:52:03]Write 568 bytes [16:52:03]NVStorageSaveData done [16:52:03]OFDSenderStorePacket done [16:52:03]KKMCreateOFDPacket done [16:52:03]NVStorageSaveData kkm_last_timestamp [16:52:03]File name is /storage/kkm_last_timestamp [16:52:03]Write 4 bytes [16:52:03]NVStorageSaveData done [16:52:03]ExternCall_PrintAddStr [16:52:03]wPrintStart [16:52:03]Write to MH i2c: 01 00 00 5C 04 60 [16:52:03]Write i2c OK [16:52:03]MH_I2C_Read... [16:52:03]Read from MH i2c: 01 [16:52:03]MH_I2C_Read... [16:52:03]Read from MH i2c: 01 07 00 [16:52:03]MH_I2C_Read... [16:52:03]Read from MH i2c: 01 07 00 5C 04 00 00 00 00 00 FF 0F 75 [16:52:03]RasterBufferAndPrint [16:52:03]line Счет N : (3)183942 [16:52:03]line ИНН: 02508201610067 [16:52:03]line Контрольно-Кассовый Чек [16:52:03]line ПРОДАЖА [16:52:03]line Товар: 5449000273673 [16:52:03]line Сок Piko Pulpy красный виноград ПЭТ 1л [16:52:03]line 1.000 * 180.00 [16:52:03]line = 180.00 [16:52:03]line НДС 12% НСП 1% [16:52:03]line > о реализуемом товаре [16:52:03]line Товар: 4607065001445 [16:52:03]line Шок батончик Snickers 50,5г [16:52:03]line 1.000 * 56.00 [16:52:03]line = 56.00 [16:52:03]line НДС 12% НСП 1% [16:52:03]line > о реализуемом товаре [16:52:03]line Товар: 4870112003925 [16:52:03]line Конд ULKER-Albeni 40gr (6*24) [16:52:03]line 1.000 * 55.00 [16:52:03]line = 55.00 [16:52:03]line НДС 12% НСП 1% [16:52:03]line > о реализуемом товаре [16:52:03]line ИТОГО: 291.00 [16:52:03]line НСП 1% : 2.58 [16:52:03]line НДС 12% : 30.90 [16:52:03]line Наличными: 291.00 [16:52:03]line Безнал.: 0.00 [16:52:03]line Место: АЗС № 97 "Партнер Нефть" [16:52:03]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [16:52:03]line СНО: Общий режим [16:52:03]line Чек 103 29.07.2024 16:51 [16:52:03]line Смена: 427 ФФД: 1.0 [16:52:03]line ЗНМ: 0300000053 [16:52:03]line РНМ: 0000000000092626 [16:52:03]line Версия ККМ: 001 [16:52:03]line ФМ: 0000000000874958 [16:52:03]line ФД: 41914 [16:52:03]line ФПД: 2786810990797 [16:52:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T165155&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41914&fm=2786810990797&tin=02508201610067®Number=0000000000092626&sum=29100 [16:52:03]line 0 [16:52:03]written 0, free lines is 4095 [16:52:04]Write to MH i2c: 01 00 00 91 04 95 [16:52:04]Write i2c OK [16:52:04]MH_I2C_Read... [16:52:04]Read from MH i2c: 01 [16:52:04]MH_I2C_Read... [16:52:04]Read from MH i2c: 01 07 00 [16:52:04]MH_I2C_Read... [16:52:04]Read from MH i2c: 01 07 00 91 04 00 00 00 00 00 97 0C 3F [16:52:04]RasterBufferAndPrint [16:52:04]line [16:52:04]line [16:52:04]line [16:52:04]line [16:52:04]line [16:52:04]written 0, free lines is 3334 [16:52:04]MH_Cut [16:52:04]Write to MH i2c: D1 01 00 98 04 01 6E [16:52:04]Write i2c OK [16:52:04]MH_I2C_Read... [16:52:04]Read from MH i2c: D1 [16:52:04]MH_I2C_Read... [16:52:04]Read from MH i2c: D1 01 00 [16:52:04]MH_I2C_Read... [16:52:04]Read from MH i2c: D1 01 00 98 04 00 6D [16:52:04]Write to MH i2c: 01 00 00 99 04 9D [16:52:04]Write i2c OK [16:52:04]MH_I2C_Read... [16:52:04]Connected sock=11 [16:52: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 35 38 1E 01 00 00 *** Cut start [16:52:05]89 *** Partial cut [16:52:05]5B *** CUTSNS_PIN = 1 [16:52:05]16 01 BD EE 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D *** CUTSNS_PIN = 0 [16:52:05]00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 *** Brake cut motor [16:52:05]00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 5C 2B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 5D C8 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 Read from MH i2c: 35 01 38 [16:52:05]10 MH_I2C_Read... [16:52:05]04 Read from MH i2c: *** Stop cut motor [16:52:05]01 *** Cut end [16:52:05]07 04 00 00 [16:52:05]B3 A3 00 00 35 04 06 00 58 21 4D F8 22 MH_I2C_Read... [16:52:05]48 Read from MH i2c: CC 01 3F 07 0C 00 07 8C 0A 17 A9 [16:52:05]99 04 00 00 00 00 00 FF 0F B2 [16:52:05]process_action close_receipt done [16:52:05]requested_data is exist [16:52:05]produce_requested_data [16:52:05]requested_item fm.sn is exist - process it [16:52:05]wFMCommunicate request_size=4 [16:52:05]MH_SAM_APDU [16:52:05]CAPDU: 80 11 00 00 [16:52:05]Write to MH i2c: E2 08 00 9A 04 80 11 00 00 00 00 00 00 18 [16:52:06]Write i2c OK [16:52:06]MH_I2C_Read... [16:52:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:52:06]Read from MH i2c: E2 [16:52:06]MH_I2C_Read... [16:52:06]Read from MH i2c: E2 17 00 [16:52:06]MH_I2C_Read... [16:52:06]Read from MH i2c: E2 17 00 9A 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 74 [16:52:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [16:52:06]wFMCommunicate OK [16:52:06]requested_item fd.num is exist - process it [16:52:06]SAM_PROTO_GetFieldsCounters [16:52:06]wFMCommunicate request_size=4 [16:52:06]MH_SAM_APDU [16:52:06]CAPDU: 80 13 00 00 [16:52:06]Write to MH i2c: E2 08 00 9B 04 80 13 00 00 00 00 00 00 1B [16:52:06]Write i2c OK [16:52:06]MH_I2C_Read... [16:52:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:52:06]Read from MH i2c: E2 [16:52:06]MH_I2C_Read... [16:52:06]Read from MH i2c: E2 62 00 [16:52:06]MH_I2C_Read... [16:52:06]Read from MH i2c: E2 62 00 9B 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 BA A3 00 00 0E 04 04 00 AB 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 83 [16:52: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 BA A3 00 00 0E 04 04 00 AB 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 [16:52:06]wFMCommunicate OK [16:52:06]SAM_PROTO_GetFieldsCounters done [16:52:06]requested_item shift.num is exist - process it [16:52:06]requested_item shift.opened is exist - process it [16:52:06]req_shift_opened [16:52:06]FM_GetShiftState [16:52:06]SAM_PROTO_GetShiftState [16:52:06]wFMCommunicate request_size=4 [16:52:06]MH_SAM_APDU [16:52:06]CAPDU: 80 13 01 00 [16:52:06]Write to MH i2c: E2 08 00 9C 04 80 13 01 00 00 00 00 00 1D [16:52:06]Write i2c OK [16:52:06]MH_I2C_Read... [16:52:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:52:06]Read from MH i2c: E2 [16:52:06]MH_I2C_Read... [16:52:06]Read from MH i2c: E2 0E 00 [16:52:06]MH_I2C_Read... [16:52:06]Read from MH i2c: E2 0E 00 9C 04 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 B9 [16:52:06]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [16:52:06]wFMCommunicate OK [16:52:07]SAM_PROTO_GetShiftState done [16:52:07]FM_GetShiftState done [16:52:07]req_shift_opened done [16:52:07]requested_item shift.open_date is exist - process it [16:52:07]req_shift_open_date [16:52:07]req_shift_open_date done [16:52:07]produce_requested_data done [16:52:07]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41914,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [16:52:07]process_action_free close_receipt [16:52:07]json_value_free [16:52:07]json_value_free done [16:52:07]process_json_proto returns [16:52:07]Send response to host [16:52:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41914,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [16:52:07]free response buf [16:52:07]execute_script done [16:52:07]execute_script returns [16:52:07]free content buf [16:52:07]Sock 12.Close socket [16:52:07]Sock 12.Thread stoped [16: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 35 38 4F 00 00 00 8A 7A 47 00 AA 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 B3 A3 00 00 F4 03 04 00 CC 74 A7 66 B6 04 01 00 00 CC E5 9C 1A 0E 1E ED 64 [16:52:08]CommunicateWithHost err = 0 [16:52:08]CheckOFDResponse [16:52:08]1017 (14) - 77093643461234 [16:52:08]1041 (16) - 0000000000874958 [16:52:08]1040 (4) - 41907 [16:52:08]1012 (4) - 29.07.2024 10:54 [16:52:08]1206 (1) - 0 [16:52:08]OFD Sender: Remove packet 41907 [16:52:08]ProducePacketName [16:52:08]name=ofd_packets/00041907 [16:52:08]NVStorageDeleteData [16:52:09]OFD Sender: Processing packet 41908 [packets to send 63, broken 56] [16:52:09]ProducePacketName [16:52:09]name=ofd_packets/00041908 [16:52:09]OFD Sender: To server: pG, [16:52:09]CommunicateWithHost lk.salyk.kg:30040 [16:52:09]ConnectInit lk.salyk.kg [16:52:11]Connected sock=10 [16:52: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 35 38 42 01 00 00 7E 5A 3A 01 24 D9 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 30 36 35 33 32 30 30 30 31 38 39 06 04 3C 00 D0 A2 D0 BE D1 80 D0 BC D0 BE D0 B7 D0 BD D0 B0 D1 8F 20 D0 B6 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D0 A0 D0 BE D1 81 D0 94 D0 BE D1 82 2D 34 20 30 2C 34 35 35 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A8 61 00 00 00 00 13 04 06 00 A8 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 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 66 C8 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 B4 A3 00 00 35 04 06 00 69 4F AB 6D 32 DB 78 59 E5 E2 A3 DC 3B B8 [16:52:12]accept exits with 8 [16:52:12]New connection [16:52:12]New thread 3066858852 created [16:52:12]Thread 3067002212 joined [16:52:12]Waiting for new connection... [16:52:12] Sock 8.Parse request [16:52:12]Sock 8.Check first char [16:52:12]Sock 8.First char is OK [16:52:12]request: POST /json_proto HTTP/1.0 [16:52:12]Method: POST [16:52:12]URL: /json_proto [16:52:12]Method is POST - this is cgi request [16:52:12]url: /json_proto [16:52:12]query_string will be loaded in cgi processing [16:52:12]execute_cgi json_proto POST (null) [16:52:12]execute_cgi path=json_proto method=POST [16:52:12]POST find Content-Length [16:52:12]Host: 172.17.43.132:8080 [16:52:12]Content-Length: 620 [16:52:12]Content-Type: application/json [16:52:12] [16:52:12]POST finish read [16:52:12]Found Content-Length = 620 [16:52:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183943", "tax_sys" : 0, "items" : [ { "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "price" : 150.00, "quantity" : 2.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 300.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:52:12]execute_script... [16:52: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 : (3)183943", "tax_sys" : 0, "items" : [ { "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "price" : 150.00, "quantity" : 2.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 300.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:52:12]POST & json_proto [16:52:12]process_json_proto [16:52:12]json parsed OK: [16:52:12]protocol is kg_v1.0 [16:52:12]action value=close_receipt [16:52:12]process_action close_receipt [16:52:12]cmd_close_receipt [16:52:12]MH_GetDate [16:52:12]Write to MH i2c: F0 00 00 9D 04 90 [16:52:12]Write i2c OK [16:52:12]MH_I2C_Read... [16:52:12]Read from MH i2c: F0 [16:52:12]MH_I2C_Read... [16:52:12]Read from MH i2c: F0 09 00 [16:52:12]MH_I2C_Read... [16:52:12]Read from MH i2c: F0 09 00 9D 04 00 BD C8 A7 66 64 A3 A7 66 3F [16:52:12]GetLastDocTimeStamp 1722271915 [16:52:12]current date 1722271933 [16:52:12]FM_GetShiftState [16:52:12]SAM_PROTO_GetShiftState [16:52:12]wFMCommunicate request_size=4 [16:52:12]MH_SAM_APDU [16:52:12]CAPDU: 80 13 01 00 [16:52:12]Write to MH i2c: E2 08 00 9E 04 80 13 01 00 00 00 00 00 1F [16:52:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 Write i2c OK [16:52:12]30 30 30 30 MH_I2C_Read... [16:52:12]30 Read from MH i2c: *** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:52:12]E2 30 [16:52:12]30 MH_I2C_Read... [16:52:12]38 37 34 39 35 38 4F 00 00 00 96 65 47 00 41 8A A5 07 01 00 07 00 Read from MH i2c: 3B E2 00 0E 00 [16:52:13]MH_I2C_Read... [16:52:13]F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 B4 A3 00 00 Read from MH i2c: F4 E2 03 0E 00 9E 04 00 09 04 00 00 01 D0 A8 74 DC A7 A6 66 00 00 00 00 90 66 00 B6 BB 04 [16:52:13]01 RAPDU: 00 09 00 01 A8 DC A6 00 66 89 00 81 00 FC 00 FB 00 90 00 [16:52:13]wFMCommunicate OK [16:52:13]SAM_PROTO_GetShiftState done [16:52:13]92 FM_GetShiftState done [16:52:13]14 opened in 1722211496 [16:52:13]EB opened+sec_in_day 1722297896 [16:52:13]44 quantity*price = 30000 [16:52:13] [16:52:13]sum+1 = 30001 [16:52:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 111.00 НСП 1% : 0.98 НДС 12% : 11.79 Наличными: 111.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 96 29.07.2024 16:50 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41907 ФПД: 96900065272392 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T165037&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41907&fm=96900065272392&tin=02508201610067®Number=0000000000092626&sum=11100 0 [16:50:38]StoreToDocumentArchive [16:50:38]shift 427 fd 41907 [16:50:38]save to /storage/0427/doc_00041907 [16:50:38]save last doc name /storage/0427/doc_00041907 to /storage/kkm_last_doc_name [16:50:38]save OK [16:50:38]Clear old archive folders... [16:50:38]ProcessDocumentItem done err = 0, tmpTLVsize=266 [16:50:38]tlvbuf is 003EFCB0 [16:50:38]SAM_PROTO_ClearQueue [16:50:38]wFMCommunicate request_size=4 [16:50:38]MH_SAM_APDU [16:50:38]CAPDU: 80 09 00 00 [16:50:38]Write to MH i2c: E2 08 00 53 02 80 09 00 00 00 00 00 00 C7 [16:50:38]Write i2c OK [16:50:38]MH_I2C_Read... [16:50:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:50:39]Read from MH i2c: E2 [16:50:39]MH_I2C_Read... [16:50:39]Read from MH i2c: E2 03 00 [16:50:39]MH_I2C_Read... [16:50:39]Read from MH i2c: E2 03 00 53 02 00 90 00 C9 [16:50:39]RAPDU: 90 00 [16:50:39]wFMCommunicate OK [16:50:39]SAM_PROTO_ClearQueue done [16:50:39]KKMCreateOFDPacket [16:50:39]OFDProtocolAddRootSTLVToBuf [16:50:39]FM_MakeSignedData [16:50:39]FM_MakeSignedData [16:50:39]SAM_PROTO_SignData [16:50:39]wFMCommunicate request_size=4 [16:50:39]MH_SAM_APDU [16:50:39]CAPDU: 80 0D 01 02 [16:50:39]Write to MH i2c: E2 08 00 54 02 80 0D 01 02 00 00 00 00 CF [16:50:39]Write i2c OK [16:50:39]MH_I2C_Read... [16:50:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:50:39]Read from MH i2c: E2 [16:50:39]MH_I2C_Read... [16:50:39]Read from MH i2c: E2 03 00 [16:50:39]MH_I2C_Read... [16:50:39]Read from MH i2c: E2 03 00 54 02 00 90 00 CA [16:50:39]RAPDU: 90 00 [16:50:39]wFMCommunicate OK [16:50:39]wFMCommunicate request_size=255 [16:50:39]MH_SAM_APDU [16:50:39]CAPDU: 80 0D 02 02 FA 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 5C 2B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 5D C8 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 [16:50:39]Write to MH i2c: E2 02 01 55 02 80 0D 02 02 FA 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 5C 2B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 5D C8 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 00 00 28 [16:50:39]Write i2c OK [16:50:39]MH_I2C_Read... [16:50: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 35 38 4F 00 00 00 A6 0C 47 00 E3 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 35 38 10 04 04 00 A8 A3 00 00 F4 03 04 00 72 74 A7 66 B6 04 01 00 00 98 82 BA D9 9A B3 1A 07 [16:50:39]CommunicateWithHost err = 0 [16:50:39]CheckOFDResponse [16:50:39]1017 (14) - 77093643461234 [16:50:39]1041 (16) - 0000000000874958 [16:50:40]1040 (4) - 41896 [16:50:40]1012 (4) - 29.07.2024 10:52 [16:50:40]1206 (1) - 0 [16:50:40]OFD Sender: Remove packet 41896 [16:50:40]ProducePacketName [16:50:40]name=ofd_packets/00041896 [16:50:40]NVStorageDeleteData [16:50:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:40]Read from MH i2c: E2 [16:50:40]MH_I2C_Read... [16:50:40]Read from MH i2c: E2 03 00 [16:50:40]MH_I2C_Read... [16:50:40]Read from MH i2c: E2 03 00 55 02 00 90 00 CB [16:50:40]RAPDU: 90 00 [16:50:40]wFMCommunicate OK [16:50:40]wFMCommunicate request_size=25 [16:50:40]MH_SAM_APDU [16:50:40]CAPDU: 80 0D 02 02 14 35 38 10 04 04 00 B3 A3 00 00 35 04 06 00 58 21 4D F8 22 48 [16:50:40]Write to MH i2c: E2 1C 00 56 02 80 0D 02 02 14 00 35 38 10 04 04 00 B3 A3 00 00 35 04 06 00 58 21 4D F8 22 48 00 00 3C [16:50:40]Write i2c OK [16:50:40]MH_I2C_Read... [16:50:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:40]Read from MH i2c: E2 [16:50:40]MH_I2C_Read... [16:50:40]Read from MH i2c: E2 03 00 [16:50:40]MH_I2C_Read... [16:50:40]Read from MH i2c: E2 03 00 56 02 00 90 00 CC [16:50:40]RAPDU: 90 00 [16:50:40]wFMCommunicate OK [16:50:40]wFMCommunicate request_size=4 [16:50:40]MH_SAM_APDU [16:50:40]CAPDU: 80 0D 03 02 [16:50:40]Write to MH i2c: E2 08 00 57 02 80 0D 03 02 00 00 00 00 D4 [16:50:40]Write i2c OK [16:50:40]MH_I2C_Read... [16:50:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:50:40]Read from MH i2c: E2 [16:50:40]MH_I2C_Read... [16:50:40]Read from MH i2c: E2 0B 00 [16:50:40]MH_I2C_Read... [16:50:40]Read from MH i2c: E2 0B 00 57 02 00 CC 3F 0C 07 8C 0A 17 A9 90 00 49 [16:50:40]RAPDU: CC 3F 0C 07 8C 0A 17 A9 90 00 [16:50:40]wFMCommunicate OK [16:50:40]SAM_PROTO_SignData done [16:50:40]FM_MakeSignedData done [16:50:40]CreateOFDProtocolMessage [16:50:40]wFMCommunicate request_size=4 [16:50:40]MH_SAM_APDU [16:50:40]CAPDU: 80 11 00 00 [16:50:40]Write to MH i2c: E2 08 00 58 02 80 11 00 00 00 00 00 00 D4 [16:50:40]Write i2c OK [16:50:40]MH_I2C_Read... [16:50:40]Read from MH i2c: E2 [16:50:40]MH_I2C_Read... [16:50:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:40]Read from MH i2c: E2 17 00 [16:50:40]MH_I2C_Read... [16:50:40]Read from MH i2c: E2 17 00 58 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 3[00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 81 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 26 [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 5400000000572581 (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: 11492+1722262372=1722273864 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0xff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33540624 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 81 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 27 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 60 00 FF FF 7F [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 48 D0 A7 66 64 A3 A7 66 38 [17:24:24]Current date/time: 29.07.2024 17:24 [17:24:24]FM_Init [17:24:24]wFMConnect [17:24:24]MH_SAM_On [17:24:24]Write to MH i2c: E0 00 00 08 00 E7 [17:24:24]Write i2c OK [17:24:24]MH_I2C_Read... [17:24:24]*** iso7816_init finished! [17:24:24]*** atr: [17:24:24]*** 0F 3B D5 18 FF 81 91 FE [17:24:24]*** 1F C3 80 73 C8 21 10 0A [17:24:24]*** 00 00 00 00 00 00 00 00 [17:24:24]*** 00 00 00 00 00 00 00 00 [17:24:24]*** 00 00 00 00 00 00 00 00 [17:24:24]*** 00 00 00 00 00 00 00 00 [17:24:24]*** 00 00 00 00 00 00 00 00 [17:24:24]*** 00 00 00 00 00 00 00 00 [17:24:24]Read from MH i2c: E0 [17:24:24]MH_I2C_Read... [17:24:24]Read from MH i2c: E0 10 00 [17:24:24]MH_I2C_Read... [17:24:24]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 [17:24:24]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [17:24:24]wFMCommunicate request_size=10 [17:24:24]MH_SAM_APDU [17:24:24]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [17:24:24]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [17:24:35]MH_I2C_Read... [17:24:35]Read from MH i2c: E2 D3 00 [17:24:35]MH_I2C_Read... [17:24:35]Read from MH i2c: E2 D3 00 1C 00 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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 89 [17:24:35]RAPDU: 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [17:24:35]wFMCommunicate OK [17:24:35]SAM_PROTO_GetShiftData done [17:24:35]requested_item shift.sale.total_cash is exist - process it [17:24:35]requested_item shift.sale_refund.total is exist - process it [17:24:35]requested_item shift.sale_refund.total_cash is exist - process it [17:24:35]requested_item shift.buy.total is exist - process it [17:24:35]requested_item shift.buy.total_cash is exist - process it [17:24:35]produce_requested_data done [17:24:35]produce_requested_data return {"fm.sale.total":9260876.21,"fm.sale_refund.total":51664.20,"fm.buy.total":0.00,"shift.sale.total":18921.00,"shift.sale.total_cash":16848.00,"shift.sale_refund.total":445.00,"shift.sale_refund.total_cash":445.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [17:24:35]process_action_free get_value [17:24:35]json_value_free [17:24:35]json_value_free done [17:24:35]process_json_proto returns [17:24:35]Send response to host [17:24:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":9260876.21,"fm.sale_refund.total":51664.20,"fm.buy.total":0.00,"shift.sale.total":18921.00,"shift.sale.total_cash":16848.00,"shift.sale_refund.total":445.00,"shift.sale_refund.total_cash":445.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [17:24:35]free response buf [17:24:35]execute_script done [17:24:35]execute_script returns [17:24:35]free content buf [17:24:35]Sock 10.Close socket [17:24:35]Sock 10.Thread stoped [17:24:36]accept exits with 9 [17:24:36]New connection [17:24:36]New thread 3067084132 created [17:24:36]Thread 3066940772 joined [17:24:36]Waiting for new connection... [17:24:36] Sock 9.Parse request [17:24:36]Sock 9.Check first char [17:24:36]Sock 9.First char is OK [17:24:36]request: POST /json_proto HTTP/1.0 [17:24:36]Method: POST [17:24:36]URL: /json_proto [17:24:36]Method is POST - this is cgi request [17:24:36]url: /json_proto [17:24:36]query_string will be loaded in cgi processing [17:24:36]execute_cgi json_proto POST (null) [17:24:36]execute_cgi path=json_proto method=POST [17:24:36]POST find Content-Length [17:24:36]Host: 172.17.43.132:8080 [17:24:36]Content-Length: 653 [17:24:36]Content-Type: application/json [17:24:36] [17:24:36]POST finish read [17:24:36]Found Content-Length = 653 [17:24:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183952", "tax_sys" : 0, "items" : [ { "code": "54492509", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,25\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:36]execute_script... [17:24: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 : (3)183952", "tax_sys" : 0, "items" : [ { "code": "54492509", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,25\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:36]POST & json_proto [17:24:36]process_json_proto [17:24:36]json parsed OK: [17:24:36]protocol is kg_v1.0 [17:24:36]action value=close_receipt [17:24:36]process_action close_receipt [17:24:36]cmd_close_receipt [17:24:36]MH_GetDate [17:24:36]Write to MH i2c: F0 00 00 1D 00 0C [17:24:36]Write i2c OK [17:24:36]MH_I2C_Read... [17:24:36]Read from MH i2c: F0 [17:24:36]MH_I2C_Read... [17:24:36]Read from MH i2c: F0 09 00 [17:24:36]MH_I2C_Read... [17:24:36]Read from MH i2c: F0 09 00 1D 00 00 55 D0 A7 66 64 A3 A7 66 5B [17:24:36]GetLastDocTimeStamp 1722272022 [17:24:36]current date 1722273877 [17:24:36]FM_GetShiftState [17:24:36]SAM_PROTO_GetShiftState [17:24:36]wFMCommunicate request_size=4 [17:24:36]MH_SAM_APDU [17:24:36]CAPDU: 80 13 01 00 [17:24:36]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [17:24:36]Write i2c OK [17:24:36]MH_I2C_Read... [17:24:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:36]Read from MH i2c: E2 [17:24:36]MH_I2C_Read... [17:24:36]Read from MH i2c: E2 0E 00 [17:24:36]MH_I2C_Read... [17:24:36]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 37 [17:24:36]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [17:24:36]wFMCommunicate OK [17:24:36]SAM_PROTO_GetShiftState done [17:24:36]FM_GetShiftState done [17:24:36]opened in 1722211496 [17:24:36]opened+sec_in_day 1722297896 [17:24:36]quantity*price = 9000 [17:24:36]sum+1 = 9001 [17:24:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 90.00 НСП 1% : 0.80 НДС 12% : 9.56 Наличными: 90.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 113 29.07.2024 17:24 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41924 ФПД: 191667196769832 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T172437&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41924&fm=191667196769832&tin=02508201610067®Number=0000000000092626&sum=9000 0 [17:24:38]StoreToDocumentArchive [17:24:38]shift 427 fd 41924 [17:24:38]save to /storage/0427/doc_00041924 [17:24:38]save last doc name /storage/0427/doc_00041924 to /storage/kkm_last_doc_name [17:24:38]save OK [17:24:38]Clear old archive folders... [17:24:38]ProcessDocumentItem done err = 0, tmpTLVsize=276 [17:24:38]tlvbuf is 00D6E850 [17:24:38]SAM_PROTO_ClearQueue [17:24:38]wFMCommunicate request_size=4 [17:24:38]MH_SAM_APDU [17:24:38]CAPDU: 80 09 00 00 [17:24:38]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [17:24:38]Write i2c OK [17:24:38]MH_I2C_Read... [17:24:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:24:38]Read from MH i2c: E2 [17:24:38]MH_I2C_Read... [17:24:38]Read from MH i2c: E2 03 00 [17:24:38]MH_I2C_Read... [17:24:38]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [17:24:38]RAPDU: 90 00 [17:24:38]wFMCommunicate OK [17:24:38]SAM_PROTO_ClearQueue done [17:24:38]KKMCreateOFDPacket [17:24:38]OFDProtocolAddRootSTLVToBuf [17:24:38]FM_MakeSignedData [17:24:38]FM_MakeSignedData [17:24:38]SAM_PROTO_SignData [17:24:38]wFMCommunicate request_size=4 [17:24:38]MH_SAM_APDU [17:24:38]CAPDU: 80 0D 01 02 [17:24:38]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [17:24:38]Write i2c OK [17:24:38]MH_I2C_Read... [17:24:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:24:38]Read from MH i2c: E2 [17:24:38]MH_I2C_Read... [17:24:38]Read from MH i2c: E2 03 00 [17:24:38]MH_I2C_Read... [17:24:38]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [17:24:38]RAPDU: 90 00 [17:24:38]wFMCommunicate OK [17:24:38]wFMCommunicate request_size=255 [17:24:38]MH_SAM_APDU [17:24:38]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 35 34 34 39 32 35 30 39 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 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 55 D0 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 [17:24:38]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 35 34 34 39 32 35 30 39 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 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 55 D0 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 00 00 20 [17:24:38]Write i2c OK [17:24:38]MH_I2C_Read... [17:24:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:38]Read from MH i2c: E2 [17:24:38]MH_I2C_Read... [17:24:38]Read from MH i2c: E2 03 00 [17:24:38]MH_I2C_Read... [17:24:38]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [17:24:38]RAPDU: 90 00 [17:24:38]wFMCommunicate OK [17:24:38]wFMCommunicate request_size=35 [17:24:38]MH_SAM_APDU [17:24:38]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 C4 A3 00 00 35 04 06 00 AE 51 FF 2D B6 28 [17:24:38]Write to MH i2c: E2 26 00 2E 00 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 C4 A3 00 00 35 04 06 00 AE 51 FF 2D B6 28 00 00 14 [17:24:38]Write i2c OK [17:24:38]MH_I2C_Read... [17:24:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:38]Read from MH i2c: E2 [17:24:38]MH_I2C_Read... [17:24:38]Read from MH i2c: E2 03 00 [17:24:38]MH_I2C_Read... [17:24:38]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [17:24:38]RAPDU: 90 00 [17:24:38]wFMCommunicate OK [17:24:38]wFMCommunicate request_size=4 [17:24:38]MH_SAM_APDU [17:24:38]CAPDU: 80 0D 03 02 [17:24:38]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [17:24:38]Write i2c OK [17:24:38]MH_I2C_Read... [17:24:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:24:39]Read from MH i2c: E2 [17:24:39]MH_I2C_Read... [17:24:39]Read from MH i2c: E2 0B 00 [17:24:39]MH_I2C_Read... [17:24:39]Read from MH i2c: E2 0B 00 2F 00 00 C0 CE 69 5B AE E3 26 81 90 00 35 [17:24:39]RAPDU: C0 CE 69 5B AE E3 26 81 90 00 [17:24:39]wFMCommunicate OK [17:24:39]SAM_PROTO_SignData done [17:24:39]FM_MakeSignedData done [17:24:39]CreateOFDProtocolMessage [17:24:39]wFMCommunicate request_size=4 [17:24:39]MH_SAM_APDU [17:24:39]CAPDU: 80 11 00 00 [17:24:39]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [17:24:39]Write i2c OK [17:24:39]MH_I2C_Read... [17:24:39]Read from MH i2c: E2 *** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:39] [17:24:39]MH_I2C_Read... [17:24:39]Read from MH i2c: E2 17 00 [17:24:39]MH_I2C_Read... [17:24:39]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 35 38 90 00 06 [17:24:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [17:24:39]wFMCommunicate OK [17:24:39]CreateOFDProtocolMessage done [17:24:39]OFDSenderStorePacket 41924 [17:24:39]StoreOFDPacket docnum=41924 [17:24:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 28 01 00 00 59 95 20 01 11 B5 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 35 34 34 39 32 35 30 39 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 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 55 D0 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 C4 A3 00 00 35 04 06 00 AE 51 FF 2D B6 28 C0 CE 69 5B AE E3 26 81 [17:24:39]CheckFolder [17:24:39]dirname=/storage/ofd_packets [17:24:39]CheckFolder done [17:24:39]ProducePacketName [17:24:39]name=ofd_packets/00041924 [17:24:39]NVStorageSaveData ofd_packets/00041924 [17:24:39]File name is /storage/ofd_packets/00041924 [17:24:39]Write 326 bytes [17:24:39]NVStorageSaveData done [17:24:39]OFDSenderStorePacket done [17:24:39]KKMCreateOFDPacket done [17:24:39]NVStorageSaveData kkm_last_timestamp [17:24:39]File name is /storage/kkm_last_timestamp [17:24:39]Write 4 bytes [17:24:39]NVStorageSaveData done [17:24:39]ExternCall_PrintAddStr [17:24:39]wPrintStart [17:24:39]Write to MH i2c: 01 00 00 31 00 31 [17:24:39]Write i2c OK [17:24:39]MH_I2C_Read... [17:24:39]Read from MH i2c: 01 [17:24:39]MH_I2C_Read... [17:24:39]Read from MH i2c: 01 07 00 [17:24:39]MH_I2C_Read... [17:24:39]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [17:24:39]RasterBufferAndPrint [17:24:39]line Счет N : (3)183952 [17:24:39]line ИНН: 02508201610067 [17:24:39]line Контрольно-Кассовый Чек [17:24:39]line ПРОДАЖА [17:24:39]line Товар: 54492509 [17:24:39]line Напиток Кока-Кола 0,25л [17:24:39]line 1.000 * 90.00 [17:24:39]line = 90.00 [17:24:39]line НДС 12% НСП 1% [17:24:39]line > о реализуемом товаре [17:24:39]line ИТОГО: 90.00 [17:24:39]line НСП 1% : 0.80 [17:24:39]line НДС 12% : 9.56 [17:24:39]line Наличными: 90.00 [17:24:39]line Безнал.: 0.00 [17:24:39]line Место: АЗС № 97 "Партнер Нефть" [17:24:39]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [17:24:39]line СНО: Общий режим [17:24:39]line Чек 113 29.07.2024 17:24 [17:24:39]line Смена: 427 ФФД: 1.0 [17:24:39]line ЗНМ: 0300000053 [17:24:39]line РНМ: 0000000000092626 [17:24:39]line Версия ККМ: 001 [17:24:39]line ФМ: 0000000000874958 [17:24:39]line ФД: 41924 [17:24:39]line ФПД: 191667196769832 [17:24:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T172437&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41924&fm=191667196769832&tin=02508201610067®Number=0000000000092626&sum=9000 [17:24:39]line 0 [17:24:39]written 0, free lines is 4095 [17:24:39]OFD Sender: Processing packet 41924 [packets to send 57, broken 56] [17:24:39]ProducePacketName [17:24:39]name=ofd_packets/00041924 [17:24:39]OFD Sender: To server: pG, [17:24:39]CommunicateWithHost lk.salyk.kg:30040 [17:24:39]ConnectInit lk.salyk.kg [17:24:39]Write to MH i2c: 01 00 00 59 00 59 [17:24:39]Write i2c OK [17:24:39]MH_I2C_Read... [17:24:39]Read from MH i2c: 01 [17:24:39]MH_I2C_Read... [17:24:39]Read from MH i2c: 01 07 00 [17:24:39]MH_I2C_Read... [17:24:39]Read from MH i2c: 01 07 00 59 00 00 00 00 00 00 1A 0D 87 [17:24:39]RasterBufferAndPrint [17:24:39]line [17:24:39]line [17:24:39]line [17:24:39]line [17:24:39]line [17:24:39]written 0, free lines is 3379 [17:24:39]MH_Cut [17:24:39]Write to MH i2c: D1 01 00 60 00 01 32 [17:24:39]Write i2c OK [17:24:39]MH_I2C_Read... [17:24:39]Read from MH i2c: D1 [17:24:39]MH_I2C_Read... [17:24:39]Read from MH i2c: D1 01 00 [17:24:39]MH_I2C_Read... [17:24:39]Read from MH i2c: D1 01 00 60 00 00 31 [17:24:39]Write to MH i2c: 01 00 00 61 00 61 [17:24:39]Write i2c OK [17:24:39]MH_I2C_Read... [17:24:40]*** Cut start [17:24:40]*** Partial cut [17:24:40]*** CUTSNS_PIN = 1 [17:24:40]*** CUTSNS_PIN = 0 [17:24:40]*** Brake cut motor [17:24:40]Read from MH i2c: 01 *** Stop cut motor [17:24:40] [17:24:40]*** Cut end [17:24:40]MH_I2C_Read... [17:24:40]Read from MH i2c: 01 07 00 [17:24:40]MH_I2C_Read... [17:24:40]Read from MH i2c: 01 07 00 61 00 00 00 00 00 00 FF 0F 76 [17:24:40]process_action close_receipt done [17:24:40]requested_data is exist [17:24:40]produce_requested_data [17:24:40]requested_item fm.sn is exist - process it [17:24:40]wFMCommunicate request_size=4 [17:24:40]MH_SAM_APDU [17:24:40]CAPDU: 80 11 00 00 [17:24:40]Write to MH i2c: E2 08 00 62 00 80 11 00 00 00 00 00 00 DC [17:24:40]Write i2c OK [17:24:40]MH_I2C_Read... [17:24:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:41]Read from MH i2c: E2 [17:24:41]MH_I2C_Read... [17:24:41]Read from MH i2c: E2 17 00 [17:24:41]MH_I2C_Read... [17:24:41]Read from MH i2c: E2 17 00 62 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 38 [17:24:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [17:24:41]wFMCommunicate OK [17:24:41]requested_item fd.num is exist - process it [17:24:41]SAM_PROTO_GetFieldsCounters [17:24:41]wFMCommunicate request_size=4 [17:24:41]MH_SAM_APDU [17:24:41]CAPDU: 80 13 00 00 [17:24:41]Write to MH i2c: E2 08 00 63 00 80 13 00 00 00 00 00 00 DF [17:24:41]Write i2c OK [17:24:41]MH_I2C_Read... [17:24:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:24:41]Read from MH i2c: E2 [17:24:41]MH_I2C_Read... [17:24:41]Read from MH i2c: E2 62 00 [17:24:41]MH_I2C_Read... [17:24:41]Read from MH i2c: E2 62 00 63 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 C4 A3 00 00 0E 04 04 00 AB 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 6F [17:24:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 C4 A3 00 00 0E 04 04 00 AB 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 [17:24:41]wFMCommunicate OK [17:24:41]SAM_PROTO_GetFieldsCounters done [17:24:41]requested_item shift.num is exist - process it [17:24:41]requested_item shift.opened is exist - process it [17:24:41]req_shift_opened [17:24:41]FM_GetShiftState [17:24:41]SAM_PROTO_GetShiftState [17:24:41]wFMCommunicate request_size=4 [17:24:41]MH_SAM_APDU [17:24:41]CAPDU: 80 13 01 00 [17:24:41]Write to MH i2c: E2 08 00 64 00 80 13 01 00 00 00 00 00 E1 [17:24:41]Write i2c OK [17:24:41]MH_I2C_Read... [17:24:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:41]Read from MH i2c: E2 [17:24:41]MH_I2C_Read... [17:24:41]Read from MH i2c: E2 0E 00 [17:24:41]MH_I2C_Read... [17:24:41]Read from MH i2c: E2 0E 00 64 00 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 7D [17:24:41]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [17:24:41]wFMCommunicate OK [17:24:41]SAM_PROTO_GetShiftState done [17:24:41]FM_GetShiftState done [17:24:41]req_shift_opened done [17:24:41]requested_item shift.open_date is exist - process it [17:24:41]req_shift_open_date [17:24:41]req_shift_open_date done [17:24:41]produce_requested_data done [17:24:41]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41924,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [17:24:41]process_action_free close_receipt [17:24:41]json_value_free [17:24:41]json_value_free done [17:24:41]process_json_proto returns [17:24:41]Send response to host [17:24:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41924,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [17:24:41]free response buf [17:24:41]execute_script done [17:24:41]execute_script returns [17:24:41]free content buf [17:24:41]Sock 9.Close socket [17:24:41]Sock 9.Thread stoped [17:24:43]accept exits with 10 [17:24:43]New connection [17:24:43]New thread 3066940772 created [17:24:43]Thread 3067084132 joined [17:24:43]Waiting for new connection... [17:24:43] Sock 10.Parse request [17:24:43]Sock 10.Check first char [17:24:43]Sock 10.First char is OK [17:24:43]request: POST /json_proto HTTP/1.0 [17:24:43]Method: POST [17:24:43]URL: /json_proto [17:24:43]Method is POST - this is cgi request [17:24:43]url: /json_proto [17:24:43]query_string will be loaded in cgi processing [17:24:43]execute_cgi json_proto POST (null) [17:24:43]execute_cgi path=json_proto method=POST [17:24:43]POST find Content-Length [17:24:43]Host: 172.17.43.132:8080 [17:24:43]Content-Length: 879 [17:24:43]Content-Type: application/json [17:24:43] [17:24:43]POST finish read [17:24:43]Found Content-Length = 879 [17:24:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183953", "tax_sys" : 0, "items" : [ { "code": "5449000006271", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 276.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:43]execute_script... [17:24:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183953", "tax_sys" : 0, "items" : [ { "code": "5449000006271", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 276.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:43]POST & json_proto [17:24:43]process_json_proto [17:24:43]json parsed OK: [17:24:43]protocol is kg_v1.0 [17:24:43]action value=close_receipt [17:24:43]process_action close_receipt [17:24:43]cmd_close_receipt [17:24:43]MH_GetDate [17:24:43]Write to MH i2c: F0 00 00 65 00 54 [17:24:43]Write i2c OK [17:24:43]MH_I2C_Read... [17:24:43]Read from MH i2c: F0 [17:24:43]MH_I2C_Read... [17:24:43]Read from MH i2c: F0 09 00 [17:24:43]MH_I2C_Read... [17:24:43]Read from MH i2c: F0 09 00 65 00 00 5C D0 A7 66 64 A3 A7 66 AA [17:24:43]GetLastDocTimeStamp 1722273877 [17:24:43]current date 1722273884 [17:24:43]FM_GetShiftState [17:24:43]SAM_PROTO_GetShiftState [17:24:43]wFMCommunicate request_size=4 [17:24:43]MH_SAM_APDU [17:24:43]CAPDU: 80 13 01 00 [17:24:43]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [17:24:43]Write i2c OK [17:24:43]MH_I2C_Read... [17:24:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:43]Read from MH i2c: E2 [17:24:43]MH_I2C_Read... [17:24:43]Read from MH i2c: E2 0E 00 [17:24:43]MH_I2C_Read... [17:24:43]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 7F [17:24:43]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [17:24:43]wFMCommunicate OK [17:24:43]SAM_PROTO_GetShiftState done [17:24:43]FM_GetShiftState done [17:24:43]opened in 1722211496 [17:24:43]opened+sec_in_day 1722297896 [17:24:43]quantity*price = 12500 [17:24:43]sum+1 = 12501 [17:24:43]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48742245 Сигареты Parliament Silver Blue 1.000 * 151.00 = 151.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 276.00 НСП 1% : 2.45 НДС 12% : 29.30 Наличными: 276.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 114 29.07.2024 17:24 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41925 ФПД: 11210881447666 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T172444&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41925&fm=11210881447666&tin=02508201610067®Number=0000000000092626&sum=27600 0 [17:24:44]StoreToDocumentArchive [17:24:44]shift 427 fd 41925 [17:24:44]save to /storage/0427/doc_00041925 [17:24:44]save last doc name /storage/0427/doc_00041925 to /storage/kkm_last_doc_name [17:24:44]save OK [17:24:44]Clear old archive folders... [17:24:44]ProcessDocumentItem done err = 0, tmpTLVsize=377 [17:24:44]tlvbuf is 00D6E490 [17:24:44]SAM_PROTO_ClearQueue [17:24:44]wFMCommunicate request_size=4 [17:24:44]MH_SAM_APDU [17:24:44]CAPDU: 80 09 00 00 [17:24:44]Write to MH i2c: E2 08 00 73 00 80 09 00 00 00 00 00 00 E5 [17:24:44]Write i2c OK [17:24:44]MH_I2C_Read... [17:24:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:24:44]Read from MH i2c: E2 [17:24:44]MH_I2C_Read... [17:24:44]Read from MH i2c: E2 03 00 [17:24:44]MH_I2C_Read... [17:24:44]Read from MH i2c: E2 03 00 73 00 00 90 00 E7 [17:24:44]RAPDU: 90 00 [17:24:44]wFMCommunicate OK [17:24:44]SAM_PROTO_ClearQueue done [17:24:44]KKMCreateOFDPacket [17:24:44]OFDProtocolAddRootSTLVToBuf [17:24:44]FM_MakeSignedData [17:24:44]FM_MakeSignedData [17:24:44]SAM_PROTO_SignData [17:24:44]wFMCommunicate request_size=4 [17:24:44]MH_SAM_APDU [17:24:44]CAPDU: 80 0D 01 02 [17:24:44]Write to MH i2c: E2 08 00 74 00 80 0D 01 02 00 00 00 00 ED [17:24:44]Write i2c OK [17:24:44]MH_I2C_Read... [17:24:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:24:44]Read from MH i2c: E2 [17:24:44]MH_I2C_Read... [17:24:44]Read from MH i2c: E2 03 00 [17:24:44]MH_I2C_Read... [17:24:44]Read from MH i2c: E2 03 00 74 00 00 90 00 E8 [17:24:44]RAPDU: 90 00 [17:24:44]wFMCommunicate OK [17:24:44]wFMCommunicate request_size=255 [17:24:44]MH_SAM_APDU [17:24:44]CAPDU: 80 0D 02 02 FA 03 00 79 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F5 00 00 00 00 00 EE [17:24:45]Write to MH i2c: E2 02 01 75 00 80 0D 02 02 FA 00 03 00 79 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F5 00 00 00 00 00 EE 00 00 C2 [17:24:45]Write i2c OK [17:24:45]MH_I2C_Read... [17:24:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:45]Read from MH i2c: E2 [17:24:45]MH_I2C_Read... [17:24:45]Read from MH i2c: E2 03 00 [17:24:45]MH_I2C_Read... [17:24:45]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [17:24:45]RAPDU: 90 00 [17:24:45]wFMCommunicate OK [17:24:45]wFMCommunicate request_size=136 [17:24:45]MH_SAM_APDU [17:24:45]CAPDU: 80 0D 02 02 83 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0B 00 00 00 00 07 04 06 00 D0 6B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 5C D0 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 C5 A3 00 00 35 04 06 00 0A 32 3C 9B 36 F2 [17:24:45]Write to MH i2c: E2 8B 00 76 00 80 0D 02 02 83 00 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0B 00 00 00 00 07 04 06 00 D0 6B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 5C D0 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 C5 A3 00 00 35 04 06 00 0A 32 3C 9B 36 F2 00 00 F0 [17:24:45]Write i2c OK [17:24:45]MH_I2C_Read... [17:24:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:45]Read from MH i2c: E2 [17:24:45]MH_I2C_Read... [17:24:45]Read from MH i2c: E2 03 00 [17:24:45]MH_I2C_Read... [17:24:45]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [17:24:45]RAPDU: 90 00 [17:24:45]wFMCommunicate OK [17:24:45]wFMCommunicate request_size=4 [17:24:45]MH_SAM_APDU [17:24:45]CAPDU: 80 0D 03 02 [17:24:45]Write to MH i2c: E2 08 00 77 00 80 0D 03 02 00 00 00 00 F2 [17:24:45]Write i2c OK [17:24:45]MH_I2C_Read... [17:24:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:24:45]Read from MH i2c: E2 [17:24:45]MH_I2C_Read... [17:24:45]Read from MH i2c: E2 0B 00 [17:24:45]MH_I2C_Read... [17:24:45]Read from MH i2c: E2 0B 00 77 00 00 A4 A6 43 93 FC F9 69 67 90 00 D8 [17:24:45]RAPDU: A4 A6 43 93 FC F9 69 67 90 00 [17:24:45]wFMCommunicate OK [17:24:45]SAM_PROTO_SignData done [17:24:45]FM_MakeSignedData done [17:24:45]CreateOFDProtocolMessage [17:24:45]wFMCommunicate request_size=4 [17:24:45]MH_SAM_APDU [17:24:45]CAPDU: 80 11 00 00 [17:24:45]Write to MH i2c: E2 08 00 78 00 80 11 00 00 00 00 00 00 F2 [17:24:45]Write i2c OK [17:24:45]MH_I2C_Read... [17:24:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:45]Read from MH i2c: E2 [17:24:45]MH_I2C_Read... [17:24:45]Read from MH i2c: E2 17 00 [17:24:45]MH_I2C_Read... [17:24:45]Read from MH i2c: E2 17 00 78 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 4E [17:24:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [17:24:45]wFMCommunicate OK [17:24:45]CreateOFDProtocolMessage done [17:24:45]OFDSenderStorePacket 41925 [17:24:45]StoreOFDPacket docnum=41925 [17:24:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 8D 01 00 00 D5 83 85 01 94 C3 5A 03 01 00 03 00 79 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0B 00 00 00 00 07 04 06 00 D0 6B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 5C D0 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 C5 A3 00 00 35 04 06 00 0A 32 3C 9B 36 F2 A4 A6 43 93 FC F9 69 67 [17:24:45]CheckFolder [17:24:45]dirname=/storage/ofd_packets [17:24:45]CheckFolder done [17:24:45]ProducePacketName [17:24:45]name=ofd_packets/00041925 [17:24:45]NVStorageSaveData ofd_packets/00041925 [17:24:45]File name is /storage/ofd_packets/00041925 [17:24:45]Write 427 bytes [17:24:45]NVStorageSaveData done [17:24:45]OFDSenderStorePacket done [17:24:45]KKMCreateOFDPacket done [17:24:45]NVStorageSaveData kkm_last_timestamp [17:24:45]File name is /storage/kkm_last_timestamp [17:24:45]Write 4 bytes [17:24:45]NVStorageSaveData done [17:24:45]ExternCall_PrintAddStr [17:24:45]wPrintStart [17:24:45]Write to MH i2c: 01 00 00 79 00 79 [17:24:45]Write i2c OK [17:24:45]MH_I2C_Read... [17:24:45]Read from MH i2c: 01 [17:24:45]MH_I2C_Read... [17:24:45]OFD Sender: Processing packet 41924 [packets to send 58, broken 56] [17:24:45]ProducePacketName [17:24:45]name=ofd_packets/00041924 [17:24:45]OFD Sender: To server: pG, [17:24:45]CommunicateWithHost lk.salyk.kg:30040 [17:24:45]ConnectInit lk.salyk.kg [17:24:45]Read from MH i2c: 01 07 00 [17:24:45]MH_I2C_Read... [17:24:45]Read from MH i2c: 01 07 00 79 00 00 00 00 00 00 FF 0F 8E [17:24:45]RasterBufferAndPrint [17:24:45]line Счет N : (3)183953 [17:24:45]line ИНН: 02508201610067 [17:24:45]line Контрольно-Кассовый Чек [17:24:45]line ПРОДАЖА [17:24:45]line Товар: 5449000006271 [17:24:45]line Напиток Фанта 1л [17:24:45]line 1.000 * 125.00 [17:24:45]line = 125.00 [17:24:45]line НДС 12% НСП 1% [17:24:45]line > о реализуемом товаре [17:24:45]line Товар: 48742245 [17:24:45]line Сигареты Parliament Silver Blue [17:24:45]line 1.000 * 151.00 [17:24:45]line = 151.00 [17:24:45]line НДС 12% НСП 1% [17:24:45]line > о реализуемом товаре [17:24:45]line ИТОГО: 276.00 [17:24:45]line НСП 1% : 2.45 [17:24:45]line НДС 12% : 29.30 [17:24:45]line Наличными: 276.00 [17:24:45]line Безнал.: 0.00 [17:24:45]line Место: АЗС № 97 "Партнер Нефть" [17:24:45]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [17:24:45]line СНО: Общий режим [17:24:45]line Чек 114 29.07.2024 17:24 [17:24:45]line Смена: 427 ФФД: 1.0 [17:24:45]line ЗНМ: 0300000053 [17:24:45]line РНМ: 0000000000092626 [17:24:45]line Версия ККМ: 001 [17:24:45]line ФМ: 0000000000874958 [17:24:45]line ФД: 41925 [17:24:45]line ФПД: 11210881447666 [17:24:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T172444&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41925&fm=11210881447666&tin=02508201610067®Number=0000000000092626&sum=27600 [17:24:45]line 0 [17:24:45]written 0, free lines is 4095 [17:24:46]recv_with_timeout no data received [17:24:46]Write to MH i2c: 01 00 00 A8 00 A8 [17:24:46]Write i2c OK [17:24:46]MH_I2C_Read... [17:24:46]Read from MH i2c: 01 [17:24:46]MH_I2C_Read... [17:24:46]Read from MH i2c: 01 07 00 [17:24:46]MH_I2C_Read... [17:24:46]Read from MH i2c: 01 07 00 A8 00 00 00 00 00 00 B1 0C 6C [17:24:46]RasterBufferAndPrint [17:24:46]line [17:24:46]line [17:24:46]line [17:24:46]line [17:24:46]line [17:24:46]written 0, free lines is 3280 [17:24:46]MH_Cut [17:24:46]Write to MH i2c: D1 01 00 AF 00 01 81 [17:24:46]Write i2c OK [17:24:46]MH_I2C_Read... [17:24:46]Read from MH i2c: D1 [17:24:46]MH_I2C_Read... [17:24:46]Read from MH i2c: D1 01 00 [17:24:46]MH_I2C_Read... [17:24:46]Read from MH i2c: D1 01 00 AF 00 00 80 [17:24:46]Write to MH i2c: 01 00 00 B0 00 B0 [17:24:46]Write i2c OK [17:24:46]MH_I2C_Read... [17:24:47]*** Cut start [17:24:47]*** Partial cut [17:24:47]*** CUTSNS_PIN = 1 [17:24:47]*** CUTSNS_PIN = 0 [17:24:47]*** Brake cut motor [17:24:47]Read from MH i2c: *** Stop cut motor [17:24:47]01 *** Cut end [17:24:47] [17:24:47]MH_I2C_Read... [17:24:47]Read from MH i2c: 01 07 00 [17:24:47]MH_I2C_Read... [17:24:47]Read from MH i2c: 01 07 00 B0 00 00 00 00 00 00 FF 0F C5 [17:24:47]process_action close_receipt done [17:24:47]requested_data is exist [17:24:47]produce_requested_data [17:24:47]requested_item fm.sn is exist - process it [17:24:47]wFMCommunicate request_size=4 [17:24:47]MH_SAM_APDU [17:24:47]CAPDU: 80 11 00 00 [17:24:47]Write to MH i2c: E2 08 00 B1 00 80 11 00 00 00 00 00 00 2B [17:24:47]Write i2c OK [17:24:47]MH_I2C_Read... [17:24:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:48]Read from MH i2c: E2 [17:24:48]MH_I2C_Read... [17:24:48]Read from MH i2c: E2 17 00 [17:24:48]MH_I2C_Read... [17:24:48]Read from MH i2c: E2 17 00 B1 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 87 [17:24:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [17:24:48]wFMCommunicate OK [17:24:48]requested_item fd.num is exist - process it [17:24:48]SAM_PROTO_GetFieldsCounters [17:24:48]wFMCommunicate request_size=4 [17:24:48]MH_SAM_APDU [17:24:48]CAPDU: 80 13 00 00 [17:24:48]Write to MH i2c: E2 08 00 B2 00 80 13 00 00 00 00 00 00 2E [17:24:48]Write i2c OK [17:24:48]MH_I2C_Read... [17:24:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:24:48]Read from MH i2c: E2 [17:24:48]MH_I2C_Read... [17:24:48]Read from MH i2c: E2 62 00 [17:24:48]MH_I2C_Read... [17:24:48]Read from MH i2c: E2 62 00 B2 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 C5 A3 00 00 0E 04 04 00 AB 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 C2 [17:24: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 C5 A3 00 00 0E 04 04 00 AB 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 [17:24:48]wFMCommunicate OK [17:24:48]SAM_PROTO_GetFieldsCounters done [17:24:48]requested_item shift.num is exist - process it [17:24:48]requested_item shift.opened is exist - process it [17:24:48]req_shift_opened [17:24:48]FM_GetShiftState [17:24:48]SAM_PROTO_GetShiftState [17:24:48]wFMCommunicate request_size=4 [17:24:48]MH_SAM_APDU [17:24:48]CAPDU: 80 13 01 00 [17:24:48]Write to MH i2c: E2 08 00 B3 00 80 13 01 00 00 00 00 00 30 [17:24:48]Write i2c OK [17:24:48]MH_I2C_Read... [17:24:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:48]Read from MH i2c: E2 [17:24:48]MH_I2C_Read... [17:24:48]Read from MH i2c: E2 0E 00 [17:24:48]MH_I2C_Read... [17:24:48]Read from MH i2c: E2 0E 00 B3 00 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 CC [17:24:48]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [17:24:48]wFMCommunicate OK [17:24:48]SAM_PROTO_GetShiftState done [17:24:48]FM_GetShiftState done [17:24:48]req_shift_opened done [17:24:48]requested_item shift.open_date is exist - process it [17:24:48]req_shift_open_date [17:24:48]req_shift_open_date done [17:24:48]produce_requested_data done [17:24:48]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41925,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [17:24:48]process_action_free close_receipt [17:24:48]json_value_free [17:24:48]json_value_free done [17:24:48]process_json_proto returns [17:24:48]Send response to host [17:24:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41925,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [17:24:48]free response buf [17:24:48]execute_script done [17:24:48]execute_script returns [17:24:48]free content buf [17:24:48]Sock 10.Close socket [17:24:48]Sock 10.Thread stoped [17:24:49]accept exits with 9 [17:24:49]New connection [17:24:49]New thread 3067084132 created [17:24:49]Thread 3066940772 joined [17:24:49]Waiting for new connection... [17:24:49] Sock 9.Parse request [17:24:49]Sock 9.Check first char [17:24:49]Sock 9.First char is OK [17:24:49]request: POST /json_proto HTTP/1.0 [17:24:49]Method: POST [17:24:49]URL: /json_proto [17:24:49]Method is POST - this is cgi request [17:24:49]url: /json_proto [17:24:49]query_string will be loaded in cgi processing [17:24:49]execute_cgi json_proto POST (null) [17:24:49]execute_cgi path=json_proto method=POST [17:24:49]POST find Content-Length [17:24:49]Host: 172.17.43.132:8080 [17:24:49]Content-Length: 698 [17:24:49]Content-Type: application/json [17:24:49] [17:24:49]POST finish read [17:24:49]Found Content-Length = 698 [17:24:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183954", "tax_sys" : 0, "items" : [ { "code": "4870001571528", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,0 \u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:49]execute_script... [17:24:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183954", "tax_sys" : 0, "items" : [ { "code": "4870001571528", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,0 \u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:49]POST & json_proto [17:24:49]process_json_proto [17:24:49]json parsed OK: [17:24:49]protocol is kg_v1.0 [17:24:49]action value=close_receipt [17:24:49]process_action close_receipt [17:24:49]cmd_close_receipt [17:24:49]MH_GetDate [17:24:49]Write to MH i2c: F0 00 00 B4 00 A3 [17:24:49]Write i2c OK [17:24:49]MH_I2C_Read... [17:24:49]Read from MH i2c: F0 [17:24:49]MH_I2C_Read... [17:24:49]Read from MH i2c: F0 09 00 [17:24:49]MH_I2C_Read... [17:24:49]Read from MH i2c: F0 09 00 B4 00 00 62 D0 A7 66 64 A3 A7 66 FF [17:24:49]GetLastDocTimeStamp 1722273884 [17:24:49]current date 1722273890 [17:24:49]FM_GetShiftState [17:24:49]SAM_PROTO_GetShiftState [17:24:49]wFMCommunicate request_size=4 [17:24:49]MH_SAM_APDU [17:24:49]CAPDU: 80 13 01 00 [17:24:49]Write to MH i2c: E2 08 00 B5 00 80 13 01 00 00 00 00 00 32 [17:24:49]Write i2c OK [17:24:49]MH_I2C_Read... [17:24:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:49]Read from MH i2c: E2 [17:24:49]MH_I2C_Read... [17:24:49]Read from MH i2c: E2 0E 00 [17:24:49]MH_I2C_Read... [17:24:50]Read from MH i2c: E2 0E 00 B5 00 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 CE [17:24:50]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [17:24:50]wFMCommunicate OK [17:24:50]SAM_PROTO_GetShiftState done [17:24:50]FM_GetShiftState done [17:24:50]opened in 1722211496 [17:24:50]opened+sec_in_day 1722297896 [17:24:50]quantity*price = 10000 [17:24:50]sum+1 = 10001 [17:24:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 100.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 115 29.07.2024 17:24 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41926 ФПД: 223778076795040 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T172450&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41926&fm=223778076795040&tin=02508201610067®Number=0000000000092626&sum=10000 0 [17:24:51]StoreToDocumentArchive [17:24:51]shift 427 fd 41926 [17:24:51]save to /storage/0427/doc_00041926 [17:24:51]save last doc name /storage/0427/doc_00041926 to /storage/kkm_last_doc_name [17:24:51]save OK [17:24:51]Clear old archive folders... [17:24:51]ProcessDocumentItem done err = 0, tmpTLVsize=298 [17:24:51]tlvbuf is 00D740B0 [17:24:51]SAM_PROTO_ClearQueue [17:24:51]wFMCommunicate request_size=4 [17:24:51]MH_SAM_APDU [17:24:51]CAPDU: 80 09 00 00 [17:24:51]Write to MH i2c: E2 08 00 C2 00 80 09 00 00 00 00 00 00 34 [17:24:51]Write i2c OK [17:24:51]MH_I2C_Read... [17:24:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:24:51]Read from MH i2c: E2 [17:24:51]MH_I2C_Read... [17:24:51]Read from MH i2c: E2 03 00 [17:24:51]MH_I2C_Read... [17:24:51]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [17:24:51]RAPDU: 90 00 [17:24:51]wFMCommunicate OK [17:24:51]SAM_PROTO_ClearQueue done [17:24:51]KKMCreateOFDPacket [17:24:51]OFDProtocolAddRootSTLVToBuf [17:24:51]FM_MakeSignedData [17:24:51]FM_MakeSignedData [17:24:51]SAM_PROTO_SignData [17:24:51]wFMCommunicate request_size=4 [17:24:51]MH_SAM_APDU [17:24:51]CAPDU: 80 0D 01 02 [17:24:51]Write to MH i2c: E2 08 00 C3 00 80 0D 01 02 00 00 00 00 3C [17:24:51]Write i2c OK [17:24:51]MH_I2C_Read... [17:24:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:24:51]Read from MH i2c: E2 [17:24:51]MH_I2C_Read... [17:24:51]Read from MH i2c: E2 03 00 [17:24:51]MH_I2C_Read... [17:24:51]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [17:24:51]RAPDU: 90 00 [17:24:51]wFMCommunicate OK [17:24:51]wFMCommunicate request_size=255 [17:24:51]MH_SAM_APDU [17:24:51]CAPDU: 80 0D 02 02 FA 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 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 73 00 00 00 F4 03 04 00 62 D0 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 [17:24:51]Write to MH i2c: E2 02 01 C4 00 80 0D 02 02 FA 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 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 73 00 00 00 F4 03 04 00 62 D0 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 00 00 03 [17:24:51]Write i2c OK [17:24:51]MH_I2C_Read... [17:24:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:52]Read from MH i2c: E2 [17:24:52]MH_I2C_Read... [17:24:52]Read from MH i2c: E2 03 00 [17:24:52]MH_I2C_Read... [17:24:52]Read from MH i2c: E2 03 00 C4 00 00 90 00 38 [17:24:52]RAPDU: 90 00 [17:24:52]wFMCommunicate OK [17:24:52]wFMCommunicate request_size=57 [17:24:52]MH_SAM_APDU [17:24:52]CAPDU: 80 0D 02 02 34 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 C6 A3 00 00 35 04 06 00 CB 86 64 C6 A0 A0 [17:24:52]Write to MH i2c: E2 3C 00 C5 00 80 0D 02 02 34 00 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 C6 A3 00 00 35 04 06 00 CB 86 64 C6 A0 A0 00 00 29 [17:24:52]Write i2c OK [17:24:52]MH_I2C_Read... [17:24:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:52]Read from MH i2c: E2 [17:24:52]MH_I2C_Read... [17:24:52]Read from MH i2c: E2 03 00 [17:24:52]MH_I2C_Read... [17:24:52]Read from MH i2c: E2 03 00 C5 00 00 90 00 39 [17:24:52]RAPDU: 90 00 [17:24:52]wFMCommunicate OK [17:24:52]wFMCommunicate request_size=4 [17:24:52]MH_SAM_APDU [17:24:52]CAPDU: 80 0D 03 02 [17:24:52]Write to MH i2c: E2 08 00 C6 00 80 0D 03 02 00 00 00 00 41 [17:24:52]Write i2c OK [17:24:52]MH_I2C_Read... [17:24:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:24:52]Read from MH i2c: E2 [17:24:52]MH_I2C_Read... [17:24:52]Read from MH i2c: E2 0B 00 [17:24:52]MH_I2C_Read... [17:24:52]Read from MH i2c: E2 0B 00 C6 00 00 47 BF 41 92 F5 4A EB 6A 90 00 AF [17:24:52]RAPDU: 47 BF 41 92 F5 4A EB 6A 90 00 [17:24:52]wFMCommunicate OK [17:24:52]SAM_PROTO_SignData done [17:24:52]FM_MakeSignedData done [17:24:52]CreateOFDProtocolMessage [17:24:52]wFMCommunicate request_size=4 [17:24:52]MH_SAM_APDU [17:24:52]CAPDU: 80 11 00 00 [17:24:52]Write to MH i2c: E2 08 00 C7 00 80 11 00 00 00 00 00 00 41 [17:24:52]Write i2c OK [17:24:52]MH_I2C_Read... [17:24:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:52]Read from MH i2c: E2 [17:24:52]MH_I2C_Read... [17:24:52]Read from MH i2c: E2 17 00 [17:24:52]MH_I2C_Read... [17:24:52]Read from MH i2c: E2 17 00 C7 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 9D [17:24:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [17:24:52]wFMCommunicate OK [17:24:52]CreateOFDProtocolMessage done [17:24:52]OFDSenderStorePacket 41926 [17:24:52]StoreOFDPacket docnum=41926 [17:24:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 3E 01 00 00 D3 B8 36 01 29 59 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 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 73 00 00 00 F4 03 04 00 62 D0 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 C6 A3 00 00 35 04 06 00 CB 86 64 C6 A0 A0 47 BF 41 92 F5 4A EB 6A [17:24:52]CheckFolder [17:24:52]dirname=/storage/ofd_packets [17:24:52]CheckFolder done [17:24:52]ProducePacketName [17:24:52]name=ofd_packets/00041926 [17:24:52]NVStorageSaveData ofd_packets/00041926 [17:24:52]File name is /storage/ofd_packets/00041926 [17:24:52]Write 348 bytes [17:24:52]NVStorageSaveData done [17:24:52]OFDSenderStorePacket done [17:24:52]KKMCreateOFDPacket done [17:24:52]NVStorageSaveData kkm_last_timestamp [17:24:52]File name is /storage/kkm_last_timestamp [17:24:52]Write 4 bytes [17:24:52]NVStorageSaveData done [17:24:52]ExternCall_PrintAddStr [17:24:52]wPrintStart [17:24:52]Write to MH i2c: 01 00 00 C8 00 C8 [17:24:52]Write i2c OK [17:24:52]MH_I2C_Read... [17:24:52]Read from MH i2c: 01 [17:24:52]MH_I2C_Read... [17:24:52]Read from MH i2c: 01 07 00 [17:24:52]MH_I2C_Read... [17:24:52]Read from MH i2c: 01 07 00 C8 00 00 00 00 00 00 FF 0F DD [17:24:52]RasterBufferAndPrint [17:24:52]line Счет N : (3)183954 [17:24:52]line ИНН: 02508201610067 [17:24:52]line Контрольно-Кассовый Чек [17:24:52]line ПРОДАЖА [17:24:52]line Товар: 4870001571528 [17:24:52]line Вода ASU пит н.газ персик ПЭТ 1,0 л [17:24:52]line 1.000 * 100.00 [17:24:52]line = 100.00 [17:24:52]line НДС 12% НСП 1% [17:24:52]line > о реализуемом товаре [17:24:52]line ИТОГО: 100.00 [17:24:52]line НСП 1% : 0.88 [17:24:52]line НДС 12% : 10.62 [17:24:52]line Наличными: 100.00 [17:24:52]line Безнал.: 0.00 [17:24:52]line Место: АЗС № 97 "Партнер Нефть" [17:24:52]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [17:24:52]line СНО: Общий режим [17:24:52]line Чек 115 29.07.2024 17:24 [17:24:52]line Смена: 427 ФФД: 1.0 [17:24:52]line ЗНМ: 0300000053 [17:24:52]line РНМ: 0000000000092626 [17:24:52]line Версия ККМ: 001 [17:24:52]line ФМ: 0000000000874958 [17:24:52]line ФД: 41926 [17:24:52]line ФПД: 223778076795040 [17:24:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T172450&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41926&fm=223778076795040&tin=02508201610067®Number=0000000000092626&sum=10000 [17:24:52]line 0 [17:24:52]written 0, free lines is 4095 [17:24:52]OFD Sender: Processing packet 41924 [packets to send 59, broken 56] [17:24:52]ProducePacketName [17:24:52]name=ofd_packets/00041924 [17:24:52]OFD Sender: To server: pG, [17:24:52]CommunicateWithHost lk.salyk.kg:30040 [17:24:52]ConnectInit lk.salyk.kg [17:24:52]Write to MH i2c: 01 00 00 F1 00 F1 [17:24:52]Write i2c OK [17:24:52]MH_I2C_Read... [17:24:52]Read from MH i2c: 01 [17:24:52]MH_I2C_Read... [17:24:52]Read from MH i2c: 01 07 00 [17:24:52]MH_I2C_Read... [17:24:52]Read from MH i2c: 01 07 00 F1 00 00 00 00 00 00 07 0D 0C [17:24:52]RasterBufferAndPrint [17:24:52]line [17:24:52]line [17:24:52]line [17:24:52]line [17:24:52]line [17:24:52]written 0, free lines is 3372 [17:24:52]MH_Cut [17:24:52]Write to MH i2c: D1 01 00 F8 00 01 CA [17:24:52]Write i2c OK [17:24:52]MH_I2C_Read... [17:24:52]Read from MH i2c: D1 [17:24:52]MH_I2C_Read... [17:24:52]Read from MH i2c: D1 01 00 [17:24:52]MH_I2C_Read... [17:24:52]Read from MH i2c: D1 01 00 F8 00 00 C9 [17:24:52]Write to MH i2c: 01 00 00 F9 00 F9 [17:24:52]Write i2c OK [17:24:52]MH_I2C_Read... [17:24:53]*** Cut start [17:24:53]*** Partial cut [17:24:53]*** CUTSNS_PIN = 1 [17:24:53]*** CUTSNS_PIN = 0 [17:24:53]*** Brake cut motor [17:24:54]Read from MH i2c: 01 [17:24:54]MH_I2C_Read... [17:24:54]*** Stop cut motor [17:24:54]*** Cut end [17:24:54]Read from MH i2c: 01 07 00 [17:24:54]MH_I2C_Read... [17:24:54]Read from MH i2c: 01 07 00 F9 00 00 00 00 00 00 FF 0F 0E [17:24:54]process_action close_receipt done [17:24:54]requested_data is exist [17:24:54]produce_requested_data [17:24:54]requested_item fm.sn is exist - process it [17:24:54]wFMCommunicate request_size=4 [17:24:54]MH_SAM_APDU [17:24:54]CAPDU: 80 11 00 00 [17:24:54]Write to MH i2c: E2 08 00 FA 00 80 11 00 00 00 00 00 00 74 [17:24:54]Write i2c OK [17:24:54]MH_I2C_Read... [17:24:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:54]Read from MH i2c: E2 [17:24:54]MH_I2C_Read... [17:24:54]Read from MH i2c: E2 17 00 [17:24:54]MH_I2C_Read... [17:24:54]Read from MH i2c: E2 17 00 FA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 D0 [17:24:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [17:24:54]wFMCommunicate OK [17:24:54]requested_item fd.num is exist - process it [17:24:54]SAM_PROTO_GetFieldsCounters [17:24:54]wFMCommunicate request_size=4 [17:24:54]MH_SAM_APDU [17:24:54]CAPDU: 80 13 00 00 [17:24:54]Write to MH i2c: E2 08 00 FB 00 80 13 00 00 00 00 00 00 77 [17:24:54]Write i2c OK [17:24:54]MH_I2C_Read... [17:24:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:24:54]Read from MH i2c: E2 [17:24:54]MH_I2C_Read... [17:24:54]Read from MH i2c: E2 62 00 [17:24:54]MH_I2C_Read... [17:24:54]Read from MH i2c: E2 62 00 FB 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 C6 A3 00 00 0E 04 04 00 AB 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 0F [17:24:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 C6 A3 00 00 0E 04 04 00 AB 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 [17:24:54]wFMCommunicate OK [17:24:54]SAM_PROTO_GetFieldsCounters done [17:24:54]requested_item shift.num is exist - process it [17:24:54]requested_item shift.opened is exist - process it [17:24:54]req_shift_opened [17:24:54]FM_GetShiftState [17:24:54]SAM_PROTO_GetShiftState [17:24:54]wFMCommunicate request_size=4 [17:24:54]MH_SAM_APDU [17:24:54]CAPDU: 80 13 01 00 [17:24:54]Write to MH i2c: E2 08 00 FC 00 80 13 01 00 00 00 00 00 79 [17:24:54]Write i2c OK [17:24:54]MH_I2C_Read... [17:24:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:54]Read from MH i2c: E2 [17:24:54]MH_I2C_Read... [17:24:54]Read from MH i2c: E2 0E 00 [17:24:54]MH_I2C_Read... [17:24:54]Read from MH i2c: E2 0E 00 FC 00 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 15 [17:24:54]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [17:24:54]wFMCommunicate OK [17:24:54]SAM_PROTO_GetShiftState done [17:24:54]FM_GetShiftState done [17:24:54]req_shift_opened done [17:24:54]requested_item shift.open_date is exist - process it [17:24:54]req_shift_open_date [17:24:54]req_shift_open_date done [17:24:54]produce_requested_data done [17:24:54]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41926,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [17:24:54]process_action_free close_receipt [17:24:54]json_value_free [17:24:54]json_value_free done [17:24:54]process_json_proto returns [17:24:54]Send response to host [17:24:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41926,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [17:24:54]free response buf [17:24:54]execute_script done [17:24:54]execute_script returns [17:24:54]free content buf [17:24:54]Sock 9.Close socket [17:24:54]Sock 9.Thread stoped [17:24:56]accept exits with 10 [17:24:56]New connection [17:24:56]New thread 3066940772 created [17:24:56]Thread 3067084132 joined [17:24:56]Waiting for new connection... [17:24:56] Sock 10.Parse request [17:24:56]Sock 10.Check first char [17:24:56]Sock 10.First char is OK [17:24:56]request: POST /json_proto HTTP/1.0 [17:24:56]Method: POST [17:24:56]URL: /json_proto [17:24:56]Method is POST - this is cgi request [17:24:56]url: /json_proto [17:24:56]query_string will be loaded in cgi processing [17:24:56]execute_cgi json_proto POST (null) [17:24:56]execute_cgi path=json_proto method=POST [17:24:56]POST find Content-Length [17:24:56]Host: 172.17.43.132:8080 [17:24:56]Content-Length: 1057 [17:24:56]Content-Type: application/json [17:24:56] [17:24:56]POST finish read [17:24:56]Found Content-Length = 1057 [17:24:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183955", "tax_sys" : 0, "items" : [ { "code": "4860019001339", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,33\u043B \u0441\u0442", "price" : 103.00, "quantity" : 1.000, "sum" : 103.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 153.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:56]execute_script... [17:24:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183955", "tax_sys" : 0, "items" : [ { "code": "4860019001339", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,33\u043B \u0441\u0442", "price" : 103.00, "quantity" : 1.000, "sum" : 103.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 153.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:56]POST & json_proto [17:24:56]process_json_proto [17:24:56]json parsed OK: [17:24:56]protocol is kg_v1.0 [17:24:56]action value=close_receipt [17:24:56]process_action close_receipt [17:24:56]cmd_close_receipt [17:24:56]MH_GetDate [17:24:56]Write to MH i2c: F0 00 00 FD 00 EC [17:24:56]Write i2c OK [17:24:56]MH_I2C_Read... [17:24:56]Read from MH i2c: F0 [17:24:56]MH_I2C_Read... [17:24:56]Read from MH i2c: F0 09 00 [17:24:56]MH_I2C_Read... [17:24:56]Read from MH i2c: F0 09 00 FD 00 00 69 D0 A7 66 64 A3 A7 66 4F [17:24:56]GetLastDocTimeStamp 1722273890 [17:24:56]current date 1722273897 [17:24:56]FM_GetShiftState [17:24:56]SAM_PROTO_GetShiftState [17:24:56]wFMCommunicate request_size=4 [17:24:56]MH_SAM_APDU [17:24:56]CAPDU: 80 13 01 00 [17:24:56]Write to MH i2c: E2 08 00 FE 00 80 13 01 00 00 00 00 00 7B [17:24:56]Write i2c OK [17:24:56]MH_I2C_Read... [17:24:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:56]Read from MH i2c: E2 [17:24:56]MH_I2C_Read... [17:24:56]Read from MH i2c: E2 0E 00 [17:24:56]MH_I2C_Read... [17:24:56]Read from MH i2c: E2 0E 00 FE 00 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 17 [17:24:56]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [17:24:56]wFMCommunicate OK [17:24:56]SAM_PROTO_GetShiftState done [17:24:56]FM_GetShiftState done [17:24:56]opened in 1722211496 [17:24:56]opened+sec_in_day 1722297896 [17:24:56]quantity*price = 10300 [17:24:56]sum+1 = 10301 [17:24:56]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 153.00 НСП 1% : 1.35 НДС 12% : 16.25 Наличными: 0.00 Безнал.: 153.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 116 29.07.2024 17:24 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874958 ФД: 41927 ФПД: 263057621795288 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T172457&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41927&fm=263057621795288&tin=02508201610067®Number=0000000000092626&sum=15300 0 [17:24:58]StoreToDocumentArchive [17:24:58]shift 427 fd 41927 [17:24:58]save to /storage/0427/doc_00041927 [17:24:58]save last doc name /storage/0427/doc_00041927 to /storage/kkm_last_doc_name [17:24:58]save OK [17:24:58]Clear old archive folders... [17:24:58]ProcessDocumentItem done err = 0, tmpTLVsize=376 [17:24:58]tlvbuf is 00DAA7E0 [17:24:58]SAM_PROTO_ClearQueue [17:24:58]wFMCommunicate request_size=4 [17:24:58]MH_SAM_APDU [17:24:58]CAPDU: 80 09 00 00 [17:24:58]Write to MH i2c: E2 08 00 0B 01 80 09 00 00 00 00 00 00 7E [17:24:58]Write i2c OK [17:24:58]MH_I2C_Read... [17:24:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:24:58]Read from MH i2c: E2 [17:24:58]MH_I2C_Read... [17:24:58]Read from MH i2c: E2 03 00 [17:24:58]MH_I2C_Read... [17:24:58]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [17:24:58]RAPDU: 90 00 [17:24:58]wFMCommunicate OK [17:24:58]SAM_PROTO_ClearQueue done [17:24:58]KKMCreateOFDPacket [17:24:58]OFDProtocolAddRootSTLVToBuf [17:24:58]FM_MakeSignedData [17:24:58]FM_MakeSignedData [17:24:58]SAM_PROTO_SignData [17:24:58]wFMCommunicate request_size=4 [17:24:58]MH_SAM_APDU [17:24:58]CAPDU: 80 0D 01 02 [17:24:58]Write to MH i2c: E2 08 00 0C 01 80 0D 01 02 00 00 00 00 86 [17:24:58]Write i2c OK [17:24:58]MH_I2C_Read... [17:24:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:24:58]Read from MH i2c: E2 [17:24:58]MH_I2C_Read... [17:24:58]Read from MH i2c: E2 03 00 [17:24:58]MH_I2C_Read... [17:24:58]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [17:24:58]RAPDU: 90 00 [17:24:58]wFMCommunicate OK [17:24:58]wFMCommunicate request_size=255 [17:24:58]MH_SAM_APDU [17:24:58]CAPDU: 80 0D 02 02 FA 03 00 78 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 33 39 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 33 33 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 3C 28 00 00 00 00 13 04 06 00 3C 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 3B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 87 00 00 00 00 00 EE 03 [17:24:58]Write to MH i2c: E2 02 01 0D 01 80 0D 02 02 FA 00 03 00 78 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 33 39 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 33 33 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 3C 28 00 00 00 00 13 04 06 00 3C 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 3B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 87 00 00 00 00 00 EE 03 00 00 AC [17:24:59]Write i2c OK [17:24:59]MH_I2C_Read... [17:24:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:59]Read from MH i2c: E2 [17:24:59]MH_I2C_Read... [17:24:59]Read from MH i2c: E2 03 00 [17:24:59]MH_I2C_Read... [17:24:59]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [17:24:59]RAPDU: 90 00 [17:24:59]wFMCommunicate OK [17:24:59]wFMCommunicate request_size=135 [17:24:59]MH_SAM_APDU [17:24:59]CAPDU: 80 0D 02 02 82 0F 00 F2 03 01 00 01 F3 03 06 00 59 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 3B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 69 D0 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 C7 A3 00 00 35 04 06 00 EF 3F E0 1A 41 D8 [17:24:59]Write to MH i2c: E2 8A 00 0E 01 80 0D 02 02 82 00 0F 00 F2 03 01 00 01 F3 03 06 00 59 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 3B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 69 D0 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 C7 A3 00 00 35 04 06 00 EF 3F E0 1A 41 D8 00 00 41 [17:24:59]Write i2c OK [17:24:59]MH_I2C_Read... [17:24:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:59]Read from MH i2c: E2 [17:24:59]MH_I2C_Read... [17:24:59]Read from MH i2c: E2 03 00 [17:24:59]MH_I2C_Read... [17:24:59]Read from MH i2c: E2 03 00 0E 01 00 90 00 83 [17:24:59]RAPDU: 90 00 [17:24:59]wFMCommunicate OK [17:24:59]wFMCommunicate request_size=4 [17:24:59]MH_SAM_APDU [17:24:59]CAPDU: 80 0D 03 02 [17:24:59]Write to MH i2c: E2 08 00 0F 01 80 0D 03 02 00 00 00 00 8B [17:24:59]Write i2c OK [17:24:59]MH_I2C_Read... [17:24:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:24:59]Read from MH i2c: E2 [17:24:59]MH_I2C_Read... [17:24:59]Read from MH i2c: E2 0B 00 [17:24:59]MH_I2C_Read... [17:24:59]Read from MH i2c: E2 0B 00 0F 01 00 19 16 EA BA 59 A5 2F 63 90 00 EF [17:24:59]RAPDU: 19 16 EA BA 59 A5 2F 63 90 00 [17:24:59]wFMCommunicate OK [17:24:59]SAM_PROTO_SignData done [17:24:59]FM_MakeSignedData done [17:24:59]CreateOFDProtocolMessage [17:24:59]wFMCommunicate request_size=4 [17:24:59]MH_SAM_APDU [17:24:59]CAPDU: 80 11 00 00 [17:24:59]Write to MH i2c: E2 08 00 10 01 80 11 00 00 00 00 00 00 8B [17:24:59]Write i2c OK [17:24:59]MH_I2C_Read... [17:24:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:59]Read from MH i2c: E2 [17:24:59]MH_I2C_Read... [17:24:59]Read from MH i2c: E2 17 00 [17:24:59]MH_I2C_Read... [17:24:59]Read from MH i2c: E2 17 00 10 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 E7 [17:24:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [17:24:59]wFMCommunicate OK [17:24:59]CreateOFDProtocolMessage done [17:24:59]OFDSenderStorePacket 41927 [17:24:59]StoreOFDPacket docnum=41927 [17:24:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 8C 01 00 00 28 D0 84 01 02 DD 5A 03 01 00 03 00 78 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 33 39 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 33 33 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 3C 28 00 00 00 00 13 04 06 00 3C 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 3B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 87 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 3B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 69 D0 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 C7 A3 00 00 35 04 06 00 EF 3F E0 1A 41 D8 19 16 EA BA 59 A5 2F 63 [17:24:59]CheckFolder [17:24:59]dirname=/storage/ofd_packets [17:24:59]CheckFolder done [17:24:59]ProducePacketName [17:24:59]name=ofd_packets/00041927 [17:24:59]NVStorageSaveData ofd_packets/00041927 [17:24:59]File name is /storage/ofd_packets/00041927 [17:24:59]Write 426 bytes [17:24:59]NVStorageSaveData done [17:24:59]OFDSenderStorePacket done [17:24:59]KKMCreateOFDPacket done [17:24:59]NVStorageSaveData kkm_last_timestamp [17:24:59]File name is /storage/kkm_last_timestamp [17:24:59]Write 4 bytes [17:24:59]NVStorageSaveData done [17:24:59]ExternCall_PrintAddStr [17:24:59]wPrintStart [17:24:59]Write to MH i2c: 01 00 00 11 01 12 [17:24:59]Write i2c OK [17:24:59]MH_I2C_Read... [17:24:59]Read from MH i2c: 01 [17:24:59]MH_I2C_Read... [17:24:59]Read from MH i2c: 01 07 00 [17:24:59]MH_I2C_Read... [17:24:59]Read from MH i2c: 01 07 00 11 01 00 00 00 00 00 FF 0F 27 [17:24:59]RasterBufferAndPrint [17:24:59]line Счет N : (3)183955 [17:24:59]line ИНН: 02508201610067 [17:24:59]line Контрольно-Кассовый Чек [17:24:59]line ПРОДАЖА [17:24:59]line Товар: 4860019001339 [17:24:59]line Вода Боржоми 0,33л ст [17:24:59]line 1.000 * 103.00 [17:24:59]line = 103.00 [17:24:59]line НДС 12% НСП 1% [17:24:59]line > о реализуемом товаре [17:24:59]line Товар: 4700000160358 [17:24:59]line Вода Легенда 1л [17:24:59]line 1.000 * 50.00 [17:24:59]line = 50.00 [17:24:59]line НДС 12% НСП 1% [17:24:59]line > о реализуемом товаре [17:24:59]line ИТОГО: 153.00 [17:24:59]line НСП 1% : 1.35 [17:24:59]line НДС 12% : 16.25 [17:24:59]line Наличными: 0.00 [17:24:59]line Безнал.: 153.00 [17:24:59]line Место: АЗС № 97 "Партнер Нефть" [17:24:59]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [17:24:59]line СНО: Общий режим [17:24:59]line Чек 116 29.07.2024 17:24 [17:24:59]line Смена: 427 ФФД: 1.0 [17:24:59]line ЗНМ: 0300000053 [17:24:59]line РНМ: 0000000000092626 [17:24:59]line Версия ККМ: 001 [17:24:59]line Платежная система: O! деньги [17:24:59]line ФМ: 0000000000874958 [17:24:59]line ФД: 41927 [17:24:59]line ФПД: 263057621795288 [17:24:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T172457&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41927&fm=263057621795288&tin=02508201610067®Number=0000000000092626&sum=15300 [17:24:59]line 0 [17:24:59]OFD Sender: Processing packet 41924 [packets to send 60, broken 56] [17:24:59]ProducePacketName [17:24:59]name=ofd_packets/00041924 [17:24:59]OFD Sender: To server: pG, [17:24:59]CommunicateWithHost lk.salyk.kg:30040 [17:24:59]ConnectInit lk.salyk.kg [17:24:59]written 0, free lines is 4095 [17:25:00]Write to MH i2c: 01 00 00 41 01 42 [17:25:00]Write i2c OK [17:25:00]MH_I2C_Read... [17:25:00]Read from MH i2c: 01 [17:25:00]MH_I2C_Read... [17:25:00]Read from MH i2c: 01 07 00 [17:25:00]MH_I2C_Read... [17:25:00]Read from MH i2c: 01 07 00 41 01 00 00 00 00 00 B6 0C 0B [17:25:00]RasterBufferAndPrint [17:25:00]line [17:25:00]line [17:25:00]line [17:25:00]line [17:25:00]line [17:25:00]written 0, free lines is 3297 [17:25:00]MH_Cut [17:25:00]Write to MH i2c: D1 01 00 48 01 01 1B [17:25:00]Write i2c OK [17:25:00]MH_I2C_Read... [17:25:00]Read from MH i2c: D1 [17:25:00]MH_I2C_Read... [17:25:00]Read from MH i2c: D1 01 00 [17:25:00]MH_I2C_Read... [17:25:00]Read from MH i2c: D1 01 00 48 01 00 1A [17:25:00]Write to MH i2c: 01 00 00 49 01 4A [17:25:00]Write i2c OK [17:25:00]MH_I2C_Read... [17:25:01]*** Cut start [17:25:01]*** Partial cut [17:25:01]*** CUTSNS_PIN = 1 [17:25:01]*** CUTSNS_PIN = 0 [17:25:01]*** Brake cut motor [17:25:01]Read from MH i2c: 01 [17:25:01]MH_I2C_Read... [17:25:01]*** Stop cut motor [17:25:01]*** Cut end [17:25:01]Read from MH i2c: 01 07 00 [17:25:01]MH_I2C_Read... [17:25:01]Read from MH i2c: 01 07 00 49 01 00 00 00 00 00 FF 0F 5F [17:25:01]process_action close_receipt done [17:25:01]requested_data is exist [17:25:01]produce_requested_data [17:25:01]requested_item fm.sn is exist - process it [17:25:01]wFMCommunicate request_size=4 [17:25:01]MH_SAM_APDU [17:25:01]CAPDU: 80 11 00 00 [17:25:01]Write to MH i2c: E2 08 00 4A 01 80 11 00 00 00 00 00 00 C5 [17:25:01]Write i2c OK [17:25:01]MH_I2C_Read... [17:25:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:25:02]Read from MH i2c: E2 [17:25:02]MH_I2C_Read... [17:25:02]Read from MH i2c: E2 17 00 [17:25:02]MH_I2C_Read... [17:25:02]Read from MH i2c: E2 17 00 4A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 21 [17:25:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [17:25:02]wFMCommunicate OK [17:25:02]requested_item fd.num is exist - process it [17:25:02]SAM_PROTO_GetFieldsCounters [17:25:02]wFMCommunicate request_size=4 [17:25:02]MH_SAM_APDU [17:25:02]CAPDU: 80 13 00 00 [17:25:02]Write to MH i2c: E2 08 00 4B 01 80 13 00 00 00 00 00 00 C8 [17:25:02]Write i2c OK [17:25:02]MH_I2C_Read... [17:25:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:25:02]Read from MH i2c: E2 [17:25:02]MH_I2C_Read... [17:25:02]Read from MH i2c: E2 62 00 [17:25:02]MH_I2C_Read... [17:25:02]Read from MH i2c: E2 62 00 4B 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 C7 A3 00 00 0E 04 04 00 AB 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 64 [17: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 C7 A3 00 00 0E 04 04 00 AB 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 [17:25:02]wFMCommunicate OK [17:25:02]SAM_PROTO_GetFieldsCounters done [17:25:02]requested_item shift.num is exist - process it [17:25:02]requested_item shift.opened is exist - process it [17:25:02]req_shift_opened [17:25:02]FM_GetShiftState [17:25:02]SAM_PROTO_GetShiftState [17:25:02]wFMCommunicate request_size=4 [17:25:02]MH_SAM_APDU [17:25:02]CAPDU: 80 13 01 00 [17:25:02]Write to MH i2c: E2 08 00 4C 01 80 13 01 00 00 00 00 00 CA [17:25:02]Write i2c OK [17:25:02]MH_I2C_Read... [17:25:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:25:02]Read from MH i2c: E2 [17:25:02]MH_I2C_Read... [17:25:02]Read from MH i2c: E2 0E 00 [17:25:02]MH_I2C_Read... [17:25:02]Read from MH i2c: E2 0E 00 4C 01 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 66 [17:25:02]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [17:25:02]wFMCommunicate OK [17:25:02]SAM_PROTO_GetShiftState done [17:25:02]FM_GetShiftState done [17:25:02]req_shift_opened done [17:25:02]requested_item shift.open_date is exist - process it [17:25:02]req_shift_open_date [17:25:02]req_shift_open_date done [17:25:02]produce_requested_data done [17:25:02]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41927,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [17:25:02]process_action_free close_receipt [17:25:02]json_value_free [17:25:02]json_value_free done [17:25:02]process_json_proto returns [17:25:02]Send response to host [17:25:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41927,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [17:25:02]free response buf [17:25:02]execute_script done [17:25:02]execute_script returns [17:25:02]free content buf [17:25:02]Sock 10.Close socket [17:25:02]Sock 10.Thread stoped [17:25:03]accept exits with 9 [17:25:03]New connection [17:25:03]New thread 3067084132 created [17:25:03]Thread 3066940772 joined [17:25:03]Waiting for new connection... [17:25:03] Sock 9.Parse request [17:25:03]Sock 9.Check first char [17:25:03]Sock 9.First char is OK [17:25:03]request: POST /json_proto HTTP/1.0 [17:25:03]Method: POST [17:25:03]URL: /json_proto [17:25:03]Method is POST - this is cgi request [17:25:03]url: /json_proto [17:25:03]query_string will be loaded in cgi processing [17:25:03]execute_cgi json_proto POST (null) [17:25:03]execute_cgi path=json_proto method=POST [17:25:03]POST find Content-Length [17:25:03]Host: 172.17.43.132:8080 [17:25:03]Content-Length: 621 [17:25:03]Content-Type: application/json [17:25:03] [17:25:03]POST finish read [17:25:03]Found Content-Length = 621 [17:25:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183956", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:25:03]execute_script... [17:25: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 : (3)183956", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:25:03]POST & json_proto [17:25:03]process_json_proto [17:25:03]json parsed OK: [17:25:03]protocol is kg_v1.0 [17:25:03]action value=close_receipt [17:25:03]process_action close_receipt [17:25:03]cmd_close_receipt [17:25:03]MH_GetDate [17:25:03]Write to MH i2c: F0 00 00 4D 01 3D [17:25:04]Write i2c OK [17:25:04]MH_I2C_Read... [17:25:04]Read from MH i2c: F0 [17:25:04]MH_I2C_Read... [17:25:04]Read from MH i2c: F0 09 00 [17:25:04]MH_I2C_Read... [17:25:04]Read from MH i2c: F0 09 00 4D 01 00 70 D0 A7 66 64 A3 A7 66 A7 [17:25:04]GetLastDocTimeStamp 1722273897 [17:25:04]current date 1722273904 [17:25:04]FM_GetShiftState [17:25:04]SAM_PROTO_GetShiftState [17:25:04]wFMCommunicate request_size=4 [17:25:04]MH_SAM_APDU [17:25:04]CAPDU: 80 13 01 00 [17:25:04]Write to MH i2c: E2 08 00 4E 01 80 13 01 00 00 00 00 00 CC [17:25:04]Write i2c OK [17:25:04]MH_I2C_Read... [17:25:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:25:04]Read from MH i2c: E2 [17:25:04]MH_I2C_Read... [17:25:04]Read from MH i2c: E2 0E 00 [17:25:04]MH_I2C_Read... [17:25:04]Read from MH i2c: E2 0E 00 4E 01 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 68 [17:25:04]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [17:25:04]wFMCommunicate OK [17:25:04]SAM_PROTO_GetShiftState done [17:25:04]FM_GetShiftState done [17:25:04]opened in 1722211496 [17:25:04]opened+sec_in_day 1722297896 [17:25:04]quantity*price = 14000 [17:25:04]sum+1 = 14001 [17:25:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 117 29.07.2024 17:25 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41928 ФПД: 245074449969539 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T172505&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41928&fm=245074449969539&tin=02508201610067®Number=0000000000092626&sum=14000 0 [17:25:06]StoreToDocumentArchive [17:25:06]shift 427 fd 41928 [17:25:06]save to /storage/0427/doc_00041928 [17:25:06]save last doc name /storage/0427/doc_00041928 to /storage/kkm_last_doc_name [17:25:06]save OK [17:25:06]Clear old archive folders... [17:25:06]ProcessDocumentItem done err = 0, tmpTLVsize=273 [17:25:06]tlvbuf is 00DE4430 [17:25:06]SAM_PROTO_ClearQueue [17:25:06]wFMCommunicate request_size=4 [17:25:06]MH_SAM_APDU [17:25:06]CAPDU: 80 09 00 00 [17:25:06]Write to MH i2c: E2 08 00 5B 01 80 09 00 00 00 00 00 00 CE [17:25:06]Write i2c OK [17:25:06]MH_I2C_Read... [17:25:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:25:06]Read from MH i2c: E2 [17:25:06]MH_I2C_Read... [17:25:06]Read from MH i2c: E2 03 00 [17:25:06]MH_I2C_Read... [17:25:06]Read from MH i2c: E2 03 00 5B 01 00 90 00 D0 [17:25:06]RAPDU: 90 00 [17:25:06]wFMCommunicate OK [17:25:06]SAM_PROTO_ClearQueue done [17:25:06]KKMCreateOFDPacket [17:25:06]OFDProtocolAddRootSTLVToBuf [17:25:06]FM_MakeSignedData [17:25:06]FM_MakeSignedData [17:25:06]SAM_PROTO_SignData [17:25:06]wFMCommunicate request_size=4 [17:25:06]MH_SAM_APDU [17:25:06]CAPDU: 80 0D 01 02 [17:25:06]Write to MH i2c: E2 08 00 5C 01 80 0D 01 02 00 00 00 00 D6 [17:25:06]Write i2c OK [17:25:06]MH_I2C_Read... [17:25:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:25:06]Read from MH i2c: E2 [17:25:06]MH_I2C_Read... [17:25:06]Read from MH i2c: E2 03 00 [17:25:06]MH_I2C_Read... [17:25:06]Read from MH i2c: E2 03 00 5C 01 00 90 00 D1 [17:25:06]RAPDU: 90 00 [17:25:06]wFMCommunicate OK [17:25:06]wFMCommunicate request_size=255 [17:25:06]MH_SAM_APDU [17:25:06]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 71 D0 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 [17:25:06]Write to MH i2c: E2 02 01 5D 01 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 71 D0 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 00 00 3A [17:25:06]Write i2c OK [17:25:06]MH_I2C_Read... [17:25:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:25:06]Read from MH i2c: E2 [17:25:06]MH_I2C_Read... [17:25:06]Read from MH i2c: E2 03 00 [17:25:06]MH_I2C_Read... [17:25:06]Read from MH i2c: E2 03 00 5D 01 00 90 00 D2 [17:25:06]RAPDU: 90 00 [17:25:06]wFMCommunicate OK [17:25:06]wFMCommunicate request_size=32 [17:25:06]MH_SAM_APDU [17:25:06]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 39 35 38 10 04 04 00 C8 A3 00 00 35 04 06 00 DE E4 D7 88 B1 83 [17:25:06]Write to MH i2c: E2 23 00 5E 01 80 0D 02 02 1B 00 30 30 30 38 37 34 39 35 38 10 04 04 00 C8 A3 00 00 35 04 06 00 DE E4 D7 88 B1 83 00 00 FF [17:25:07]Write i2c OK [17:25:07]MH_I2C_Read... [17:25:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:25:07]Read from MH i2c: E2 [17:25:07]MH_I2C_Read... [17:25:07]Read from MH i2c: E2 03 00 [17:25:07]MH_I2C_Read... [17:25:07]Read from MH i2c: E2 03 00 5E 01 00 90 00 D3 [17:25:07]RAPDU: 90 00 [17:25:07]wFMCommunicate OK [17:25:07]wFMCommunicate request_size=4 [17:25:07]MH_SAM_APDU [17:25:07]CAPDU: 80 0D 03 02 [17:25:07]Write to MH i2c: E2 08 00 5F 01 80 0D 03 02 00 00 00 00 DB [17:25:07]Write i2c OK [17:25:07]MH_I2C_Read... [17:25:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:25:07]Read from MH i2c: E2 [17:25:07]MH_I2C_Read... [17:25:07]Read from MH i2c: E2 0B 00 [17:25:07]MH_I2C_Read... [17:25:07]Read from MH i2c: E2 0B 00 5F 01 00 1A 7C 29 40 DF FE EF 35 90 00 DC [17:25:07]RAPDU: 1A 7C 29 40 DF FE EF 35 90 00 [17:25:07]wFMCommunicate OK [17:25:07]SAM_PROTO_SignData done [17:25:07]FM_MakeSignedData done [17:25:07]CreateOFDProtocolMessage [17:25:07]wFMCommunicate request_size=4 [17:25:07]MH_SAM_APDU [17:25:07]CAPDU: 80 11 00 00 [17:25:07]Write to MH i2c: E2 08 00 60 01 80 11 00 00 00 00 00 00 DB [17:25:07]Write i2c OK [17:25:07]MH_I2C_Read... [17:25:07]Read from MH i2c: E2 [17:25:07]MH_I2C_Read... [17:25:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:25:07]Read from MH i2c: E2 17 00 [17:25:07]MH_I2C_Read... [17:25:07]Read from MH i2c: E2 17 00 60 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 37 [17:25:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [17:25:07]wFMCommunicate OK [17:25:07]CreateOFDProtocolMessage done [17:25:07]OFDSenderStorePacket 41928 [17:25:07]StoreOFDPacket docnum=41928 [17:25:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 25 01 00 00 DF 12 1D 01 87 26 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 71 D0 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 C8 A3 00 00 35 04 06 00 DE E4 D7 88 B1 83 1A 7C 29 40 DF FE EF 35 [17:25:07]CheckFolder [17:25:07]dirname=/storage/ofd_packets [17:25:07]CheckFolder done [17:25:07]ProducePacketName [17:25:07]name=ofd_packets/00041928 [17:25:07]NVStorageSaveData ofd_packets/00041928 [17:25:07]File name is /storage/ofd_packets/00041928 [17:25:07]Write 323 bytes [17:25:07]NVStorageSaveData done [17:25:07]OFDSenderStorePacket done [17:25:07]KKMCreateOFDPacket done [17:25:07]NVStorageSaveData kkm_last_timestamp [17:25:07]File name is /storage/kkm_last_timestamp [17:25:07]Write 4 bytes [17:25:07]NVStorageSaveData done [17:25:07]ExternCall_PrintAddStr [17:25:07]wPrintStart [17:25:07]Write to MH i2c: 01 00 00 61 01 62 [17:25:07]Write i2c OK [17:25:07]MH_I2C_Read... [17:25:07]Read from MH i2c: 01 [17:25:07]MH_I2C_Read... [17:25:07]Read from MH i2c: 01 07 00 [17:25:07]MH_I2C_Read... [17:25:07]Read from MH i2c: 01 07 00 61 01 00 00 00 00 00 FF 0F 77 [17:25:07]RasterBufferAndPrint [17:25:07]line Счет N : (3)183956 [17:25:07]line ИНН: 02508201610067 [17:25:07]line Контрольно-Кассовый Чек [17:25:07]line ПРОДАЖА [17:25:07]line Товар: 48743570 [17:25:07]line Сигареты Winston XStyle Blue [17:25:07]line 1.000 * 140.00 [17:25:07]line = 140.00 [17:25:07]line НДС 12% НСП 1% [17:25:07]line > о реализуемом товаре [17:25:07]line ИТОГО: 140.00 [17:25:07]line НСП 1% : 1.24 [17:25:07]line НДС 12% : 14.87 [17:25:07]line Наличными: 140.00 [17:25:07]line Безнал.: 0.00 [17:25:07]line Место: АЗС № 97 "Партнер Нефть" [17:25:07]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [17:25:07]line СНО: Общий режим [17:25:07]line Чек 117 29.07.2024 17:25 [17:25:07]line Смена: 427 ФФД: 1.0 [17:25:07]line ЗНМ: 0300000053 [17:25:07]line РНМ: 0000000000092626 [17:25:07]line Версия ККМ: 001 [17:25:07]line ФМ: 0000000000874958 [17:25:07]line ФД: 41928 [17:25:07]line ФПД: 245074449969539 [17:25:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T172505&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41928&fm=245074449969539&tin=02508201610067®Number=0000000000092626&sum=14000 [17:25:07]line 0 [17:25:07]written 0, free lines is 4095 [17:25:07]OFD Sender: Processing packet 41924 [packets to send 61, broken 56] [17:25:07]ProducePacketName [17:25:07]name=ofd_packets/00041924 [17:25:07]OFD Sender: To server: pG, [17:25:07]CommunicateWithHost lk.salyk.kg:30040 [17:25:07]ConnectInit lk.salyk.kg [17:25:07]Write to MH i2c: 01 00 00 89 01 8A [17:25:07]Write i2c OK [17:25:07]MH_I2C_Read... [17:25:07]Read from MH i2c: 01 [17:25:07]MH_I2C_Read... [17:25:07]Read from MH i2c: 01 07 00 [17:25:07]MH_I2C_Read... [17:25:07]Read from MH i2c: 01 07 00 89 01 00 00 00 00 00 19 0D B7 [17:25:07]RasterBufferAndPrint [17:25:07]line [17:25:07]line [17:25:07]line [17:25:07]line [17:25:07]line [17:25:07]written 0, free lines is 3405 [17:25:07]MH_Cut [17:25:07]Write to MH i2c: D1 01 00 90 01 01 63 [17:25:07]Write i2c OK [17:25:07]MH_I2C_Read... [17:25:07]Read from MH i2c: D1 [17:25:07]MH_I2C_Read... [17:25:07]Read from MH i2c: D1 01 00 [17:25:07]MH_I2C_Read... [17:25:07]Read from MH i2c: D1 01 00 90 01 00 62 [17:25:07]Write to MH i2c: 01 00 00 91 01 92 [17:25:07]Write i2c OK [17:25:07]MH_I2C_Read... [17:25:08]*** Cut start [17:25:08]*** Partial cut [17:25:08]*** CUTSNS_PIN = 1 [17:25:08]*** CUTSNS_PIN = 0 [17:25:08]*** Brake cut motor [17:25:09]Read from MH i2c: 01 [17:25:09]MH_I2C_Read... [17:25:09]*** Stop cut motor [17:25:09]*** Cut end [17:25:09]Read from MH i2c: 01 07 00 [17:25:09]MH_I2C_Read... [17:25:09]Read from MH i2c: 01 07 00 91 01 00 00 00 00 00 FF 0F A7 [17:25:09]process_action close_receipt done [17:25:09]requested_data is exist [17:25:09]produce_requested_data [17:25:09]requested_item fm.sn is exist - process it [17:25:09]wFMCommunicate request_size=4 [17:25:09]MH_SAM_APDU [17:25:09]CAPDU: 80 11 00 00 [17:25:09]Write to MH i2c: E2 08 00 92 01 80 11 00 00 00 00 00 00 0D [17:25:09]Write i2c OK [17:25:09]MH_I2C_Read... [17:25:09]Read from MH i2c: E2 [17:25:09]MH_I2C_Read... [17:25:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:25:09]Read from MH i2c: E2 17 00 [17:25:09]MH_I2C_Read... [17:25:09]Read from MH i2c: E2 17 00 92 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 69 [17:25:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [17:25:09]wFMCommunicate OK [17:25:09]requested_item fd.num is exist - process it [17:25:09]SAM_PROTO_GetFieldsCounters [17:25:09]wFMCommunicate request_size=4 [17:25:09]MH_SAM_APDU [17:25:09]CAPDU: 80 13 00 00 [17:25:09]Write to MH i2c: E2 08 00 93 01 80 13 00 00 00 00 00 00 10 [17:25:09]Write i2c OK [17:25:09]MH_I2C_Read... [17:25:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:25:09]Read from MH i2c: E2 [17:25:09]MH_I2C_Read... [17:25:09]Read from MH i2c: E2 62 00 [17:25:09]MH_I2C_Read... [17:25:09]Read from MH i2c: E2 62 00 93 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 C8 A3 00 00 0E 04 04 00 AB 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 B0 [17:25: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 C8 A3 00 00 0E 04 04 00 AB 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 [17:25:09]wFMCommunicate OK [17:25:09]SAM_PROTO_GetFieldsCounters done [17:25:09]requested_item shift.num is exist - process it [17:25:09]requested_item shift.opened is exist - process it [17:25:09]req_shift_opened [17:25:09]FM_GetShiftState [17:25:09]SAM_PROTO_GetShiftState [17:25:09]wFMCommunicate request_size=4 [17:25:09]MH_SAM_APDU [17:25:09]CAPDU: 80 13 01 00 [17:25:09]Write to MH i2c: E2 08 00 94 01 80 13 01 00 00 00 00 00 12 [17:25:09]Write i2c OK [17:25:09]MH_I2C_Read... [17:25:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:25:09]Read from MH i2c: E2 [17:25:09]MH_I2C_Read... [17:25:09]Read from MH i2c: E2 0E 00 [17:25:09]MH_I2C_Read... [17:25:09]Read from MH i2c: E2 0E 00 94 01 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 AE [17:25:09]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [17:25:09]wFMCommunicate OK [17:25:09]SAM_PROTO_GetShiftState done [17:25:09]FM_GetShiftState done [17:25:09]req_shift_opened done [17:25:09]requested_item shift.open_date is exist - process it [17:25:09]req_shift_open_date [17:25:09]req_shift_open_date done [17:25:09]produce_requested_data done [17:25:09]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41928,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [17:25:09]process_action_free close_receipt [17:25:09]json_value_free [17:25:09]json_value_free done [17:25:09]process_json_proto returns [17:25:09]Send response to host [17:25:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41928,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [17:25:09]free response buf [17:25:09]execute_script done [17:25:09]execute_script returns [17:25:09]free content buf [17:25:09]Sock 9.Close socket [17:25:09]Sock 9.Thread stoped [17:25:12]ConnectInit Can't take IP for lk.salyk.kg [17:25:12]CommunicateWithHost connect error [17:25:12]CommunicateWithHost err = -1 [17:25:12]OFD Sender: Server communicate error [17:25:17]OFD Sender: Processing packet 41924 [packets to send 61, broken 56] [17:25:17]ProducePacketName [17:25:17]name=ofd_packets/00041924 [17:25:17]OFD Sender: To server: pG, [17:25:17]CommunicateWithHost lk.salyk.kg:30040 [17:25:17]ConnectInit lk.salyk.kg [17:25:22]ConnectInit Can't take IP for lk.salyk.kg [17:25:22]CommunicateWithHost connect error [17:25:22]CommunicateWithHost err = -1 [17:25:22]OFD Sender: Server communicate error [17:25:23]ConnectInit Can't connect to host [17:25:27]OFD Sender: Processing packet 41924 [packets to send 61, broken 56] [17:25:27]ProducePacketName [17:25:27]name=ofd_packets/00041924 [17:25:27]OFD Sender: To server: pG, [17:25:27]CommunicateWithHost lk.salyk.kg:30040 [17:25:27]ConnectInit lk.salyk.kg [17:25:28]ConnectInit Can't connect to host [17:25:32]ConnectInit Can't take IP for lk.salyk.kg [17:25:32]CommunicateWithHost connect error [17:25:32]CommunicateWithHost err = -1 [17:25:32]OFD Sender: Server communicate error [17:25:33]ConnectInit Can't connect to host [17:25:37]OFD Sender: Processing packet 41924 [packets to send 61, broken 56] [17:25:37]ProducePacketName [17:25:37]name=ofd_packets/00041924 [17:25:37]OFD Sender: To server: pG, [17:25:37]CommunicateWithHost lk.salyk.kg:30040 [17:25:37]ConnectInit lk.salyk.kg [17:25:42]ConnectInit Can't take IP for lk.salyk.kg [17:25:42]CommunicateWithHost connect error [17:25:42]CommunicateWithHost err = -1 [17:25:42]OFD Sender: Server communicate error [17:25:47]OFD Sender: Processing packet 41924 [packets to send 61, broken 56] [17:25:47]ProducePacketName [17:25:47]name=ofd_packets/00041924 [17:25:47]OFD Sender: To server: pG, [17:25:47]CommunicateWithHost lk.salyk.kg:30040 [17:25:47]ConnectInit lk.salyk.kg [17:25:50]recv_with_timeout no data received [17:25:52]ConnectInit Can't take IP for lk.salyk.kg [17:25:52]CommunicateWithHost connect error [17:25:52]CommunicateWithHost err = -1 [17:25:52]OFD Sender: Server communicate error [17:25:57]OFD Sender: Processing packet 41924 [packets to send 61, broken 56] [17:25:57]ProducePacketName [17:25:57]name=ofd_packets/00041924 [17:25:57]OFD Sender: To server: pG, [17:25:57]CommunicateWithHost lk.salyk.kg:30040 [17:25:57]ConnectInit lk.salyk.kg [17:26:02]recv_with_timeout no data received [17:26:02]ConnectInit Can't take IP for lk.salyk.kg [17:26:02]CommunicateWithHost connect error [17:26:02]CommunicateWithHost err = -1 [17:26:02]OFD Sender: Server communicate error [17:26:07]OFD Sender: Processing packet 41924 [packets to send 61, broken 56] [17:26:07]ProducePacketName [17:26:07]name=ofd_packets/00041924 [17:26:07]OFD Sender: To server: pG, [17:26:07]CommunicateWithHost lk.salyk.kg:30040 [17:26:07]ConnectInit lk.salyk.kg [17:26:15]recv_with_timeout no data received [17:26:24]Connected sock=9 [17:26: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 35 38 28 01 00 00 59 95 20 01 11 B5 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 35 34 34 39 32 35 30 39 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 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 55 D0 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 C4 A3 00 00 35 04 06 00 AE 51 FF 2D B6 28 C0 CE 69 5B AE E3 26 81 [17:26: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 35 38 4F 00 00 00 50 03 47 00 04 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 35 38 10 04 04 00 C4 A3 00 00 F4 03 04 00 D7 7C A7 66 B6 04 01 00 00 79 F9 B7 71 41 C5 EB 04 [17:26:28]CommunicateWithHost err = 0 [17:26:28]CheckOFDResponse [17:26:28]1017 (14) - 77093643461234 [17:26:28]1041 (16) - 0000000000874958 [17:26:28]1040 (4) - 41924 [17:26:28]1012 (4) - 29.07.2024 11:28 [17:26:28]1206 (1) - 0 [17:26:28]OFD Sender: Remove packet 41924 [17:26:28]ProducePacketName [17:26:28]name=ofd_packets/00041924 [17:26:28]NVStorageDeleteData [17:26:28]OFD Sender: Processing packet 41925 [packets to send 60, broken 56] [17:26:28]ProducePacketName [17:26:28]name=ofd_packets/00041925 [17:26:28]OFD Sender: To server: pG, [17:26:28]CommunicateWithHost lk.salyk.kg:30040 [17:26:28]ConnectInit lk.salyk.kg [17:26:31]recv_with_timeout no data received [17:26:33]ConnectInit Can't take IP for lk.salyk.kg [17:26:33]CommunicateWithHost connect error [17:26:33]CommunicateWithHost err = -1 [17:26:33]OFD Sender: Server communicate error [17:26:38]OFD Sender: Processing packet 41925 [packets to send 60, broken 56] [17:26:38]ProducePacketName [17:26:38]name=ofd_packets/00041925 [17:26:38]OFD Sender: To server: pG, [17:26:39]CommunicateWithHost lk.salyk.kg:30040 [17:26:39]ConnectInit lk.salyk.kg [17:26:44]ConnectInit Can't take IP for lk.salyk.kg [17:26:44]CommunicateWithHost connect error [17:26:44]CommunicateWithHost err = -1 [17:26:44]OFD Sender: Server communicate error [17:26:47]recv_with_timeout no data received [17:26:49]OFD Sender: Processing packet 41925 [packets to send 60, broken 56] [17:26:49]ProducePacketName [17:26:49]name=ofd_packets/00041925 [17:26:49]OFD Sender: To server: pG, [17:26:49]CommunicateWithHost lk.salyk.kg:30040 [17:26:49]ConnectInit lk.salyk.kg [17:26:54]ConnectInit Can't take IP for lk.salyk.kg [17:26:54]CommunicateWithHost connect error [17:26:54]CommunicateWithHost err = -1 [17:26:54]OFD Sender: Server communicate error [17:26:59]OFD Sender: Processing packet 41925 [packets to send 60, broken 56] [17:26:59]ProducePacketName [17:26:59]name=ofd_packets/00041925 [17:26:59]OFD Sender: To server: pG, [17:26:59]CommunicateWithHost lk.salyk.kg:30040 [17:26:59]ConnectInit lk.salyk.kg [17:27:04]ConnectInit Can't take IP for lk.salyk.kg [17:27:04]CommunicateWithHost connect error [17:27:04]CommunicateWithHost err = -1 [17:27:04]OFD Sender: Server communicate error [17:27:09]OFD Sender: Processing packet 41925 [packets to send 60, broken 56] [17:27:09]ProducePacketName [17:27:09]name=ofd_packets/00041925 [17:27:09]OFD Sender: To server: pG, [17:27:09]CommunicateWithHost lk.salyk.kg:30040 [17:27:09]ConnectInit lk.salyk.kg [17:27:09]recv_with_timeout no data received [17:27:13]Connected sock=7 [17:27: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 35 38 8D 01 00 00 D5 83 85 01 94 C3 5A 03 01 00 03 00 79 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0B 00 00 00 00 07 04 06 00 D0 6B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 5C D0 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 C5 A3 00 00 35 04 06 00 0A 32 3C 9B 36 F2 A4 A6 43 93 FC F9 69 67 [17:27: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 35 38 4F 00 00 00 FE 6E 47 00 61 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 35 38 10 04 04 00 C5 A3 00 00 F4 03 04 00 07 7D A7 66 B6 04 01 00 00 06 53 03 A9 7D 06 F4 00 [17:27:14]CommunicateWithHost err = 0 [17:27:14]CheckOFDResponse [17:27:14]1017 (14) - 77093643461234 [17:27:14]1041 (16) - 0000000000874958 [17:27:14]1040 (4) - 41925 [17:27:14]1012 (4) - 29.07.2024 11:29 [17:27:14]1206 (1) - 0 [17:27:14]OFD Sender: Remove packet 41925 [17:27:14]ProducePacketName [17:27:14]name=ofd_packets/00041925 [17:27:14]NVStorageDeleteData [17:27:15]OFD Sender: Processing packet 41926 [packets to send 59, broken 56] [17:27:15]ProducePacketName [17:27:15]name=ofd_packets/00041926 [17:27:15]OFD Sender: To server: pG, [17:27:15]CommunicateWithHost lk.salyk.kg:30040 [17:27:15]ConnectInit lk.salyk.kg [17:27:18]Connected sock=7 [17:27: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 35 38 3E 01 00 00 D3 B8 36 01 29 59 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 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 73 00 00 00 F4 03 04 00 62 D0 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 C6 A3 00 00 35 04 06 00 CB 86 64 C6 A0 A0 47 BF 41 92 F5 4A EB 6A [17:27: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 35 38 4F 00 00 00 F1 7C 47 00 B2 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 35 38 10 04 04 00 C6 A3 00 00 F4 03 04 00 0B 7D A7 66 B6 04 01 00 00 64 E8 38 39 D3 1A FE FC [17:27:19]CommunicateWithHost err = 0 [17:27:19]CheckOFDResponse [17:27:19]1017 (14) - 77093643461234 [17:27:19]1041 (16) - 0000000000874958 [17:27:19]1040 (4) - 41926 [17:27:19]1012 (4) - 29.07.2024 11:29 [17:27:19]1206 (1) - 0 [17:27:19]OFD Sender: Remove packet 41926 [17:27:19]ProducePacketName [17:27:19]name=ofd_packets/00041926 [17:27:19]NVStorageDeleteData [17:27:19]OFD Sender: Processing packet 41927 [packets to send 58, broken 56] [17:27:19]ProducePacketName [17:27:19]name=ofd_packets/00041927 [17:27:19]OFD Sender: To server: pG, [17:27:19]CommunicateWithHost lk.salyk.kg:30040 [17:27:19]ConnectInit lk.salyk.kg [17:27:20]Connected sock=7 [17:27: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 35 38 8C 01 00 00 28 D0 84 01 02 DD 5A 03 01 00 03 00 78 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 33 39 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 33 33 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 3C 28 00 00 00 00 13 04 06 00 3C 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 3B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 87 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 3B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 69 D0 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 C7 A3 00 00 35 04 06 00 EF 3F E0 1A 41 D8 19 16 EA BA 59 A5 2F 63 [17:27: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 35 38 4F 00 00 00 01 E0 47 00 88 6D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 C7 A3 00 00 F4 03 04 00 0D 7D A7 66 B6 04 01 00 00 E5 17 C3 82 63 49 E5 0B [17:27:20]CommunicateWithHost err = 0 [17:27:20]CheckOFDResponse [17:27:20]1017 (14) - 77093643461234 [17:27:20]1041 (16) - 0000000000874958 [17:27:20]1040 (4) - 41927 [17:27:20]1012 (4) - 29.07.2024 11:29 [17:27:20]1206 (1) - 0 [17:27:20]OFD Sender: Remove packet 41927 [17:27:20]ProducePacketName [17:27:20]name=ofd_packets/00041927 [17:27:20]NVStorageDeleteData [17:27:21]OFD Sender: Processing packet 41928 [packets to send 57, broken 56] [17:27:21]ProducePacketName [17:27:21]name=ofd_packets/00041928 [17:27:21]OFD Sender: To server: pG, [17:27:21]CommunicateWithHost lk.salyk.kg:30040 [17:27:21]ConnectInit lk.salyk.kg [17:27:21]Connected sock=7 [17:27: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 35 38 25 01 00 00 DF 12 1D 01 87 26 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 71 D0 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 C8 A3 00 00 35 04 06 00 DE E4 D7 88 B1 83 1A 7C 29 40 DF FE EF 35 [17:27: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 35 38 4F 00 00 00 07 CE 47 00 34 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 35 38 10 04 04 00 C8 A3 00 00 F4 03 04 00 0E 7D A7 66 B6 04 01 00 00 F8 A9 C2 35 AE 95 EC F8 [17:27:22]CommunicateWithHost err = 0 [17:27:22]CheckOFDResponse [17:27:22]1017 (14) - 77093643461234 [17:27:22]1041 (16) - 0000000000874958 [17:27:22]1040 (4) - 41928 [17:27:22]1012 (4) - 29.07.2024 11:29 [17:27:22]1206 (1) - 0 [17:27:22]OFD Sender: Remove packet 41928 [17:27:22]ProducePacketName [17:27:22]name=ofd_packets/00041928 [17:27:22]NVStorageDeleteData [17:27:22]OFD Sender: No OFD packet to send [17:27:27]OFD Sender: No OFD packet to send [17:27:32]OFD Sender: No OFD packet to send [17:27:37]OFD Sender: No OFD packet to send [17:27:42]OFD Sender: No OFD packet to send [17:27:47]OFD Sender: No OFD packet to send [17:27:52]OFD Sender: No OFD packet to send [17:27:53]recv_with_timeout no data received [17:27:57]OFD Sender: No OFD packet to send [17:28:02]OFD Sender: No OFD packet to send [17:28:07]OFD Sender: No OFD packet to send [17:28:12]OFD Sender: No OFD packet to send [17:28:17]OFD Sender: No OFD packet to send [17:28:17]recv_with_timeout no data received [17:28:22]OFD Sender: No OFD packet to send [17:28:27]OFD Sender: No OFD packet to send [17:28:28]recv_with_timeout no data received [17:28:32]OFD Sender: No OFD packet to send [17:28:37]OFD Sender: No OFD packet to send [17:28:39]recv_with_timeout no data received [17:28:42]OFD Sender: No OFD packet to send [17:28:47]OFD Sender: No OFD packet to send [17:28:49]recv_with_timeout no data received [17:28:52]OFD Sender: No OFD packet to send [17:28:57]OFD Sender: No OFD packet to send [17:29:02]OFD Sender: No OFD packet to send [17:29:07]OFD Sender: No OFD packet to send [17:29:12]OFD Sender: No OFD packet to send [17:29:17]OFD Sender: No OFD packet to send [17:29:22]OFD Sender: No OFD packet to send [17:29:27]OFD Sender: No OFD packet to send [17:29:32]OFD Sender: No OFD packet to send [17:29:37]OFD Sender: No OFD packet to send [17:29:42]OFD Sender: No OFD packet to send [17:29:47]OFD Sender: No OFD packet to send [17:29:52]OFD Sender: No OFD packet to send [17:29:57]OFD Sender: No OFD packet to send [17:30:02]OFD Sender: No OFD packet to send [17:30:07]OFD Sender: No OFD packet to send [17:30:12]OFD Sender: No OFD packet to send [17:30:17]OFD Sender: No OFD packet to send [17:30:22]OFD Sender: No OFD packet to send [17:30:27]OFD Sender: No OFD packet to send [17:30:32]OFD Sender: No OFD packet to send [17:30:37]OFD Sender: No OFD packet to send [17:30:42]OFD Sender: No OFD packet to send [17:30:47]OFD Sender: No OFD packet to send [17:30:52]OFD Sender: No OFD packet to send [17:30:57]OFD Sender: No OFD packet to send [17:31:02]OFD Sender: No OFD packet to send [17:31:07]OFD Sender: No OFD packet to send [17:31:12]OFD Sender: No OFD packet to send [17:31:17]OFD Sender: No OFD packet to send [17:31:22]OFD Sender: No OFD packet to send [17:31:27]OFD Sender: No OFD packet to send [17:31:32]OFD Sender: No OFD packet to send [17:31:37]OFD Sender: No OFD packet to send [17:31:40]recv_with_timeout no data received [17:31:42]OFD Sender: No OFD packet to send [17:31:47]OFD Sender: No OFD packet to send [17:31:52]OFD Sender: No OFD packet to send [17:31:57]OFD Sender: No OFD packet to send [17:32:02]OFD Sender: No OFD packet to send [17:32:07]OFD Sender: No OFD packet to send [17:32:12]OFD Sender: No OFD packet to send [17:32:17]OFD Sender: No OFD packet to send [17:32:22]OFD Sender: No OFD packet to send [17:32:27]OFD Sender: No OFD packet to send [17:32:32]OFD Sender: No OFD packet to send [17:32:37]OFD Sender: No OFD packet to send [17:32:42]OFD Sender: No OFD packet to send [17:32:47]OFD Sender: No OFD packet to send [17:32:52]OFD Sender: No OFD packet to send [17:32:57]OFD Sender: No OFD packet to send [17:33:02]OFD Sender: No OFD packet to send [17:33:07]OFD Sender: No OFD packet to send [17:33:12]OFD Sender: No OFD packet to send [17:33:17]OFD Sender: No OFD packet to send [17:33:22]OFD Sender: No OFD packet to send [17:33:27]OFD Sender: No OFD packet to send [17:33:32]OFD Sender: No OFD packet to send [17:33:37]OFD Sender: No OFD packet to send [17:33:42]OFD Sender: No OFD packet to send [17:33:47]OFD Sender: No OFD packet to send [17:33:52]OFD Sender: No OFD packet to send [17:33:57]OFD Sender: No OFD packet to send [17:34:02]OFD Sender: No OFD packet to send [17:34:08]OFD Sender: No OFD packet to send [17:34:13]OFD Sender: No OFD packet to send [17:34:18]OFD Sender: No OFD packet to send [17:34:21]recv_with_timeout no data received [17:34:23]OFD Sender: No OFD packet to send [17:34:28]OFD Sender: No OFD packet to send [17:34:31]recv_with_timeout no data received [17:34:33]OFD Sender: No OFD packet to send [17:34:38]OFD Sender: No OFD packet to send [17:34:43]OFD Sender: No OFD packet to send [17:34:48]OFD Sender: No OFD packet to send [17:34:53]OFD Sender: No OFD packet to send [17:34:58]OFD Sender: No OFD packet to send [17:35:03]OFD Sender: No OFD packet to send [17:35:08]OFD Sender: No OFD packet to send [17:35:13]OFD Sender: No OFD packet to send [17:35:18]OFD Sender: No OFD packet to send [17:35:23]OFD Sender: No OFD packet to send [17:35:28]OFD Sender: No OFD packet to send [17:35:33]OFD Sender: No OFD packet to send [17:35:38]OFD Sender: No OFD packet to send [17:35:43]OFD Sender: No OFD packet to send [17:35:48]OFD Sender: No OFD packet to send [17:35:53]OFD Sender: No OFD packet to send [17:35:58]OFD Sender: No OFD packet to send [17:36:03]OFD Sender: No OFD packet to send [17:36:08]OFD Sender: No OFD packet to send [17:36:13]OFD Sender: No OFD packet to send [17:36:18]OFD Sender: No OFD packet to send [17:36:23]OFD Sender: No OFD packet to send [17:36:28]OFD Sender: No OFD packet to send [17:36:33]OFD Sender: No OFD packet to send [17:36:38]OFD Sender: No OFD packet to send [17:36:43]OFD Sender: No OFD packet to send [17:36:48]OFD Sender: No OFD packet to send [17:36:53]OFD Sender: No OFD packet to send [17:36:58]OFD Sender: No OFD packet to send [17:37:03]OFD Sender: No OFD packet to send [17:37:08]OFD Sender: No OFD packet to send [17:37:13]OFD Sender: No OFD packet to send [17:37:18]OFD Sender: No OFD packet to send [17:37:23]OFD Sender: No OFD packet to send [17:37:28]OFD Sender: No OFD packet to send [17:37:33]OFD Sender: No OFD packet to send [17:37:38]OFD Sender: No OFD packet to send [17:37:43]OFD Sender: No OFD packet to send [17:37:48]OFD Sender: No OFD packet to send [17:37:53]OFD Sender: No OFD packet to send [17:37:58]OFD Sender: No OFD packet to send [17:38:03]OFD Sender: No OFD packet to send [17:38:08]OFD Sender: No OFD packet to send [17:38:13]OFD Sender: No OFD packet to send [17:38:18]OFD Sender: No OFD packet to send [17:38:23]OFD Sender: No OFD packet to send [17:38:28]OFD Sender: No OFD packet to send [17:38:33]OFD Sender: No OFD packet to send [17:38:38]OFD Sender: No OFD packet to send [17:38:43]OFD Sender: No OFD packet to send [17:38:48]OFD Sender: No OFD packet to send [17:38:53]OFD Sender: No OFD packet to send [17:38:58]OFD Sender: No OFD packet to send [17:39:03]OFD Sender: No OFD packet to send [17:39:08]OFD Sender: No OFD packet to send [17:39:13]OFD Sender: No OFD packet to send [17:39:18]OFD Sender: No OFD packet to send [17:39:23]OFD Sender: No OFD packet to send [17:39:28]OFD Sender: No OFD packet to send [17:39:33]OFD Sender: No OFD packet to send [17:39:38]OFD Sender: No OFD packet to send [17:39:43]OFD Sender: No OFD packet to send [17:39:48]OFD Sender: No OFD packet to send [17:39:53]OFD Sender: No OFD packet to send [17:39:58]OFD Sender: No OFD packet to send [17:40:03]OFD Sender: No OFD packet to send [17:40:08]OFD Sender: No OFD packet to send [17:40:13]OFD Sender: No OFD packet to send [17:40:18]OFD Sender: No OFD packet to send [17:40:23]OFD Sender: No OFD packet to send [17:40:28]OFD Sender: No OFD packet to send [17:40:29]recv_with_timeout no data received [17:40:33]OFD Sender: No OFD packet to send [17:40:38]OFD Sender: No OFD packet to send [17:40:43]OFD Sender: No OFD packet to send [17:40:48]OFD Sender: No OFD packet to send [17:40:53]OFD Sender: No OFD packet to send [17:40:58]OFD Sender: No OFD packet to send [17:41:03]OFD Sender: No OFD packet to send [17:41:08]OFD Sender: No OFD packet to send [17:41:13]OFD Sender: No OFD packet to send [17:41:18]OFD Sender: No OFD packet to send [17:41:23]OFD Sender: No OFD packet to send [17:41:28]OFD Sender: No OFD packet to send [17:41:33]OFD Sender: No OFD packet to send [17:41:38]OFD Sender: No OFD packet to send [17:41:43]OFD Sender: No OFD packet to send [17:41:48]OFD Sender: No OFD packet to send [17:41:53]OFD Sender: No OFD packet to send [17:41:58]OFD Sender: No OFD packet to send [17:42:03]OFD Sender: No OFD packet to send [17:42:08]OFD Sender: No OFD packet to send [17:42:13]OFD Sender: No OFD packet to send [17:42:17]recv_with_timeout no data received [17:42:18]OFD Sender: No OFD packet to send [17:42:23]OFD Sender: No OFD packet to send [17:42:28]OFD Sender: No OFD packet to send [17:42:33]OFD Sender: No OFD packet to send [17:42:38]OFD Sender: No OFD packet to send [17:42:43]OFD Sender: No OFD packet to send [17:42:48]OFD Sender: No OFD packet to send [17:42:53]accept exits with 10 [17:42:53]New connection [17:42:53]New thread 3066940772 created [17:42:53]Thread 3067084132 joined [17:42:53]Waiting for new connection... [17:42:53] Sock 10.Parse request [17:42:53]Sock 10.Check first char [17:42:53]Sock 10.First char is OK [17:42:53]request: POST /json_proto HTTP/1.0 [17:42:53]Method: POST [17:42:53]URL: /json_proto [17:42:53]Method is POST - this is cgi request [17:42:53]url: /json_proto [17:42:53]query_string will be loaded in cgi processing [17:42:53]execute_cgi json_proto POST (null) [17:42:53]execute_cgi path=json_proto method=POST [17:42:53]POST find Content-Length [17:42:53]Host: 172.17.43.132:8080 [17:42:53]Content-Length: 896 [17:42:53]Content-Type: application/json [17:42:53] [17:42:53]POST finish read [17:42:53]Found Content-Length = 896 [17:42:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183957", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 2.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:42:53]execute_script... [17:42:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183957", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 2.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:42:53]POST & json_proto [17:42:53]process_json_proto [17:42:53]json parsed OK: [17:42:53]protocol is kg_v1.0 [17:42:53]action value=close_receipt [17:42:53]process_action close_receipt [17:42:53]cmd_close_receipt [17:42:53]MH_GetDate [17:42:53]Write to MH i2c: F0 00 00 95 01 85 [17:42:53]Write i2c OK [17:42:53]MH_I2C_Read... [17:42:53]Read from MH i2c: F0 [17:42:53]MH_I2C_Read... [17:42:53]Read from MH i2c: F0 09 00 [17:42:53]MH_I2C_Read... [17:42:53]Read from MH i2c: F0 09 00 95 01 00 9E D4 A7 66 64 A3 A7 66 21 [17:42:53]GetLastDocTimeStamp 1722273905 [17:42:53]current date 1722274974 [17:42:53]FM_GetShiftState [17:42:53]SAM_PROTO_GetShiftState [17:42:53]wFMCommunicate request_size=4 [17:42:53]MH_SAM_APDU [17:42:53]CAPDU: 80 13 01 00 [17:42:53]Write to MH i2c: E2 08 00 96 01 80 13 01 00 00 00 00 00 14 [17:42:53]Write i2c OK [17:42:53]MH_I2C_Read... [17:42:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:42:53]Read from MH i2c: E2 [17:42:53]MH_I2C_Read... [17:42:53]Read from MH i2c: E2 0E 00 [17:42:53]MH_I2C_Read... [17:42:53]Read from MH i2c: E2 0E 00 96 01 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 B0 [17:42:53]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [17:42:53]wFMCommunicate OK [17:42:53]SAM_PROTO_GetShiftState done [17:42:53]FM_GetShiftState done [17:42:53]opened in 1722211496 [17:42:53]opened+sec_in_day 1722297896 [17:42:53]quantity*price = 6000 [17:42:53]sum+1 = 6001 [17:42:53]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000310043 Вода Жалалабат 27 1л 2.000 * 60.00 = 120.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 180.00 НСП 1% : 1.59 НДС 12% : 19.11 Наличными: 180.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 118 29.07.2024 17:42 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41929 ФПД: 274745451118626 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T174254&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41929&fm=274745451118626&tin=02508201610067®Number=0000000000092626&sum=18000 0 [17:42:54]StoreToDocumentArchive [17:42:54]shift 427 fd 41929 [17:42:54]save to /storage/0427/doc_00041929 [17:42:54]save last doc name /storage/0427/doc_00041929 to /storage/kkm_last_doc_name [17:42:54]save OK [17:42:54]Clear old archive folders... [17:42:54]ProcessDocumentItem done err = 0, tmpTLVsize=377 [17:42:54]tlvbuf is 00E00150 [17:42:54]SAM_PROTO_ClearQueue [17:42:54]wFMCommunicate request_size=4 [17:42:54]MH_SAM_APDU [17:42:54]CAPDU: 80 09 00 00 [17:42:54]Write to MH i2c: E2 08 00 A3 01 80 09 00 00 00 00 00 00 16 [17:42:54]Write i2c OK [17:42:54]MH_I2C_Read... [17:42:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:42:54]Read from MH i2c: E2 [17:42:54]MH_I2C_Read... [17:42:54]Read from MH i2c: E2 03 00 [17:42:54]MH_I2C_Read... [17:42:54]Read from MH i2c: E2 03 00 A3 01 00 90 00 18 [17:42:54]RAPDU: 90 00 [17:42:54]wFMCommunicate OK [17:42:54]SAM_PROTO_ClearQueue done [17:42:54]KKMCreateOFDPacket [17:42:54]OFDProtocolAddRootSTLVToBuf [17:42:54]FM_MakeSignedData [17:42:54]FM_MakeSignedData [17:42:54]SAM_PROTO_SignData [17:42:54]wFMCommunicate request_size=4 [17:42:54]MH_SAM_APDU [17:42:54]CAPDU: 80 0D 01 02 [17:42:54]Write to MH i2c: E2 08 00 A4 01 80 0D 01 02 00 00 00 00 1E [17:42:54]Write i2c OK [17:42:54]MH_I2C_Read... [17:42:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:42:54]Read from MH i2c: E2 [17:42:54]MH_I2C_Read... [17:42:54]Read from MH i2c: E2 03 00 [17:42:54]MH_I2C_Read... [17:42:54]Read from MH i2c: E2 03 00 A4 01 00 90 00 19 [17:42:54]RAPDU: 90 00 [17:42:54]wFMCommunicate OK [17:42:54]wFMCommunicate request_size=255 [17:42:54]MH_SAM_APDU [17:42:54]CAPDU: 80 0D 02 02 FA 03 00 79 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE [17:42:54]Write to MH i2c: E2 02 01 A5 01 80 0D 02 02 FA 00 03 00 79 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 00 00 E0 [17:42:54]Write i2c OK [17:42:54]MH_I2C_Read... [17:42:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:54]Read from MH i2c: E2 [17:42:54]MH_I2C_Read... [17:42:54]Read from MH i2c: E2 03 00 [17:42:54]MH_I2C_Read... [17:42:54]Read from MH i2c: E2 03 00 A5 01 00 90 00 1A [17:42:54]RAPDU: 90 00 [17:42:54]wFMCommunicate OK [17:42:54]wFMCommunicate request_size=136 [17:42:54]MH_SAM_APDU [17:42:54]CAPDU: 80 0D 02 02 83 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 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 9E D4 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 C9 A3 00 00 35 04 06 00 F9 E1 29 04 80 22 [17:42:54]Write to MH i2c: E2 8B 00 A6 01 80 0D 02 02 83 00 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 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 9E D4 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 C9 A3 00 00 35 04 06 00 F9 E1 29 04 80 22 00 00 39 [17:42:54]Write i2c OK [17:42:54]MH_I2C_Read... [17:42:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:54]Read from MH i2c: E2 [17:42:54]MH_I2C_Read... [17:42:54]Read from MH i2c: E2 03 00 [17:42:54]MH_I2C_Read... [17:42:54]Read from MH i2c: E2 03 00 A6 01 00 90 00 1B [17:42:54]RAPDU: 90 00 [17:42:54]wFMCommunicate OK [17:42:54]wFMCommunicate request_size=4 [17:42:54]MH_SAM_APDU [17:42:54]CAPDU: 80 0D 03 02 [17:42:54]Write to MH i2c: E2 08 00 A7 01 80 0D 03 02 00 00 00 00 23 [17:42:54]Write i2c OK [17:42:54]MH_I2C_Read... [17:42:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:42:54]Read from MH i2c: E2 [17:42:54]MH_I2C_Read... [17:42:54]Read from MH i2c: E2 0B 00 [17:42:54]MH_I2C_Read... [17:42:54]Read from MH i2c: E2 0B 00 A7 01 00 9E A3 F2 3C 06 AB A2 24 90 00 0A [17:42:54]RAPDU: 9E A3 F2 3C 06 AB A2 24 90 00 [17:42:54]wFMCommunicate OK [17:42:54]SAM_PROTO_SignData done [17:42:54]FM_MakeSignedData done [17:42:54]CreateOFDProtocolMessage [17:42:54]wFMCommunicate request_size=4 [17:42:54]MH_SAM_APDU [17:42:54]CAPDU: 80 11 00 00 [17:42:54]Write to MH i2c: E2 08 00 A8 01 80 11 00 00 00 00 00 00 23 [17:42:54]Write i2c OK [17:42:54]MH_I2C_Read... [17:42:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:42:54]Read from MH i2c: E2 [17:42:54]MH_I2C_Read... [17:42:54]Read from MH i2c: E2 17 00 [17:42:54]MH_I2C_Read... [17:42:54]Read from MH i2c: E2 17 00 A8 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 7F [17:42:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [17:42:54]wFMCommunicate OK [17:42:54]CreateOFDProtocolMessage done [17:42:54]OFDSenderStorePacket 41929 [17:42:54]StoreOFDPacket docnum=41929 [17:42:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 8D 01 00 00 32 E5 85 01 4C 43 5A 03 01 00 03 00 79 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 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 9E D4 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 C9 A3 00 00 35 04 06 00 F9 E1 29 04 80 22 9E A3 F2 3C 06 AB A2 24 [17:42:54]CheckFolder [17:42:54]dirname=/storage/ofd_packets [17:42:54]CheckFolder done [17:42:54]ProducePacketName [17:42:54]name=ofd_packets/00041929 [17:42:54]NVStorageSaveData ofd_packets/00041929 [17:42:54]File name is /storage/ofd_packets/00041929 [17:42:54]Write 427 bytes [17:42:54]NVStorageSaveData done [17:42:54]OFDSenderStorePacket done [17:42:54]KKMCreateOFDPacket done [17:42:54]NVStorageSaveData kkm_last_timestamp [17:42:54]File name is /storage/kkm_last_timestamp [17:42:54]Write 4 bytes [17:42:54]NVStorageSaveData done [17:42:54]ExternCall_PrintAddStr [17:42:54]wPrintStart [17:42:54]Write to MH i2c: 01 00 00 A9 01 AA [17:42:54]Write i2c OK [17:42:54]MH_I2C_Read... [17:42:54]Read from MH i2c: 01 [17:42:54]MH_I2C_Read... [17:42:54]Read from MH i2c: 01 07 00 [17:42:54]MH_I2C_Read... [17:42:54]Read from MH i2c: 01 07 00 A9 01 00 00 00 00 00 FF 0F BF [17:42:55]RasterBufferAndPrint [17:42:55]line Счет N : (3)183957 [17:42:55]line ИНН: 02508201610067 [17:42:55]line Контрольно-Кассовый Чек [17:42:55]line ПРОДАЖА [17:42:55]line Товар: 4700000160204 [17:42:55]line Вода Легенда 1,5л [17:42:55]line 1.000 * 60.00 [17:42:55]line = 60.00 [17:42:55]line НДС 12% НСП 1% [17:42:55]line > о реализуемом товаре [17:42:55]line Товар: 4700000310043 [17:42:55]line Вода Жалалабат 27 1л [17:42:55]line 2.000 * 60.00 [17:42:55]line = 120.00 [17:42:55]line НДС 12% НСП 1% [17:42:55]line > о реализуемом товаре [17:42:55]line ИТОГО: 180.00 [17:42:55]line НСП 1% : 1.59 [17:42:55]line НДС 12% : 19.11 [17:42:55]line Наличными: 180.00 [17:42:55]line Безнал.: 0.00 [17:42:55]line Место: АЗС № 97 "Партнер Нефть" [17:42:55]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [17:42:55]line СНО: Общий режим [17:42:55]line Чек 118 29.07.2024 17:42 [17:42:55]line Смена: 427 ФФД: 1.0 [17:42:55]line ЗНМ: 0300000053 [17:42:55]line РНМ: 0000000000092626 [17:42:55]line Версия ККМ: 001 [17:42:55]line ФМ: 0000000000874958 [17:42:55]line ФД: 41929 [17:42:55]line ФПД: 274745451118626 [17:42:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T174254&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41929&fm=274745451118626&tin=02508201610067®Number=0000000000092626&sum=18000 [17:42:55]line 0 [17:42:55]OFD Sender: Processing packet 41929 [packets to send 57, broken 56] [17:42:55]ProducePacketName [17:42:55]name=ofd_packets/00041929 [17:42:55]OFD Sender: To server: pG, [17:42:55]CommunicateWithHost lk.salyk.kg:30040 [17:42:55]ConnectInit lk.salyk.kg [17:42:55]written 0, free lines is 4095 [17:42:55]Write to MH i2c: 01 00 00 D7 01 D8 [17:42:55]Write i2c OK [17:42:55]MH_I2C_Read... [17:42:55]Read from MH i2c: 01 [17:42:55]MH_I2C_Read... [17:42:55]Read from MH i2c: 01 07 00 [17:42:55]MH_I2C_Read... [17:42:55]Read from MH i2c: 01 07 00 D7 01 00 00 00 00 00 C7 0C B2 [17:42:55]RasterBufferAndPrint [17:42:55]line [17:42:55]line [17:42:55]line [17:42:55]line [17:42:55]line [17:42:55]written 0, free lines is 3277 [17:42:55]MH_Cut [17:42:55]Write to MH i2c: D1 01 00 DE 01 01 B1 [17:42:55]Write i2c OK [17:42:55]MH_I2C_Read... [17:42:55]Read from MH i2c: D1 [17:42:55]MH_I2C_Read... [17:42:55]Read from MH i2c: D1 01 00 [17:42:55]MH_I2C_Read... [17:42:55]Read from MH i2c: D1 01 00 DE 01 00 B0 [17:42:55]Write to MH i2c: 01 00 00 DF 01 E0 [17:42:55]Write i2c OK [17:42:55]MH_I2C_Read... [17:42:56]*** Cut start [17:42:56]*** Partial cut [17:42:56]*** CUTSNS_PIN = 1 [17:42:56]*** CUTSNS_PIN = 0 [17:42:56]*** Brake cut motor [17:42:57]Read from MH i2c: 01 [17:42:57]MH_I2C_Read... [17:42:57]*** Stop cut motor [17:42:57]*** Cut end [17:42:57]Read from MH i2c: 01 07 00 [17:42:57]MH_I2C_Read... [17:42:57]Read from MH i2c: 01 07 00 DF 01 00 00 00 00 00 FF 0F F5 [17:42:57]process_action close_receipt done [17:42:57]requested_data is exist [17:42:57]produce_requested_data [17:42:57]requested_item fm.sn is exist - process it [17:42:57]wFMCommunicate request_size=4 [17:42:57]MH_SAM_APDU [17:42:57]CAPDU: 80 11 00 00 [17:42:57]Write to MH i2c: E2 08 00 E0 01 80 11 00 00 00 00 00 00 5B [17:42:57]Write i2c OK [17:42:57]MH_I2C_Read... [17:42:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:42:57]Read from MH i2c: E2 [17:42:57]MH_I2C_Read... [17:42:57]Read from MH i2c: E2 17 00 [17:42:57]MH_I2C_Read... [17:42:57]Read from MH i2c: E2 17 00 E0 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 B7 [17:42:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [17:42:57]wFMCommunicate OK [17:42:57]requested_item fd.num is exist - process it [17:42:57]SAM_PROTO_GetFieldsCounters [17:42:57]wFMCommunicate request_size=4 [17:42:57]MH_SAM_APDU [17:42:57]CAPDU: 80 13 00 00 [17:42:57]Write to MH i2c: E2 08 00 E1 01 80 13 00 00 00 00 00 00 5E [17:42:57]Write i2c OK [17:42:57]MH_I2C_Read... [17:42:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:42:57]Read from MH i2c: E2 [17:42:57]MH_I2C_Read... [17:42:57]Read from MH i2c: E2 62 00 [17:42:57]MH_I2C_Read... [17:42:57]Read from MH i2c: E2 62 00 E1 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 C9 A3 00 00 0E 04 04 00 AB 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 02 [17:42: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 C9 A3 00 00 0E 04 04 00 AB 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 [17:42:57]wFMCommunicate OK [17:42:57]SAM_PROTO_GetFieldsCounters done [17:42:57]requested_item shift.num is exist - process it [17:42:57]requested_item shift.opened is exist - process it [17:42:57]req_shift_opened [17:42:57]FM_GetShiftState [17:42:57]SAM_PROTO_GetShiftState [17:42:57]wFMCommunicate request_size=4 [17:42:57]MH_SAM_APDU [17:42:57]CAPDU: 80 13 01 00 [17:42:57]Write to MH i2c: E2 08 00 E2 01 80 13 01 00 00 00 00 00 60 [17:42:57]Write i2c OK [17:42:57]MH_I2C_Read... [17:42:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:42:57]Read from MH i2c: E2 [17:42:57]MH_I2C_Read... [17:42:57]Read from MH i2c: E2 0E 00 [17:42:57]MH_I2C_Read... [17:42:57]Read from MH i2c: E2 0E 00 E2 01 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 FC [17:42:57]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [17:42:57]wFMCommunicate OK [17:42:57]SAM_PROTO_GetShiftState done [17:42:57]FM_GetShiftState done [17:42:57]req_shift_opened done [17:42:57]requested_item shift.open_date is exist - process it [17:42:57]req_shift_open_date [17:42:57]req_shift_open_date done [17:42:57]produce_requested_data done [17:42:57]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41929,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [17:42:57]process_action_free close_receipt [17:42:57]json_value_free [17:42:57]json_value_free done [17:42:57]process_json_proto returns [17:42:57]Send response to host [17:42:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41929,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [17:42:57]free response buf [17:42:57]execute_script done [17:42:57]execute_script returns [17:42:57]free content buf [17:42:57]Sock 10.Close socket [17:42:57]Sock 10.Thread stoped [17:42:59]recv_with_timeout no data received [17:43:00]ConnectInit Can't take IP for lk.salyk.kg [17:43:00]CommunicateWithHost connect error [17:43:00]CommunicateWithHost err = -1 [17:43:00]OFD Sender: Server communicate error [17:43:05]OFD Sender: Processing packet 41929 [packets to send 57, broken 56] [17:43:05]ProducePacketName [17:43:05]name=ofd_packets/00041929 [17:43:05]OFD Sender: To server: pG, [17:43:05]CommunicateWithHost lk.salyk.kg:30040 [17:43:05]ConnectInit lk.salyk.kg [17:43:10]ConnectInit Can't take IP for lk.salyk.kg [17:43:10]CommunicateWithHost connect error [17:43:10]CommunicateWithHost err = -1 [17:43:10]OFD Sender: Server communicate error [17:43:15]OFD Sender: Processing packet 41929 [packets to send 57, broken 56] [17:43:15]ProducePacketName [17:43:15]name=ofd_packets/00041929 [17:43:15]OFD Sender: To server: pG, [17:43:15]CommunicateWithHost lk.salyk.kg:30040 [17:43:15]ConnectInit lk.salyk.kg [17:43:19]recv_with_timeout no data received [17:43:20]ConnectInit Can't take IP for lk.salyk.kg [17:43:20]CommunicateWithHost connect error [17:43:20]CommunicateWithHost err = -1 [17:43:20]OFD Sender: Server communicate error [17:43:25]OFD Sender: Processing packet 41929 [packets to send 57, broken 56] [17:43:25]ProducePacketName [17:43:25]name=ofd_packets/00041929 [17:43:25]OFD Sender: To server: pG, [17:43:25]CommunicateWithHost lk.salyk.kg:30040 [17:43:25]ConnectInit lk.salyk.kg [17:43:30]ConnectInit Can't take IP for lk.salyk.kg [17:43:30]CommunicateWithHost connect error [17:43:30]CommunicateWithHost err = -1 [17:43:30]OFD Sender: Server communicate error [17:43:35]OFD Sender: Processing packet 41929 [packets to send 57, broken 56] [17:43:35]ProducePacketName [17:43:35]name=ofd_packets/00041929 [17:43:35]OFD Sender: To server: pG, [17:43:35]CommunicateWithHost lk.salyk.kg:30040 [17:43:35]ConnectInit lk.salyk.kg [17:43:39]recv_with_timeout no data received [17:43:40]ConnectInit Can't take IP for lk.salyk.kg [17:43:40]CommunicateWithHost connect error [17:43:40]CommunicateWithHost err = -1 [17:43:40]OFD Sender: Server communicate error [17:43:45]OFD Sender: Processing packet 41929 [packets to send 57, broken 56] [17:43:45]ProducePacketName [17:43:45]name=ofd_packets/00041929 [17:43:45]OFD Sender: To server: pG, [17:43:45]CommunicateWithHost lk.salyk.kg:30040 [17:43:45]ConnectInit lk.salyk.kg [17:43:50]ConnectInit Can't take IP for lk.salyk.kg [17:43:50]CommunicateWithHost connect error [17:43:50]CommunicateWithHost err = -1 [17:43:50]OFD Sender: Server communicate error [17:43:55]OFD Sender: Processing packet 41929 [packets to send 57, broken 56] [17:43:55]ProducePacketName [17:43:55]name=ofd_packets/00041929 [17:43:55]OFD Sender: To server: pG, [17:43:55]CommunicateWithHost lk.salyk.kg:30040 [17:43:55]ConnectInit lk.salyk.kg [17:44:00]ConnectInit Can't take IP for lk.salyk.kg [17:44:00]CommunicateWithHost connect error [17:44:00]CommunicateWithHost err = -1 [17:44:00]OFD Sender: Server communicate error [17:44:05]OFD Sender: Processing packet 41929 [packets to send 57, broken 56] [17:44:05]ProducePacketName [17:44:05]name=ofd_packets/00041929 [17:44:05]OFD Sender: To server: pG, [17:44:05]CommunicateWithHost lk.salyk.kg:30040 [17:44:05]ConnectInit lk.salyk.kg [17:44:06]Connected sock=9 [17:44: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 35 38 8D 01 00 00 32 E5 85 01 4C 43 5A 03 01 00 03 00 79 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 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 9E D4 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 C9 A3 00 00 35 04 06 00 F9 E1 29 04 80 22 9E A3 F2 3C 06 AB A2 24 [17:44: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 35 38 4F 00 00 00 E3 DA 47 00 02 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 35 38 10 04 04 00 C9 A3 00 00 F4 03 04 00 FC 80 A7 66 B6 04 01 00 00 34 17 7D CC 4A D9 89 58 [17:44:09]CommunicateWithHost err = 0 [17:44:09]CheckOFDResponse [17:44:09]1017 (14) - 77093643461234 [17:44:09]1041 (16) - 0000000000874958 [17:44:09]1040 (4) - 41929 [17:44:09]1012 (4) - 29.07.2024 11:46 [17:44:09]1206 (1) - 0 [17:44:09]OFD Sender: Remove packet 41929 [17:44:09]ProducePacketName [17:44:09]name=ofd_packets/00041929 [17:44:09]NVStorageDeleteData [17:44:09]OFD Sender: No OFD packet to send [17:44:14]OFD Sender: No OFD packet to send [17:44:19]OFD Sender: No OFD packet to send [17:44:24]OFD Sender: No OFD packet to send [17:44:29]OFD Sender: No OFD packet to send [17:44:34]OFD Sender: No OFD packet to send [17:44:39]OFD Sender: No OFD packet to send [17:44:44]OFD Sender: No OFD packet to send [17:44:49]OFD Sender: No OFD packet to send [17:44:51]recv_with_timeout no data received [17:44:54]OFD Sender: No OFD packet to send [17:44:59]OFD Sender: No OFD packet to send [17:45:02]recv_with_timeout no data received [17:45:04]OFD Sender: No OFD packet to send [17:45:09]OFD Sender: No OFD packet to send [17:45:14]OFD Sender: No OFD packet to send [17:45:19]OFD Sender: No OFD packet to send [17:45:24]OFD Sender: No OFD packet to send [17:45:29]OFD Sender: No OFD packet to send [17:45:34]OFD Sender: No OFD packet to send [17:45:35]accept exits with 7 [17:45:35]New connection [17:45:35]New thread 3067084132 created [17:45:35]Thread 3066940772 joined [17:45:35]Waiting for new connection... [17:45:35] Sock 7.Parse request [17:45:35]Sock 7.Check first char [17:45:35]Sock 7.First char is OK [17:45:35]request: POST /json_proto HTTP/1.0 [17:45:35]Method: POST [17:45:35]URL: /json_proto [17:45:35]Method is POST - this is cgi request [17:45:35]url: /json_proto [17:45:35]query_string will be loaded in cgi processing [17:45:35]execute_cgi json_proto POST (null) [17:45:35]execute_cgi path=json_proto method=POST [17:45:35]POST find Content-Length [17:45:35]Host: 172.17.43.132:8080 [17:45:35]Content-Length: 978 [17:45:35]Content-Type: application/json [17:45:35] [17:45:35]POST finish read [17:45:35]Found Content-Length = 978 [17:45:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183958", "tax_sys" : 0, "items" : [ { "code": "90162602", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red bull 0,25\u043B", "price" : 157.00, "quantity" : 1.000, "sum" : 157.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000088680", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E, \u0430\u043D\u0430\u043D\u0430\u0441 0,33 \u0436/\u0431", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 247.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:45:35]execute_script... [17:45:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183958", "tax_sys" : 0, "items" : [ { "code": "90162602", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red bull 0,25\u043B", "price" : 157.00, "quantity" : 1.000, "sum" : 157.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000088680", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E, \u0430\u043D\u0430\u043D\u0430\u0441 0,33 \u0436/\u0431", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 247.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:45:35]POST & json_proto [17:45:35]process_json_proto [17:45:35]json parsed OK: [17:45:35]protocol is kg_v1.0 [17:45:35]action value=close_receipt [17:45:35]process_action close_receipt [17:45:35]cmd_close_receipt [17:45:35]MH_GetDate [17:45:35]Write to MH i2c: F0 00 00 E3 01 D3 [17:45:35]Write i2c OK [17:45:35]MH_I2C_Read... [17:45:35]Read from MH i2c: F0 [17:45:35]MH_I2C_Read... [17:45:35]Read from MH i2c: F0 09 00 [17:45:35]MH_I2C_Read... [17:45:35]Read from MH i2c: F0 09 00 E3 01 00 40 D5 A7 66 64 A3 A7 66 12 [17:45:35]GetLastDocTimeStamp 1722274974 [17:45:35]current date 1722275136 [17:45:35]FM_GetShiftState [17:45:35]SAM_PROTO_GetShiftState [17:45:35]wFMCommunicate request_size=4 [17:45:35]MH_SAM_APDU [17:45:35]CAPDU: 80 13 01 00 [17:45:35]Write to MH i2c: E2 08 00 E4 01 80 13 01 00 00 00 00 00 62 [17:45:35]Write i2c OK [17:45:35]MH_I2C_Read... [17:45:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:45:35]Read from MH i2c: E2 [17:45:35]MH_I2C_Read... [17:45:35]Read from MH i2c: E2 0E 00 [17:45:35]MH_I2C_Read... [17:45:35]Read from MH i2c: E2 0E 00 E4 01 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 FE [17:45:35]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [17:45:35]wFMCommunicate OK [17:45:35]SAM_PROTO_GetShiftState done [17:45:35]FM_GetShiftState done [17:45:35]opened in 1722211496 [17:45:35]opened+sec_in_day 1722297896 [17:45:35]quantity*price = 15700 [17:45:35]sum+1 = 15701 [17:45:35]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000088680 Холодный чай Fuse манго, ананас 0,33 ж/б 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 247.00 НСП 1% : 2.19 НДС 12% : 26.23 Наличными: 247.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 119 29.07.2024 17:45 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41930 ФПД: 168936112822985 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T174536&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41930&fm=168936112822985&tin=02508201610067®Number=0000000000092626&sum=24700 0 [17:45:36]StoreToDocumentArchive [17:45:36]shift 427 fd 41930 [17:45:36]save to /storage/0427/doc_00041930 [17:45:36]save last doc name /storage/0427/doc_00041930 to /storage/kkm_last_doc_name [17:45:36]save OK [17:45:36]Clear old archive folders... [17:45:36]ProcessDocumentItem done err = 0, tmpTLVsize=414 [17:45:36]tlvbuf is 00D09820 [17:45:36]SAM_PROTO_ClearQueue [17:45:36]wFMCommunicate request_size=4 [17:45:36]MH_SAM_APDU [17:45:36]CAPDU: 80 09 00 00 [17:45:36]Write to MH i2c: E2 08 00 F1 01 80 09 00 00 00 00 00 00 64 [17:45:36]Write i2c OK [17:45:36]MH_I2C_Read... [17:45:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:45:36]Read from MH i2c: E2 [17:45:36]MH_I2C_Read... [17:45:36]Read from MH i2c: E2 03 00 [17:45:36]MH_I2C_Read... [17:45:36]Read from MH i2c: E2 03 00 F1 01 00 90 00 66 [17:45:36]RAPDU: 90 00 [17:45:36]wFMCommunicate OK [17:45:36]SAM_PROTO_ClearQueue done [17:45:36]KKMCreateOFDPacket [17:45:36]OFDProtocolAddRootSTLVToBuf [17:45:36]FM_MakeSignedData [17:45:36]FM_MakeSignedData [17:45:36]SAM_PROTO_SignData [17:45:36]wFMCommunicate request_size=4 [17:45:36]MH_SAM_APDU [17:45:36]CAPDU: 80 0D 01 02 [17:45:36]Write to MH i2c: E2 08 00 F2 01 80 0D 01 02 00 00 00 00 6C [17:45:36]Write i2c OK [17:45:36]MH_I2C_Read... [17:45:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:45:36]Read from MH i2c: E2 [17:45:36]MH_I2C_Read... [17:45:36]Read from MH i2c: E2 03 00 [17:45:36]MH_I2C_Read... [17:45:36]Read from MH i2c: E2 03 00 F2 01 00 90 00 67 [17:45:36]RAPDU: 90 00 [17:45:36]wFMCommunicate OK [17:45:36]wFMCommunicate request_size=255 [17:45:36]MH_SAM_APDU [17:45:36]CAPDU: 80 0D 02 02 FA 03 00 9E 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 3D 00 00 00 00 13 04 06 00 54 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 35 34 34 39 30 30 30 30 38 38 36 38 30 06 04 40 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 33 33 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 [17:45:36]Write to MH i2c: E2 02 01 F3 01 80 0D 02 02 FA 00 03 00 9E 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 3D 00 00 00 00 13 04 06 00 54 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 35 34 34 39 30 30 30 30 38 38 36 38 30 06 04 40 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 33 33 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 00 00 23 [17:45:36]Write i2c OK [17:45:36]MH_I2C_Read... [17:45:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:45:36]Read from MH i2c: E2 [17:45:36]MH_I2C_Read... [17:45:36]Read from MH i2c: E2 03 00 [17:45:36]MH_I2C_Read... [17:45:36]Read from MH i2c: E2 03 00 F3 01 00 90 00 68 [17:45:36]RAPDU: 90 00 [17:45:36]wFMCommunicate OK [17:45:36]wFMCommunicate request_size=173 [17:45:36]MH_SAM_APDU [17:45:36]CAPDU: 80 0D 02 02 A8 01 00 01 FC 03 06 00 7C 60 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 0A 00 00 00 00 07 04 06 00 7C 60 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 40 D5 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 CA A3 00 00 35 04 06 00 99 A5 80 FE 9A C9 [17:45:36]Write to MH i2c: E2 B0 00 F4 01 80 0D 02 02 A8 00 01 00 01 FC 03 06 00 7C 60 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 0A 00 00 00 00 07 04 06 00 7C 60 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 40 D5 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 CA A3 00 00 35 04 06 00 99 A5 80 FE 9A C9 00 00 B9 [17:45:36]Write i2c OK [17:45:36]MH_I2C_Read... [17:45:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:45:36]Read from MH i2c: E2 [17:45:36]MH_I2C_Read... [17:45:36]Read from MH i2c: E2 03 00 [17:45:36]MH_I2C_Read... [17:45:36]Read from MH i2c: E2 03 00 F4 01 00 90 00 69 [17:45:36]RAPDU: 90 00 [17:45:36]wFMCommunicate OK [17:45:36]wFMCommunicate request_size=4 [17:45:36]MH_SAM_APDU [17:45:36]CAPDU: 80 0D 03 02 [17:45:36]Write to MH i2c: E2 08 00 F5 01 80 0D 03 02 00 00 00 00 71 [17:45:36]Write i2c OK [17:45:36]MH_I2C_Read... [17:45:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:45:36]Read from MH i2c: E2 [17:45:36]MH_I2C_Read... [17:45:36]Read from MH i2c: E2 0B 00 [17:45:36]MH_I2C_Read... [17:45:36]Read from MH i2c: E2 0B 00 F5 01 00 00 F9 DF 58 41 84 BB 24 90 00 46 [17:45:36]RAPDU: 00 F9 DF 58 41 84 BB 24 90 00 [17:45:36]wFMCommunicate OK [17:45:36]SAM_PROTO_SignData done [17:45:36]FM_MakeSignedData done [17:45:36]CreateOFDProtocolMessage [17:45:36]wFMCommunicate request_size=4 [17:45:36]MH_SAM_APDU [17:45:36]CAPDU: 80 11 00 00 [17:45:36]Write to MH i2c: E2 08 00 F6 01 80 11 00 00 00 00 00 00 71 [17:45:36]Write i2c OK [17:45:36]MH_I2C_Read... [17:45:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:45:36]Read from MH i2c: E2 [17:45:36]MH_I2C_Read... [17:45:36]Read from MH i2c: E2 17 00 [17:45:36]MH_I2C_Read... [17:45:36]Read from MH i2c: E2 17 00 F6 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 CD [17:45:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [17:45:36]wFMCommunicate OK [17:45:36]CreateOFDProtocolMessage done [17:45:36]OFDSenderStorePacket 41930 [17:45:36]StoreOFDPacket docnum=41930 [17:45:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 B2 01 00 00 A8 1C AA 01 77 94 5A 03 01 00 03 00 9E 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 3D 00 00 00 00 13 04 06 00 54 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 35 34 34 39 30 30 30 30 38 38 36 38 30 06 04 40 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 33 33 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 60 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 0A 00 00 00 00 07 04 06 00 7C 60 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 40 D5 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 CA A3 00 00 35 04 06 00 99 A5 80 FE 9A C9 00 F9 DF 58 41 84 BB 24 [17:45:36]CheckFolder [17:45:36]dirname=/storage/ofd_packets [17:45:36]CheckFolder done [17:45:36]ProducePacketName [17:45:36]name=ofd_packets/00041930 [17:45:36]NVStorageSaveData ofd_packets/00041930 [17:45:36]File name is /storage/ofd_packets/00041930 [17:45:36]Write 464 bytes [17:45:36]NVStorageSaveData done [17:45:36]OFDSenderStorePacket done [17:45:36]KKMCreateOFDPacket done [17:45:36]NVStorageSaveData kkm_last_timestamp [17:45:36]File name is /storage/kkm_last_timestamp [17:45:36]Write 4 bytes [17:45:36]NVStorageSaveData done [17:45:36]ExternCall_PrintAddStr [17:45:36]wPrintStart [17:45:36]Write to MH i2c: 01 00 00 F7 01 F8 [17:45:36]Write i2c OK [17:45:36]MH_I2C_Read... [17:45:36]Read from MH i2c: 01 [17:45:37]MH_I2C_Read... [17:45:37]OFD Sender: Processing packet 41930 [packets to send 57, broken 56] [17:45:37]Read from MH i2c: ProducePacketName [17:45:37]01 name=ofd_packets/00041930 [17:45:37]07 00 [17:45:37]OFD Sender: To server: pG, [17:45:37]MH_I2C_Read... [17:45:37]CommunicateWithHost lk.salyk.kg:30040 [17:45:37]ConnectInit lk.salyk.kg [17:45:37]Read from MH i2c: 01 07 00 F7 01 00 00 00 00 00 FF 0F 0D [17:45:37]RasterBufferAndPrint [17:45:37]line Счет N : (3)183958 [17:45:37]line ИНН: 02508201610067 [17:45:37]line Контрольно-Кассовый Чек [17:45:37]line ПРОДАЖА [17:45:37]line Товар: 90162602 [17:45:37]line Энерг напиток Red bull 0,25л [17:45:37]line 1.000 * 157.00 [17:45:37]line = 157.00 [17:45:37]line НДС 12% НСП 1% [17:45:37]line > о реализуемом товаре [17:45:37]line Товар: 5449000088680 [17:45:37]line Холодный чай Fuse манго, ананас 0,33 ж/б [17:45:37]line 1.000 * 90.00 [17:45:37]line = 90.00 [17:45:37]line НДС 12% НСП 1% [17:45:37]line > о реализуемом товаре [17:45:37]line ИТОГО: 247.00 [17:45:37]line НСП 1% : 2.19 [17:45:37]line НДС 12% : 26.23 [17:45:37]line Наличными: 247.00 [17:45:37]line Безнал.: 0.00 [17:45:37]line Место: АЗС № 97 "Партнер Нефть" [17:45:37]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [17:45:37]line СНО: Общий режим [17:45:37]line Чек 119 29.07.2024 17:45 [17:45:37]line Смена: 427 ФФД: 1.0 [17:45:37]line ЗНМ: 0300000053 [17:45:37]line РНМ: 0000000000092626 [17:45:37]line Версия ККМ: 001 [17:45:37]line ФМ: 0000000000874958 [17:45:37]line ФД: 41930 [17:45:37]line ФПД: 168936112822985 [17:45:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T174536&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41930&fm=168936112822985&tin=02508201610067®Number=0000000000092626&sum=24700 [17:45:37]line 0 [17:45:37]written 0, free lines is 4095 [17:45:37]Write to MH i2c: 01 00 00 26 02 28 [17:45:37]Write i2c OK [17:45:37]MH_I2C_Read... [17:45:37]Read from MH i2c: 01 [17:45:37]MH_I2C_Read... [17:45:37]Read from MH i2c: 01 07 00 [17:45:37]MH_I2C_Read... [17:45:37]Read from MH i2c: 01 07 00 26 02 00 00 00 00 00 C7 0C 02 [17:45:37]RasterBufferAndPrint [17:45:37]line [17:45:37]line [17:45:37]line [17:45:37]line [17:45:37]line [17:45:37]written 0, free lines is 3277 [17:45:37]MH_Cut [17:45:37]Write to MH i2c: D1 01 00 2D 02 01 01 [17:45:37]Write i2c OK [17:45:37]MH_I2C_Read... [17:45:37]Read from MH i2c: D1 [17:45:37]MH_I2C_Read... [17:45:37]Read from MH i2c: D1 01 00 [17:45:37]MH_I2C_Read... [17:45:37]Read from MH i2c: D1 01 00 2D 02 00 00 [17:45:37]Write to MH i2c: 01 00 00 2E 02 30 [17:45:37]Write i2c OK [17:45:37]MH_I2C_Read... [17:45:37]Connected sock=9 [17:45: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 35 38 B2 01 00 00 A8 1C AA 01 77 94 5A 03 01 00 03 00 9E 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 3D 00 00 00 00 13 04 06 00 54 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 35 34 34 39 30 30 30 30 38 38 36 38 30 06 04 40 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 33 33 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 60 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 0A 00 00 00 00 07 04 06 00 7C 60 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 40 D5 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 CA A3 00 00 35 04 06 00 99 A5 80 FE 9A C9 00 F9 DF 58 41 84 BB 24 [17:45: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 35 38 4F 00 00 00 98 E3 47 00 BA 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 CA A3 00 00 F4 03 04 00 56 81 A7 66 B6 04 01 00 00 EE 60 99 47 33 A4 68 98 [17:45:38]CommunicateWithHost err = 0 [17:45:38]CheckOFDResponse [17:45:38]1017 (14) - 77093643461234 [17:45:38]1041 (16) - 0000000000874958 [17:45:38]1040 (4) - 41930 [17:45:38]1012 (4) - 29.07.2024 11:47 [17:45:38]1206 (1) - 0 [17:45:38]OFD Sender: Remove packet 41930 [17:45:38]ProducePacketName [17:45:38]name=ofd_packets/00041930 [17:45:38]NVStorageDeleteData [17:45:38]*** Cut start [17:45:38]*** Partial cut [17:45:38]*** CUTSNS_PIN = 1 [17:45:38]*** CUTSNS_PIN = 0 [17:45:38]OFD Sender: No OFD packet to send [17:45:38]*** Brake cut motor [17:45:39]Read from MH i2c: 01 [17:45:39]MH_I2C_Read... [17:45:39]*** Stop cut motor [17:45:39]*** Cut end [17:45:39]Read from MH i2c: 01 07 00 [17:45:39]MH_I2C_Read... [17:45:39]Read from MH i2c: 01 07 00 2E 02 00 00 00 00 00 FF 0F 45 [17:45:39]process_action close_receipt done [17:45:39]requested_data is exist [17:45:39]produce_requested_data [17:45:39]requested_item fm.sn is exist - process it [17:45:39]wFMCommunicate request_size=4 [17:45:39]MH_SAM_APDU [17:45:39]CAPDU: 80 11 00 00 [17:45:39]Write to MH i2c: E2 08 00 2F 02 80 11 00 00 00 00 00 00 AB [17:45:39]Write i2c OK [17:45:39]MH_I2C_Read... [17:45:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:45:39]Read from MH i2c: E2 [17:45:39]MH_I2C_Read... [17:45:39]Read from MH i2c: E2 17 00 [17:45:39]MH_I2C_Read... [17:45:39]Read from MH i2c: E2 17 00 2F 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 07 [17:45:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [17:45:39]wFMCommunicate OK [17:45:39]requested_item fd.num is exist - process it [17:45:39]SAM_PROTO_GetFieldsCounters [17:45:39]wFMCommunicate request_size=4 [17:45:39]MH_SAM_APDU [17:45:39]CAPDU: 80 13 00 00 [17:45:39]Write to MH i2c: E2 08 00 30 02 80 13 00 00 00 00 00 00 AE [17:45:39]Write i2c OK [17:45:39]MH_I2C_Read... [17:45:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:45:39]Read from MH i2c: E2 [17:45:39]MH_I2C_Read... [17:45:39]Read from MH i2c: E2 62 00 [17:45:39]MH_I2C_Read... [17:45:39]Read from MH i2c: E2 62 00 30 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 CA A3 00 00 0E 04 04 00 AB 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 56 [17:45: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 CA A3 00 00 0E 04 04 00 AB 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 [17:45:39]wFMCommunicate OK [17:45:39]SAM_PROTO_GetFieldsCounters done [17:45:39]requested_item shift.num is exist - process it [17:45:39]requested_item shift.opened is exist - process it [17:45:39]req_shift_opened [17:45:39]FM_GetShiftState [17:45:39]SAM_PROTO_GetShiftState [17:45:39]wFMCommunicate request_size=4 [17:45:39]MH_SAM_APDU [17:45:39]CAPDU: 80 13 01 00 [17:45:39]Write to MH i2c: E2 08 00 31 02 80 13 01 00 00 00 00 00 B0 [17:45:39]Write i2c OK [17:45:39]MH_I2C_Read... [17:45:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:45:39]Read from MH i2c: E2 [17:45:39]MH_I2C_Read... [17:45:39]Read from MH i2c: E2 0E 00 [17:45:39]MH_I2C_Read... [17:45:39]Read from MH i2c: E2 0E 00 31 02 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 4C [17:45:39]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [17:45:39]wFMCommunicate OK [17:45:39]SAM_PROTO_GetShiftState done [17:45:39]FM_GetShiftState done [17:45:39]req_shift_opened done [17:45:39]requested_item shift.open_date is exist - process it [17:45:39]req_shift_open_date [17:45:39]req_shift_open_date done [17:45:39]produce_requested_data done [17:45:39]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41930,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [17:45:39]process_action_free close_receipt [17:45:39]json_value_free [17:45:39]json_value_free done [17:45:39]process_json_proto returns [17:45:39]Send response to host [17:45:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41930,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [17:45:39]free response buf [17:45:39]execute_script done [17:45:39]execute_script returns [17:45:39]free content buf [17:45:39]Sock 7.Close socket [17:45:39]Sock 7.Thread stoped [17:45:43]OFD Sender: No OFD packet to send [17:45:48]OFD Sender: No OFD packet to send [17:45:53]OFD Sender: No OFD packet to send [17:45:58]OFD Sender: No OFD packet to send [17:46:03]OFD Sender: No OFD packet to send [17:46:08]OFD Sender: No OFD packet to send [17:46:13]OFD Sender: No OFD packet to send [17:46:18]OFD Sender: No OFD packet to send [17:46:23]OFD Sender: No OFD packet to send [17:46:28]OFD Sender: No OFD packet to send [17:46:33]OFD Sender: No OFD packet to send [17:46:38]OFD Sender: No OFD packet to send [17:46:43]OFD Sender: No OFD packet to send [17:46:48]OFD Sender: No OFD packet to send [17:46:53]OFD Sender: No OFD packet to send [17:46:58]OFD Sender: No OFD packet to send [17:47:03]OFD Sender: No OFD packet to send [17:47:08]OFD Sender: No OFD packet to send [17:47:13]OFD Sender: No OFD packet to send [17:47:13]accept exits with 10 [17:47:13]New connection [17:47:13]New thread 3066940772 created [17:47:13]Thread 3067084132 joined [17:47:13]Waiting for new connection... [17:47:13] Sock 10.Parse request [17:47:13]Sock 10.Check first char [17:47:13]Sock 10.First char is OK [17:47:13]request: POST /json_proto HTTP/1.0 [17:47:13]Method: POST [17:47:13]URL: /json_proto [17:47:13]Method is POST - this is cgi request [17:47:13]url: /json_proto [17:47:13]query_string will be loaded in cgi processing [17:47:13]execute_cgi json_proto POST (null) [17:47:13]execute_cgi path=json_proto method=POST [17:47:13]POST find Content-Length [17:47:13]Host: 172.17.43.132:8080 [17:47:13]Content-Length: 617 [17:47:13]Content-Type: application/json [17:47:13] [17:47:13]POST finish read [17:47:13]Found Content-Length = 617 [17:47:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183959", "tax_sys" : 0, "items" : [ { "code": "47803008", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:47:13]execute_script... [17:47:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183959", "tax_sys" : 0, "items" : [ { "code": "47803008", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:47:13]POST & json_proto [17:47:13]process_json_proto [17:47:13]json parsed OK: [17:47:13]protocol is kg_v1.0 [17:47:13]action value=close_receipt [17:47:13]process_action close_receipt [17:47:13]cmd_close_receipt [17:47:13]MH_GetDate [17:47:13]Write to MH i2c: F0 00 00 32 02 23 [17:47:13]Write i2c OK [17:47:13]MH_I2C_Read... [17:47:13]Read from MH i2c: F0 [17:47:13]MH_I2C_Read... [17:47:13]Read from MH i2c: F0 09 00 [17:47:13]MH_I2C_Read... [17:47:13]Read from MH i2c: F0 09 00 32 02 00 A2 D5 A7 66 64 A3 A7 66 C4 [17:47:13]GetLastDocTimeStamp 1722275136 [17:47:13]current date 1722275234 [17:47:13]FM_GetShiftState [17:47:13]SAM_PROTO_GetShiftState [17:47:13]wFMCommunicate request_size=4 [17:47:13]MH_SAM_APDU [17:47:13]CAPDU: 80 13 01 00 [17:47:13]Write to MH i2c: E2 08 00 33 02 80 13 01 00 00 00 00 00 B2 [17:47:13]Write i2c OK [17:47:13]MH_I2C_Read... [17:47:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:14]Read from MH i2c: E2 [17:47:14]MH_I2C_Read... [17:47:14]Read from MH i2c: E2 0E 00 [17:47:14]MH_I2C_Read... [17:47:14]Read from MH i2c: E2 0E 00 33 02 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 4E [17:47:14]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [17:47:14]wFMCommunicate OK [17:47:14]SAM_PROTO_GetShiftState done [17:47:14]FM_GetShiftState done [17:47:14]opened in 1722211496 [17:47:14]opened+sec_in_day 1722297896 [17:47:14]quantity*price = 14000 [17:47:14]sum+1 = 14001 [17:47:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 120 29.07.2024 17:47 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41931 ФПД: 87982747176338 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T174715&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41931&fm=87982747176338&tin=02508201610067®Number=0000000000092626&sum=14000 0 [17:47:15]StoreToDocumentArchive [17:47:15]shift 427 fd 41931 [17:47:15]save to /storage/0427/doc_00041931 [17:47:15]save last doc name /storage/0427/doc_00041931 to /storage/kkm_last_doc_name [17:47:15]save OK [17:47:15]Clear old archive folders... [17:47:15]ProcessDocumentItem done err = 0, tmpTLVsize=269 [17:47:15]tlvbuf is 00D02830 [17:47:15]SAM_PROTO_ClearQueue [17:47:15]wFMCommunicate request_size=4 [17:47:15]MH_SAM_APDU [17:47:15]CAPDU: 80 09 00 00 [17:47:15]Write to MH i2c: E2 08 00 40 02 80 09 00 00 00 00 00 00 B4 [17:47:15]Write i2c OK [17:47:15]MH_I2C_Read... [17:47:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:47:15]Read from MH i2c: E2 [17:47:15]MH_I2C_Read... [17:47:15]Read from MH i2c: E2 03 00 [17:47:15]MH_I2C_Read... [17:47:15]Read from MH i2c: E2 03 00 40 02 00 90 00 B6 [17:47:15]RAPDU: 90 00 [17:47:15]wFMCommunicate OK [17:47:15]SAM_PROTO_ClearQueue done [17:47:15]KKMCreateOFDPacket [17:47:15]OFDProtocolAddRootSTLVToBuf [17:47:15]FM_MakeSignedData [17:47:15]FM_MakeSignedData [17:47:15]SAM_PROTO_SignData [17:47:15]wFMCommunicate request_size=4 [17:47:15]MH_SAM_APDU [17:47:15]CAPDU: 80 0D 01 02 [17:47:15]Write to MH i2c: E2 08 00 41 02 80 0D 01 02 00 00 00 00 BC [17:47:15]Write i2c OK [17:47:15]MH_I2C_Read... [17:47:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:47:15]Read from MH i2c: E2 [17:47:15]MH_I2C_Read... [17:47:15]Read from MH i2c: E2 03 00 [17:47:15]MH_I2C_Read... [17:47:15]Read from MH i2c: E2 03 00 41 02 00 90 00 B7 [17:47:15]RAPDU: 90 00 [17:47:15]wFMCommunicate OK [17:47:15]wFMCommunicate request_size=255 [17:47:15]MH_SAM_APDU [17:47:15]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 A3 D5 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [17:47:15]Write to MH i2c: E2 02 01 42 02 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 A3 D5 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 50 [17:47:15]Write i2c OK [17:47:15]MH_I2C_Read... [17:47:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:15]Read from MH i2c: E2 [17:47:15]MH_I2C_Read... [17:47:15]Read from MH i2c: E2 03 00 [17:47:15]MH_I2C_Read... [17:47:15]Read from MH i2c: E2 03 00 42 02 00 90 00 B8 [17:47:15]RAPDU: 90 00 [17:47:15]wFMCommunicate OK [17:47:15]wFMCommunicate request_size=28 [17:47:15]MH_SAM_APDU [17:47:15]CAPDU: 80 0D 02 02 17 37 34 39 35 38 10 04 04 00 CB A3 00 00 35 04 06 00 50 05 14 64 4D 92 [17:47:15]Write to MH i2c: E2 1F 00 43 02 80 0D 02 02 17 00 37 34 39 35 38 10 04 04 00 CB A3 00 00 35 04 06 00 50 05 14 64 4D 92 00 00 6F [17:47:15]Write i2c OK [17:47:15]MH_I2C_Read... [17:47:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:15]Read from MH i2c: E2 [17:47:15]MH_I2C_Read... [17:47:15]Read from MH i2c: E2 03 00 [17:47:15]MH_I2C_Read... [17:47:15]Read from MH i2c: E2 03 00 43 02 00 90 00 B9 [17:47:15]RAPDU: 90 00 [17:47:15]wFMCommunicate OK [17:47:15]wFMCommunicate request_size=4 [17:47:15]MH_SAM_APDU [17:47:15]CAPDU: 80 0D 03 02 [17:47:15]Write to MH i2c: E2 08 00 44 02 80 0D 03 02 00 00 00 00 C1 [17:47:15]Write i2c OK [17:47:15]MH_I2C_Read... [17:47:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:47:15]Read from MH i2c: E2 [17:47:15]MH_I2C_Read... [17:47:15]Read from MH i2c: E2 0B 00 [17:47:15]MH_I2C_Read... [17:47:15]Read from MH i2c: E2 0B 00 44 02 00 90 69 BB 6A 32 E4 FC 44 90 00 36 [17:47:15]RAPDU: 90 69 BB 6A 32 E4 FC 44 90 00 [17:47:15]wFMCommunicate OK [17:47:15]SAM_PROTO_SignData done [17:47:15]FM_MakeSignedData done [17:47:15]CreateOFDProtocolMessage [17:47:15]wFMCommunicate request_size=4 [17:47:15]MH_SAM_APDU [17:47:15]CAPDU: 80 11 00 00 [17:47:15]Write to MH i2c: E2 08 00 45 02 80 11 00 00 00 00 00 00 C1 [17:47:15]Write i2c OK [17:47:15]MH_I2C_Read... [17:47:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:15]Read from MH i2c: E2 [17:47:15]MH_I2C_Read... [17:47:15]Read from MH i2c: E2 17 00 [17:47:15]MH_I2C_Read... [17:47:15]Read from MH i2c: E2 17 00 45 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 1D [17:47:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [17:47:15]wFMCommunicate OK [17:47:15]CreateOFDProtocolMessage done [17:47:15]OFDSenderStorePacket 41931 [17:47:15]StoreOFDPacket docnum=41931 [17:47:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 21 01 00 00 19 4F 19 01 2B 0C 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 A3 D5 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 CB A3 00 00 35 04 06 00 50 05 14 64 4D 92 90 69 BB 6A 32 E4 FC 44 [17:47:15]CheckFolder [17:47:15]dirname=/storage/ofd_packets [17:47:15]CheckFolder done [17:47:15]ProducePacketName [17:47:15]name=ofd_packets/00041931 [17:47:15]NVStorageSaveData ofd_packets/00041931 [17:47:15]File name is /storage/ofd_packets/00041931 [17:47:15]Write 319 bytes [17:47:15]NVStorageSaveData done [17:47:15]OFDSenderStorePacket done [17:47:15]KKMCreateOFDPacket done [17:47:15]NVStorageSaveData kkm_last_timestamp [17:47:15]File name is /storage/kkm_last_timestamp [17:47:15]Write 4 bytes [17:47:15]NVStorageSaveData done [17:47:15]ExternCall_PrintAddStr [17:47:15]wPrintStart [17:47:15]Write to MH i2c: 01 00 00 46 02 48 [17:47:15]Write i2c OK [17:47:15]MH_I2C_Read... [17:47:15]Read from MH i2c: 01 [17:47:15]MH_I2C_Read... [17:47:15]Read from MH i2c: 01 07 00 [17:47:15]MH_I2C_Read... [17:47:15]Read from MH i2c: 01 07 00 46 02 00 00 00 00 00 FF 0F 5D [17:47:15]RasterBufferAndPrint [17:47:15]line Счет N : (3)183959 [17:47:15]line ИНН: 02508201610067 [17:47:15]line Контрольно-Кассовый Чек [17:47:15]line ПРОДАЖА [17:47:15]line Товар: 47803008 [17:47:15]line Сигареты Winston XS Blue [17:47:15]line 1.000 * 140.00 [17:47:15]line = 140.00 [17:47:15]line НДС 12% НСП 1% [17:47:15]line > о реализуемом товаре [17:47:15]line ИТОГО: 140.00 [17:47:15]line НСП 1% : 1.24 [17:47:15]line НДС 12% : 14.87 [17:47:15]line Наличными: 140.00 [17:47:15]line Безнал.: 0.00 [17:47:15]line Место: АЗС № 97 "Партнер Нефть" [17:47:15]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [17:47:15]line СНО: Общий режим [17:47:15]line Чек 120 29.07.2024 17:47 [17:47:15]line Смена: 427 ФФД: 1.0 [17:47:15]line ЗНМ: 0300000053 [17:47:15]line РНМ: 0000000000092626 [17:47:15]line Версия ККМ: 001 [17:47:15]line ФМ: 0000000000874958 [17:47:15]line ФД: 41931 [17:47:15]line ФПД: 87982747176338 [17:47:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T174715&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41931&fm=87982747176338&tin=02508201610067®Number=0000000000092626&sum=14000 [17:47:16]OFD Sender: Processing packet 41931 [packets to send 57, broken 56] [17:47:16]ProducePacketName [17:47:16]name=ofd_packets/00041931 [17:47:16]OFD Sender: To server: pG, [17:47:16]CommunicateWithHost lk.salyk.kg:30040 [17:47:16]ConnectInit lk.salyk.kg [17:47:16]line 0 [17:47:16]written 0, free lines is 4095 [17:47:16]Write to MH i2c: 01 00 00 6E 02 70 [17:47:16]Write i2c OK [17:47:16]MH_I2C_Read... [17:47:16]Read from MH i2c: 01 [17:47:16]MH_I2C_Read... [17:47:16]Read from MH i2c: 01 07 00 [17:47:16]MH_I2C_Read... [17:47:16]Read from MH i2c: 01 07 00 6E 02 00 00 00 00 00 12 0D 96 [17:47:16]RasterBufferAndPrint [17:47:16]line [17:47:16]line [17:47:16]line [17:47:16]line [17:47:16]line [17:47:16]written 0, free lines is 3352 [17:47:16]MH_Cut [17:47:16]Write to MH i2c: D1 01 00 75 02 01 49 [17:47:16]Write i2c OK [17:47:16]MH_I2C_Read... [17:47:16]Read from MH i2c: D1 [17:47:16]MH_I2C_Read... [17:47:16]Read from MH i2c: D1 01 00 [17:47:16]MH_I2C_Read... [17:47:16]Read from MH i2c: D1 01 00 75 02 00 48 [17:47:16]Write to MH i2c: 01 00 00 76 02 78 [17:47:16]Write i2c OK [17:47:16]MH_I2C_Read... [17:47:17]*** Cut start [17:47:17]*** Partial cut [17:47:17]*** CUTSNS_PIN = 1 [17:47:17]*** CUTSNS_PIN = 0 [17:47:17]*** Brake cut motor [17:47:17]Read from MH i2c: 01 [17:47:17]MH_I2C_Read... [17:47:17]*** Stop cut motor [17:47:17]*** Cut end [17:47:17]Read from MH i2c: 01 07 00 [17:47:17]MH_I2C_Read... [17:47:17]Read from MH i2c: 01 07 00 76 02 00 00 00 00 00 FF 0F 8D [17:47:17]process_action close_receipt done [17:47:17]requested_data is exist [17:47:17]produce_requested_data [17:47:17]requested_item fm.sn is exist - process it [17:47:17]wFMCommunicate request_size=4 [17:47:17]MH_SAM_APDU [17:47:17]CAPDU: 80 11 00 00 [17:47:17]Write to MH i2c: E2 08 00 77 02 80 11 00 00 00 00 00 00 F3 [17:47:17]Write i2c OK [17:47:17]MH_I2C_Read... [17:47:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:17]Read from MH i2c: E2 [17:47:17]MH_I2C_Read... [17:47:17]Read from MH i2c: E2 17 00 [17:47:17]MH_I2C_Read... [17:47:17]Read from MH i2c: E2 17 00 77 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 4F [17:47:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [17:47:17]wFMCommunicate OK [17:47:17]requested_item fd.num is exist - process it [17:47:17]SAM_PROTO_GetFieldsCounters [17:47:17]wFMCommunicate request_size=4 [17:47:17]MH_SAM_APDU [17:47:17]CAPDU: 80 13 00 00 [17:47:17]Write to MH i2c: E2 08 00 78 02 80 13 00 00 00 00 00 00 F6 [17:47:17]Write i2c OK [17:47:17]MH_I2C_Read... [17:47:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:47:18]Read from MH i2c: E2 [17:47:18]MH_I2C_Read... [17:47:18]Read from MH i2c: E2 62 00 [17:47:18]MH_I2C_Read... [17:47:18]Read from MH i2c: E2 62 00 78 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 CB A3 00 00 0E 04 04 00 AB 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 A2 [17:47: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 CB A3 00 00 0E 04 04 00 AB 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 [17:47:18]wFMCommunicate OK [17:47:18]SAM_PROTO_GetFieldsCounters done [17:47:18]requested_item shift.num is exist - process it [17:47:18]requested_item shift.opened is exist - process it [17:47:18]req_shift_opened [17:47:18]FM_GetShiftState [17:47:18]SAM_PROTO_GetShiftState [17:47:18]wFMCommunicate request_size=4 [17:47:18]MH_SAM_APDU [17:47:18]CAPDU: 80 13 01 00 [17:47:18]Write to MH i2c: E2 08 00 79 02 80 13 01 00 00 00 00 00 F8 [17:47:18]Write i2c OK [17:47:18]MH_I2C_Read... [17:47:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:18]Read from MH i2c: E2 [17:47:18]MH_I2C_Read... [17:47:18]Read from MH i2c: E2 0E 00 [17:47:18]MH_I2C_Read... [17:47:18]Read from MH i2c: E2 0E 00 79 02 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 94 [17:47:18]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [17:47:18]wFMCommunicate OK [17:47:18]SAM_PROTO_GetShiftState done [17:47:18]FM_GetShiftState done [17:47:18]req_shift_opened done [17:47:18]requested_item shift.open_date is exist - process it [17:47:18]req_shift_open_date [17:47:18]req_shift_open_date done [17:47:18]produce_requested_data done [17:47:18]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41931,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [17:47:18]process_action_free close_receipt [17:47:18]json_value_free [17:47:18]json_value_free done [17:47:18]process_json_proto returns [17:47:18]Send response to host [17:47:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41931,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [17:47:18]free response buf [17:47:18]execute_script done [17:47:18]execute_script returns [17:47:18]free content buf [17:47:18]Sock 10.Close socket [17:47:18]Sock 10.Thread stoped [17:47:19]Connected sock=11 [17:47: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 35 38 21 01 00 00 19 4F 19 01 2B 0C 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 A3 D5 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 CB A3 00 00 35 04 06 00 50 05 14 64 4D 92 90 69 BB 6A 32 E4 FC 44 [17:47: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 35 38 4F 00 00 00 21 E4 47 00 28 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 35 38 10 04 04 00 CB A3 00 00 F4 03 04 00 BE 81 A7 66 B6 04 01 00 00 49 57 03 6D 7D BC AA D2 [17:47:22]CommunicateWithHost err = 0 [17:47:22]CheckOFDResponse [17:47:22]1017 (14) - 77093643461234 [17:47:22]1041 (16) - 0000000000874958 [17:47:22]1040 (4) - 41931 [17:47:22]1012 (4) - 29.07.2024 11:49 [17:47:22]1206 (1) - 0 [17:47:22]OFD Sender: Remove packet 41931 [17:47:22]ProducePacketName [17:47:22]name=ofd_packets/00041931 [17:47:22]NVStorageDeleteData [17:47:23]OFD Sender: No OFD packet to send [17:47:28]OFD Sender: No OFD packet to send [17:47:33]OFD Sender: No OFD packet to send [17:47:38]OFD Sender: No OFD packet to send [17:47:38]recv_with_timeout no data received [17:47:43]OFD Sender: No OFD packet to send [17:47:48]OFD Sender: No OFD packet to send [17:47:50]recv_with_timeout no data received [17:47:53]OFD Sender: No OFD packet to send [17:47:58]OFD Sender: No OFD packet to send [17:48:01]recv_with_timeout no data received [17:48:03]OFD Sender: No OFD packet to send [17:48:08]OFD Sender: No OFD packet to send [17:48:13]OFD Sender: No OFD packet to send [17:48:18]OFD Sender: No OFD packet to send [17:48:23]OFD Sender: No OFD packet to send [17:48:28]OFD Sender: No OFD packet to send [17:48:33]OFD Sender: No OFD packet to send [17:48:38]OFD Sender: No OFD packet to send [17:48:43]OFD Sender: No OFD packet to send [17:48:48]OFD Sender: No OFD packet to send [17:48:53]OFD Sender: No OFD packet to send [17:48:58]OFD Sender: No OFD packet to send [17:49:03]OFD Sender: No OFD packet to send [17:49:08]OFD Sender: No OFD packet to send [17:49:13]OFD Sender: No OFD packet to send [17:49:18]OFD Sender: No OFD packet to send [17:49:23]OFD Sender: No OFD packet to send [17:49:28]OFD Sender: No OFD packet to send [17:49:33]OFD Sender: No OFD packet to send [17:49:38]OFD Sender: No OFD packet to send [17:49:43]OFD Sender: No OFD packet to send [17:49:48]OFD Sender: No OFD packet to send [17:50:38]OFD Sender: No OFD packet to send [17:50:43]OFD Sender: No OFD packet to send [17:50:48]OFD Sender: No OFD packet to send [17:50:53]OFD Sender: No OFD packet to send [17:50:58]OFD Sender: No OFD packet to send [17:51:03]OFD Sender: No OFD packet to send [17:51:08]OFD Sender: No OFD packet to send [17:51:13]OFD Sender: No OFD packet to send [17:51:18]OFD Sender: No OFD packet to send [17:51:23]OFD Sender: No OFD packet to send [17:51:28]OFD Sender: No OFD packet to send [17:51:33]OFD Sender: No OFD packet to send [17:51:38]OFD Sender: No OFD packet to send [17:51:41]ConnectInit Can't connect to host [17:51:43]OFD Sender: No OFD packet to send [17:52:30]ConnectInit Can't connect to host [17:52:33]OFD Sender: No OFD packet to send [17:52:38]OFD Sender: No OFD packet to send [17:52:43]OFD Sender: No OFD packet to send [17:52:47]accept exits with 9 [17:52:47]New connection [17:52:47]New thread 3067084132 created [17:52:47]Thread 3066940772 joined [17:52:47]Waiting for new connection... [17:52:47] Sock 9.Parse request [17:52:47]Sock 9.Check first char [17:52:47]Sock 9.First char is OK [17:52:47]request: POST /json_proto HTTP/1.0 [17:52:47]Method: POST [17:52:47]URL: /json_proto [17:52:47]Method is POST - this is cgi request [17:52:47]url: /json_proto [17:52:47]query_string will be loaded in cgi processing [17:52:47]execute_cgi json_proto POST (null) [17:52:47]execute_cgi path=json_proto method=POST [17:52:47]POST find Content-Length [17:52:47]Host: 172.17.43.132:8080 [17:52:47]Content-Length: 1757 [17:52:47]Content-Type: application/json [17:52:47] [17:52:47]POST finish read [17:52:47]Found Content-Length = 1757 [17:52:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183960", "tax_sys" : 0, "items" : [ { "code": "4860019001414", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,75\u043B \u041F\u042D\u0422", "price" : 127.00, "quantity" : 5.000, "sum" : 635.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600338000183", "name": "\u0421\u043E\u043A \u0424\u0440\u0443\u0442\u043E \u041D\u042F\u041D\u042F \u044F\u0431\u043B\u043E\u043A\u043E \u043E\u0441\u0432\u0435\u0442 0,2\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48741200", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Silver", "price" : 140.00, "quantity" : 2.000, "sum" : 280.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "42203100", "name": "\u0416\u0435\u0432 Orbit \u0431\u0430\u043D\u0430\u043D-\u043A\u043B\u0443\u0431\u043D\u0438\u043A\u0430", "price" : 45.00, "quantity" : 2.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1074.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:52:47]execute_script... [17:52: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 : (3)183960", "tax_sys" : 0, "items" : [ { "code": "4860019001414", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,75\u043B \u041F\u042D\u0422", "price" : 127.00, "quantity" : 5.000, "sum" : 635.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600338000183", "name": "\u0421\u043E\u043A \u0424\u0440\u0443\u0442\u043E \u041D\u042F\u041D\u042F \u044F\u0431\u043B\u043E\u043A\u043E \u043E\u0441\u0432\u0435\u0442 0,2\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48741200", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Silver", "price" : 140.00, "quantity" : 2.000, "sum" : 280.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "42203100", "name": "\u0416\u0435\u0432 Orbit \u0431\u0430\u043D\u0430\u043D-\u043A\u043B\u0443\u0431\u043D\u0438\u043A\u0430", "price" : 45.00, "quantity" : 2.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1074.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:52:47]POST & json_proto [17:52:47]process_json_proto [17:52:47]json parsed OK: [17:52:47]protocol is kg_v1.0 [17:52:47]action value=close_receipt [17:52:47]process_action close_receipt [17:52:47]cmd_close_receipt [17:52:47]MH_GetDate [17:52:47]Write to MH i2c: F0 00 00 7A 02 6B [17:52:47]Write i2c OK [17:52:47]MH_I2C_Read... [17:52:47]Read from MH i2c: F0 [17:52:47]MH_I2C_Read... [17:52:47]Read from MH i2c: F0 09 00 [17:52:47]MH_I2C_Read... [17:52:47]Read from MH i2c: F0 09 00 7A 02 00 F0 D6 A7 66 64 A3 A7 66 5B [17:52:47]GetLastDocTimeStamp 1722275235 [17:52:47]current date 1722275568 [17:52:47]FM_GetShiftState [17:52:47]SAM_PROTO_GetShiftState [17:52:47]wFMCommunicate request_size=4 [17:52:47]MH_SAM_APDU [17:52:47]CAPDU: 80 13 01 00 [17:52:47]Write to MH i2c: E2 08 00 7B 02 80 13 01 00 00 00 00 00 FA [17:52:47]Write i2c OK [17:52:47]MH_I2C_Read... [17:52:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:52:48]Read from MH i2c: E2 [17:52:48]MH_I2C_Read... [17:52:48]Read from MH i2c: E2 0E 00 [17:52:48]MH_I2C_Read... [17:52:48]Read from MH i2c: E2 0E 00 7B 02 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 96 [17:52:48]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [17:52:48]wFMCommunicate OK [17:52:48]SAM_PROTO_GetShiftState done [17:52:48]FM_GetShiftState done [17:52:48]opened in 1722211496 [17:52:48]opened+sec_in_day 1722297896 [17:52:48]quantity*price = 63500 [17:52:48]sum+1 = 63501 [17:52:48]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре [17:52:50]line Товар: 2000031750019 [17:52:50]line Пакет Партнер Нефть [17:52:50]line 1.000 * 4.00 [17:52:50]line = 4.00 [17:52:50]line НДС 12% НСП 1% [17:52:50]line > о реализуемом товаре [17:52:50]line Товар: 4600338000183 [17:52:50]line Сок Фруто НЯНЯ яблоко освет 0,2л [17:52:50]line 1.000 * 65.00 [17:52:50]line = 65.00 [17:52:50]line НДС 12% НСП 1% [17:52:50]line > о реализуемом товаре [17:52:50]line Товар: 48741200 [17:52:50]line Сигареты Winston Silver [17:52:50]line 2.000 * 140.00 [17:52:50]line = 280.00 [17:52:50]line НДС 12% НСП 1% [17:52:50]line > о реализуемом товаре [17:52:50]line Товар: 42203100 [17:52:50]line Жев Orbit банан-клубника [17:52:50]line 2.000 * 45.00 [17:52:50]line = 90.00 [17:52:50]line НДС 12% НСП 1% [17:52:50]line > о реализуемом товаре [17:52:50]line ИТОГО: 1074.00 [17:52:50]line НСП 1% : 9.50 [17:52:50]line НДС 12% : 114.04 [17:52:50]line Наличными: 1074.00 [17:52:50]line Безнал.: 0.00 [17:52:50]line Место: АЗС № 97 "Партнер Нефть" [17:52:50]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [17:52:50]line СНО: Общий режим [17:52:50]line Чек 121 29.07.2024 17:52 [17:52:50]line Смена: 427 ФФД: 1.0 [17:52:50]line ЗНМ: 0300000053 [17:52:50]line РНМ: 0000000000092626 [17:52:50]line Версия ККМ: 001 [17:52:50]line ФМ: 0000000000874958 [17:52:50]line ФД: 41932 [17:52:50]line ФПД: 241282993556654 [17:52:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T175249&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41932&fm=241282993556654&tin=02508201610067®Number=0000000000092626&sum=107400 [17:52:50]line 0 [17:52:50]written 0, free lines is 4095 [17:52:50]OFD Sender: Processing packet 41932 [packets to send 57, broken 56] [17:52:50]ProducePacketName [17:52:50]name=ofd_packets/00041932 [17:52:50]OFD Sender: To server: pG, [17:52:50]CommunicateWithHost lk.salyk.kg:30040 [17:52:50]ConnectInit lk.salyk.kg [17:52:51]Write to MH i2c: 01 00 00 D0 02 D2 [17:52:51]Write i2c OK [17:52:51]MH_I2C_Read... [17:52:51]Read from MH i2c: 01 [17:52:51]MH_I2C_Read... [17:52:51]Read from MH i2c: 01 07 00 [17:52:51]MH_I2C_Read... [17:52:51]Read from MH i2c: 01 07 00 D0 02 00 00 00 00 00 E8 0B CC [17:52:51]RasterBufferAndPrint [17:52:51]line [17:52:51]line [17:52:51]line [17:52:51]line [17:52:51]line [17:52:51]written 0, free lines is 3058 [17:52:51]MH_Cut [17:52:51]Write to MH i2c: D1 01 00 D7 02 01 AB [17:52:51]Write i2c OK [17:52:51]MH_I2C_Read... [17:52:51]Read from MH i2c: D1 [17:52:51]MH_I2C_Read... [17:52:51]Read from MH i2c: D1 01 00 [17:52:51]MH_I2C_Read... [17:52:51]Read from MH i2c: D1 01 00 D7 02 00 AA [17:52:51]Write to MH i2c: 01 00 00 D8 02 DA [17:52:51]Write i2c OK [17:52:51]MH_I2C_Read... [17:52:52]*** Cut start [17:52:52]*** Partial cut [17:52:52]*** CUTSNS_PIN = 1 [17:52:52]*** CUTSNS_PIN = 0 [17:52:52]*** Brake cut motor [17:52:52]Read from MH i2c: 01 [17:52:52]MH_I2C_Read... [17:52:52]*** Stop cut motor [17:52:52]*** Cut end [17:52:52]Read from MH i2c: 01 07 00 [17:52:52]MH_I2C_Read... [17:52:52]Read from MH i2c: 01 07 00 D8 02 00 00 00 00 00 FF 0F EF [17:52:52]process_action close_receipt done [17:52:52]requested_data is exist [17:52:52]produce_requested_data [17:52:52]requested_item fm.sn is exist - process it [17:52:52]wFMCommunicate request_size=4 [17:52:52]MH_SAM_APDU [17:52:52]CAPDU: 80 11 00 00 [17:52:52]Write to MH i2c: E2 08 00 D9 02 80 11 00 00 00 00 00 00 55 [17:52:52]Write i2c OK [17:52:52]MH_I2C_Read... [17:52:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:52:52]Read from MH i2c: E2 [17:52:52]MH_I2C_Read... [17:52:52]Read from MH i2c: E2 17 00 [17:52:52]MH_I2C_Read... [17:52:52]Read from MH i2c: E2 17 00 D9 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 B1 [17:52:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [17:52:52]wFMCommunicate OK [17:52:52]requested_item fd.num is exist - process it [17:52:52]SAM_PROTO_GetFieldsCounters [17:52:52]wFMCommunicate request_size=4 [17:52:52]MH_SAM_APDU [17:52:52]CAPDU: 80 13 00 00 [17:52:52]Write to MH i2c: E2 08 00 DA 02 80 13 00 00 00 00 00 00 58 [17:52:52]Write i2c OK [17:52:52]MH_I2C_Read... [17:52:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:52:53]Read from MH i2c: E2 [17:52:53]MH_I2C_Read... [17:52:53]Read from MH i2c: E2 62 00 [17:52:53]MH_I2C_Read... [17:52:53]Read from MH i2c: E2 62 00 DA 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 CC A3 00 00 0E 04 04 00 AB 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 08 [17: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 CC A3 00 00 0E 04 04 00 AB 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 [17:52:53]wFMCommunicate OK [17:52:53]SAM_PROTO_GetFieldsCounters done [17:52:53]requested_item shift.num is exist - process it [17:52:53]requested_item shift.opened is exist - process it [17:52:53]req_shift_opened [17:52:53]FM_GetShiftState [17:52:53]SAM_PROTO_GetShiftState [17:52:53]wFMCommunicate request_size=4 [17:52:53]MH_SAM_APDU [17:52:53]CAPDU: 80 13 01 00 [17:52:53]Write to MH i2c: E2 08 00 DB 02 80 13 01 00 00 00 00 00 5A [17:52:53]Write i2c OK [17:52:53]MH_I2C_Read... [17:52:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:52:53]Read from MH i2c: E2 [17:52:53]MH_I2C_Read... [17:52:53]Read from MH i2c: E2 0E 00 [17:52:53]MH_I2C_Read... [17:52:53]Read from MH i2c: E2 0E 00 DB 02 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 F6 [17:52:53]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [17:52:53]wFMCommunicate OK [17:52:53]SAM_PROTO_GetShiftState done [17:52:53]FM_GetShiftState done [17:52:53]req_shift_opened done [17:52:53]requested_item shift.open_date is exist - process it [17:52:53]req_shift_open_date [17:52:53]req_shift_open_date done [17:52:53]produce_requested_data done [17:52:53]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41932,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [17:52:53]process_action_free close_receipt [17:52:53]json_value_free [17:52:53]json_value_free done [17:52:53]process_json_proto returns [17:52:53]Send response to host [17:52:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41932,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [17:52:53]free response buf [17:52:53]execute_script done [17:52:53]execute_script returns [17:52:53]free content buf [17:52:53]Sock 9.Close socket [17:52:53]Sock 9.Thread stoped [17:52:54]Connected sock=11 [17:52: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 35 38 E4 02 00 00 55 A6 DC 02 1B 1A 5A 03 01 00 03 00 D0 02 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 34 31 34 06 04 25 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 37 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 9C 31 00 00 00 00 13 04 06 00 0C F8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 30 31 38 33 06 04 38 00 D0 A1 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 BE D1 81 D0 B2 D0 B5 D1 82 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 08 00 34 38 37 34 31 32 30 30 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 08 00 34 32 32 30 33 31 30 30 06 04 28 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B1 D0 B0 D0 BD D0 B0 D0 BD 2D D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 A3 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 2C 00 00 00 00 07 04 06 00 88 A3 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 F1 D6 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 CC A3 00 00 35 04 06 00 DB 72 13 1F 0C AE AA B8 40 63 BF FF 29 97 [17:52: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 35 38 4F 00 00 00 38 23 47 00 A9 94 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 CC A3 00 00 F4 03 04 00 0C 83 A7 66 B6 04 01 00 00 B1 47 8F B2 8E 04 86 27 [17:52:56]CommunicateWithHost err = 0 [17:52:56]CheckOFDResponse [17:52:56]1017 (14) - 77093643461234 [17:52:56]1041 (16) - 0000000000874958 [17:52:56]1040 (4) - 41932 [17:52:56]1012 (4) - 29.07.2024 11:54 [17:52:56]1206 (1) - 0 [17:52:56]OFD Sender: Remove packet 41932 [17:52:56]ProducePacketName [17:52:56]name=ofd_packets/00041932 [17:52:56]NVStorageDeleteData [17:52:57]OFD Sender: No OFD packet to send [17:53:02]OFD Sender: No OFD packet to send [17:53:06]recv_with_timeout no data received [17:53:07]OFD Sender: No OFD packet to send [17:53:12]OFD Sender: No OFD packet to send [17:53:17]OFD Sender: No OFD packet to send [17:53:19]recv_with_timeout no data received [17:53:22]OFD Sender: No OFD packet to send [17:53:27]OFD Sender: No OFD packet to send [17:53:30]recv_with_timeout no data received [17:53:32]OFD Sender: No OFD packet to send [17:53:37]OFD Sender: No OFD packet to send [17:53:42]OFD Sender: No OFD packet to send [17:53:44]recv_with_timeout no data received [17:53:47]OFD Sender: No OFD packet to send [17:53:52]OFD Sender: No OFD packet to send [17:53:57]OFD Sender: No OFD packet to send [17:54:02]OFD Sender: No OFD packet to send [17:54:07]OFD Sender: No OFD packet to send [17:54:12]OFD Sender: No OFD packet to send [17:54:17]OFD Sender: No OFD packet to send [17:54:22]OFD Sender: No OFD packet to send [17:54:27]OFD Sender: No OFD packet to send [17:54:32]OFD Sender: No OFD packet to send [17:54:37]OFD Sender: No OFD packet to send [17:54:42]OFD Sender: No OFD packet to send [17:54:47]OFD Sender: No OFD packet to send [17:54:52]OFD Sender: No OFD packet to send [17:54:57]OFD Sender: No OFD packet to send [17:55:02]OFD Sender: No OFD packet to send [17:55:07]OFD Sender: No OFD packet to send [17:55:12]OFD Sender: No OFD packet to send [17:55:17]OFD Sender: No OFD packet to send [17:55:22]OFD Sender: No OFD packet to send [17:55:27]OFD Sender: No OFD packet to send [17:55:32]OFD Sender: No OFD packet to send [17:55:36]recv_with_timeout no data received [17:55:37]OFD Sender: No OFD packet to send [17:55:42]OFD Sender: No OFD packet to send [17:55:47]OFD Sender: No OFD packet to send [17:55:52]OFD Sender: No OFD packet to send [17:55:57]OFD Sender: No OFD packet to send [17:56:02]OFD Sender: No OFD packet to send [17:56:07]OFD Sender: No OFD packet to send [17:56:12]OFD Sender: No OFD packet to send [17:56:17]OFD Sender: No OFD packet to send [17:56:22]OFD Sender: No OFD packet to send [17:56:27]recv_with_timeout no data received [17:56:27]OFD Sender: No OFD packet to send [17:56:32]OFD Sender: No OFD packet to send [17:56:37]OFD Sender: No OFD packet to send [17:56:42]OFD Sender: No OFD packet to send [17:56:47]OFD Sender: No OFD packet to send [17:56:51]recv_with_timeout no data received [17:56:52]OFD Sender: No OFD packet to send [17:56:57]OFD Sender: No OFD packet to send [17:57:02]OFD Sender: No OFD packet to send [17:57:07]OFD Sender: No OFD packet to send [17:57:12]OFD Sender: No OFD packet to send [17:57:17]OFD Sender: No OFD packet to send [17:57:22]OFD Sender: No OFD packet to send [17:57:22]recv_with_timeout no data received [17:57:27]OFD Sender: No OFD packet to send [17:57:32]OFD Sender: No OFD packet to send [17:57:35]recv_with_timeout no data received [17:57:37]OFD Sender: No OFD packet to send [17:57:42]OFD Sender: No OFD packet to send [17:57:47]OFD Sender: No OFD packet to send [17:57:52]OFD Sender: No OFD packet to send [17:57:57]OFD Sender: No OFD packet to send [17:58:00]recv_with_timeout no data received [17:58:02]OFD Sender: No OFD packet to send [17:58:07]OFD Sender: No OFD packet to send [17:58:12]OFD Sender: No OFD packet to send [17:58:17]OFD Sender: No OFD packet to send [17:58:22]OFD Sender: No OFD packet to send [17:52:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [17:52:49]wFMCommunicate OK [17:52:49]Счет N : (3)183960 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА Товар: 4860019001414 Вода Боржоми 0,75л ПЭТ 5.000 * 127.00 = 635.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000031750019 Пакет Партнер Нефть 1.000 * 4.00 = 4.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4600338000183 Сок Фруто НЯНЯ яблоко освет 0,2л 1.000 * 65.00 = 65.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48741200 Сигареты Winston Silver 2.000 * 140.00 = 280.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 42203100 Жев Orbit банан-клубника 2.000 * 45.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 1074.00 НСП 1% : 9.50 НДС 12% : 114.04 Наличными: 1074.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 121 29.07.2024 17:52 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41932 ФПД: 241282993556654 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T175249&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41932&fm=241282993556654&tin=02508201610067®Number=0000000000092626&sum=107400 0 [17:52:49]StoreToDocumentArchive [17:52:49]shift 427 fd 41932 [17:52:49]save to /storage/0427/doc_00041932 [17:52:49]save last doc name /storage/0427/doc_00041932 to /storage/kkm_last_doc_name [17:52:49]save OK [17:52:49]Clear old archive folders... [17:52:49]ProcessDocumentItem done err = 0, tmpTLVsize=720 [17:52:49]tlvbuf is 00E19290 [17:52:49]SAM_PROTO_ClearQueue [17:52:49]wFMCommunicate request_size=4 [17:52:49]MH_SAM_APDU [17:52:49]CAPDU: 80 09 00 00 [17:52:49]Write to MH i2c: E2 08 00 88 02 80 09 00 00 00 00 00 00 FC [17:52:49]Write i2c OK [17:52:49]MH_I2C_Read... [17:52:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:52:49]Read from MH i2c: E2 [17:52:49]MH_I2C_Read... [17:52:49]Read from MH i2c: E2 03 00 [17:52:49]MH_I2C_Read... [17:52:49]Read from MH i2c: E2 03 00 88 02 00 90 00 FE [17:52:49]RAPDU: 90 00 [17:52:49]wFMCommunicate OK [17:52:49]SAM_PROTO_ClearQueue done [17:52:49]KKMCreateOFDPacket [17:52:49]OFDProtocolAddRootSTLVToBuf [17:52:49]FM_MakeSignedData [17:52:49]FM_MakeSignedData [17:52:49]SAM_PROTO_SignData [17:52:49]wFMCommunicate request_size=4 [17:52:49]MH_SAM_APDU [17:52:49]CAPDU: 80 0D 01 02 [17:52:49]Write to MH i2c: E2 08 00 89 02 80 0D 01 02 00 00 00 00 04 [17:52:49]Write i2c OK [17:52:49]MH_I2C_Read... [17:52:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:52:49]Read from MH i2c: E2 [17:52:49]MH_I2C_Read... [17:52:49]Read from MH i2c: E2 03 00 [17:52:49]MH_I2C_Read... [17:52:49]Read from MH i2c: E2 03 00 89 02 00 90 00 FF [17:52:49]RAPDU: 90 00 [17:52:49]wFMCommunicate OK [17:52:49]wFMCommunicate request_size=255 [17:52:49]MH_SAM_APDU [17:52:49]CAPDU: 80 0D 02 02 FA 03 00 D0 02 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 34 31 34 06 04 25 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 37 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 9C 31 00 00 00 00 13 04 06 00 0C F8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 30 31 38 33 06 04 38 [17:52:49]Write to MH i2c: E2 02 01 8A 02 80 0D 02 02 FA 00 03 00 D0 02 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 34 31 34 06 04 25 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 37 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 9C 31 00 00 00 00 13 04 06 00 0C F8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 30 31 38 33 06 04 38 00 00 7E [17:52:49]Write i2c OK [17:52:49]MH_I2C_Read... [17:52:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:52:49]Read from MH i2c: E2 [17:52:49]MH_I2C_Read... [17:52:49]Read from MH i2c: E2 03 00 [17:52:49]MH_I2C_Read... [17:52:49]Read from MH i2c: E2 03 00 8A 02 00 90 00 00 [17:52:49]RAPDU: 90 00 [17:52:49]wFMCommunicate OK [17:52:49]wFMCommunicate request_size=255 [17:52:49]MH_SAM_APDU [17:52:49]CAPDU: 80 0D 02 02 FA 00 D0 A1 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 BE D1 81 D0 B2 D0 B5 D1 82 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 08 00 34 38 37 34 31 32 30 30 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 08 00 34 32 32 30 33 31 30 30 06 04 28 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B1 D0 B0 D0 BD D0 B0 D0 BD 2D D0 BA D0 BB [17:52:49]Write to MH i2c: E2 02 01 8B 02 80 0D 02 02 FA 00 00 D0 A1 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 BE D1 81 D0 B2 D0 B5 D1 82 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 08 00 34 38 37 34 31 32 30 30 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 08 00 34 32 32 30 33 31 30 30 06 04 28 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B1 D0 B0 D0 BD D0 B0 D0 BD 2D D0 BA D0 BB 00 00 7B [17:52:49]Write i2c OK [17:52:49]MH_I2C_Read... [17:52:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:52:49]Read from MH i2c: E2 [17:52:49]MH_I2C_Read... [17:52:49]Read from MH i2c: E2 03 00 [17:52:49]MH_I2C_Read... [17:52:49]Read from MH i2c: E2 03 00 8B 02 00 90 00 01 [17:52:49]RAPDU: 90 00 [17:52:49]wFMCommunicate OK [17:52:49]wFMCommunicate request_size=229 [17:52:49]MH_SAM_APDU [17:52:49]CAPDU: 80 0D 02 02 E0 D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 A3 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 2C 00 00 00 00 07 04 06 00 88 A3 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 F1 D6 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 CC A3 00 00 35 04 06 00 DB 72 13 1F 0C AE [17:52:49]Write to MH i2c: E2 E8 00 8C 02 80 0D 02 02 E0 00 D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 A3 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 2C 00 00 00 00 07 04 06 00 88 A3 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 F1 D6 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 CC A3 00 00 35 04 06 00 DB 72 13 1F 0C AE 00 00 57 [17:52:49]Write i2c OK [17:52:49]MH_I2C_Read... [17:52:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:52:50]Read from MH i2c: E2 [17:52:50]MH_I2C_Read... [17:52:50]Read from MH i2c: E2 03 00 [17:52:50]MH_I2C_Read... [17:52:50]Read from MH i2c: E2 03 00 8C 02 00 90 00 02 [17:52:50]RAPDU: 90 00 [17:52:50]wFMCommunicate OK [17:52:50]wFMCommunicate request_size=4 [17:52:50]MH_SAM_APDU [17:52:50]CAPDU: 80 0D 03 02 [17:52:50]Write to MH i2c: E2 08 [17:58:27]OFD Sender: No OFD packet to send [17:58:32]OFD Sender: No OFD packet to send [17:58:37]OFD Sender: No OFD packet to send [17:58:42]OFD Sender: No OFD packet to send [17:58:47]OFD Sender: No OFD packet to send [17:58:52]OFD Sender: No OFD packet to send [17:58:57]OFD Sender: No OFD packet to send [17:59:02]OFD Sender: No OFD packet to send [17:59:07]OFD Sender: No OFD packet to send [17:59:12]OFD Sender: No OFD packet to send [17:59:17]OFD Sender: No OFD packet to send [17:59:22]OFD Sender: No OFD packet to send [17:59:27]OFD Sender: No OFD packet to send [17:59:32]OFD Sender: No OFD packet to send [17:59:37]OFD Sender: No OFD packet to send [17:59:42]OFD Sender: No OFD packet to send [17:59:47]OFD Sender: No OFD packet to send [17:59:52]OFD Sender: No OFD packet to send [17:59:57]OFD Sender: No OFD packet to send [18:00:02]OFD Sender: No OFD packet to send [18:00:07]OFD Sender: No OFD packet to send [18:00:12]OFD Sender: No OFD packet to send [18:00:17]OFD Sender: No OFD packet to send [18:00:22]OFD Sender: No OFD packet to send [18:00:27]OFD Sender: No OFD packet to send [18:00:32]OFD Sender: No OFD packet to send [18:00:37]OFD Sender: No OFD packet to send [18:00:42]OFD Sender: No OFD packet to send [18:00:47]OFD Sender: No OFD packet to send [18:00:52]OFD Sender: No OFD packet to send [18:00:57]OFD Sender: No OFD packet to send [18:01:02]OFD Sender: No OFD packet to send [18:01:07]OFD Sender: No OFD packet to send [18:01:12]OFD Sender: No OFD packet to send [18:01:17]OFD Sender: No OFD packet to send [18:01:22]OFD Sender: No OFD packet to send [18:01:26]accept exits with 10 [18:01:26]New connection [18:01:26]New thread 3066940772 created [18:01:26]Thread 3067084132 joined [18:01:26]Waiting for new connection... [18:01:26] Sock 10.Parse request [18:01:26]Sock 10.Check first char [18:01:26]Sock 10.First char is OK [18:01:26]request: POST /json_proto HTTP/1.0 [18:01:26]Method: POST [18:01:26]URL: /json_proto [18:01:26]Method is POST - this is cgi request [18:01:26]url: /json_proto [18:01:26]query_string will be loaded in cgi processing [18:01:26]execute_cgi json_proto POST (null) [18:01:26]execute_cgi path=json_proto method=POST [18:01:26]POST find Content-Length [18:01:26]Host: 172.17.43.132:8080 [18:01:26]Content-Length: 649 [18:01:26]Content-Type: application/json [18:01:26] [18:01:26]POST finish read [18:01:26]Found Content-Length = 649 [18:01:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183962", "tax_sys" : 0, "items" : [ { "code": "8901086040008", "name": "\u0416\u0438\u0434/\u0441\u0442 \u041F\u041D \u043B\u0435\u0442\u043D\u044F\u044F 4,5\u043B", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:01:26]execute_script... [18:01:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183962", "tax_sys" : 0, "items" : [ { "code": "8901086040008", "name": "\u0416\u0438\u0434/\u0441\u0442 \u041F\u041D \u043B\u0435\u0442\u043D\u044F\u044F 4,5\u043B", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:01:26]POST & json_proto [18:01:26]process_json_proto [18:01:26]json parsed OK: [18:01:26]protocol is kg_v1.0 [18:01:26]action value=close_receipt [18:01:26]process_action close_receipt [18:01:26]cmd_close_receipt [18:01:26]MH_GetDate [18:01:26]Write to MH i2c: F0 00 00 DC 02 CD [18:01:26]Write i2c OK [18:01:26]MH_I2C_Read... [18:01:26]Read from MH i2c: F0 [18:01:26]MH_I2C_Read... [18:01:26]Read from MH i2c: F0 09 00 [18:01:26]MH_I2C_Read... [18:01:26]Read from MH i2c: F0 09 00 DC 02 00 F7 D8 A7 66 64 A3 A7 66 C6 [18:01:26]GetLastDocTimeStamp 1722275569 [18:01:26]current date 1722276087 [18:01:26]FM_GetShiftState [18:01:26]SAM_PROTO_GetShiftState [18:01:26]wFMCommunicate request_size=4 [18:01:26]MH_SAM_APDU [18:01:26]CAPDU: 80 13 01 00 [18:01:26]Write to MH i2c: E2 08 00 DD 02 80 13 01 00 00 00 00 00 5C [18:01:26]Write i2c OK [18:01:26]MH_I2C_Read... [18:01:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:01:26]Read from MH i2c: E2 [18:01:26]MH_I2C_Read... [18:01:26]Read from MH i2c: E2 0E 00 [18:01:26]MH_I2C_Read... [18:01:26]Read from MH i2c: E2 0E 00 DD 02 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 F8 [18:01:26]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [18:01:26]wFMCommunicate OK [18:01:26]SAM_PROTO_GetShiftState done [18:01:26]FM_GetShiftState done [18:01:26]opened in 1722211496 [18:01:26]opened+sec_in_day 1722297896 [18:01:26]quantity*price = 17000 [18:01:26]sum+1 = 17001 [18:01:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 170.00 НСП 1% : 1.50 НДС 12% : 18.05 Наличными: 170.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 122 29.07.2024 18:01 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41933 ФПД: 205031194308344 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T180127&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41933&fm=205031194308344&tin=02508201610067®Number=0000000000092626&sum=17000 0 [18:01:27]StoreToDocumentArchive [18:01:27]shift 427 fd 41933 [18:01:27]save to /storage/0427/doc_00041933 [18:01:27]save last doc name /storage/0427/doc_00041933 to /storage/kkm_last_doc_name [18:01:27]save OK [18:01:27]Clear old archive folders... [18:01:27]ProcessDocumentItem done err = 0, tmpTLVsize=277 [18:01:27]tlvbuf is 00D07670 [18:01:27]SAM_PROTO_ClearQueue [18:01:27]wFMCommunicate request_size=4 [18:01:27]MH_SAM_APDU [18:01:27]CAPDU: 80 09 00 00 [18:01:27]Write to MH i2c: E2 08 00 EA 02 80 09 00 00 00 00 00 00 5E [18:01:27]Write i2c OK [18:01:27]MH_I2C_Read... [18:01:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:01:27]Read from MH i2c: E2 [18:01:27]MH_I2C_Read... [18:01:27]Read from MH i2c: E2 03 00 [18:01:27]MH_I2C_Read... [18:01:27]Read from MH i2c: E2 03 00 EA 02 00 90 00 60 [18:01:27]RAPDU: 90 00 [18:01:27]wFMCommunicate OK [18:01:27]SAM_PROTO_ClearQueue done [18:01:27]KKMCreateOFDPacket [18:01:27]OFDProtocolAddRootSTLVToBuf [18:01:27]FM_MakeSignedData [18:01:27]FM_MakeSignedData [18:01:27]SAM_PROTO_SignData [18:01:27]wFMCommunicate request_size=4 [18:01:27]MH_SAM_APDU [18:01:27]CAPDU: 80 0D 01 02 [18:01:27]Write to MH i2c: E2 08 00 EB 02 80 0D 01 02 00 00 00 00 66 [18:01:27]Write i2c OK [18:01:27]MH_I2C_Read... [18:01:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:01:28]Read from MH i2c: E2 [18:01:28]MH_I2C_Read... [18:01:28]Read from MH i2c: E2 03 00 [18:01:28]MH_I2C_Read... [18:01:28]Read from MH i2c: E2 03 00 EB 02 00 90 00 61 [18:01:28]RAPDU: 90 00 [18:01:28]wFMCommunicate OK [18:01:28]wFMCommunicate request_size=255 [18:01:28]MH_SAM_APDU [18:01:28]CAPDU: 80 0D 02 02 FA 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 30 38 06 04 23 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 F7 D8 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 [18:01:28]Write to MH i2c: E2 02 01 EC 02 80 0D 02 02 FA 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 30 38 06 04 23 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 F7 D8 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 00 00 97 [18:01:28]Write i2c OK [18:01:28]MH_I2C_Read... [18:01:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:01:28]Read from MH i2c: E2 [18:01:28]MH_I2C_Read... [18:01:28]Read from MH i2c: E2 03 00 [18:01:28]MH_I2C_Read... [18:01:28]Read from MH i2c: E2 03 00 EC 02 00 90 00 62 [18:01:28]RAPDU: 90 00 [18:01:28]wFMCommunicate OK [18:01:28]wFMCommunicate request_size=36 [18:01:28]MH_SAM_APDU [18:01:28]CAPDU: 80 0D 02 02 1F 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 CD A3 00 00 35 04 06 00 BA 79 8B 81 2E F8 [18:01:28]Write to MH i2c: E2 27 00 ED 02 80 0D 02 02 1F 00 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 CD A3 00 00 35 04 06 00 BA 79 8B 81 2E F8 00 00 6C [18:01:28]Write i2c OK [18:01:28]MH_I2C_Read... [18:01:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:01:28]Read from MH i2c: E2 [18:01:28]MH_I2C_Read... [18:01:28]Read from MH i2c: E2 03 00 [18:01:28]MH_I2C_Read... [18:01:28]Read from MH i2c: E2 03 00 ED 02 00 90 00 63 [18:01:28]RAPDU: 90 00 [18:01:28]wFMCommunicate OK [18:01:28]wFMCommunicate request_size=4 [18:01:28]MH_SAM_APDU [18:01:28]CAPDU: 80 0D 03 02 [18:01:28]Write to MH i2c: E2 08 00 EE 02 80 0D 03 02 00 00 00 00 6B [18:01:28]Write i2c OK [18:01:28]MH_I2C_Read... [18:01:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:01:28]Read from MH i2c: E2 [18:01:28]MH_I2C_Read... [18:01:28]Read from MH i2c: E2 0B 00 [18:01:28]MH_I2C_Read... [18:01:28]Read from MH i2c: E2 0B 00 EE 02 00 74 B1 E9 44 F3 10 9B 0C 90 00 68 [18:01:28]RAPDU: 74 B1 E9 44 F3 10 9B 0C 90 00 [18:01:28]wFMCommunicate OK [18:01:28]SAM_PROTO_SignData done [18:01:28]FM_MakeSignedData done [18:01:28]CreateOFDProtocolMessage [18:01:28]wFMCommunicate request_size=4 [18:01:28]MH_SAM_APDU [18:01:28]CAPDU: 80 11 00 00 [18:01:28]Write to MH i2c: E2 08 00 EF 02 80 11 00 00 00 00 00 00 6B [18:01:28]Write i2c OK [18:01:28]MH_I2C_Read... [18:01:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:01:28]Read from MH i2c: E2 [18:01:28]MH_I2C_Read... [18:01:28]Read from MH i2c: E2 17 00 [18:01:28]MH_I2C_Read... [18:01:28]Read from MH i2c: E2 17 00 EF 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 C7 [18:01:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [18:01:28]wFMCommunicate OK [18:01:28]CreateOFDProtocolMessage done [18:01:28]OFDSenderStorePacket 41933 [18:01:28]StoreOFDPacket docnum=41933 [18:01:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 29 01 00 00 9A 32 21 01 1C E9 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 30 38 06 04 23 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 F7 D8 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 CD A3 00 00 35 04 06 00 BA 79 8B 81 2E F8 74 B1 E9 44 F3 10 9B 0C [18:01:28]CheckFolder [18:01:28]dirname=/storage/ofd_packets [18:01:28]CheckFolder done [18:01:28]ProducePacketName [18:01:28]name=ofd_packets/00041933 [18:01:28]NVStorageSaveData ofd_packets/00041933 [18:01:28]File name is /storage/ofd_packets/00041933 [18:01:28]Write 327 bytes [18:01:28]NVStorageSaveData done [18:01:28]OFDSenderStorePacket done [18:01:28]KKMCreateOFDPacket done [18:01:28]NVStorageSaveData kkm_last_timestamp [18:01:28]File name is /storage/kkm_last_timestamp [18:01:28]Write 4 bytes [18:01:28]NVStorageSaveData done [18:01:28]ExternCall_PrintAddStr [18:01:28]wPrintStart [18:01:28]Write to MH i2c: 01 00 00 F0 02 F2 [18:01:28]Write i2c OK [18:01:28]MH_I2C_Read... [18:01:28]Read from MH i2c: 01 [18:01:28]MH_I2C_Read... [18:01:28]Read from MH i2c: 01 07 00 [18:01:28]MH_I2C_Read... [18:01:28]Read from MH i2c: 01 07 00 F0 02 00 00 00 00 00 FF 0F 07 [18:01:28]RasterBufferAndPrint [18:01:28]line Счет N : (3)183962 [18:01:28]line ИНН: 02508201610067 [18:01:28]line Контрольно-Кассовый Чек [18:01:28]line ПРОДАЖА [18:01:28]line Товар: 8901086040008 [18:01:28]line Жид/ст ПН летняя 4,5л [18:01:28]line 1.000 * 170.00 [18:01:28]line = 170.00 [18:01:28]line НДС 12% НСП 1% [18:01:28]line > о реализуемом товаре [18:01:28]line ИТОГО: 170.00 [18:01:28]line НСП 1% : 1.50 [18:01:28]line НДС 12% : 18.05 [18:01:28]line Наличными: 170.00 [18:01:28]line Безнал.: 0.00 [18:01:28]line Место: АЗС № 97 "Партнер Нефть" [18:01:28]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [18:01:28]line СНО: Общий режим [18:01:28]line Чек 122 29.07.2024 18:01 [18:01:28]line Смена: 427 ФФД: 1.0 [18:01:28]line ЗНМ: 0300000053 [18:01:28]line РНМ: 0000000000092626 [18:01:28]line Версия ККМ: 001 [18:01:28]line ФМ: 0000000000874958 [18:01:28]line ФД: 41933 [18:01:28]line ФПД: 205031194308344 [18:01:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T180127&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41933&fm=205031194308344&tin=02508201610067®Number=0000000000092626&sum=17000 [18:01:28]OFD Sender: Processing packet 41933 [packets to send 57, broken 56] [18:01:28]ProducePacketName [18:01:28]name=ofd_packets/00041933 [18:01:28]OFD Sender: To server: pG, [18:01:28]CommunicateWithHost lk.salyk.kg:30040 [18:01:28]ConnectInit lk.salyk.kg [18:01:28]line 0 [18:01:28]written 0, free lines is 4095 [18:01:29]Write to MH i2c: 01 00 00 18 03 1B [18:01:29]Write i2c OK [18:01:29]MH_I2C_Read... [18:01:29]Read from MH i2c: 01 [18:01:29]MH_I2C_Read... [18:01:29]Read from MH i2c: 01 07 00 [18:01:29]MH_I2C_Read... [18:01:29]Read from MH i2c: 01 07 00 18 03 00 00 00 00 00 13 0D 42 [18:01:29]RasterBufferAndPrint [18:01:29]line [18:01:29]line [18:01:29]line [18:01:29]line [18:01:29]line [18:01:29]written 0, free lines is 3353 [18:01:29]MH_Cut [18:01:29]Write to MH i2c: D1 01 00 1F 03 01 F4 [18:01:29]Write i2c OK [18:01:29]MH_I2C_Read... [18:01:29]Read from MH i2c: D1 [18:01:29]MH_I2C_Read... [18:01:29]Read from MH i2c: D1 01 00 [18:01:29]MH_I2C_Read... [18:01:29]Read from MH i2c: D1 01 00 1F 03 00 F3 [18:01:29]Write to MH i2c: 01 00 00 20 03 23 [18:01:29]Write i2c OK [18:01:29]MH_I2C_Read... [18:01:29]*** Cut start [18:01:29]*** Partial cut [18:01:29]*** CUTSNS_PIN = 1 [18:01:29]*** CUTSNS_PIN = 0 [18:01:30]*** Brake cut motor [18:01:30]Connected sock=11 [18:01: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 35 38 29 01 00 00 9A 32 21 01 1C E9 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 30 38 06 04 23 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 F7 D8 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 CD A3 00 00 35 04 06 00 BA 79 8B 81 2E F8 74 B1 E9 44 F3 10 9B 0C [18:01:30]Read from MH i2c: 01 [18:01:30]MH_I2C_Read... [18:01:30]*** Stop cut motor [18:01:30]*** Cut end [18:01:30]Read from MH i2c: 01 07 00 [18:01:30]MH_I2C_Read... [18:01:30]Read from MH i2c: 01 07 00 20 03 00 00 00 00 00 FF 0F 38 [18:01:30]process_action close_receipt done [18:01:30]requested_data is exist [18:01:30]produce_requested_data [18:01:30]requested_item fm.sn is exist - process it [18:01:30]wFMCommunicate request_size=4 [18:01:30]MH_SAM_APDU [18:01:30]CAPDU: 80 11 00 00 [18:01:30]Write to MH i2c: E2 08 00 21 03 80 11 00 00 00 00 00 00 9E [18:01:30]Write i2c OK [18:01:30]MH_I2C_Read... [18:01:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:01:30]Read from MH i2c: E2 [18:01:30]MH_I2C_Read... [18:01:30]Read from MH i2c: E2 17 00 [18:01:30]MH_I2C_Read... [18:01:30]Read from MH i2c: E2 17 00 21 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 FA [18:01:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [18:01:30]wFMCommunicate OK [18:01:30]requested_item fd.num is exist - process it [18:01:30]SAM_PROTO_GetFieldsCounters [18:01:30]wFMCommunicate request_size=4 [18:01:30]MH_SAM_APDU [18:01:30]CAPDU: 80 13 00 00 [18:01:30]Write to MH i2c: E2 08 00 22 03 80 13 00 00 00 00 00 00 A1 [18:01:30]Write i2c OK [18:01:30]MH_I2C_Read... [18:01:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:01:30]Read from MH i2c: E2 [18:01:30]MH_I2C_Read... [18:01:30]Read from MH i2c: E2 62 00 [18:01:30]MH_I2C_Read... [18:01:30]Read from MH i2c: E2 62 00 22 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 CD A3 00 00 0E 04 04 00 AB 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 55 [18:01: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 CD A3 00 00 0E 04 04 00 AB 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 [18:01:30]wFMCommunicate OK [18:01:30]SAM_PROTO_GetFieldsCounters done [18:01:30]requested_item shift.num is exist - process it [18:01:30]requested_item shift.opened is exist - process it [18:01:30]req_shift_opened [18:01:30]FM_GetShiftState [18:01:30]SAM_PROTO_GetShiftState [18:01:30]wFMCommunicate request_size=4 [18:01:30]MH_SAM_APDU [18:01:30]CAPDU: 80 13 01 00 [18:01:30]Write to MH i2c: E2 08 00 23 03 80 13 01 00 00 00 00 00 A3 [18:01:30]Write i2c OK [18:01:30]MH_I2C_Read... [18:01: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 35 38 4F 00 00 00 B4 6C 47 00 0B 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 35 38 10 04 04 00 CD A3 00 00 F4 03 04 00 0F 85 A7 66 B6 04 01 00 00 28 AE 34 CF 10 1F 5A B9 [18:01:30]CommunicateWithHost err = 0 [18:01:30]CheckOFDResponse [18:01:30]1017 (14) - 77093643461234 [18:01:30]1041 (16) - 0000000000874958 [18:01:30]1040 (4) - 41933 [18:01:30]1012 (4) - 29.07.2024 12:03 [18:01:30]1206 (1) - 0 [18:01:30]OFD Sender: Remove packet 41933 [18:01:30]ProducePacketName [18:01:30]name=ofd_packets/00041933 [18:01:30]NVStorageDeleteData [18:01:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:01:30]Read from MH i2c: E2 [18:01:30]MH_I2C_Read... [18:01:30]Read from MH i2c: E2 0E 00 [18:01:30]MH_I2C_Read... [18:01:30]Read from MH i2c: E2 0E 00 23 03 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 3F [18:01:30]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [18:01:30]wFMCommunicate OK [18:01:30]SAM_PROTO_GetShiftState done [18:01:30]FM_GetShiftState done [18:01:30]req_shift_opened done [18:01:30]requested_item shift.open_date is exist - process it [18:01:30]req_shift_open_date [18:01:30]req_shift_open_date done [18:01:30]produce_requested_data done [18:01:30]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41933,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [18:01:30]process_action_free close_receipt [18:01:30]json_value_free [18:01:30]json_value_free done [18:01:30]process_json_proto returns [18:01:30]Send response to host [18:01:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41933,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [18:01:30]free response buf [18:01:30]execute_script done [18:01:30]execute_script returns [18:01:30]free content buf [18:01:30]Sock 10.Close socket [18:01:30]Sock 10.Thread stoped [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:04]recv_with_timeout no data received [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:32]recv_with_timeout no data received [18:02:36]OFD Sender: No OFD packet to send [18:04:29]ConnectInit Can't connect to host [18:04:31]OFD Sender: No OFD packet to send [18:04:36]OFD Sender: No OFD packet to send [18:04:41]OFD Sender: No OFD packet to send [18:04:46]OFD Sender: No OFD packet to send [18:04:51]OFD Sender: No OFD packet to send [18:04:56]OFD Sender: No OFD packet to send [18:05:01]OFD Sender: No OFD packet to send [18:05:06]OFD Sender: No OFD packet to send [18:05:11]OFD Sender: No OFD packet to send [18:05:16]OFD Sender: No OFD packet to send [18:05:21]OFD Sender: No OFD packet to send [18:05:26]OFD Sender: No OFD packet to send [18:05:31]OFD Sender: No OFD packet to send [18:05:36]OFD Sender: No OFD packet to send [18:05:41]OFD Sender: No OFD packet to send [18:05:46]OFD Sender: No OFD packet to send [18:05:51]OFD Sender: No OFD packet to send [18:05:56]OFD Sender: No OFD packet to send [18:06:01]OFD Sender: No OFD packet to send [18:06:06]OFD Sender: No OFD packet to send [18:06:11]OFD Sender: No OFD packet to send [18:06:16]OFD Sender: No OFD packet to send [18:06:21]OFD Sender: No OFD packet to send [18:06:26]OFD Sender: No OFD packet to send [18:06:31]OFD Sender: No OFD packet to send [18:06:33]accept exits with 7 [18:06:33]New connection [18:06:33]New thread 3067084132 created [18:06:33]Thread 3066940772 joined [18:06:33]Waiting for new connection... [18:06:33] Sock 7.Parse request [18:06:33]Sock 7.Check first char [18:06:33]Sock 7.First char is OK [18:06:33]request: POST /json_proto HTTP/1.0 [18:06:33]Method: POST [18:06:33]URL: /json_proto [18:06:33]Method is POST - this is cgi request [18:06:33]url: /json_proto [18:06:33]query_string will be loaded in cgi processing [18:06:33]execute_cgi json_proto POST (null) [18:06:33]execute_cgi path=json_proto method=POST [18:06:33]POST find Content-Length [18:06:33]Host: 172.17.43.132:8080 [18:06:33]Content-Length: 654 [18:06:33]Content-Type: application/json [18:06:33] [18:06:33]POST finish read [18:06:33]Found Content-Length = 654 [18:06:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183963", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:06:33]execute_script... [18:06:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183963", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:06:33]POST & json_proto [18:06:33]process_json_proto [18:06:33]json parsed OK: [18:06:33]protocol is kg_v1.0 [18:06:33]action value=close_receipt [18:06:33]process_action close_receipt [18:06:33]cmd_close_receipt [18:06:33]MH_GetDate [18:06:33]Write to MH i2c: F0 00 00 24 03 16 [18:06:33]Write i2c OK [18:06:33]MH_I2C_Read... [18:06:33]Read from MH i2c: F0 [18:06:33]MH_I2C_Read... [18:06:33]Read from MH i2c: F0 09 00 [18:06:33]MH_I2C_Read... [18:06:33]Read from MH i2c: F0 09 00 24 03 00 2A DA A7 66 64 A3 A7 66 44 [18:06:33]GetLastDocTimeStamp 1722276087 [18:06:33]current date 1722276394 [18:06:33]FM_GetShiftState [18:06:33]SAM_PROTO_GetShiftState [18:06:33]wFMCommunicate request_size=4 [18:06:33]MH_SAM_APDU [18:06:33]CAPDU: 80 13 01 00 [18:06:33]Write to MH i2c: E2 08 00 25 03 80 13 01 00 00 00 00 00 A5 [18:06:33]Write i2c OK [18:06:33]MH_I2C_Read... [18:06:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:06:33]Read from MH i2c: E2 [18:06:33]MH_I2C_Read... [18:06:33]Read from MH i2c: E2 0E 00 [18:06:33]MH_I2C_Read... [18:06:33]Read from MH i2c: E2 0E 00 25 03 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 41 [18:06:33]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [18:06:33]wFMCommunicate OK [18:06:33]SAM_PROTO_GetShiftState done [18:06:33]FM_GetShiftState done [18:06:33]opened in 1722211496 [18:06:33]opened+sec_in_day 1722297896 [18:06:33]quantity*price = 9500 [18:06:33]sum+1 = 9501 [18:06:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 123 29.07.2024 18:06 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41934 ФПД: 222943218842313 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T180634&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41934&fm=222943218842313&tin=02508201610067®Number=0000000000092626&sum=9500 0 [18:06:34]StoreToDocumentArchive [18:06:34]shift 427 fd 41934 [18:06:34]save to /storage/0427/doc_00041934 [18:06:34]save last doc name /storage/0427/doc_00041934 to /storage/kkm_last_doc_name [18:06:34]save OK [18:06:34]Clear old archive folders... [18:06:34]ProcessDocumentItem done err = 0, tmpTLVsize=293 [18:06:34]tlvbuf is 00D7B100 [18:06:34]SAM_PROTO_ClearQueue [18:06:34]wFMCommunicate request_size=4 [18:06:34]MH_SAM_APDU [18:06:34]CAPDU: 80 09 00 00 [18:06:34]Write to MH i2c: E2 08 00 32 03 80 09 00 00 00 00 00 00 A7 [18:06:34]Write i2c OK [18:06:34]MH_I2C_Read... [18:06:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:06:34]Read from MH i2c: E2 [18:06:34]MH_I2C_Read... [18:06:34]Read from MH i2c: E2 03 00 [18:06:34]MH_I2C_Read... [18:06:34]Read from MH i2c: E2 03 00 32 03 00 90 00 A9 [18:06:34]RAPDU: 90 00 [18:06:34]wFMCommunicate OK [18:06:34]SAM_PROTO_ClearQueue done [18:06:34]KKMCreateOFDPacket [18:06:34]OFDProtocolAddRootSTLVToBuf [18:06:34]FM_MakeSignedData [18:06:34]FM_MakeSignedData [18:06:34]SAM_PROTO_SignData [18:06:34]wFMCommunicate request_size=4 [18:06:34]MH_SAM_APDU [18:06:34]CAPDU: 80 0D 01 02 [18:06:34]Write to MH i2c: E2 08 00 33 03 80 0D 01 02 00 00 00 00 AF [18:06:34]Write i2c OK [18:06:34]MH_I2C_Read... [18:06:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:06:34]Read from MH i2c: E2 [18:06:34]MH_I2C_Read... [18:06:34]Read from MH i2c: E2 03 00 [18:06:34]MH_I2C_Read... [18:06:34]Read from MH i2c: E2 03 00 33 03 00 90 00 AA [18:06:34]RAPDU: 90 00 [18:06:34]wFMCommunicate OK [18:06:34]wFMCommunicate request_size=255 [18:06:34]MH_SAM_APDU [18:06:34]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 2A DA A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [18:06:34]Write to MH i2c: E2 02 01 34 03 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 2A DA A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 87 [18:06:34]Write i2c OK [18:06:34]MH_I2C_Read... [18:06:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:06:35]Read from MH i2c: E2 [18:06:35]MH_I2C_Read... [18:06:35]Read from MH i2c: E2 03 00 [18:06:35]MH_I2C_Read... [18:06:35]Read from MH i2c: E2 03 00 34 03 00 90 00 AB [18:06:35]RAPDU: 90 00 [18:06:35]wFMCommunicate OK [18:06:35]wFMCommunicate request_size=52 [18:06:35]MH_SAM_APDU [18:06:35]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 CE A3 00 00 35 04 06 00 CA C4 03 5D 3A C9 [18:06:35]Write to MH i2c: E2 37 00 35 03 80 0D 02 02 2F 00 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 CE A3 00 00 35 04 06 00 CA C4 03 5D 3A C9 00 00 E0 [18:06:35]Write i2c OK [18:06:35]MH_I2C_Read... [18:06:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:06:35]Read from MH i2c: E2 [18:06:35]MH_I2C_Read... [18:06:35]Read from MH i2c: E2 03 00 [18:06:35]MH_I2C_Read... [18:06:35]Read from MH i2c: E2 03 00 35 03 00 90 00 AC [18:06:35]RAPDU: 90 00 [18:06:35]wFMCommunicate OK [18:06:35]wFMCommunicate request_size=4 [18:06:35]MH_SAM_APDU [18:06:35]CAPDU: 80 0D 03 02 [18:06:35]Write to MH i2c: E2 08 00 36 03 80 0D 03 02 00 00 00 00 B4 [18:06:35]Write i2c OK [18:06:35]MH_I2C_Read... [18:06:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:06:35]Read from MH i2c: E2 [18:06:35]MH_I2C_Read... [18:06:35]Read from MH i2c: E2 0B 00 [18:06:35]MH_I2C_Read... [18:06:35]Read from MH i2c: E2 0B 00 36 03 00 F0 7E 55 41 67 D0 12 52 90 00 54 [18:06:35]RAPDU: F0 7E 55 41 67 D0 12 52 90 00 [18:06:35]wFMCommunicate OK [18:06:35]SAM_PROTO_SignData done [18:06:35]FM_MakeSignedData done [18:06:35]CreateOFDProtocolMessage [18:06:35]wFMCommunicate request_size=4 [18:06:35]MH_SAM_APDU [18:06:35]CAPDU: 80 11 00 00 [18:06:35]Write to MH i2c: E2 08 00 37 03 80 11 00 00 00 00 00 00 B4 [18:06:35]Write i2c OK [18:06:35]MH_I2C_Read... [18:06:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:06:35]Read from MH i2c: E2 [18:06:35]MH_I2C_Read... [18:06:35]Read from MH i2c: E2 17 00 [18:06:35]MH_I2C_Read... [18:06:35]Read from MH i2c: E2 17 00 37 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 10 [18:06:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [18:06:35]wFMCommunicate OK [18:06:35]CreateOFDProtocolMessage done [18:06:35]OFDSenderStorePacket 41934 [18:06:35]StoreOFDPacket docnum=41934 [18:06:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 39 01 00 00 C4 AE 31 01 78 90 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 2A DA A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 CE A3 00 00 35 04 06 00 CA C4 03 5D 3A C9 F0 7E 55 41 67 D0 12 52 [18:06:35]CheckFolder [18:06:35]dirname=/storage/ofd_packets [18:06:35]CheckFolder done [18:06:35]ProducePacketName [18:06:35]name=ofd_packets/00041934 [18:06:35]NVStorageSaveData ofd_packets/00041934 [18:06:35]File name is /storage/ofd_packets/00041934 [18:06:35]Write 343 bytes [18:06:35]NVStorageSaveData done [18:06:35]OFDSenderStorePacket done [18:06:35]KKMCreateOFDPacket done [18:06:35]NVStorageSaveData kkm_last_timestamp [18:06:35]File name is /storage/kkm_last_timestamp [18:06:35]Write 4 bytes [18:06:35]NVStorageSaveData done [18:06:35]ExternCall_PrintAddStr [18:06:35]wPrintStart [18:06:35]Write to MH i2c: 01 00 00 38 03 3B [18:06:35]Write i2c OK [18:06:35]MH_I2C_Read... [18:06:35]Read from MH i2c: 01 [18:06:35]MH_I2C_Read... [18:06:35]Read from MH i2c: 01 07 00 [18:06:35]MH_I2C_Read... [18:06:35]Read from MH i2c: 01 07 00 38 03 00 00 00 00 00 FF 0F 50 [18:06:35]RasterBufferAndPrint [18:06:35]line Счет N : (3)183963 [18:06:35]line ИНН: 02508201610067 [18:06:35]line Контрольно-Кассовый Чек [18:06:35]line ПРОДАЖА [18:06:35]line Товар: 4700000480050 [18:06:35]line Напиток Nitro Energy эн green ж/б 0,45л [18:06:35]line 1.000 * 95.00 [18:06:35]line = 95.00 [18:06:35]line НДС 12% НСП 1% [18:06:35]line > о реализуемом товаре [18:06:35]line ИТОГО: 95.00 [18:06:35]line НСП 1% : 0.84 [18:06:35]line НДС 12% : 10.09 [18:06:35]line Наличными: 95.00 [18:06:35]line Безнал.: 0.00 [18:06:35]line Место: АЗС № 97 "Партнер Нефть" [18:06:35]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [18:06:35]line СНО: Общий режим [18:06:35]line Чек 123 29.07.2024 18:06 [18:06:35]line Смена: 427 ФФД: 1.0 [18:06:35]line ЗНМ: 0300000053 [18:06:35]line РНМ: 0000000000092626 [18:06:35]line Версия ККМ: 001 [18:06:35]line ФМ: 0000000000874958 [18:06:35]line ФД: 41934 [18:06:35]line ФПД: 222943218842313 [18:06:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T180634&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41934&fm=222943218842313&tin=02508201610067®Number=0000000000092626&sum=9500 [18:06:35]line 0 [18:06:35]OFD Sender: Processing packet 41934 [packets to send 57, broken 56] [18:06:35]ProducePacketName [18:06:35]name=ofd_packets/00041934 [18:06:35]OFD Sender: To server: pG, [18:06:35]CommunicateWithHost lk.salyk.kg:30040 [18:06:35]ConnectInit lk.salyk.kg [18:06:35]written 0, free lines is 4095 [18:06:36]Write to MH i2c: 01 00 00 61 03 64 [18:06:36]Write i2c OK [18:06:36]MH_I2C_Read... [18:06:36]Read from MH i2c: 01 [18:06:36]MH_I2C_Read... [18:06:36]Read from MH i2c: 01 07 00 [18:06:36]MH_I2C_Read... [18:06:36]Read from MH i2c: 01 07 00 61 03 00 00 00 00 00 04 0D 7C [18:06:36]RasterBufferAndPrint [18:06:36]line [18:06:36]line [18:06:36]line [18:06:36]line [18:06:36]line [18:06:36]written 0, free lines is 3338 [18:06:36]MH_Cut [18:06:36]Write to MH i2c: D1 01 00 68 03 01 3D [18:06:36]Write i2c OK [18:06:36]MH_I2C_Read... [18:06:36]Read from MH i2c: D1 [18:06:36]MH_I2C_Read... [18:06:36]Read from MH i2c: D1 01 00 [18:06:36]MH_I2C_Read... [18:06:36]Read from MH i2c: D1 01 00 68 03 00 3C [18:06:36]Write to MH i2c: 01 00 00 69 03 6C [18:06:36]Write i2c OK [18:06:36]MH_I2C_Read... [18:06:36]*** Cut start [18:06:36]*** Partial cut [18:06:36]*** CUTSNS_PIN = 1 [18:06:36]*** CUTSNS_PIN = 0 [18:06:37]*** Brake cut motor [18:06:37]Read from MH i2c: 01 [18:06:37]MH_I2C_Read... [18:06:37]*** Stop cut motor [18:06:37]*** Cut end [18:06:37]Read from MH i2c: 01 07 00 [18:06:37]MH_I2C_Read... [18:06:37]Read from MH i2c: 01 07 00 69 03 00 00 00 00 00 FF 0F 81 [18:06:37]process_action close_receipt done [18:06:37]requested_data is exist [18:06:37]produce_requested_data [18:06:37]requested_item fm.sn is exist - process it [18:06:37]wFMCommunicate request_size=4 [18:06:37]MH_SAM_APDU [18:06:37]CAPDU: 80 11 00 00 [18:06:37]Write to MH i2c: E2 08 00 6A 03 80 11 00 00 00 00 00 00 E7 [18:06:37]Write i2c OK [18:06:37]MH_I2C_Read... [18:06:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:06:37]Read from MH i2c: E2 [18:06:37]MH_I2C_Read... [18:06:37]Read from MH i2c: E2 17 00 [18:06:37]MH_I2C_Read... [18:06:37]Read from MH i2c: E2 17 00 6A 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 43 [18:06:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [18:06:37]wFMCommunicate OK [18:06:37]requested_item fd.num is exist - process it [18:06:37]SAM_PROTO_GetFieldsCounters [18:06:37]wFMCommunicate request_size=4 [18:06:37]MH_SAM_APDU [18:06:37]CAPDU: 80 13 00 00 [18:06:37]Write to MH i2c: E2 08 00 6B 03 80 13 00 00 00 00 00 00 EA [18:06:37]Write i2c OK [18:06:37]MH_I2C_Read... [18:06:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:06:37]Read from MH i2c: E2 [18:06:37]MH_I2C_Read... [18:06:37]Read from MH i2c: E2 62 00 [18:06:37]MH_I2C_Read... [18:06:37]Read from MH i2c: E2 62 00 6B 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 CE A3 00 00 0E 04 04 00 AB 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 A2 [18:06: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 CE A3 00 00 0E 04 04 00 AB 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 [18:06:37]wFMCommunicate OK [18:06:37]SAM_PROTO_GetFieldsCounters done [18:06:37]requested_item shift.num is exist - process it [18:06:37]requested_item shift.opened is exist - process it [18:06:37]req_shift_opened [18:06:37]FM_GetShiftState [18:06:37]SAM_PROTO_GetShiftState [18:06:37]wFMCommunicate request_size=4 [18:06:37]MH_SAM_APDU [18:06:37]CAPDU: 80 13 01 00 [18:06:37]Write to MH i2c: E2 08 00 6C 03 80 13 01 00 00 00 00 00 EC [18:06:37]Write i2c OK [18:06:37]MH_I2C_Read... [18:06:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:06:37]Read from MH i2c: E2 [18:06:37]MH_I2C_Read... [18:06:37]Read from MH i2c: E2 0E 00 [18:06:37]MH_I2C_Read... [18:06:37]Read from MH i2c: E2 0E 00 6C 03 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 88 [18:06:37]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [18:06:37]wFMCommunicate OK [18:06:37]SAM_PROTO_GetShiftState done [18:06:37]FM_GetShiftState done [18:06:37]req_shift_opened done [18:06:37]requested_item shift.open_date is exist - process it [18:06:37]req_shift_open_date [18:06:37]req_shift_open_date done [18:06:37]produce_requested_data done [18:06:37]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41934,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [18:06:37]process_action_free close_receipt [18:06:37]json_value_free [18:06:37]json_value_free done [18:06:37]process_json_proto returns [18:06:37]Send response to host [18:06:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41934,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [18:06:37]free response buf [18:06:37]execute_script done [18:06:37]execute_script returns [18:06:37]free content buf [18:06:37]Sock 7.Close socket [18:06:37]Sock 7.Thread stoped [18:06:40]recv_with_timeout no data received [18:06:40]ConnectInit Can't take IP for lk.salyk.kg [18:06:40]CommunicateWithHost connect error [18:06:40]CommunicateWithHost err = -1 [18:06:40]OFD Sender: Server communicate error [18:06:45]OFD Sender: Processing packet 41934 [packets to send 57, broken 56] [18:06:45]ProducePacketName [18:06:45]name=ofd_packets/00041934 [18:06:45]OFD Sender: To server: pG, [18:06:45]CommunicateWithHost lk.salyk.kg:30040 [18:06:45]ConnectInit lk.salyk.kg [18:06:50]ConnectInit Can't take IP for lk.salyk.kg [18:06:50]CommunicateWithHost connect error [18:06:50]CommunicateWithHost err = -1 [18:06:50]OFD Sender: Server communicate error [18:06:55]OFD Sender: Processing packet 41934 [packets to send 57, broken 56] [18:06:55]ProducePacketName [18:06:55]name=ofd_packets/00041934 [18:06:55]OFD Sender: To server: pG, [18:06:55]CommunicateWithHost lk.salyk.kg:30040 [18:06:55]ConnectInit lk.salyk.kg [18:07:00]ConnectInit Can't take IP for lk.salyk.kg [18:07:00]CommunicateWithHost connect error [18:07:00]CommunicateWithHost err = -1 [18:07:00]OFD Sender: Server communicate error [18:07:01]recv_with_timeout no data received [18:07:05]OFD Sender: Processing packet 41934 [packets to send 57, broken 56] [18:07:05]ProducePacketName [18:07:05]name=ofd_packets/00041934 [18:07:05]OFD Sender: To server: pG, [18:07:05]CommunicateWithHost lk.salyk.kg:30040 [18:07:05]ConnectInit lk.salyk.kg [18:07:14]recv_with_timeout no data received [18:07:53]accept exits with 9 [18:07:53]New connection [18:07:53]New thread 3066940772 created [18:07:53]Thread 3067084132 joined [18:07:53]Waiting for new connection... [18:07:53] Sock 9.Parse request [18:07:53]Sock 9.Check first char [18:07:53]Sock 9.First char is OK [18:07:53]request: POST /json_proto HTTP/1.0 [18:07:53]Method: POST [18:07:53]URL: /json_proto [18:07:53]Method is POST - this is cgi request [18:07:53]url: /json_proto [18:07:53]query_string will be loaded in cgi processing [18:07:53]execute_cgi json_proto POST (null) [18:07:53]execute_cgi path=json_proto method=POST [18:07:53]POST find Content-Length [18:07:53]Host: 172.17.43.132:8080 [18:07:53]Content-Length: 654 [18:07:53]Content-Type: application/json [18:07:53] [18:07:53]POST finish read [18:07:53]Found Content-Length = 654 [18:07:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183964", "tax_sys" : 0, "items" : [ { "code": "46214638", "name": "\u0420/\u0436 mentos p.white \u043D\u0435\u0436\u043D\u0430\u044F \u043C\u044F\u0442\u0430 16/15,5\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 49.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:07:53]execute_script... [18:07:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183964", "tax_sys" : 0, "items" : [ { "code": "46214638", "name": "\u0420/\u0436 mentos p.white \u043D\u0435\u0436\u043D\u0430\u044F \u043C\u044F\u0442\u0430 16/15,5\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 49.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:07:53]POST & json_proto [18:07:53]process_json_proto [18:07:53]json parsed OK: [18:07:53]protocol is kg_v1.0 [18:07:53]action value=close_receipt [18:07:53]process_action close_receipt [18:07:53]cmd_close_receipt [18:07:53]MH_GetDate [18:07:53]Write to MH i2c: F0 00 00 6D 03 5F [18:07:53]Write i2c OK [18:07:53]MH_I2C_Read... [18:07:53]Read from MH i2c: F0 [18:07:53]MH_I2C_Read... [18:07:53]Read from MH i2c: F0 09 00 [18:07:53]MH_I2C_Read... [18:07:53]Read from MH i2c: F0 09 00 6D 03 00 7A DA A7 66 64 A3 A7 66 DD [18:07:53]GetLastDocTimeStamp 1722276394 [18:07:53]current date 1722276474 [18:07:53]FM_GetShiftState [18:07:53]SAM_PROTO_GetShiftState [18:07:53]wFMCommunicate request_size=4 [18:07:53]MH_SAM_APDU [18:07:53]CAPDU: 80 13 01 00 [18:07:53]Write to MH i2c: E2 08 00 6E 03 80 13 01 00 00 00 00 00 EE [18:07:53]Write i2c OK [18:07:53]MH_I2C_Read... [18:07:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:07:53]Read from MH i2c: E2 [18:07:53]MH_I2C_Read... [18:07:53]Read from MH i2c: E2 0E 00 [18:07:53]MH_I2C_Read... [18:07:53]Read from MH i2c: E2 0E 00 6E 03 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 8A [18:07:53]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [18:07:53]wFMCommunicate OK [18:07:53]SAM_PROTO_GetShiftState done [18:07:53]FM_GetShiftState done [18:07:53]opened in 1722211496 [18:07:53]opened+sec_in_day 1722297896 [18:07:53]quantity*price = 4900 [18:07:53]sum+1 = 4901 [18:07:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 49.00 НСП 1% : 0.43 НДС 12% : 5.20 Наличными: 49.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 124 29.07.2024 18:07 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41935 ФПД: 254519162294721 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T180754&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41935&fm=254519162294721&tin=02508201610067®Number=0000000000092626&sum=4900 0 [18:07:54]StoreToDocumentArchive [18:07:54]shift 427 fd 41935 [18:07:54]save to /storage/0427/doc_00041935 [18:07:54]save last doc name /storage/0427/doc_00041935 to /storage/kkm_last_doc_name [18:07:54]save OK [18:07:54]Clear old archive folders... [18:07:54]ProcessDocumentItem done err = 0, tmpTLVsize=289 [18:07:54]tlvbuf is 00E31010 [18:07:54]SAM_PROTO_ClearQueue [18:07:54]wFMCommunicate request_size=4 [18:07:54]MH_SAM_APDU [18:07:54]CAPDU: 80 09 00 00 [18:07:54]Write to MH i2c: E2 08 00 7B 03 80 09 00 00 00 00 00 00 F0 [18:07:54]Write i2c OK [18:07:54]MH_I2C_Read... [18:07:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:07:54]Read from MH i2c: E2 [18:07:54]MH_I2C_Read... [18:07:54]Read from MH i2c: E2 03 00 [18:07:54]MH_I2C_Read... [18:07:54]Read from MH i2c: E2 03 00 7B 03 00 90 00 F2 [18:07:54]RAPDU: 90 00 [18:07:54]wFMCommunicate OK [18:07:54]SAM_PROTO_ClearQueue done [18:07:54]KKMCreateOFDPacket [18:07:54]OFDProtocolAddRootSTLVToBuf [18:07:54]FM_MakeSignedData [18:07:54]FM_MakeSignedData [18:07:54]SAM_PROTO_SignData [18:07:54]wFMCommunicate request_size=4 [18:07:54]MH_SAM_APDU [18:07:54]CAPDU: 80 0D 01 02 [18:07:54]Write to MH i2c: E2 08 00 7C 03 80 0D 01 02 00 00 00 00 F8 [18:07:54]Write i2c OK [18:07:54]MH_I2C_Read... [18:07:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:07:55]Read from MH i2c: E2 [18:07:55]MH_I2C_Read... [18:07:55]Read from MH i2c: E2 03 00 [18:07:55]MH_I2C_Read... [18:07:55]Read from MH i2c: E2 03 00 7C 03 00 90 00 F3 [18:07:55]RAPDU: 90 00 [18:07:55]wFMCommunicate OK [18:07:55]wFMCommunicate request_size=255 [18:07:55]MH_SAM_APDU [18:07:55]CAPDU: 80 0D 02 02 FA 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 08 00 34 36 32 31 34 36 33 38 06 04 34 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 2E 77 68 69 74 65 20 D0 BD D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 82 D0 B0 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 7A DA A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 [18:07:55]Write to MH i2c: E2 02 01 7D 03 80 0D 02 02 FA 00 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 08 00 34 36 32 31 34 36 33 38 06 04 34 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 2E 77 68 69 74 65 20 D0 BD D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 82 D0 B0 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 7A DA A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 00 00 47 [18:07:55]Write i2c OK [18:07:55]MH_I2C_Read... [18:07:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:07:55]Read from MH i2c: E2 [18:07:55]MH_I2C_Read... [18:07:55]Read from MH i2c: E2 03 00 [18:07:55]MH_I2C_Read... [18:07:55]Read from MH i2c: E2 03 00 7D 03 00 90 00 F4 [18:07:55]RAPDU: 90 00 [18:07:55]wFMCommunicate OK [18:07:55]wFMCommunicate request_size=48 [18:07:55]MH_SAM_APDU [18:07:55]CAPDU: 80 0D 02 02 2B 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 CF A3 00 00 35 04 06 00 E7 7B DC 41 D1 C1 [18:07:55]Write to MH i2c: E2 33 00 7E 03 80 0D 02 02 2B 00 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 CF A3 00 00 35 04 06 00 E7 7B DC 41 D1 C1 00 00 82 [18:07:55]Write i2c OK [18:07:55]MH_I2C_Read... [18:07:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:07:55]Read from MH i2c: E2 [18:07:55]MH_I2C_Read... [18:07:55]Read from MH i2c: E2 03 00 [18:07:55]MH_I2C_Read... [18:07:55]Read from MH i2c: E2 03 00 7E 03 00 90 00 F5 [18:07:55]RAPDU: 90 00 [18:07:55]wFMCommunicate OK [18:07:55]wFMCommunicate request_size=4 [18:07:55]MH_SAM_APDU [18:07:55]CAPDU: 80 0D 03 02 [18:07:55]Write to MH i2c: E2 08 00 7F 03 80 0D 03 02 00 00 00 00 FD [18:07:55]Write i2c OK [18:07:55]MH_I2C_Read... [18:07:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:07:55]Read from MH i2c: E2 [18:07:55]MH_I2C_Read... [18:07:55]Read from MH i2c: E2 0B 00 [18:07:55]MH_I2C_Read... [18:07:55]Read from MH i2c: E2 0B 00 7F 03 00 71 1F 0C 29 FD EC 87 20 90 00 53 [18:07:55]RAPDU: 71 1F 0C 29 FD EC 87 20 90 00 [18:07:55]wFMCommunicate OK [18:07:55]SAM_PROTO_SignData done [18:07:55]FM_MakeSignedData done [18:07:55]CreateOFDProtocolMessage [18:07:55]wFMCommunicate request_size=4 [18:07:55]MH_SAM_APDU [18:07:55]CAPDU: 80 11 00 00 [18:07:55]Write to MH i2c: E2 08 00 80 03 80 11 00 00 00 00 00 00 FD [18:07:55]Write i2c OK [18:07:55]MH_I2C_Read... [18:07:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:07:55]Read from MH i2c: E2 [18:07:55]MH_I2C_Read... [18:07:55]Read from MH i2c: E2 17 00 [18:07:55]MH_I2C_Read... [18:07:55]Read from MH i2c: E2 17 00 80 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 59 [18:07:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [18:07:55]wFMCommunicate OK [18:07:55]CreateOFDProtocolMessage done [18:07:55]OFDSenderStorePacket 41935 [18:07:55]StoreOFDPacket docnum=41935 [18:08:40]recv_with_timeout no data received [18:09:13]recv_with_timeout no data received [18:09:22]ConnectInit Can't connect to host [18:09:22]CommunicateWithHost connect error [18:09:22]CommunicateWithHost err = -1 [18:09:22]OFD Sender: Server communicate error [18:09:22]OFD Sender: Processing packet 41934 [packets to send 58, broken 56] [18:09:22]ProducePacketName [18:09:22]name=ofd_packets/00041934 [18:09:22]OFD Sender: To server: pG, [18:09:22]CommunicateWithHost lk.salyk.kg:30040 [18:09:22]ConnectInit lk.salyk.kg [18:09:25]Connected sock=7 [18:09: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 35 38 39 01 00 00 C4 AE 31 01 78 90 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 2A DA A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 CE A3 00 00 35 04 06 00 CA C4 03 5D 3A C9 F0 7E 55 41 67 D0 12 52 [18:09: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 35 38 4F 00 00 00 3A E7 47 00 91 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 35 38 10 04 04 00 CE A3 00 00 F4 03 04 00 EA 86 A7 66 B6 04 01 00 00 D4 B7 DE 9A 11 61 B6 85 [18:09:26]CommunicateWithHost err = 0 [18:09:26]CheckOFDResponse [18:09:26]1017 (14) - 77093643461234 [18:09:26]1041 (16) - 0000000000874958 [18:09:26]1040 (4) - 41934 [18:09:26]1012 (4) - 29.07.2024 12:11 [18:09:26]1206 (1) - 0 [18:09:26]OFD Sender: Remove packet 41934 [18:09:26]ProducePacketName [18:09:26]name=ofd_packets/00041934 [18:09:26]NVStorageDeleteData [18:09:27]OFD Sender: Processing packet 41935 [packets to send 57, broken 56] [18:09:27]ProducePacketName [18:09:27]name=ofd_packets/00041935 [18:09:27]OFD Sender: To server: pG, [18:09:27]CommunicateWithHost lk.salyk.kg:30040 [18:09:27]ConnectInit lk.salyk.kg [18:09:31]Connected sock=7 [18:09:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 35 01 00 00 61 B9 2D 01 92 65 5A 03 01 00 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 08 00 34 36 32 31 34 36 33 38 06 04 34 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 2E 77 68 69 74 65 20 D0 BD D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 82 D0 B0 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 7A DA A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 CF A3 00 00 35 04 06 00 E7 7B DC 41 D1 C1 71 1F 0C 29 FD EC 87 20 [18:09: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 35 38 4F 00 00 00 42 27 47 00 33 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 35 38 10 04 04 00 CF A3 00 00 F4 03 04 00 F0 86 A7 66 B6 04 01 00 00 BA 5C 65 80 24 40 C7 21 [18:09:32]CommunicateWithHost err = 0 [18:09:32]CheckOFDResponse [18:09:32]1017 (14) - 77093643461234 [18:09:32]1041 (16) - 0000000000874958 [18:09:32]1040 (4) - 41935 [18:09:32]1012 (4) - 29.07.2024 12:11 [18:09:32]1206 (1) - 0 [18:09:32]OFD Sender: Remove packet 41935 [18:09:32]ProducePacketName [18:09:32]name=ofd_packets/00041935 [18:09:32]NVStorageDeleteData [18:09:32]OFD Sender: No OFD packet to send [18:09:37]OFD Sender: No OFD packet to send [18:09:43]OFD Sender: No OFD packet to send [18:09:48]OFD Sender: No OFD packet to send [18:09:53]OFD Sender: No OFD packet to send [18:09:58]OFD Sender: No OFD packet to send [18:10:03]OFD Sender: No OFD packet to send [18:10:08]OFD Sender: No OFD packet to send [18:10:13]OFD Sender: No OFD packet to send [18:10:18]OFD Sender: No OFD packet to send [18:10:23]OFD Sender: No OFD packet to send [18:10:28]OFD Sender: No OFD packet to send [18:10:33]OFD Sender: No OFD packet to send [18:10:38]OFD Sender: No OFD packet to send [18:10:43]OFD Sender: No OFD packet to send [18:10:48]OFD Sender: No OFD packet to send [18:10:53]OFD Sender: No OFD packet to send [18:10:58]OFD Sender: No OFD packet to send [18:11:03]OFD Sender: No OFD packet to send [18:11:08]OFD Sender: No OFD packet to send [18:11:13]OFD Sender: No OFD packet to send [18:11:18]OFD Sender: No OFD packet to send [18:11:23]OFD Sender: No OFD packet to send [18:11:28]OFD Sender: No OFD packet to send [18:11:33]OFD Sender: No OFD packet to send [18:11:38]OFD Sender: No OFD packet to send [18:11:39]recv_with_timeout no data received [18:11:43]OFD Sender: No OFD packet to send [18:11:48]OFD Sender: No OFD packet to send [18:11:53]OFD Sender: No OFD packet to send [18:11:58]OFD Sender: No OFD packet to send [18:12:03]OFD Sender: No OFD packet to send [18:12:08]OFD Sender: No OFD packet to send [18:12:23]OFD Sender: No OFD packet to send [18:12:28]OFD Sender: No OFD packet to send [18:12:33]OFD Sender: No OFD packet to send [18:12:33]recv_with_timeout no data received [18:12:38]OFD Sender: No OFD packet to send [18:12:43]OFD Sender: No OFD packet to send [18:12:48]OFD Sender: No OFD packet to send [18:12:53]OFD Sender: No OFD packet to send [18:12:58]OFD Sender: No OFD packet to send [18:13:03]OFD Sender: No OFD packet to send [18:13:08]OFD Sender: No OFD packet to send [18:13:13]OFD Sender: No OFD packet to send [18:13:18]OFD Sender: No OFD packet to send [18:13:23]OFD Sender: No OFD packet to send [18:13:28]OFD Sender: No OFD packet to send [18:13:33]OFD Sender: No OFD packet to send [18:13:38]OFD Sender: No OFD packet to send [18:13:43]OFD Sender: No OFD packet to send [18:13:48]OFD Sender: No OFD packet to send [18:13:53]OFD Sender: No OFD packet to send [18:13:58]OFD Sender: No OFD packet to send [18:14:03]OFD Sender: No OFD packet to send [18:14:08]OFD Sender: No OFD packet to send [18:14:13]OFD Sender: No OFD packet to send [18:14:18]OFD Sender: No OFD packet to send [18:14:23]OFD Sender: No OFD packet to send [18:14:28]OFD Sender: No OFD packet to send [18:14:33]OFD Sender: No OFD packet to send [18:14:38]OFD Sender: No OFD packet to send [18:14:43]OFD Sender: No OFD packet to send [18:14:48]OFD Sender: No OFD packet to send [18:14:53]OFD Sender: No OFD packet to send [18:14:58]OFD Sender: No OFD packet to send [18:15:03]OFD Sender: No OFD packet to send [18:15:08]OFD Sender: No OFD packet to send [18:15:13]OFD Sender: No OFD packet to send [18:15:18]OFD Sender: No OFD packet to send [18:15:23]OFD Sender: No OFD packet to send [18:15:28]OFD Sender: No OFD packet to send [18:15:33]OFD Sender: No OFD packet to send [18:15:38]OFD Sender: No OFD packet to send [18:15:43]OFD Sender: No OFD packet to send [18:15:48]OFD Sender: No OFD packet to send [18:15:52]recv_with_timeout no data received [18:15:53]OFD Sender: No OFD packet to send [18:15:58]OFD Sender: No OFD packet to send [18:16:03]OFD Sender: No OFD packet to send [18:16:08]OFD Sender: No OFD packet to send [18:16:13]OFD Sender: No OFD packet to send [18:16:18]OFD Sender: No OFD packet to send [18:16:23]OFD Sender: No OFD packet to send [18:16:28]OFD Sender: No OFD packet to send [18:16:33]OFD Sender: No OFD packet to send [18:16:38]OFD Sender: No OFD packet to send [18:16:43]OFD Sender: No OFD packet to send [18:16:48]OFD Sender: No OFD packet to send [18:16:53]OFD Sender: No OFD packet to send [18:16:58]OFD Sender: No OFD packet to send [18:17:03]OFD Sender: No OFD packet to send [18:17:08]OFD Sender: No OFD packet to send [18:17:13]OFD Sender: No OFD packet to send [18:17:18]OFD Sender: No OFD packet to send [18:17:23]OFD Sender: No OFD packet to send [18:17:28]OFD Sender: No OFD packet to send [18:17:33]OFD Sender: No OFD packet to send [18:17:38]OFD Sender: No OFD packet to send [18:17:43]OFD Sender: No OFD packet to send [18:17:48]OFD Sender: No OFD packet to send [18:17:53]OFD Sender: No OFD packet to send [18:17:58]OFD Sender: No OFD packet to send [18:17:59]recv_with_timeout no data received [18:18:03]OFD Sender: No OFD packet to send [18:18:08]OFD Sender: No OFD packet to send [18:18:13]OFD Sender: No OFD packet to send [18:18:18]OFD Sender: No OFD packet to send [18:18:23]OFD Sender: No OFD packet to send [18:18:28]OFD Sender: No OFD packet to send [18:18:33]OFD Sender: No OFD packet to send [18:18:38]OFD Sender: No OFD packet to send [18:18:42]recv_with_timeout no data received [18:18:43]OFD Sender: No OFD packet to send [18:18:48]OFD Sender: No OFD packet to send [18:18:53]OFD Sender: No OFD packet to send [18:18:58]OFD Sender: No OFD packet to send [18:19:03]OFD Sender: No OFD packet to send [18:19:08]OFD Sender: No OFD packet to send [18:19:13]OFD Sender: No OFD packet to send [18:19:18]OFD Sender: No OFD packet to send [18:19:23]recv_with_timeout no data received [18:19:23]OFD Sender: No OFD packet to send [18:20:46]ConnectInit Can't connect to host [18:20:48]OFD Sender: No OFD packet to send [18:20:53]OFD Sender: No OFD packet to send [18:20:58]OFD Sender: No OFD packet to send [18:21:03]OFD Sender: No OFD packet to send [18:21:08]OFD Sender: No OFD packet to send [18:21:13]OFD Sender: No OFD packet to send [18:21:18]OFD Sender: No OFD packet to send [18:21:23]OFD Sender: No OFD packet to send [18:21:28]OFD Sender: No OFD packet to send [18:21:33]OFD Sender: No OFD packet to send [18:21:38]OFD Sender: No OFD packet to send [18:21:43]OFD Sender: No OFD packet to send [18:21:48]OFD Sender: No OFD packet to send [18:21:53]OFD Sender: No OFD packet to send [18:21:58]OFD Sender: No OFD packet to send [18:22:03]OFD Sender: No OFD packet to send [18:22:08]OFD Sender: No OFD packet to send [18:22:13]OFD Sender: No OFD packet to send [18:22:18]OFD Sender: No OFD packet to send [18:22:23]OFD Sender: No OFD packet to send [18:22:28]OFD Sender: No OFD packet to send [18:22:33]OFD Sender: No OFD packet to send [18:22:38]OFD Sender: No OFD packet to send [18:22:43]OFD Sender: No OFD packet to send [18:22:48]OFD Sender: No OFD packet to send [18:22:53]OFD Sender: No OFD packet to send [18:22:58]OFD Sender: No OFD packet to send [18:23:03]OFD Sender: No OFD packet to send [18:23:08]OFD Sender: No OFD packet to send [18:23:13]OFD Sender: No OFD packet to send [18:23:18]OFD Sender: No OFD packet to send [18:23:23]OFD Sender: No OFD packet to send [18:23:28]OFD Sender: No OFD packet to send [18:23:33]OFD Sender: No OFD packet to send [18:23:38]OFD Sender: No OFD packet to send [18:23:40]recv_with_timeout no data received [18:23:43]OFD Sender: No OFD packet to send [18:23:48]OFD Sender: No OFD packet to send [18:23:53]OFD Sender: No OFD packet to send [18:23:58]OFD Sender: No OFD packet to send [18:24:03]OFD Sender: No OFD packet to send [18:24:08]OFD Sender: No OFD packet to send [18:24:13]OFD Sender: No OFD packet to send [18:24:18]OFD Sender: No OFD packet to send [18:24:23]OFD Sender: No OFD packet to send [18:24:28]OFD Sender: No OFD packet to send [18:24:33]OFD Sender: No OFD packet to send [18:24:38]OFD Sender: No OFD packet to send [18:24:43]OFD Sender: No OFD packet to send [18:24:48]OFD Sender: No OFD packet to send [18:24:49]recv_with_timeout no data received [18:24:53]OFD Sender: No OFD packet to send [18:24:58]OFD Sender: No OFD packet to send [18:25:03]OFD Sender: No OFD packet to send [18:25:08]OFD Sender: No OFD packet to send [18:25:13]OFD Sender: No OFD packet to send [18:25:18]OFD Sender: No OFD packet to send [18:25:23]OFD Sender: No OFD packet to send [18:25:28]OFD Sender: No OFD packet to send [18:25:33]OFD Sender: No OFD packet to send [18:25:38]OFD Sender: No OFD packet to send [18:25:43]OFD Sender: No OFD packet to send [18:25:48]OFD Sender: No OFD packet to send [18:25:53]OFD Sender: No OFD packet to send [18:25:58]OFD Sender: No OFD packet to send [18:26:03]OFD Sender: No OFD packet to send [18:26:08]OFD Sender: No OFD packet to send [18:26:10]recv_with_timeout no data received [18:26:13]OFD Sender: No OFD packet to send [18:26:18]OFD Sender: No OFD packet to send [18:26:23]OFD Sender: No OFD packet to send [18:26:28]OFD Sender: No OFD packet to send [18:26:33]OFD Sender: No OFD packet to send [18:26:38]OFD Sender: No OFD packet to send [18:26:43]OFD Sender: No OFD packet to send [18:26:48]OFD Sender: No OFD packet to send [18:26:53]OFD Sender: No OFD packet to send [18:26:58]OFD Sender: No OFD packet to send [18:27:03]OFD Sender: No OFD packet to send [18:27:08]OFD Sender: No OFD packet to send [18:27:12]recv_with_timeout no data received [18:27:13]OFD Sender: No OFD packet to send [18:27:18]OFD Sender: No OFD packet to send [18:27:24]OFD Sender: No OFD packet to send [18:27:29]OFD Sender: No OFD packet to send [18:27:34]OFD Sender: No OFD packet to send [18:27:39]OFD Sender: No OFD packet to send [18:27:44]OFD Sender: No OFD packet to send [18:27:49]OFD Sender: No OFD packet to send [18:27:54]OFD Sender: No OFD packet to send [18:27:59]OFD Sender: No OFD packet to send [18:28:04]OFD Sender: No OFD packet to send [18:28:09]OFD Sender: No OFD packet to send [18:28:14]OFD Sender: No OFD packet to send [18:28:19]OFD Sender: No OFD packet to send [18:28:24]OFD Sender: No OFD packet to send [18:28:29]OFD Sender: No OFD packet to send [18:28:34]OFD Sender: No OFD packet to send [18:28:39]OFD Sender: No OFD packet to send [18:28:44]OFD Sender: No OFD packet to send [18:28:49]OFD Sender: No OFD packet to send [18:28:54]OFD Sender: No OFD packet to send [18:28:59]OFD Sender: No OFD packet to send [18:29:04]OFD Sender: No OFD packet to send [18:29:09]OFD Sender: No OFD packet to send [18:29:14]OFD Sender: No OFD packet to send [18:29:19]OFD Sender: No OFD packet to send [18:29:24]OFD Sender: No OFD packet to send [18:29:29]OFD Sender: No OFD packet to send [18:29:34]OFD Sender: No OFD packet to send [18:29:39]OFD Sender: No OFD packet to send [18:29:44]OFD Sender: No OFD packet to send [18:29:49]OFD Sender: No OFD packet to send [18:29:54]OFD Sender: No OFD packet to send [18:29:59]OFD Sender: No OFD packet to send [18:30:04]OFD Sender: No OFD packet to send [18:30:09]OFD Sender: No OFD packet to send [18:30:14]OFD Sender: No OFD packet to send [18:30:19]OFD Sender: No OFD packet to send [18:30:24]OFD Sender: No OFD packet to send [18:30:29]OFD Sender: No OFD packet to send [18:30:34]OFD Sender: No OFD packet to send [18:30:39]OFD Sender: No OFD packet to send [18:30:44]OFD Sender: No OFD packet to send [18:30:49]OFD Sender: No OFD packet to send [18:31:09]OFD Sender: No OFD packet to send [18:31:14]OFD Sender: No OFD packet to send [18:31:19]OFD Sender: No OFD packet to send [18:31:24]OFD Sender: No OFD packet to send [18:31:29]OFD Sender: No OFD packet to send [18:31:34]OFD Sender: No OFD packet to send [18:31:39]OFD Sender: No OFD packet to send [18:31:44]OFD Sender: No OFD packet to send [18:31:46]recv_with_timeout no data received [18:31:49]OFD Sender: No OFD packet to send [18:31:54]OFD Sender: No OFD packet to send [18:31:59]OFD Sender: No OFD packet to send [18:32:04]OFD Sender: No OFD packet to send [18:32:09]OFD Sender: No OFD packet to send [18:32:14]OFD Sender: No OFD packet to send [18:32:19]OFD Sender: No OFD packet to send [18:32:24]OFD Sender: No OFD packet to send [18:32:29]OFD Sender: No OFD packet to send [18:32:34]OFD Sender: No OFD packet to send [18:32:39]OFD Sender: No OFD packet to send [18:32:44]OFD Sender: No OFD packet to send [18:32:49]OFD Sender: No OFD packet to send [18:32:54]OFD Sender: No OFD packet to send [18:32:59]OFD Sender: No OFD packet to send [18:33:04]OFD Sender: No OFD packet to send [18:33:09]OFD Sender: No OFD packet to send [18:33:14]OFD Sender: No OFD packet to send [18:33:19]OFD Sender: No OFD packet to send [18:33:24]OFD Sender: No OFD packet to send [18:33:29]OFD Sender: No OFD packet to send [18:33:34]OFD Sender: No OFD packet to send [18:33:39]OFD Sender: No OFD packet to send [18:33:44]OFD Sender: No OFD packet to send [18:33:49]OFD Sender: No OFD packet to send [18:33:54]OFD Sender: No OFD packet to send [18:33:59]OFD Sender: No OFD packet to send [18:34:04]OFD Sender: No OFD packet to send [18:34:09]OFD Sender: No OFD packet to send [18:34:14]OFD Sender: No OFD packet to send [18:34:19]OFD Sender: No OFD packet to send [18:34:24]OFD Sender: No OFD packet to send [18:34:26]recv_with_timeout no data received [18:34:29]OFD Sender: No OFD packet to send [18:34:34]OFD Sender: No OFD packet to send [18:34:39]OFD Sender: No OFD packet to send [18:34:44]OFD Sender: No OFD packet to send [18:34:49]OFD Sender: No OFD packet to send [18:34:54]OFD Sender: No OFD packet to send [18:34:59]OFD Sender: No OFD packet to send [18:35:01]accept exits with 10 [18:35:01]New connection [18:35:01]New thread 3067084132 created [18:35:01]Thread 3066940772 joined [18:35:01]Waiting for new connection... [18:35:01] Sock 10.Parse request [18:35:01]Sock 10.Check first char [18:35:01]Sock 10.First char is OK [18:35:01]request: POST /json_proto HTTP/1.0 [18:35:01]Method: POST [18:35:01]URL: /json_proto [18:35:01]Method is POST - this is cgi request [18:35:01]url: /json_proto [18:35:01]query_string will be loaded in cgi processing [18:35:01]execute_cgi json_proto POST (null) [18:35:01]execute_cgi path=json_proto method=POST [18:35:01]POST find Content-Length [18:35:01]Host: 172.17.43.132:8080 [18:35:01]Content-Length: 1571 [18:35:01]Content-Type: application/json [18:35:01] [18:35:01]POST finish read [18:35:01]Found Content-Length = 1571 [18:35:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183965", "tax_sys" : 0, "items" : [ { "code": "4660085515163", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0441\u0443\u043F\u0435\u0440 95/80\u0433", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4011100977624", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0411\u0430\u0443\u043D\u0442\u0438 55\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46227744", "name": "\u0416\u0435\u0432 \u043C\u0435\u043D\u0442\u043E\u0441 \u0431\u0430\u043D\u043A\u0430 \u0412\u0438\u043D\u043E\u0433\u0440\u0430\u0434 8*6*54\u0433", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 469.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:35:01]execute_script... [18:35:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183965", "tax_sys" : 0, "items" : [ { "code": "4660085515163", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0441\u0443\u043F\u0435\u0440 95/80\u0433", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4011100977624", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0411\u0430\u0443\u043D\u0442\u0438 55\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46227744", "name": "\u0416\u0435\u0432 \u043C\u0435\u043D\u0442\u043E\u0441 \u0431\u0430\u043D\u043A\u0430 \u0412\u0438\u043D\u043E\u0433\u0440\u0430\u0434 8*6*54\u0433", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 469.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:35:01]POST & json_proto [18:35:01]process_json_proto [18:35:01]json parsed OK: [18:35:01]protocol is kg_v1.0 [18:35:01]action value=close_receipt [18:35:01]process_action close_receipt [18:35:01]cmd_close_receipt [18:35:01]MH_GetDate [18:35:01]Write to MH i2c: F0 00 00 B6 03 A8 [18:35:01]Write i2c OK [18:35:01]MH_I2C_Read... [18:35:01]Read from MH i2c: F0 [18:35:01]MH_I2C_Read... [18:35:01]Read from MH i2c: F0 09 00 [18:35:01]MH_I2C_Read... [18:35:01]Read from MH i2c: F0 09 00 B6 03 00 D6 E0 A7 66 64 A3 A7 66 88 [18:35:01]GetLastDocTimeStamp 1722276474 [18:35:01]current date 1722278102 [18:35:01]FM_GetShiftState [18:35:01]SAM_PROTO_GetShiftState [18:35:01]wFMCommunicate request_size=4 [18:35:01]MH_SAM_APDU [18:35:01]CAPDU: 80 13 01 00 [18:35:01]Write to MH i2c: E2 08 00 B7 03 80 13 01 00 00 00 00 00 37 [18:35:01]Write i2c OK [18:35:01]MH_I2C_Read... [18:35:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:35:01]Read from MH i2c: E2 [18:35:01]MH_I2C_Read... [18:35:01]Read from MH i2c: E2 0E 00 [18:35:01]MH_I2C_Read... [18:35:01]Read from MH i2c: E2 0E 00 B7 03 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 D3 [18:35:01]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [18:35:01]wFMCommunicate OK [18:35:01]SAM_PROTO_GetShiftState done [18:35:01]FM_GetShiftState done [18:35:01]opened in 1722211496 [18:35:01]opened+sec_in_day 1722297896 [18:35:01]quantity*price = 9000 [18:35:01]sum+1 = 9001 [18:35:01]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4011100977624 Шок Батончик Баунти 55г 1.000 * 59.00 = 59.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 46227744 Жев ментос банка Виноград 8*6*54г 1.000 * 205.00 = 205.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000036210013 Кофе Капучино (GABB TRADE) 1.000 * 115.00 = 115.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 469.00 НСП 1% : 4.15 НДС 12% : 49.80 Наличными: 469.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 125 29.07.2024 18:35 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41936 ФПД: 187064034503452 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T183502&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41936&fm=187064034503452&tin=02508201610067®Number=0000000000092626&sum=46900 0 [18:35:02]StoreToDocumentArchive [18:35:02]shift 427 fd 41936 [18:35:02]save to /storage/0427/doc_00041936 [18:35:02]save last doc name /storage/0427/doc_00041936 to /storage/kkm_last_doc_name [18:35:02]save OK [18:35:02]Clear old archive folders... [18:35:02]ProcessDocumentItem done err = 0, tmpTLVsize=645 [18:35:02]tlvbuf is 00D7AA10 [18:35:02]SAM_PROTO_ClearQueue [18:35:02]wFMCommunicate request_size=4 [18:35:02]MH_SAM_APDU [18:35:02]CAPDU: 80 09 00 00 [18:35:02]Write to MH i2c: E2 08 00 C4 03 80 09 00 00 00 00 00 00 39 [18:35:02]Write i2c OK [18:35:02]MH_I2C_Read... [18:35:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:35:02]Read from MH i2c: E2 [18:35:02]MH_I2C_Read... [18:35:02]Read from MH i2c: E2 03 00 [18:35:02]MH_I2C_Read... [18:35:02]Read from MH i2c: E2 03 00 C4 03 00 90 00 3B [18:35:02]RAPDU: 90 00 [18:35:02]wFMCommunicate OK [18:35:02]SAM_PROTO_ClearQueue done [18:35:02]KKMCreateOFDPacket [18:35:02]OFDProtocolAddRootSTLVToBuf [18:35:02]FM_MakeSignedData [18:35:02]FM_MakeSignedData [18:35:02]SAM_PROTO_SignData [18:35:02]wFMCommunicate request_size=4 [18:35:02]MH_SAM_APDU [18:35:02]CAPDU: 80 0D 01 02 [18:35:02]Write to MH i2c: E2 08 00 C5 03 80 0D 01 02 00 00 00 00 41 [18:35:02]Write i2c OK [18:35:02]MH_I2C_Read... [18:35:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:35:03]Read from MH i2c: E2 [18:35:03]MH_I2C_Read... [18:35:03]Read from MH i2c: E2 03 00 [18:35:03]MH_I2C_Read... [18:35:03]Read from MH i2c: E2 03 00 C5 03 00 90 00 3C [18:35:03]RAPDU: 90 00 [18:35:03]wFMCommunicate OK [18:35:03]wFMCommunicate request_size=255 [18:35:03]MH_SAM_APDU [18:35:03]CAPDU: 80 0D 02 02 FA 03 00 85 02 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 [18:35:03]Write to MH i2c: E2 02 01 C6 03 80 0D 02 02 FA 00 03 00 85 02 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 00 00 BC [18:35:03]Write i2c OK [18:35:03]MH_I2C_Read... [18:35:03]Read from MH i2c: E2 [18:35:03]MH_I2C_Read... [18:35:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:35:03]Read from MH i2c: E2 03 00 [18:35:03]MH_I2C_Read... [18:35:03]Read from MH i2c: E2 03 00 C6 03 00 90 00 3D [18:35:03]RAPDU: 90 00 [18:35:03]wFMCommunicate OK [18:35:03]wFMCommunicate request_size=255 [18:35:03]MH_SAM_APDU [18:35:03]CAPDU: 80 0D 02 02 FA 01 23 04 77 00 8A 04 08 00 34 36 32 32 37 37 34 34 06 04 38 00 D0 96 D0 B5 D0 B2 20 D0 BC D0 B5 D0 BD D1 82 D0 BE D1 81 20 D0 B1 D0 B0 D0 BD D0 BA D0 B0 20 D0 92 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 38 2A 36 2A 35 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 B7 00 00 00 00 EB 03 26 00 EF 03 [18:35:03]Write to MH i2c: E2 02 01 C7 03 80 0D 02 02 FA 00 01 23 04 77 00 8A 04 08 00 34 36 32 32 37 37 34 34 06 04 38 00 D0 96 D0 B5 D0 B2 20 D0 BC D0 B5 D0 BD D1 82 D0 BE D1 81 20 D0 B1 D0 B0 D0 BD D0 BA D0 B0 20 D0 92 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 38 2A 36 2A 35 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 B7 00 00 00 00 EB 03 26 00 EF 03 00 00 DC [18:35:03]Write i2c OK [18:35:03]MH_I2C_Read... [18:35:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:35:03]Read from MH i2c: E2 [18:35:03]MH_I2C_Read... [18:35:03]Read from MH i2c: E2 03 00 [18:35:03]MH_I2C_Read... [18:35:03]Read from MH i2c: E2 03 00 C7 03 00 90 00 3E [18:35:03]RAPDU: 90 00 [18:35:03]wFMCommunicate OK [18:35:03]wFMCommunicate request_size=154 [18:35:03]MH_SAM_APDU [18:35:03]CAPDU: 80 0D 02 02 95 0F 00 F6 03 01 00 01 F7 03 06 00 9F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 13 00 00 00 00 07 04 06 00 34 B7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 D6 E0 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 D0 A3 00 00 35 04 06 00 AA 22 3D 53 AB 1C [18:35:03]Write to MH i2c: E2 9D 00 C8 03 80 0D 02 02 95 00 0F 00 F6 03 01 00 01 F7 03 06 00 9F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 13 00 00 00 00 07 04 06 00 34 B7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 D6 E0 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 D0 A3 00 00 35 04 06 00 AA 22 3D 53 AB 1C 00 00 43 [18:35:03]Write i2c OK [18:35:03]MH_I2C_Read... [18:35:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:35:03]Read from MH i2c: E2 [18:35:03]MH_I2C_Read... [18:35:03]Read from MH i2c: E2 03 00 [18:35:03]MH_I2C_Read... [18:35:03]Read from MH i2c: E2 03 00 C8 03 00 90 00 3F [18:35:03]RAPDU: 90 00 [18:35:03]wFMCommunicate OK [18:35:03]wFMCommunicate request_size=4 [18:35:03]MH_SAM_APDU [18:35:03]CAPDU: 80 0D 03 02 [18:35:03]Write to MH i2c: E2 08 00 C9 03 80 0D 03 02 00 00 00 00 47 [18:35:03]Write i2c OK [18:35:03]MH_I2C_Read... [18:35:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:35:03]Read from MH i2c: E2 [18:35:03]MH_I2C_Read... [18:35:03]Read from MH i2c: E2 0B 00 [18:35:03]MH_I2C_Read... [18:35:03]Read from MH i2c: E2 0B 00 C9 03 00 3F 4D 76 56 69 F8 9E 80 90 00 1F [18:35:03]RAPDU: 3F 4D 76 56 69 F8 9E 80 90 00 [18:35:03]wFMCommunicate OK [18:35:03]SAM_PROTO_SignData done [18:35:03]FM_MakeSignedData done [18:35:03]CreateOFDProtocolMessage [18:35:03]wFMCommunicate request_size=4 [18:35:03]MH_SAM_APDU [18:35:03]CAPDU: 80 11 00 00 [18:35:03]Write to MH i2c: E2 08 00 CA 03 80 11 00 00 00 00 00 00 47 [18:35:03]Write i2c OK [18:35:03]MH_I2C_Read... [18:35:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:35:03]Read from MH i2c: E2 [18:35:03]MH_I2C_Read... [18:35:03]Read from MH i2c: E2 17 00 [18:35:03]MH_I2C_Read... [18:35:03]Read from MH i2c: E2 17 00 CA 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 A3 [18:35:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [18:35:03]wFMCommunicate OK [18:35:03]CreateOFDProtocolMessage done [18:35:03]OFDSenderStorePacket 41936 [18:35:03]StoreOFDPacket docnum=41936 [18:35:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 99 02 00 00 87 B8 91 02 C1 D2 5A 03 01 00 03 00 85 02 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 08 00 34 36 32 32 37 37 34 34 06 04 38 00 D0 96 D0 B5 D0 B2 20 D0 BC D0 B5 D0 BD D1 82 D0 BE D1 81 20 D0 B1 D0 B0 D0 BD D0 BA D0 B0 20 D0 92 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 38 2A 36 2A 35 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 13 00 00 00 00 07 04 06 00 34 B7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 D6 E0 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 D0 A3 00 00 35 04 06 00 AA 22 3D 53 AB 1C 3F 4D 76 56 69 F8 9E 80 [18:35:03]CheckFolder [18:35:03]dirname=/storage/ofd_packets [18:35:03]CheckFolder done [18:35:03]ProducePacketName [18:35:03]name=ofd_packets/00041936 [18:35:03]NVStorageSaveData ofd_packets/00041936 [18:35:03]File name is /storage/ofd_packets/00041936 [18:35:03]Write 695 bytes [18:35:03]NVStorageSaveData done [18:35:03]OFDSenderStorePacket done [18:35:03]KKMCreateOFDPacket done [18:35:03]NVStorageSaveData kkm_last_timestamp [18:35:03]File name is /storage/kkm_last_timestamp [18:35:03]Write 4 bytes [18:35:03]NVStorageSaveData done [18:35:03]ExternCall_PrintAddStr [18:35:03]wPrintStart [18:35:03]Write to MH i2c: 01 00 00 CB 03 CE [18:35:03]Write i2c OK [18:35:03]MH_I2C_Read... [18:35:03]Read from MH i2c: 01 [18:35:03]MH_I2C_Read... [18:35:03]Read from MH i2c: 01 07 00 [18:35:03]MH_I2C_Read... [18:35:03]Read from MH i2c: 01 07 00 CB 03 00 00 00 00 00 FF 0F E3 [18:35:03]RasterBufferAndPrint [18:35:03]line Счет N : (3)183965 [18:35:03]line ИНН: 02508201610067 [18:35:03]line Контрольно-Кассовый Чек [18:35:03]line ПРОДАЖА [18:35:03]line Товар: 4660085515163 [18:35:03]line Шок Батончик Сникерс супер 95/80г [18:35:03]line 1.000 * 90.00 [18:35:04]line = 90.00 [18:35:04]line НДС 12% НСП 1% [18:35:04]line > о реализуемом товаре [18:35:04]line Товар: 4011100977624 [18:35:04]line Шок Батончик Баунти 55г [18:35:04]line 1.000 * 59.00 [18:35:04]line = 59.00 [18:35:04]line НДС 12% НСП 1% [18:35:04]line > о реализуемом товаре [18:35:04]line Товар: 46227744 [18:35:04]line Жев ментос банка Виноград 8*6*54г [18:35:04]line 1.000 * 205.00 [18:35:04]line = 205.00 [18:35:04]line НДС 12% НСП 1% [18:35:04]line > о реализуемом товаре [18:35:04]line Товар: 2000036210013 [18:35:04]line Кофе Капучино (GABB TRADE) [18:35:04]line 1.000 * 115.00 [18:35:04]line = 115.00 [18:35:04]line НДС 12% НСП 1% [18:35:04]line > о реализуемом товаре [18:35:04]line ИТОГО: 469.00 [18:35:04]line НСП 1% : 4.15 [18:35:04]line НДС 12% : 49.80 [18:35:04]line Наличными: 469.00 [18:35:04]line Безнал.: 0.00 [18:35:04]line Место: АЗС № 97 "Партнер Нефть" [18:35:04]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [18:35:04]line СНО: Общий режим [18:35:04]line Чек 125 29.07.2024 18:35 [18:35:04]line Смена: 427 ФФД: 1.0 [18:35:04]line ЗНМ: 0300000053 [18:35:04]line РНМ: 0000000000092626 [18:35:04]line Версия ККМ: 001 [18:35:04]line ФМ: 0000000000874958 [18:35:04]line ФД: 41936 [18:35:04]line ФПД: 187064034503452 [18:35:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T183502&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41936&fm=187064034503452&tin=02508201610067®Number=0000000000092626&sum=46900 [18:35:04]OFD Sender: Processing packet 41936 [packets to send 57, broken 56] [18:35:04]ProducePacketName [18:35:04]name=ofd_packets/00041936 [18:35:04]OFD Sender: To server: pG, [18:35:04]CommunicateWithHost lk.salyk.kg:30040 [18:35:04]ConnectInit lk.salyk.kg [18:35:04]line 0 [18:35:04]written 0, free lines is 4095 [18:35:04]Write to MH i2c: 01 00 00 07 04 0B [18:35:04]Write i2c OK [18:35:04]MH_I2C_Read... [18:35:04]Read from MH i2c: 01 [18:35:04]MH_I2C_Read... [18:35:04]Read from MH i2c: 01 07 00 [18:35:04]MH_I2C_Read... [18:35:04]Read from MH i2c: 01 07 00 07 04 00 00 00 00 00 1E 0C 3C [18:35:04]RasterBufferAndPrint [18:35:04]line [18:35:04]line [18:35:04]line [18:35:04]line [18:35:04]line [18:35:04]written 0, free lines is 3108 [18:35:04]MH_Cut [18:35:04]Write to MH i2c: D1 01 00 0E 04 01 E4 [18:35:04]Write i2c OK [18:35:04]MH_I2C_Read... [18:35:04]Read from MH i2c: D1 [18:35:04]MH_I2C_Read... [18:35:04]Read from MH i2c: D1 01 00 [18:35:04]MH_I2C_Read... [18:35:04]Read from MH i2c: D1 01 00 0E 04 00 E3 [18:35:04]Write to MH i2c: 01 00 00 0F 04 13 [18:35:04]Write i2c OK [18:35:04]MH_I2C_Read... [18:35:05]*** Cut start [18:35:05]*** Partial cut [18:35:05]*** CUTSNS_PIN = 1 [18:35:05]*** CUTSNS_PIN = 0 [18:35:06]*** Brake cut motor [18:35:06]Read from MH i2c: 01 [18:35:06]MH_I2C_Read... [18:35:06]*** Stop cut motor [18:35:06]*** Cut end [18:35:06]Read from MH i2c: 01 07 00 [18:35:06]MH_I2C_Read... [18:35:06]Read from MH i2c: 01 07 00 0F 04 00 00 00 00 00 FF 0F 28 [18:35:06]process_action close_receipt done [18:35:06]requested_data is exist [18:35:06]produce_requested_data [18:35:06]requested_item fm.sn is exist - process it [18:35:06]wFMCommunicate request_size=4 [18:35:06]MH_SAM_APDU [18:35:06]CAPDU: 80 11 00 00 [18:35:06]Write to MH i2c: E2 08 00 10 04 80 11 00 00 00 00 00 00 8E [18:35:06]Write i2c OK [18:35:06]MH_I2C_Read... [18:35:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:35:06]Read from MH i2c: E2 [18:35:06]MH_I2C_Read... [18:35:06]Read from MH i2c: E2 17 00 [18:35:06]MH_I2C_Read... [18:35:06]Read from MH i2c: E2 17 00 10 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 EA [18:35:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [18:35:06]wFMCommunicate OK [18:35:06]requested_item fd.num is exist - process it [18:35:06]SAM_PROTO_GetFieldsCounters [18:35:06]wFMCommunicate request_size=4 [18:35:06]MH_SAM_APDU [18:35:06]CAPDU: 80 13 00 00 [18:35:06]Write to MH i2c: E2 08 00 11 04 80 13 00 00 00 00 00 00 91 [18:35:06]Write i2c OK [18:35:06]MH_I2C_Read... [18:35:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:35:06]Read from MH i2c: E2 [18:35:06]MH_I2C_Read... [18:35:06]Read from MH i2c: E2 62 00 [18:35:06]MH_I2C_Read... [18:35:06]Read from MH i2c: E2 62 00 11 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 D0 A3 00 00 0E 04 04 00 AB 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 51 [18:35:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 D0 A3 00 00 0E 04 04 00 AB 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 [18:35:06]wFMCommunicate OK [18:35:06]SAM_PROTO_GetFieldsCounters done [18:35:06]requested_item shift.num is exist - process it [18:35:06]requested_item shift.opened is exist - process it [18:35:06]req_shift_opened [18:35:06]FM_GetShiftState [18:35:06]SAM_PROTO_GetShiftState [18:35:06]wFMCommunicate request_size=4 [18:35:06]MH_SAM_APDU [18:35:06]CAPDU: 80 13 01 00 [18:35:06]Write to MH i2c: E2 08 00 12 04 80 13 01 00 00 00 00 00 93 [18:35:06]Write i2c OK [18:35:06]MH_I2C_Read... [18:35:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:35:06]Read from MH i2c: E2 [18:35:06]MH_I2C_Read... [18:35:06]Read from MH i2c: E2 0E 00 [18:35:06]MH_I2C_Read... [18:35:06]Read from MH i2c: E2 0E 00 12 04 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 2F [18:35:06]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [18:35:06]wFMCommunicate OK [18:35:06]SAM_PROTO_GetShiftState done [18:35:06]FM_GetShiftState done [18:35:06]req_shift_opened done [18:35:06]requested_item shift.open_date is exist - process it [18:35:06]req_shift_open_date [18:35:06]req_shift_open_date done [18:35:06]produce_requested_data done [18:35:06]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41936,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [18:35:06]process_action_free close_receipt [18:35:06]json_value_free [18:35:06]json_value_free done [18:35:06]process_json_proto returns [18:35:06]Send response to host [18:35:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41936,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [18:35:06]free response buf [18:35:06]execute_script done [18:35:06]execute_script returns [18:35:06]free content buf [18:35:06]Sock 10.Close socket [18:35:06]Sock 10.Thread stoped [18:35:08]Connected sock=11 [18:35: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 35 38 99 02 00 00 87 B8 91 02 C1 D2 5A 03 01 00 03 00 85 02 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 08 00 34 36 32 32 37 37 34 34 06 04 38 00 D0 96 D0 B5 D0 B2 20 D0 BC D0 B5 D0 BD D1 82 D0 BE D1 81 20 D0 B1 D0 B0 D0 BD D0 BA D0 B0 20 D0 92 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 38 2A 36 2A 35 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 13 00 00 00 00 07 04 06 00 34 B7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 D6 E0 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 D0 A3 00 00 35 04 06 00 AA 22 3D 53 AB 1C 3F 4D 76 56 69 F8 9E 80 [18:35: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 35 38 4F 00 00 00 43 6E 47 00 E4 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 35 38 10 04 04 00 D0 A3 00 00 F4 03 04 00 F1 8C A7 66 B6 04 01 00 00 92 80 A9 B8 04 73 7A 59 [18:35:09]CommunicateWithHost err = 0 [18:35:09]CheckOFDResponse [18:35:09]1017 (14) - 77093643461234 [18:35:09]1041 (16) - 0000000000874958 [18:35:09]1040 (4) - 41936 [18:35:09]1012 (4) - 29.07.2024 12:37 [18:35:09]1206 (1) - 0 [18:35:09]OFD Sender: Remove packet 41936 [18:35:09]ProducePacketName [18:35:09]name=ofd_packets/00041936 [18:35:09]NVStorageDeleteData [18:35:10]OFD Sender: No OFD packet to send [18:35:15]OFD Sender: No OFD packet to send [18:35:20]OFD Sender: No OFD packet to send [18:35:25]OFD Sender: No OFD packet to send [18:35:30]OFD Sender: No OFD packet to send [18:35:35]OFD Sender: No OFD packet to send [18:35:40]OFD Sender: No OFD packet to send [18:35:45]OFD Sender: No OFD packet to send [18:35:50]OFD Sender: No OFD packet to send [18:35:55]OFD Sender: No OFD packet to send [18:36:00]OFD Sender: No OFD packet to send [18:36:03]recv_with_timeout no data received [18:36:05]OFD Sender: No OFD packet to send [18:36:10]OFD Sender: No OFD packet to send [18:36:15]OFD Sender: No OFD packet to send [18:36:20]OFD Sender: No OFD packet to send [18:36:20]recv_with_timeout no data received [18:36:25]OFD Sender: No OFD packet to send [18:36:30]OFD Sender: No OFD packet to send [18:36:35]OFD Sender: No OFD packet to send [18:36:40]OFD Sender: No OFD packet to send [18:36:45]OFD Sender: No OFD packet to send [18:36:46]recv_with_timeout no data received [18:36:50]OFD Sender: No OFD packet to send [18:36:55]OFD Sender: No OFD packet to send [18:36:59]recv_with_timeout no data received [18:37:00]OFD Sender: No OFD packet to send [18:37:05]OFD Sender: No OFD packet to send [18:37:10]OFD Sender: No OFD packet to send [18:37:15]OFD Sender: No OFD packet to send [18:37:20]recv_with_timeout no data received [18:37:20]OFD Sender: No OFD packet to send [18:37:25]OFD Sender: No OFD packet to send [18:37:30]OFD Sender: No OFD packet to send [18:37:35]OFD Sender: No OFD packet to send [18:37:40]OFD Sender: No OFD packet to send [18:37:40]recv_with_timeout no data received [18:37:45]OFD Sender: No OFD packet to send [18:37:50]OFD Sender: No OFD packet to send [18:37:55]OFD Sender: No OFD packet to send [18:38:00]OFD Sender: No OFD packet to send [18:38:05]OFD Sender: No OFD packet to send [18:38:05]accept exits with 7 [18:38:05]New connection [18:38:05]New thread 3066940772 created [18:38:05]Thread 3067084132 joined [18:38:05]Waiting for new connection... [18:38:05] Sock 7.Parse request [18:38:05]Sock 7.Check first char [18:38:05]Sock 7.First char is OK [18:38:05]request: POST /json_proto HTTP/1.0 [18:38:05]Method: POST [18:38:05]URL: /json_proto [18:38:05]Method is POST - this is cgi request [18:38:05]url: /json_proto [18:38:05]query_string will be loaded in cgi processing [18:38:05]execute_cgi json_proto POST (null) [18:38:05]execute_cgi path=json_proto method=POST [18:38:05]POST find Content-Length [18:38:05]Host: 172.17.43.132:8080 [18:38:05]Content-Length: 632 [18:38:05]Content-Type: application/json [18:38:05] [18:38:05]POST finish read [18:38:05]Found Content-Length = 632 [18:38:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183966", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 2.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:38:05]execute_script... [18:38:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183966", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 2.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:38:05]POST & json_proto [18:38:05]process_json_proto [18:38:05]json parsed OK: [18:38:05]protocol is kg_v1.0 [18:38:05]action value=close_receipt [18:38:05]process_action close_receipt [18:38:05]cmd_close_receipt [18:38:05]MH_GetDate [18:38:05]Write to MH i2c: F0 00 00 13 04 06 [18:38:05]Write i2c OK [18:38:05]MH_I2C_Read... [18:38:05]Read from MH i2c: F0 [18:38:05]MH_I2C_Read... [18:38:05]Read from MH i2c: F0 09 00 [18:38:05]MH_I2C_Read... [18:38:05]Read from MH i2c: F0 09 00 13 04 00 8E E1 A7 66 64 A3 A7 66 9F [18:38:05]GetLastDocTimeStamp 1722278102 [18:38:05]current date 1722278286 [18:38:05]FM_GetShiftState [18:38:05]SAM_PROTO_GetShiftState [18:38:05]wFMCommunicate request_size=4 [18:38:05]MH_SAM_APDU [18:38:05]CAPDU: 80 13 01 00 [18:38:05]Write to MH i2c: E2 08 00 14 04 80 13 01 00 00 00 00 00 95 [18:38:05]Write i2c OK [18:38:05]MH_I2C_Read... [18:38:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:38:05]Read from MH i2c: E2 [18:38:05]MH_I2C_Read... [18:38:05]Read from MH i2c: E2 0E 00 [18:38:05]MH_I2C_Read... [18:38:05]Read from MH i2c: E2 0E 00 14 04 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 31 [18:38:05]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [18:38:05]wFMCommunicate OK [18:38:05]SAM_PROTO_GetShiftState done [18:38:05]FM_GetShiftState done [18:38:05]opened in 1722211496 [18:38:05]opened+sec_in_day 1722297896 [18:38:05]quantity*price = 10000 [18:38:05]sum+1 = 10001 [18:38:05]Check (price>sum+1) || (price+1 о реализуемом товаре Товар: 4700000160051 Вода Ыссык Ата 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000031750019 Пакет Партнер Нефть 1.000 * 4.00 = 4.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 414.00 НСП 1% : 3.66 НДС 12% : 43.96 Наличными: 414.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 127 29.07.2024 18:43 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41938 ФПД: 121184215128429 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T184348&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41938&fm=121184215128429&tin=02508201610067®Number=0000000000092626&sum=41400 0 [18:43:48]StoreToDocumentArchive [18:43:48]shift 427 fd 41938 [18:43:48]save to /storage/0427/doc_00041938 [18:43:48]save last doc name /storage/0427/doc_00041938 to /storage/kkm_last_doc_name [18:43:48]save OK [18:43:48]Clear old archive folders... [18:43:48]ProcessDocumentItem done err = 0, tmpTLVsize=482 [18:43:48]tlvbuf is 00D7D3A0 [18:43:48]SAM_PROTO_ClearQueue [18:43:48]wFMCommunicate request_size=4 [18:43:48]MH_SAM_APDU [18:43:48]CAPDU: 80 09 00 00 [18:43:48]Write to MH i2c: E2 08 00 69 04 80 09 00 00 00 00 00 00 DF [18:43:48]Write i2c OK [18:43:48]MH_I2C_Read... [18:43:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:43:48]Read from MH i2c: E2 [18:43:48]MH_I2C_Read... [18:38:06]Write i2c OK [18:38:06]MH_I2C_Read... [18:38:06]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [18:38:06]Read from MH i2c: E2 [18:38:06]MH_I2C_Read... [18:38:06]Read from MH i2c: E2 03 00 [18:38:06]MH_I2C_Read... [18:38:06]Read from MH i2c: E2 03 00 1D 04 00 90 00 95 [18:38:06]RAPDU: 90 00 [18:38:06]wFMCommunicate OK [18:38:06]wFMCommunicate request_size=25 [18:38:06]MH_SAM_APDU [18:38:06]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 [18:38:06]Write to MH i2c: E2 1C 00 1E 04 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 00 00 04 [18:38:06]Write i2c OK [18:38:06]MH_I2C_Read... [18:38:06]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [18:38:06]Read from MH i2c: E2 [18:38:06]MH_I2C_Read... [18:38:06]Read from MH i2c: E2 03 00 [18:38:06]MH_I2C_Read... [18:38:06]Read from MH i2c: E2 03 00 1E 04 00 90 00 96 [18:38:06]RAPDU: 90 00 [18:38:06]wFMCommunicate OK [18:38:06]wFMCommunicate request_size=4 [18:38:06]MH_SAM_APDU [18:38:06]CAPDU: 80 15 03 00 [18:38:06]Write to MH i2c: E2 08 00 1F 04 80 15 03 00 00 00 00 00 A4 [18:38:06]Write i2c OK [18:38:06]MH_I2C_Read... [18:38:06]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [18:38:06]Read from MH i2c: E2 [18:38:06]MH_I2C_Read... [18:38:06]Read from MH i2c: E2 40 00 [18:38:06]MH_I2C_Read... [18:38:06]Read from MH i2c: E2 40 00 1F 04 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 D1 A3 00 00 0E 04 04 00 AB 01 00 00 12 04 04 00 7E 00 00 00 35 04 06 00 25 CB 9C C0 62 6A 90 00 59 [18:38:06]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 D1 A3 00 00 0E 04 04 00 AB 01 00 00 12 04 04 00 7E 00 00 00 35 04 06 00 25 CB 9C C0 62 6A 90 00 [18:38:06]wFMCommunicate OK [18:38:06]SAM_PROTO_ProcessDocument answer len = 59 [18:38:06]SAM_PROTO_ProcessDocument done [18:38:06]SetTLVBufToDocument [18:38:06]Processing tag 1209 (04B9) [18:38:06]Malloc new data [18:38:06]Processing tag 1041 (0411) [18:38:06]Processing tag 1040 (0410) [18:38:06]Malloc new data [18:38:06]Processing tag 1038 (040E) [18:38:06]Malloc new data [18:38:06]Processing tag 1042 (0412) [18:38:06]Malloc new data [18:38:06]Processing tag 1077 (0435) [18:38:06]Malloc new data [18:38:06]SetTLVBufToDocument err=0 [18:38:06]KKMLoadAndSignReceiptData store KKM data [18:38:06]KKMLoadAndSignReceiptData err=0 [18:38:06]wFMCommunicate request_size=4 [18:38:06]MH_SAM_APDU [18:38:06]CAPDU: 80 11 00 00 [18:38:06]Write to MH i2c: E2 08 00 20 04 80 11 00 00 00 00 00 00 9E [18:38:06]Write i2c OK [18:38:06]MH_I2C_Read... [18:38:06]Read from MH i2c: E2 [18:38:06]MH_I2C_Read... [18:38:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:38:06]Read from MH i2c: E2 17 00 [18:38:06]MH_I2C_Read... [18:38:06]Read from MH i2c: E2 17 00 20 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 FA [18:38:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [18:38:06]wFMCommunicate OK [18:38:06]Счет N : (3)183966 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА Товар: 4700000160358 Вода Легенда 1л 2.000 * 50.00 = 100.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 100.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 126 29.07.2024 18:38 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41937 ФПД: 41556438442602 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T183807&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41937&fm=41556438442602&tin=02508201610067®Number=0000000000092626&sum=10000 0 [18:38:06]StoreToDocumentArchive [18:38:06]shift 427 fd 41937 [18:38:06]save to /storage/0427/doc_00041937 [18:38:06]save last doc name /storage/0427/doc_00041937 to /storage/kkm_last_doc_name [18:38:06]save OK [18:38:06]Clear old archive folders... [18:38:06]ProcessDocumentItem done err = 0, tmpTLVsize=269 [18:38:06]tlvbuf is 00E2E2A0 [18:38:06]SAM_PROTO_ClearQueue [18:38:06]wFMCommunicate request_size=4 [18:38:06]MH_SAM_APDU [18:38:06]CAPDU: 80 09 00 00 [18:38:06]Write to MH i2c: E2 08 00 21 04 80 09 00 00 00 00 00 00 97 [18:38:06]Write i2c OK [18:38:06]MH_I2C_Read... [18:38:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:38:06]Read from MH i2c: E2 [18:38:06]MH_I2C_Read... [18:38:06]Read from MH i2c: E2 03 00 [18:38:06]MH_I2C_Read... [18:38:06]Read from MH i2c: E2 03 00 21 04 00 90 00 99 [18:38:06]RAPDU: 90 00 [18:38:06]wFMCommunicate OK [18:38:06]SAM_PROTO_ClearQueue done [18:38:06]KKMCreateOFDPacket [18:38:06]OFDProtocolAddRootSTLVToBuf [18:38:06]FM_MakeSignedData [18:38:06]FM_MakeSignedData [18:38:06]SAM_PROTO_SignData [18:38:06]wFMCommunicate request_size=4 [18:38:06]MH_SAM_APDU [18:38:06]CAPDU: 80 0D 01 02 [18:38:06]Write to MH i2c: E2 08 00 22 04 80 0D 01 02 00 00 00 00 9F [18:38:06]Write i2c OK [18:38:06]MH_I2C_Read... [18:38:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:38:07]Read from MH i2c: E2 [18:38:07]MH_I2C_Read... [18:38:07]Read from MH i2c: E2 03 00 [18:38:07]MH_I2C_Read... [18:38:07]Read from MH i2c: E2 03 00 22 04 00 90 00 9A [18:38:07]RAPDU: 90 00 [18:38:07]wFMCommunicate OK [18:38:07]wFMCommunicate request_size=255 [18:38:07]MH_SAM_APDU [18:38:07]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 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 7E 00 00 00 F4 03 04 00 8F E1 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [18:38:07]Write to MH i2c: E2 02 01 23 04 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 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 7E 00 00 00 F4 03 04 00 8F E1 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 5E [18:38:07]Write i2c OK [18:38:07]MH_I2C_Read... [18:38:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:38:07]Read from MH i2c: E2 [18:38:07]MH_I2C_Read... [18:38:07]Read from MH i2c: E2 03 00 [18:38:07]MH_I2C_Read... [18:38:07]Read from MH i2c: E2 03 00 23 04 00 90 00 9B [18:38:07]RAPDU: 90 00 [18:38:07]wFMCommunicate OK [18:38:07]wFMCommunicate request_size=28 [18:38:07]MH_SAM_APDU [18:38:07]CAPDU: 80 0D 02 02 17 37 34 39 35 38 10 04 04 00 D1 A3 00 00 35 04 06 00 25 CB 9C C0 62 6A [18:38:07]Write to MH i2c: E2 1F 00 24 04 80 0D 02 02 17 00 37 34 39 35 38 10 04 04 00 D1 A3 00 00 35 04 06 00 25 CB 9C C0 62 6A[18:43:48]Read from MH i2c: E2 03 00 [18:43:48]MH_I2C_Read... [18:43:48]Read from MH i2c: E2 03 00 69 04 00 90 00 E1 [18:43:48]RAPDU: 90 00 [18:43:48]wFMCommunicate OK [18:43:48]SAM_PROTO_ClearQueue done [18:43:48]KKMCreateOFDPacket [18:43:48]OFDProtocolAddRootSTLVToBuf [18:43:48]FM_MakeSignedData [18:43:48]FM_MakeSignedData [18:43:48]SAM_PROTO_SignData [18:43:48]wFMCommunicate request_size=4 [18:43:48]MH_SAM_APDU [18:43:48]CAPDU: 80 0D 01 02 [18:43:48]Write to MH i2c: E2 08 00 6A 04 80 0D 01 02 00 00 00 00 E7 [18:43:48]Write i2c OK [18:43:48]MH_I2C_Read... [18:43:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:43:48]Read from MH i2c: E2 [18:43:48]MH_I2C_Read... [18:43:48]Read from MH i2c: E2 03 00 [18:43:48]MH_I2C_Read... [18:43:48]Read from MH i2c: E2 03 00 6A 04 00 90 00 E2 [18:43:48]RAPDU: 90 00 [18:43:48]wFMCommunicate OK [18:43:48]wFMCommunicate request_size=255 [18:43:48]MH_SAM_APDU [18:43:48]CAPDU: 80 0D 02 02 FA 03 00 E2 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 A0 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 [18:43:48]Write to MH i2c: E2 02 01 6B 04 80 0D 02 02 FA 00 03 00 E2 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 A0 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 00 00 05 [18:43:48]Write i2c OK [18:43:48]MH_I2C_Read... [18:43:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:43:49]Read from MH i2c: E2 [18:43:49]MH_I2C_Read... [18:43:49]Read from MH i2c: E2 03 00 [18:43:49]MH_I2C_Read... [18:43:49]Read from MH i2c: E2 03 00 6B 04 00 90 00 E3 [18:43:49]RAPDU: 90 00 [18:43:49]wFMCommunicate OK [18:43:49]wFMCommunicate request_size=241 [18:43:49]MH_SAM_APDU [18:43:49]CAPDU: 80 0D 02 02 EC 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 A1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 11 00 00 00 00 07 04 06 00 B8 A1 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 E4 E2 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 D2 A3 00 00 35 04 06 00 6E 37 66 18 59 6D [18:43:49]Write to MH i2c: E2 F4 00 6C 04 80 0D 02 02 EC 00 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 A1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 11 00 00 00 00 07 04 06 00 B8 A1 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 E4 E2 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 D2 A3 00 00 35 04 06 00 6E 37 66 18 59 6D 00 00 30 [18:43:49]Write i2c OK [18:43:49]MH_I2C_Read... [18:43:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:43:49]Read from MH i2c: E2 [18:43:49]MH_I2C_Read... [18:43:49]Read from MH i2c: E2 03 00 [18:43:49]MH_I2C_Read... [18:43:49]Read from MH i2c: E2 03 00 6C 04 00 90 00 E4 [18:43:49]RAPDU: 90 00 [18:43:49]wFMCommunicate OK [18:43:49]wFMCommunicate request_size=4 [18:43:49]MH_SAM_APDU [18:43:49]CAPDU: 80 0D 03 02 [18:43:49]Write to MH i2c: E2 08 00 6D 04 80 0D 03 02 00 00 00 00 EC [18:43:49]Write i2c OK [18:43:49]MH_I2C_Read... [18:43:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:43:49]Read from MH i2c: E2 [18:43:49]MH_I2C_Read... [18:43:49]Read from MH i2c: E2 0B 00 [18:43:49]MH_I2C_Read... [18:43:49]Read from MH i2c: E2 0B 00 6D 04 00 88 BE 22 47 26 58 B6 19 90 00 E9 [18:43:49]RAPDU: 88 BE 22 47 26 58 B6 19 90 00 [18:43:49]wFMCommunicate OK [18:43:49]SAM_PROTO_SignData done [18:43:49]FM_MakeSignedData done [18:43:49]CreateOFDProtocolMessage [18:43:49]wFMCommunicate request_size=4 [18:43:49]MH_SAM_APDU [18:43:49]CAPDU: 80 11 00 00 [18:43:49]Write to MH i2c: E2 08 00 6E 04 80 11 00 00 00 00 00 00 EC [18:43:49]Write i2c OK [18:43:49]MH_I2C_Read... [18:43:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:43:49]Read from MH i2c: E2 [18:43:49]MH_I2C_Read... [18:43:49]Read from MH i2c: E2 17 00 [18:43:49]MH_I2C_Read... [18:43:49]Read from MH i2c: E2 17 00 6E 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 48 [18:43:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [18:43:49]wFMCommunicate OK [18:43:49]CreateOFDProtocolMessage done [18:43:49]OFDSenderStorePacket 41938 [18:43:49]StoreOFDPacket docnum=41938 [18:43:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 F6 01 00 00 BF 97 EE 01 5E 0B 5A 03 01 00 03 00 E2 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 A0 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 A1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 11 00 00 00 00 07 04 06 00 B8 A1 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 E4 E2 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 D2 A3 00 00 35 04 06 00 6E 37 66 18 59 6D 88 BE 22 47 26 58 B6 19 [18:43:49]CheckFolder [18:43:49]dirname=/storage/ofd_packets [18:43:49]CheckFolder done [18:43:49]ProducePacketName [18:43:49]name=ofd_packets/00041938 [18:43:49]NVStorageSaveData ofd_packets/00041938 [18:43:49]File name is /storage/ofd_packets/00041938 [18:43:49]Write 532 bytes [18:43:49]NVStorageSaveData done [18:43:49]OFDSenderStorePacket done [18:43:49]KKMCreateOFDPacket done [18:43:49]NVStorageSaveData kkm_last_timestamp [18:43:49]File name is /storage/kkm_last_timestamp [18:43:49]Write 4 bytes [18:43:49]NVStorageSaveData done [18:43:49]ExternCall_PrintAddStr [18:43:49]wPrintStart [18:43:49]Write to MH i2c: 01 00 00 6F 04 73 [18:43:49]Write i2c OK [18:43:49]MH_I2C_Read... [18:43:49]Read from MH i2c: 01 [18:43:49]MH_I2C_Read... [18:43:49]Read from MH i2c: 01 07 00 [18:43:49]MH_I2C_Read... [18:43:49]Read from MH i2c: 01 07 00 6F 04 00 00 00 00 00 FF 0F 88 [18:43:49]RasterBufferAndPrint [18:43:49]line Счет N : (3)183967 [18:43:49]line ИНН: 02508201610067 [18:43:49]line Контрольно-Кассовый Чек [18:43:49]line ПРОДАЖА [18:43:49]line Товар: 4700000480517 [18:43:49]line Пиво Живое 1л ПЭТ [18:43:49]line 2.000 * 180.00 [18:43:49]line = 360.00 [18:43:49]line НДС 12% НСП 1% [18:43:49]line > о реализуемом товаре [18:43:49]line Товар: 4700000160051 [18:43:49]line Вода Ыссык Ата 1л [18:43:49]line 1.000 * 50.00 [18:43:49]line = 50.00 [18:43:49]line НДС 12% НСП 1% [18:43:49]line > о реализуемом товаре [18:43:49]line Товар: 2000031750019 [18:43:49]line Пакет Партнер Нефть [18:43:49]line 1.000 * 4.00 [18:43:49]line = 4.00 [18:43:49]line НДС 12% НСП 1% [18:43:49]line > о реализуемом товаре [18:43:49]line ИТОГО: 414.00 [18:43:49]line НСП 1% : 3.66 [18:43:49]line НДС 12% : 43.96 [18:43:49]line Наличными: 414.00 [18:43:49]line Безнал.: 0.00 [18:43:49]line Место: АЗС № 97 "Партнер Нефть" [18:43:49]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [18:43:49]line СНО: Общий режим [18:43:49]line Чек 127 29.07.2024 18:43 [18:43:49]line Смена: 427 ФФД: 1.0 [18:43:49]line ЗНМ: 0300000053 [18:43:49]line РНМ: 0000000000092626 [18:43:49]line Версия ККМ: 001 [18:43:49]line ФМ: 0000000000874958 [18:43:49]line ФД: 41938 [18:43:49]line ФПД: 121184215128429 [18:43:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T184348&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41938&fm=121184215128429&tin=02508201610067®Number=0000000000092626&sum=41400 [18:43:49]line 0 [18:43:49]written 0, free lines is 4095 [18:43:49]OFD Sender: Processing packet 41937 [packets to send 58, broken 56] [18:43:49]ProducePacketName [18:43:49]name=ofd_packets/00041937 [18:43:49]OFD Sender: To server: pG, [18:43:49]CommunicateWithHost lk.salyk.kg:30040 [18:43:49]ConnectInit lk.salyk.kg [18:43:49]ConnectInit Can't connect to host [18:43:49]Write to MH i2c: 01 00 00 A3 04 A7 [18:43:49]Write i2c OK [18:43:49]MH_I2C_Read... [18:43:49]Read from MH i2c: 01 [18:43:49]MH_I2C_Read... [18:43:49]Read from MH i2c: 01 07 00 [18:43:49]MH_I2C_Read... [18:43:49]Read from MH i2c: 01 07 00 A3 04 00 00 00 00 00 80 0C 3A [18:43:49]RasterBufferAndPrint [18:43:49]line [18:43:49]line [18:43:49]line [18:43:49]line [18:43:49]line [18:43:50]written 0, free lines is 3209 [18:43:50]MH_Cut [18:43:50]Write to MH i2c: D1 01 00 AA 04 01 80 [18:43:50]Write i2c OK [18:43:50]MH_I2C_Read... [18:43:50]Read from MH i2c: D1 [18:43:50]MH_I2C_Read... [18:43:50]Read from MH i2c: D1 01 00 [18:43:50]MH_I2C_Read... [18:43:50]Read from MH i2c: D1 01 00 AA 04 00 7F [18:43:50]Write to MH i2c: 01 00 00 AB 04 AF [18:43:50]Write i2c OK [18:43:50]MH_I2C_Read... [18:43:50]*** Cut start [18:43:50]*** Partial cut [18:43:50]*** CUTSNS_PIN = 1 [18:43:50]*** CUTSNS_PIN = 0 [18:43:51]*** Brake cut motor [18:43:51]Read from MH i2c: 01 [18:43:51]MH_I2C_Read... [18:43:51]*** Stop cut motor [18:43:51]*** Cut end [18:43:51]Read from MH i2c: 01 07 00 [18:43:51]MH_I2C_Read... [18:43:51]Read from MH i2c: 01 07 00 AB 04 00 00 00 00 00 FF 0F C4 [18:43:51]process_action close_receipt done [18:43:51]requested_data is exist [18:43:51]produce_requested_data [18:43:51]requested_item fm.sn is exist - process it [18:43:51]wFMCommunicate request_size=4 [18:43:51]MH_SAM_APDU [18:43:51]CAPDU: 80 11 00 00 [18:43:51]Write to MH i2c: E2 08 00 AC 04 80 11 00 00 00 00 00 00 2A [18:43:51]Write i2c OK [18:43:51]MH_I2C_Read... [18:43:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:43:51]Read from MH i2c: E2 [18:43:51]MH_I2C_Read... [18:43:51]Read from MH i2c: E2 17 00 [18:43:51]MH_I2C_Read... [18:43:51]Read from MH i2c: E2 17 00 AC 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 86 [18:43:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [18:43:51]wFMCommunicate OK [18:43:51]requested_item fd.num is exist - process it [18:43:51]SAM_PROTO_GetFieldsCounters [18:43:51]wFMCommunicate request_size=4 [18:43:51]MH_SAM_APDU [18:43:51]CAPDU: 80 13 00 00 [18:43:51]Write to MH i2c: E2 08 00 AD 04 80 13 00 00 00 00 00 00 2D [18:43:51]Write i2c OK [18:43:51]MH_I2C_Read... [18:43:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:43:51]Read from MH i2c: E2 [18:43:51]MH_I2C_Read... [18:43:51]Read from MH i2c: E2 62 00 [18:43:51]MH_I2C_Read... [18:43:51]Read from MH i2c: E2 62 00 AD 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 D2 A3 00 00 0E 04 04 00 AB 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 F5 [18:43: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 D2 A3 00 00 0E 04 04 00 AB 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 [18:43:51]wFMCommunicate OK [18:43:51]SAM_PROTO_GetFieldsCounters done [18:43:51]requested_item shift.num is exist - process it [18:43:51]requested_item shift.opened is exist - process it [18:43:51]req_shift_opened [18:43:51]FM_GetShiftState [18:43:51]SAM_PROTO_GetShiftState [18:43:51]wFMCommunicate request_size=4 [18:43:51]MH_SAM_APDU [18:43:51]CAPDU: 80 13 01 00 [18:43:51]Write to MH i2c: E2 08 00 AE 04 80 13 01 00 00 00 00 00 2F [18:43:51]Write i2c OK [18:43:51]MH_I2C_Read... [18:43:51]Read from MH i2c: E2 [18:43:51]MH_I2C_Read... [18:43:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:43:51]Read from MH i2c: E2 0E 00 [18:43:51]MH_I2C_Read... [18:43:51]Read from MH i2c: E2 0E 00 AE 04 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 CB [18:43:51]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [18:43:51]wFMCommunicate OK [18:43:51]SAM_PROTO_GetShiftState done [18:43:51]FM_GetShiftState done [18:43:51]req_shift_opened done [18:43:51]requested_item shift.open_date is exist - process it [18:43:51]req_shift_open_date [18:43:51]req_shift_open_date done [18:43:51]produce_requested_data done [18:43:51]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41938,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [18:43:51]process_action_free close_receipt [18:43:51]json_value_free [18:43:51]json_value_free done [18:43:51]process_json_proto returns [18:43:51]Send response to host [18:43:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41938,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [18:43:51]free response buf [18:43:51]execute_script done [18:43:51]execute_script returns [18:43:51]free content buf [18:43:51]Sock 9.Close socket [18:43:51]Sock 9.Thread stoped [18:43:54]ConnectInit Can't take IP for lk.salyk.kg [18:43:54]CommunicateWithHost connect error [18:43:54]CommunicateWithHost err = -1 [18:43:54]OFD Sender: Server communicate error [18:43:54]ConnectInit Can't connect to host [18:43:59]OFD Sender: Processing packet 41937 [packets to send 58, broken 56] [18:43:59]ProducePacketName [18:43:59]name=ofd_packets/00041937 [18:43:59]OFD Sender: To server: pG, [18:43:59]CommunicateWithHost lk.salyk.kg:30040 [18:43:59]ConnectInit lk.salyk.kg [18:44:07]recv_with_timeout no data received [18:44:22]recv_with_timeout no data received [18:44:36]recv_with_timeout no data received [18:46:14]ConnectInit Can't connect to host [18:46:14]CommunicateWithHost connect error [18:46:14]CommunicateWithHost err = -1 [18:46:14]OFD Sender: Server communicate error [18:46:19]OFD Sender: Processing packet 41937 [packets to send 58, broken 56] [18:46:19]ProducePacketName [18:46:19]name=ofd_packets/00041937 [18:46:19]OFD Sender: To server: pG, [18:46:19]CommunicateWithHost lk.salyk.kg:30040 [18:46:19]ConnectInit lk.salyk.kg [18:46:24]ConnectInit Can't take IP for lk.salyk.kg [18:46:24]CommunicateWithHost connect error [18:46:24]CommunicateWithHost err = -1 [18:46:24]OFD Sender: Server communicate error [18:46:29]OFD Sender: Processing packet 41937 [packets to send 58, broken 56] [18:46:29]ProducePacketName [18:46:29]name=ofd_packets/00041937 [18:46:29]OFD Sender: To server: pG, [18:46:29]CommunicateWithHost lk.salyk.kg:30040 [18:46:29]ConnectInit lk.salyk.kg [18:46:34]ConnectInit Can't take IP for lk.salyk.kg [18:46:34]CommunicateWithHost connect error [18:46:34]CommunicateWithHost err = -1 [18:46:34]OFD Sender: Server communicate error [18:46:39]OFD Sender: Processing packet 41937 [packets to send 58, broken 56] [18:46:39]ProducePacketName [18:46:39]name=ofd_packets/00041937 [18:46:39]OFD Sender: To server: pG, [18:46:39]CommunicateWithHost lk.salyk.kg:30040 [18:46:39]ConnectInit lk.salyk.kg [18:46:48]Connected sock=7 [18:46: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 35 38 21 01 00 00 CB 2F 19 01 A3 17 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 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 7E 00 00 00 F4 03 04 00 8F E1 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 D1 A3 00 00 35 04 06 00 25 CB 9C C0 62 6A 31 89 11 CB FF 83 91 3A [18:46:53]recv_with_timeout no data received [18:46:53]CommunicateWithHost answer receiving error [18:46:53]CommunicateWithHost err = -3 [18:46:53]OFD Sender: Server communicate error [18:46:58]OFD Sender: Processing packet 41937 [packets to send 58, broken 56] [18:46:58]ProducePacketName [18:46:58]name=ofd_packets/00041937 [18:46:58]OFD Sender: To server: pG, [18:46:58]CommunicateWithHost lk.salyk.kg:30040 [18:46:58]ConnectInit lk.salyk.kg [18:49:13]ConnectInit Can't connect to host [18:49:13]CommunicateWithHost connect error [18:49:13]CommunicateWithHost err = -1 [18:49:13]OFD Sender: Server communicate error [18:50:35]ConnectInit Can't connect to host [18:50:37]ConnectInit Can't take IP for lk.salyk.kg [18:50:37]CommunicateWithHost connect error [18:50:37]CommunicateWithHost err = -1 [18:50:37]OFD Sender: Server communicate error [18:50:42]OFD Sender: Processing packet 41937 [packets to send 58, broken 56] [18:50:42]ProducePacketName [18:50:42]name=ofd_packets/00041937 [18:50:42]OFD Sender: To server: pG, [18:50:42]CommunicateWithHost lk.salyk.kg:30040 [18:50:42]ConnectInit lk.salyk.kg [18:50:47]ConnectInit Can't take IP for lk.salyk.kg [18:50:47]CommunicateWithHost connect error [18:50:47]CommunicateWithHost err = -1 [18:50:47]OFD Sender: Server communicate error [18:50:52]OFD Sender: Processing packet 41937 [packets to send 58, broken 56] [18:50:52]ProducePacketName [18:50:52]name=ofd_packets/00041937 [18:50:52]OFD Sender: To server: pG, [18:50:52]CommunicateWithHost lk.salyk.kg:30040 [18:50:52]ConnectInit lk.salyk.kg [18:50:57]ConnectInit Can't take IP for lk.salyk.kg [18:50:57]CommunicateWithHost connect error [18:50:57]CommunicateWithHost err = -1 [18:50:57]OFD Sender: Server communicate error [18:51:02]OFD Sender: Processing packet 41937 [packets to send 58, broken 56] [18:51:02]ProducePacketName [18:51:02]name=ofd_packets/00041937 [18:51:02]OFD Sender: To server: pG, [18:51:02]CommunicateWithHost lk.salyk.kg:30040 [18:51:02]ConnectInit lk.salyk.kg [18:51:07]ConnectInit Can't take IP for lk.salyk.kg [18:51:07]CommunicateWithHost connect error [18:51:07]CommunicateWithHost err = -1 [18:51:07]OFD Sender: Server communicate error [18:51:12]OFD Sender: Processing packet 41937 [packets to send 58, broken 56] [18:51:12]ProducePacketName [18:51:12]name=ofd_packets/00041937 [18:51:12]OFD Sender: To server: pG, [18:51:12]CommunicateWithHost lk.salyk.kg:30040 [18:51:12]ConnectInit lk.salyk.kg [00:00:11] *** EcrCore started. Build 196 *** [00:00:11]MH_InterfaceInit /dev/i2c-1 [00:00:11]Malloc ok [00:00:11]/dev/ttyS4 opened [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 01 00 00 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 81 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 26 [00:00:11]Are we in boot? [00:00:11]We are in boot - try to switch [00:00:11]Write to MH i2c: A0 00 00 02 00 A1 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:11]*** [00:00:11]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:11]*** Waiting for read because exit forced [00:00:11]Read from MH i2c: A0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: A0 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:11]*** 10 ms more... [00:00:11]*** MH1903S init start (LINUX_LIGHT) [00:00:11]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:11]*** Serial: 3139303353513838 5400000000572581 (1903SQ88T) [00:00:11]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:11]*** step 0: 5000 (2650, 2350 REF) [00:00:11]*** step 1: 4835 (2500, 2335 REF) [00:00:11]*** step 2: 4676 (2440, 2236 REF) [00:00:11]*** step 3: 4523 (2280, 2243 REF) [00:00:11]*** step 4: 4376 (2160, 2216 REF) [00:00:11]*** step 5: 4235 (2050, 2185 REF) [00:00:11]*** step 6: 4098 (1950, 2148 REF) [00:00:11]*** step 7: 3967 (1870, 2097 REF) [00:00:11]*** step 8: 3840 (1828, 2012 REF) [00:00:11]*** step 9: 3719 (1728, 1991 REF) [00:00:11]*** step 10: 3601 (1675, 1926 REF) [00:00:11]*** step 11: 3488 (1635, 1853 REF) [00:00:11]*** step 12: 3379 (1595, 1784 REF) [00:00:11]*** step 13: 3275 (1565, 1710 REF) [00:00:11]*** step 14: 3174 (1543, 1631 REF) [00:00:11]*** step 15: 3077 (1523, 1554 REF) [00:00:11]*** step 16: 2983 (1503, 1480 REF) [00:00:11]*** step 17: 2893 (1486, 1407 REF) [00:00:11]*** step 18: 2806 (1466, 1340 REF) [00:00:11]*** step 19: 2723 (1426, 1297 REF) [00:00:11]*** step 20: 2642 (1406, 1236 REF) [00:00:11]*** step 21: 2565 (1384, 1181 REF) [00:00:11]*** step 22: 2490 (1364, 1126 REF) [00:00:11]*** step 23: 2418 (1344, 1074 REF) [00:00:11]*** step 24: 2349 (1322, 1027 REF) [00:00:11]*** step 25: 2283 (1302, 981 REF) [00:00:11]*** step 26: 2218 (1282, 936 REF) [00:00:11]*** step 27: 2157 (1262, 895 REF) [00:00:11]*** step 28: 2097 (1242, 855 REF) [00:00:11]*** step 29: 2040 (1222, 818 REF) [00:00:11]*** step 30: 1985 (1202, 783 REF) [00:00:11]*** step 31: 1932 (1191, 741 REF) [00:00:11]*** step 32: 1880 (1181, 699 REF) [00:00:11]*** step 33: 1831 (1171, 660 REF) [00:00:11]*** step 34: 1784 (1161, 623 REF) [00:00:11]*** step 35: 1738 (1151, 587 REF) [00:00:11]*** step 36: 1694 (1141, 553 REF) [00:00:11]*** step 37: 1652 (1131, 521 REF) [00:00:11]*** step 38: 1611 (1121, 490 REF) [00:00:11]*** step 39: 1572 (1111, 461 REF) [00:00:11]*** step 40: 1534 (1103, 431 REF) [00:00:11]*** step 41: 1497 (1093, 404 REF) [00:00:11]*** step 42: 1462 (1083, 379 REF) [00:00:11]*** step 43: 1428 (1073, 355 REF) [00:00:11]*** step 44: 1396 (1063, 333 REF) [00:00:11]*** step 45: 1365 (1053, 312 REF) [00:00:11]*** step 46: 1334 (1043, 291 REF) [00:00:11]*** step 47: 1305 (1033, 272 REF) [00:00:11]*** step 48: 1277 (1023, 254 REF) [00:00:11]*** step 49: 1250 (1013, 237 REF) [00:00:11]*** step 50: 1224 (990, 234 REF) [00:00:11]*** step 51: 1199 (980, 219 REF) [00:00:11]*** step 52: 1175 (970, 205 REF) [00:00:11]*** step 53: 1152 (960, 192 REF) [00:00:11]*** step 54: 1130 (950, 180 REF) [00:00:11]*** step 55: 1108 (940, 168 REF) [00:00:11]*** step 56: 1088 (930, 158 REF) [00:00:11]*** step 57: 1068 (920, 148 REF) [00:00:11]*** step 58: 1049 (910, 139 REF) [00:00:11]*** step 59: 1030 (900, 130 REF) [00:00:11]*** step 60: 1012 (890, 122 REF) [00:00:11]*** step 61: 995 (880, 115 REF) [00:00:11]*** step 62: 979 (870, 109 REF) [00:00:11]*** step 63: 963 (860, 103 REF) [00:00:11]*** step 64: 948 (850, 98 REF) [00:00:11]*** step 65: 933 (840, 93 REF) [00:00:11]*** step 66: 919 (830, 89 REF) [00:00:11]*** step 67: 905 (820, 85 REF) [00:00:11]*** step 68: 892 (810, 82 REF) [00:00:11]*** step 69: 879 (800, 79 REF) [00:00:11]*** step 70: 867 (790, 77 REF) [00:00:11]*** step 71: 855 (780, 75 REF) [00:00:11]*** step 72: 844 (770, 74 REF) [00:00:11]*** step 73: 833 (760, 73 REF) [00:00:11]*** step 74: 822 (750, 72 REF) [00:00:11]*** step 75: 812 (740, 72 REF) [00:00:11]*** step 76: 803 (730, 73 REF) [00:00:11]*** step 77: 793 (720, 73 REF) [00:00:11]*** step 78: 784 (710, 74 REF) [00:00:11]*** step 79: 776 (700, 76 REF) [00:00:11]*** step 80: 767 (690, 77 REF) [00:00:11]*** step 81: 759 (680, 79 REF) [00:00:11]*** step 82: 751 (670, 81 REF) [00:00:11]*** step 83: 744 (660, 84 REF) [00:00:11]*** step 84: 737 (650, 87 REF) [00:00:11]*** step 85: 730 (640, 90 REF) [00:00:11]*** step 86: 723 (630, 93 REF) [00:00:11]*** step 87: 717 (620, 97 REF) [00:00:11]*** step 88: 710 (610, 100 REF) [00:00:11]*** step 89: 705 (600, 105 REF) [00:00:11]*** step 90: 699 [00:00:11]*** step 91: 693 [00:00:11]*** step 92: 688 [00:00:11]*** step 93: 683 [00:00:11]*** step 94: 678 [00:00:11]*** step 95: 673 [00:00:11]*** step 96: 669 [00:00:11]*** step 97: 664 [00:00:11]*** step 98: 660 [00:00:11]*** step 99: 656 [00:00:11]*** step 100: 652 [00:00:11]*** step 101: 648 [00:00:11]*** step 102: 644 [00:00:11]*** step 103: 641 [00:00:11]*** step 104: 638 [00:00:11]*** step 105: 634 [00:00:11]*** step 106: 631 [00:00:11]*** step 107: 628 [00:00:11]*** step 108: 625 [00:00:11]*** step 109: 622 [00:00:11]*** step 110: 620 [00:00:11]*** step 111: 617 [00:00:11]*** step 112: 615 [00:00:11]*** step 113: 612 [00:00:11]*** step 114: 610 [00:00:11]*** step 115: 608 [00:00:11]*** step 116: 605 [00:00:11]*** step 117: 603 [00:00:11]*** step 118: 601 [00:00:11]*** step 119: 599 [00:00:11]*** printer: Printer HW initialized [00:00:11]*** initSamCard finished [00:00:11]*** RTC: 18942+1722262372=1722281314 [00:00:11]*** BPK Status Register BPK_RDY = 0x0 [00:00:11]*** SEN State Register SEN_STATE = 0xff [00:00:11]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:11]*** Analog Control Register 0 SEN_ANA0 = 0x33540624 [00:00:11]*** Is cutter blocked? [00:00:12]MH_GetMetrics [00:00:12]Write to MH i2c: 00 00 00 03 00 02 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 29 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 81 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 27 [00:00:12]Are we in boot? [00:00:12]We are not in boot now [00:00:12]Write to MH i2c: 01 00 00 04 00 04 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 07 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:12]Model is 3 [00:00:12]MH firmware is 30620 [00:00:12]MH boot firmware is 3 [00:00:12]MH_SetPrinterDots 448 [00:00:12]HeadWidthInBytes 56 [00:00:12]maxmasksize 7 [00:00:12]Write to MH i2c: D6 06 00 05 00 41 00 60 00 FF FF 7F [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 01 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:12]Write to MH i2c: D5 00 00 06 00 DA [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 01 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]ExternCall_SetCallbacks [00:00:12]NVStorageInit [00:00:12]MH_GetDate [00:00:12]Write to MH i2c: F0 00 00 07 00 F6 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 09 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 09 00 07 00 00 63 ED A7 66 64 A3 A7 66 70 [19:28:35]Current date/time: 29.07.2024 19:28 [19:28:35]FM_Init [19:28:35]wFMConnect [19:28:35]MH_SAM_On [19:28:35]Write to MH i2c: E0 00 00 08 00 E7 [19:28:35]Write i2c OK [19:28:35]MH_I2C_Read... [19:28:35]*** iso7816_init finished! [19:28:35]*** atr: [19:28:35]*** 0F 3B D5 18 FF 81 91 FE [19:28:35]*** 1F C3 80 73 C8 21 10 0A [19:28:35]*** 00 00 00 00 00 00 00 00 [19:28:35]*** 00 00 00 00 00 00 00 00 [19:28:35]*** 00 00 00 00 00 00 00 00 [19:28:35]*** 00 00 00 00 00 00 00 00 [19:28:35]*** 00 00 00 00 00 00 00 00 [19:28:35]*** 00 00 00 00 00 00 00 00 [19:28:35]Read from MH i2c: E0 [19:28:35]MH_I2C_Read... [19:28:35]Read from MH i2c: E0 10 00 [19:28:35]MH_I2C_Read... [19:28:35]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [19:28:35]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [19:28:35]wFMCommunicate request_size=10 [19:28:35]MH_SAM_APDU [19:28:35]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [19:28:35]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [19:28:35]Write i2c OK [19:28:35]MH_I2C_Read... [19:28:35]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [19:28:35]Read from MH i2c: E2 [19:28:35]MH_I2C_Read... [19:28:35]Read from MH i2c: E2 03 00 [19:28:35]MH_I2C_Read... [19:28:35]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [19:28:35]RAPDU: 90 00 [19:28:35]wFMCommunicate OK [19:28:35]wFMCommunicate request_size=4 [19:28:35]MH_SAM_APDU [19:28:35]CAPDU: 80 11 00 00 [19:28:35]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [19:28:35]Write i2c OK [19:28:35]MH_I2C_Read... [19:28:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:28:35]Read from MH i2c: E2 [19:28:35]MH_I2C_Read... [19:28:35]Read from MH i2c: E2 17 00 [19:28:35]MH_I2C_Read... [19:28:35]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 E0 [19:28:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [19:28:35]wFMCommunicate OK [19:28:35]Detected FM SN is 0000000000874958 [19:28:35]Stored FM SN is 0000000000874958 [19:28:35]wFMCommunicate request_size=9 [19:28:35]MH_SAM_APDU [19:28:35]CAPDU: 80 16 00 00 04 FB 29 00 00 [19:28:35]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 FB 29 00 00 00 00 B6 [19:28:35]Write i2c OK [19:28:35]MH_I2C_Read... [19:28:35]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [19:28:35]Read from MH i2c: E2 [19:28:35]MH_I2C_Read... [19:28:35]Read from MH i2c: E2 03 00 [19:28:35]MH_I2C_Read... [19:28:35]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [19:28:35]RAPDU: 90 00 [19:28:35]wFMCommunicate OK [19:28:35]FM PIN OK [19:28:35]wFMCommunicate request_size=8 [19:28:35]MH_SAM_APDU [19:28:35]CAPDU: 80 14 04 00 03 02 00 01 [19:28:35]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [19:28:35]Write i2c OK [19:28:35]MH_I2C_Read... [19:28:35]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [19:28:35]Read from MH i2c: E2 [19:28:35]MH_I2C_Read... [19:28:35]Read from MH i2c: E2 03 00 [19:28:35]MH_I2C_Read... [19:28:35]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [19:28:35]RAPDU: 90 00 [19:28:35]wFMCommunicate OK [19:28:35]wFMCommunicate request_size=13 [19:28:35]MH_SAM_APDU [19:28:35]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [19:28:35]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [19:28:35]Write i2c OK [19:28:35]MH_I2C_Read... [19:28:35]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [19:28:35]Read from MH i2c: E2 [19:28:35]MH_I2C_Read... [19:28:35]Read from MH i2c: E2 03 00 [19:28:35]MH_I2C_Read... [19:28:35]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [19:28:35]RAPDU: 90 00 [19:28:35]wFMCommunicate OK [19:28:35]wFMCommunicate request_size=4 [19:28:35]MH_SAM_APDU [19:28:35]CAPDU: 80 11 00 00 [19:28:35]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [19:28:35]Write i2c OK [19:28:35]MH_I2C_Read... [19:28:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:28:35]Read from MH i2c: E2 [19:28:35]MH_I2C_Read... [19:28:35]Read from MH i2c: E2 17 00 [19:28:35]MH_I2C_Read... [19:28:35]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 E4 [19:28:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [19:28:35]wFMCommunicate OK [19:28:35]DocumentArchiveInit [19:28:35]Start Httpd... [19:28:35]Httpd thread 3067284836 created [19:28:35]Write to MH i2c: 01 00 00 0F 00 0F [19:28:35]Write i2c OK [19:28:35]MH_I2C_Read... [19:28:35]Read from MH i2c: 01 [19:28:35]MH_I2C_Read... [19:28:35]Read from MH i2c: 01 07 00 [19:28:35]MH_I2C_Read... [19:28:35]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [19:28:35]MH Int Process started [19:28:35]Allocated Socket 7 [19:28:35]Bind OK [19:28:35]Listen OK [19:28:35]httpd running on port 8080 [19:28:35]Waiting for new connection... [19:28:35]OFD Sender: Processing packet 41937 [packets to send 58, broken 56] [19:28:35]ProducePacketName [19:28:35]name=ofd_packets/00041937 [19:28:35]OFD Sender: To server: pG, [19:28:35]CommunicateWithHost lk.salyk.kg:30040 [19:28:35]ConnectInit lk.salyk.kg [19:28:37]Connected sock=6 [19:28: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 35 38 21 01 00 00 CB 2F 19 01 A3 17 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 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 7E 00 00 00 F4 03 04 00 8F E1 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 D1 A3 00 00 35 04 06 00 25 CB 9C C0 62 6A 31 89 11 CB FF 83 91 3A [19:28:37]accept exits with 8 [19:28:37]New connection [19:28:37]New thread 3066998116 created [19:28:37]Waiting for new connection... [19:28:37] Sock 8.Parse request [19:28:37]Sock 8.Check first char [19:28:37]Sock 8.First char is OK [19:28:37]request: POST /json_proto HTTP/1.0 [19:28:37]Method: POST [19:28:37]URL: /json_proto [19:28:37]Method is POST - this is cgi request [19:28:37]url: /json_proto [19:28:37]query_string will be loaded in cgi processing [19:28:37]execute_cgi json_proto POST (null) [19:28:37]execute_cgi path=json_proto method=POST [19:28:37]POST find Content-Length [19:28:37]Host: 172.17.43.132:8080 [19:28:37]Content-Length: 215 [19:28:37]Content-Type: application/json [19:28:37] [19:28:37]POST finish read [19:28:37]Found Content-Length = 215 [19:28:37]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" ] } } [19:28:37]execute_script... [19:28:37]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" ] } } [19:28:37]POST & json_proto [19:28:37]process_json_proto [19:28:37]json parsed OK: [19:28:37]protocol is kg_v1.0 [19:28:37]action value=get_value [19:28:37]process_action get_value [19:28:37]cmd_get_value [19:28:37]process_action get_value done [19:28:37]requested_data is exist [19:28:37]produce_requested_data [19:28:37]requested_item kkm.sn is exist - process it [19:28:37]requested_item kkm.ver is exist - process it [19:28:37]requested_item fm.sn is exist - process it [19:28:37]wFMCommunicate request_size=4 [19:28:37]MH_SAM_APDU [19:28:37]CAPDU: 80 11 00 00 [19:28:37]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [19:28:37]Write i2c OK [19:28:37]MH_I2C_Read... [19:28:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:28:37]Read from MH i2c: E2 [19:28:37]MH_I2C_Read... [19:28:37]Read from MH i2c: E2 17 00 [19:28:37]MH_I2C_Read... [19:28:37]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 35 38 90 00 E6 [19:28:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [19:28:37]wFMCommunicate OK [19:28:37]requested_item fd.num is exist - process it [19:28:37]SAM_PROTO_GetFieldsCounters [19:28:37]wFMCommunicate request_size=4 [19:28:37]MH_SAM_APDU [19:28:37]CAPDU: 80 13 00 00 [19:28:37]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [19:28:37]Write i2c OK [19:28:37]MH_I2C_Read... [19:28:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:28:37]Read from MH i2c: E2 [19:28:37]MH_I2C_Read... [19:28:37]Read from MH i2c: E2 62 00 [19:28:37]MH_I2C_Read... [19:28:37]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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 D2 A3 00 00 0E 04 04 00 AB 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 55 [19:28: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 D2 A3 00 00 0E 04 04 00 AB 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 [19:28:37]wFMCommunicate OK [19:28:37]SAM_PROTO_GetFieldsCounters done [19:28:37]requested_item shift.num is exist - process it [19:28:37]requested_item shift.opened is exist - process it [19:28:37]req_shift_opened [19:28:37]FM_GetShiftState [19:28:37]SAM_PROTO_GetShiftState [19:28:37]wFMCommunicate request_size=4 [19:28:37]MH_SAM_APDU [19:28:37]CAPDU: 80 13 01 00 [19:28:37]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [19:28:37]Write i2c OK [19:28:37]MH_I2C_Read... [19:28:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:28:37]Read from MH i2c: E2 [19:28:37]MH_I2C_Read... [19:28:37]Read from MH i2c: E2 0E 00 [19:28:37]MH_I2C_Read... [19:28:37]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 2B [19:28:37]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [19:28:37]wFMCommunicate OK [19:28:37]SAM_PROTO_GetShiftState done [19:28:37]FM_GetShiftState done [19:28:37]req_shift_opened done [19:28:37]requested_item shift.open_date is exist - process it [19:28:37]req_shift_open_date [19:28:37]req_shift_open_date done [19:28:37]produce_requested_data done [19:28:38]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [19:28:38]wFMCommunicate OK [19:28:38]wFMCommunicate request_size=4 [19:28:38]MH_SAM_APDU [19:28:38]CAPDU: 80 17 00 00 [19:28:38]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [19:28:38]Write i2c OK [19:28:38]MH_I2C_Read... [19:28:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [19:28:39]Read from MH i2c: E2 [19:28:39]MH_I2C_Read... [19:28:39]Read from MH i2c: E2 DE 00 [19:28:39]MH_I2C_Read... [19:28:39]Read from MH i2c: E2 DE 00 17 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 76 [19:28:39]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [19:28:39]wFMCommunicate OK [19:28:39]SAM_PROTO_GetFMData done [19:28:39]requested_item fm.sale_refund.total is exist - process it [19:28:39]requested_item fm.buy.total is exist - process it [19:28:39]requested_item shift.sale.total is exist - process it [19:28:39]SAM_PROTO_GetShiftData [19:28:39]wFMCommunicate request_size=4 [19:28:39]MH_SAM_APDU [19:28:39]CAPDU: 80 13 02 00 [19:28:39]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [19:28:39]Write i2c OK [19:28:39]MH_I2C_Read... [19:28:39]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [19:28:39]Read from MH i2c: E2 [19:28:39]MH_I2C_Read... [19:28:39]Read from MH i2c: E2 FD 00 [19:28:39]MH_I2C_Read... [19:28:39]Read from MH i2c: E2 FD 00 18 00 00 B6 04 AA 04 B2 04 6E 04 04 00 7F 00 00 00 69 04 9B 00 6F 04 04 00 7E 00 00 00 B1 04 03 00 28 83 22 70 04 03 00 A0 1D 1F 72 04 03 00 88 65 03 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 32 AA 03 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 26 4E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 D4 AD 70 04 02 00 D4 AD 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 76 12 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 90 00 FF [19:28:39]RAPDU: B6 04 AA 04 B2 04 6E 04 04 00 7F 00 00 00 69 04 9B 00 6F 04 04 00 7E 00 00 00 B1 04 03 00 28 83 22 70 04 03 00 A0 1D 1F 72 04 03 00 88 65 03 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 32 AA 03 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 26 4E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 D4 AD 70 04 02 00 D4 AD 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 76 12 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 90 00 [19:28:39]wFMCommunicate OK [19:28:39]wFMCommunicate request_size=4 [19:28:39]MH_SAM_APDU [19:28:39]CAPDU: 80 17 00 00 [19:28:39]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [19:28:39]Write i2c OK [19:28:39]MH_I2C_Read... [19:28:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:28:39]Read from MH i2c: E2 [19:28:39]MH_I2C_Read... [19:28:39]Read from MH i2c: E2 FD 00 [19:28:39]MH_I2C_Read... [19:28:39]Read from MH i2c: E2 FD 00 19 00 00 F6 03 01 00 01 F7 03 02 00 89 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 37 [19:28:39]RAPDU: F6 03 01 00 01 F7 03 02 00 89 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [19:28:40]wFMCommunicate OK [19:28:40]wFMCommunicate request_size=4 [19:28:40]MH_SAM_APDU [19:28:40]CAPDU: 80 17 00 00 [19:28:40]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [19:28:40]Write i2c OK [19:28:40]MH_I2C_Read... [19:28:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:28:40]Read from MH i2c: E2 [19:28:40]MH_I2C_Read... [19:28:40]Read from MH i2c: E2 FD 00 [19:28:40]MH_I2C_Read... [19:28:40]Read from MH i2c: E2 FD 00 1A 00 00 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 5A [19:28:40]RAPDU: 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [19:28:40]wFMCommunicate OK [19:28:40]wFMCommunicate request_size=4 [19:28:40]MH_SAM_APDU [19:28:40]CAPDU: 80 17 00 00 [19:28:40]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [19:28:40]Write i2c OK [19:28:40]MH_I2C_Read... [19:28:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:28:40]Read from MH i2c: E2 [19:28:40]MH_I2C_Read... [19:28:40]Read from MH i2c: E2 FD 00 [19:28:40]MH_I2C_Read... [19:28:40]Read from MH i2c: E2 FD 00 1B 00 00 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 90 00 0A [19:28:40]RAPDU: 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 90 00 [19:28:40]wFMCommunicate OK [19:28:40]wFMCommunicate request_size=4 [19:28:40]MH_SAM_APDU [19:28:40]CAPDU: 80 17 00 00 [19:28:40]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [19:28:40]Write i2c OK [19:28:40]MH_I2C_Read... [19:28:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 208! [19:28:40]Read from MH i2c: E2 [19:28:40]MH_I2C_Read... [19:28:40]Read from MH i2c: E2 D3 00 [19:28:40]MH_I2C_Read... [19:28:40]Read from MH i2c: E2 D3 00 1C 00 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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 89 [19:28:40]RAPDU: 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [19:28:40]wFMCommunicate OK [19:28:40]SAM_PROTO_GetShiftData done [19:28:40]requested_item shift.sale.total_cash is exist - process it [19:28:40]requested_item shift.sale_refund.total is exist - process it [19:28:40]requested_item shift.sale_refund.total_cash is exist - process it [19:28:40]requested_item shift.buy.total is exist - process it [19:28:40]requested_item shift.buy.total_cash is exist - process it [19:28:40]produce_requested_data done [19:28:40]produce_requested_data return {"fm.sale.total":9264573.21,"fm.sale_refund.total":51664.20,"fm.buy.total":0.00,"shift.sale.total":22618.00,"shift.sale.total_cash":20392.00,"shift.sale_refund.total":445.00,"shift.sale_refund.total_cash":445.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [19:28:40]process_action_free get_value [19:28:40]json_value_free [19:28:40]json_value_free done [19:28:40]process_json_proto returns [19:28:40]Send response to host [19:28:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":9264573.21,"fm.sale_refund.total":51664.20,"fm.buy.total":0.00,"shift.sale.total":22618.00,"shift.sale.total_cash":20392.00,"shift.sale_refund.total":445.00,"shift.sale_refund.total_cash":445.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [19:28:40]free response buf [19:28:40]execute_script done [19:28:40]execute_script returns [19:28:41]free content buf [19:28:41]Sock 10.Close socket [19:28:41]Sock 10.Thread stoped [19:28:41]accept exits with 8 [19:28:41]New connection [19:28:41]New thread 3066998116 created [19:28:41]Thread 3066854756 joined [19:28:41]Waiting for new connection... [19:28:41] Sock 8.Parse request [19:28:41]Sock 8.Check first char [19:28:41]Sock 8.First char is OK [19:28:41]request: POST /json_proto HTTP/1.0 [19:28:41]Method: POST [19:28:41]URL: /json_proto [19:28:41]Method is POST - this is cgi request [19:28:41]url: /json_proto [19:28:41]query_string will be loaded in cgi processing [19:28:41]execute_cgi json_proto POST (null) [19:28:41]execute_cgi path=json_proto method=POST [19:28:41]POST find Content-Length [19:28:41]Host: 172.17.43.132:8080 [19:28:41]Content-Length: 630 [19:28:41]Content-Type: application/json [19:28:41] [19:28:41]POST finish read [19:28:41]Found Content-Length = 630 [19:28:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183968", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:28:41]execute_script... [19:28:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183968", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:28:41]POST & json_proto [19:28:41]process_json_proto [19:28:41]json parsed OK: [19:28:41]protocol is kg_v1.0 [19:28:41]action value=close_receipt [19:28:41]process_action close_receipt [19:28:41]cmd_close_receipt [19:28:41]MH_GetDate [19:28:41]Write to MH i2c: F0 00 00 1D 00 0C [19:28:41]Write i2c OK [19:28:41]MH_I2C_Read... [19:28:42]Read from MH i2c: F0 [19:28:42]MH_I2C_Read... [19:28:42]Read from MH i2c: F0 09 00 [19:28:42]MH_I2C_Read... [19:28:42]Read from MH i2c: F0 09 00 1D 00 00 6A ED A7 66 64 A3 A7 66 8D [19:28:42]GetLastDocTimeStamp 1722278628 [19:28:42]current date 1722281322 [19:28:42]FM_GetShiftState [19:28:42]SAM_PROTO_GetShiftState [19:28:42]wFMCommunicate request_size=4 [19:28:42]MH_SAM_APDU [19:28:42]CAPDU: 80 13 01 00 [19:28:42]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [19:28:42]Write i2c OK [19:28:42]MH_I2C_Read... [19:28:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:28:42]Read from MH i2c: E2 [19:28:42]MH_I2C_Read... [19:28:42]Read from MH i2c: E2 0E 00 [19:28:42]MH_I2C_Read... [19:28:42]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 37 [19:28:42]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [19:28:42]wFMCommunicate OK [19:28:42]SAM_PROTO_GetShiftState done [19:28:42]FM_GetShiftState done [19:28:42]opened in 1722211496 [19:28:42]opened+sec_in_day 1722297896 [19:28:42]quantity*price = 5000 [19:28:42]sum+1 = 5001 [19:28:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 128 29.07.2024 19:28 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41939 ФПД: 267721950369663 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T192842&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41939&fm=267721950369663&tin=02508201610067®Number=0000000000092626&sum=5000 0 [19:28:43]StoreToDocumentArchive [19:28:43]shift 427 fd 41939 [19:28:43]save to /storage/0427/doc_00041939 [19:28:43]save last doc name /storage/0427/doc_00041939 to /storage/kkm_last_doc_name [19:28:43]save OK [19:28:43]Clear old archive folders... [19:28:43]ProcessDocumentItem done err = 0, tmpTLVsize=269 [19:28:43]tlvbuf is 02029B30 [19:28:43]SAM_PROTO_ClearQueue [19:28:43]wFMCommunicate request_size=4 [19:28:43]MH_SAM_APDU [19:28:43]CAPDU: 80 09 00 00 [19:28:43]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [19:28:43]Write i2c OK [19:28:43]MH_I2C_Read... [19:28:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:28:43]Read from MH i2c: E2 [19:28:43]MH_I2C_Read... [19:28:43]Read from MH i2c: E2 03 00 [19:28:43]MH_I2C_Read... [19:28:43]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [19:28:43]RAPDU: 90 00 [19:28:43]wFMCommunicate OK [19:28:43]SAM_PROTO_ClearQueue done [19:28:43]KKMCreateOFDPacket [19:28:43]OFDProtocolAddRootSTLVToBuf [19:28:43]FM_MakeSignedData [19:28:43]FM_MakeSignedData [19:28:43]SAM_PROTO_SignData [19:28:43]wFMCommunicate request_size=4 [19:28:43]MH_SAM_APDU [19:28:43]CAPDU: 80 0D 01 02 [19:28:43]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [19:28:43]Write i2c OK [19:28:43]MH_I2C_Read... [19:28:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:28:43]Read from MH i2c: E2 [19:28:43]MH_I2C_Read... [19:28:43]Read from MH i2c: E2 03 00 [19:28:43]MH_I2C_Read... [19:28:43]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [19:28:43]RAPDU: 90 00 [19:28:43]wFMCommunicate OK [19:28:43]wFMCommunicate request_size=255 [19:28:43]MH_SAM_APDU [19:28:43]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 6A ED A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [19:28:43]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 6A ED A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 4C [19:28:43]Write i2c OK [19:28:43]MH_I2C_Read... [19:28:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:28:43]Read from MH i2c: E2 [19:28:43]MH_I2C_Read... [19:28:43]Read from MH i2c: E2 03 00 [19:28:43]MH_I2C_Read... [19:28:43]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [19:28:43]RAPDU: 90 00 [19:28:43]wFMCommunicate OK [19:28:43]wFMCommunicate request_size=28 [19:28:43]MH_SAM_APDU [19:28:43]CAPDU: 80 0D 02 02 17 37 34 39 35 38 10 04 04 00 D3 A3 00 00 35 04 06 00 F3 7D DF C0 17 7F [19:28:43]Write to MH i2c: E2 1F 00 2E 00 80 0D 02 02 17 00 37 34 39 35 38 10 04 04 00 D3 A3 00 00 35 04 06 00 F3 7D DF C0 17 7F 00 00 59 [19:28:43]Write i2c OK [19:28:43]MH_I2C_Read... [19:28:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:28:44]Read from MH i2c: E2 [19:28:44]MH_I2C_Read... [19:28:44]Read from MH i2c: E2 03 00 [19:28:44]MH_I2C_Read... [19:28:44]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [19:28:44]RAPDU: 90 00 [19:28:44]wFMCommunicate OK [19:28:44]wFMCommunicate request_size=4 [19:28:44]MH_SAM_APDU [19:28:44]CAPDU: 80 0D 03 02 [19:28:44]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [19:28:44]Write i2c OK [19:28:44]MH_I2C_Read... [19:28:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:28:44]Read from MH i2c: E2 [19:28:44]MH_I2C_Read... [19:28:44]Read from MH i2c: E2 0B 00 [19:28:44]MH_I2C_Read... [19:28:44]Read from MH i2c: E2 0B 00 2F 00 00 92 1F 3A 60 52 24 21 50 90 00 DD [19:28:44]RAPDU: 92 1F 3A 60 52 24 21 50 90 00 [19:28:44]wFMCommunicate OK [19:28:44]SAM_PROTO_SignData done [19:28:44]FM_MakeSignedData done [19:28:44]CreateOFDProtocolMessage [19:28:44]wFMCommunicate request_size=4 [19:28:44]MH_SAM_APDU [19:28:44]CAPDU: 80 11 00 00 [19:28:44]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [19:28:44]Write i2c OK [19:28:44]MH_I2C_Read... [19:28:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:28:44]Read from MH i2c: E2 [19:28:44]MH_I2C_Read... [19:28:44]Read from MH i2c: E2 17 00 [19:28:44]MH_I2C_Read... [19:28:44]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 06 [19:28:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [19:28:44]wFMCommunicate OK [19:28:44]CreateOFDProtocolMessage done [19:28:44]OFDSenderStorePacket 41939 [19:28:44]StoreOFDPacket docnum=41939 [19:28:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 21 01 00 00 0E EF 19 01 8D 8D 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 6A ED A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 D3 A3 00 00 35 04 06 00 F3 7D DF C0 17 7F 92 1F 3A 60 52 24 21 50 [19:28:44]CheckFolder [19:28:44]dirname=/storage/ofd_packets [19:28:44]CheckFolder done [19:28:44]ProducePacketName [19:28:44]name=ofd_packets/00041939 [19:28:44]NVStorageSaveData ofd_packets/00041939 [19:28:44]File name is /storage/ofd_packets/00041939 [19:28:44]Write 319 bytes [19:28:44]NVStorageSaveData done [19:28:44]OFDSenderStorePacket done [19:28:44]KKMCreateOFDPacket done [19:28:44]NVStorageSaveData kkm_last_timestamp [19:28:44]File name is /storage/kkm_last_timestamp [19:28:44]Write 4 bytes [19:28:44]NVStorageSaveData done [19:28:44]ExternCall_PrintAddStr [19:28:44]wPrintStart [19:28:44]Write to MH i2c: 01 00 00 31 00 31 [19:28:44]Write i2c OK [19:28:44]MH_I2C_Read... [19:28:44]Read from MH i2c: 01 [19:28:44]MH_I2C_Read... [19:28:44]Read from MH i2c: 01 07 00 [19:28:44]MH_I2C_Read... [19:28:44]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [19:28:44]RasterBufferAndPrint [19:28:44]line Счет N : (3)183968 [19:28:44]line ИНН: 02508201610067 [19:28:44]line Контрольно-Кассовый Чек [19:28:44]line ПРОДАЖА [19:28:44]line Товар: 4700000160358 [19:28:44]line Вода Легенда 1л [19:28:44]line 1.000 * 50.00 [19:28:44]line = 50.00 [19:28:44]line НДС 12% НСП 1% [19:28:44]line > о реализуемом товаре [19:28:44]line ИТОГО: 50.00 [19:28:44]line НСП 1% : 0.44 [19:28:44]line НДС 12% : 5.31 [19:28:44]line Наличными: 50.00 [19:28:44]line Безнал.: 0.00 [19:28:44]line Место: АЗС № 97 "Партнер Нефть" [19:28:44]OFD Sender: Processing packet 41937 [packets to send 59, broken 56] [19:28:44]ProducePacketName [19:28:44]name=ofd_packets/00041937 [19:28:44]OFD Sender: To server: pG, [19:28:44]CommunicateWithHost lk.salyk.kg:30040 [19:28:44]ConnectInit lk.salyk.kg [19:28:44]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [19:28:44]line СНО: Общий режим [19:28:44]line Чек 128 29.07.2024 19:28 [19:28:44]line Смена: 427 ФФД: 1.0 [19:28:44]line ЗНМ: 0300000053 [19:28:44]line РНМ: 0000000000092626 [19:28:44]line Версия ККМ: 001 [19:28:44]line ФМ: 0000000000874958 [19:28:44]line ФД: 41939 [19:28:44]line ФПД: 267721950369663 [19:28:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T192842&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41939&fm=267721950369663&tin=02508201610067®Number=0000000000092626&sum=5000 [19:28:44]line 0 [19:28:44]written 0, free lines is 4095 [19:28:44]Write to MH i2c: 01 00 00 59 00 59 [19:28:44]Write i2c OK [19:28:44]MH_I2C_Read... [19:28:44]Read from MH i2c: 01 [19:28:44]MH_I2C_Read... [19:28:44]Read from MH i2c: 01 07 00 [19:28:44]MH_I2C_Read... [19:28:44]Read from MH i2c: 01 07 00 59 00 00 00 00 00 00 17 0D 84 [19:28:44]RasterBufferAndPrint [19:28:44]line [19:28:44]line [19:28:44]line [19:28:44]line [19:28:44]line [19:28:44]written 0, free lines is 3375 [19:28:44]MH_Cut [19:28:44]Write to MH i2c: D1 01 00 60 00 01 32 [19:28:44]Write i2c OK [19:28:44]MH_I2C_Read... [19:28:44]Read from MH i2c: D1 [19:28:44]MH_I2C_Read... [19:28:44]Read from MH i2c: D1 01 00 [19:28:44]MH_I2C_Read... [19:28:44]Read from MH i2c: D1 01 00 60 00 00 31 [19:28:44]Write to MH i2c: 01 00 00 61 00 61 [19:28:44]Write i2c OK [19:28:44]MH_I2C_Read... [19:28:45]*** Cut start [19:28:45]*** Partial cut [19:28:45]*** CUTSNS_PIN = 1 [19:28:45]*** CUTSNS_PIN = 0 [19:28:45]*** Brake cut motor [19:28:46]Read from MH i2c: 01 [19:28:46]MH_I2C_Read... [19:28:46]*** Stop cut motor [19:28:46]*** Cut end [19:28:46]Read from MH i2c: 01 07 00 [19:28:46]MH_I2C_Read... [19:28:46]Read from MH i2c: 01 07 00 61 00 00 00 00 00 00 FF 0F 76 [19:28:46]process_action close_receipt done [19:28:46]requested_data is exist [19:28:46]produce_requested_data [19:28:46]requested_item fm.sn is exist - process it [19:28:46]wFMCommunicate request_size=4 [19:28:46]MH_SAM_APDU [19:28:46]CAPDU: 80 11 00 00 [19:28:46]Write to MH i2c: E2 08 00 62 00 80 11 00 00 00 00 00 00 DC [19:28:46]Write i2c OK [19:28:46]MH_I2C_Read... [19:28:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:28:46]Read from MH i2c: E2 [19:28:46]MH_I2C_Read... [19:28:46]Read from MH i2c: E2 17 00 [19:28:46]MH_I2C_Read... [19:28:46]Read from MH i2c: E2 17 00 62 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 38 [19:28:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [19:28:46]wFMCommunicate OK [19:28:46]requested_item fd.num is exist - process it [19:28:46]SAM_PROTO_GetFieldsCounters [19:28:46]wFMCommunicate request_size=4 [19:28:46]MH_SAM_APDU [19:28:46]CAPDU: 80 13 00 00 [19:28:46]Write to MH i2c: E2 08 00 63 00 80 13 00 00 00 00 00 00 DF [19:28:46]Write i2c OK [19:28:46]MH_I2C_Read... [19:28:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:28:46]Read from MH i2c: E2 [19:28:46]MH_I2C_Read... [19:28:46]Read from MH i2c: E2 62 00 [19:28:46]MH_I2C_Read... [19:28:46]Read from MH i2c: E2 62 00 63 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 D3 A3 00 00 0E 04 04 00 AB 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 AB [19:28: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 D3 A3 00 00 0E 04 04 00 AB 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 [19:28:46]wFMCommunicate OK [19:28:46]SAM_PROTO_GetFieldsCounters done [19:28:46]requested_item shift.num is exist - process it [19:28:46]requested_item shift.opened is exist - process it [19:28:46]req_shift_opened [19:28:46]FM_GetShiftState [19:28:46]SAM_PROTO_GetShiftState [19:28:46]wFMCommunicate request_size=4 [19:28:46]MH_SAM_APDU [19:28:46]CAPDU: 80 13 01 00 [19:28:46]Write to MH i2c: E2 08 00 64 00 80 13 01 00 00 00 00 00 E1 [19:28:46]Write i2c OK [19:28:46]MH_I2C_Read... [19:28:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:28:46]Read from MH i2c: E2 [19:28:46]MH_I2C_Read... [19:28:46]Read from MH i2c: E2 0E 00 [19:28:46]MH_I2C_Read... [19:28:46]Read from MH i2c: E2 0E 00 64 00 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 7D [19:28:46]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [19:28:46]wFMCommunicate OK [19:28:46]SAM_PROTO_GetShiftState done [19:28:46]FM_GetShiftState done [19:28:46]req_shift_opened done [19:28:46]requested_item shift.open_date is exist - process it [19:28:46]req_shift_open_date [19:28:46]req_shift_open_date done [19:28:46]produce_requested_data done [19:28:46]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41939,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [19:28:46]process_action_free close_receipt [19:28:46]json_value_free [19:28:46]json_value_free done [19:28:46]process_json_proto returns [19:28:46]Send response to host [19:28:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41939,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [19:28:46]free response buf [19:28:46]execute_script done [19:28:46]execute_script returns [19:28:46]free content buf [19:28:46]Sock 8.Close socket [19:28:46]Sock 8.Thread stoped [19:28:47]accept exits with 10 [19:28:47]New connection [19:28:47]New thread 3066854756 created [19:28:47]Thread 3066998116 joined [19:28:47]Waiting for new connection... [19:28:47] Sock 10.Parse request [19:28:47]Sock 10.Check first char [19:28:47]Sock 10.First char is OK [19:28:47]request: POST /json_proto HTTP/1.0 [19:28:47]Method: POST [19:28:47]URL: /json_proto [19:28:47]Method is POST - this is cgi request [19:28:47]url: /json_proto [19:28:47]query_string will be loaded in cgi processing [19:28:47]execute_cgi json_proto POST (null) [19:28:47]execute_cgi path=json_proto method=POST [19:28:47]POST find Content-Length [19:28:47]Host: 172.17.43.132:8080 [19:28:47]Content-Length: 637 [19:28:47]Content-Type: application/json [19:28:47] [19:28:47]POST finish read [19:28:47]Found Content-Length = 637 [19:28:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183969", "tax_sys" : 0, "items" : [ { "code": "4700000160051", "name": "\u0412\u043E\u0434\u0430 \u042B\u0441\u0441\u044B\u043A \u0410\u0442\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:28:47]execute_script... [19:28: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 : (3)183969", "tax_sys" : 0, "items" : [ { "code": "4700000160051", "name": "\u0412\u043E\u0434\u0430 \u042B\u0441\u0441\u044B\u043A \u0410\u0442\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:28:47]POST & json_proto [19:28:47]process_json_proto [19:28:47]json parsed OK: [19:28:47]protocol is kg_v1.0 [19:28:47]action value=close_receipt [19:28:47]process_action close_receipt [19:28:47]cmd_close_receipt [19:28:47]MH_GetDate [19:28:47]Write to MH i2c: F0 00 00 65 00 54 [19:28:47]Write i2c OK [19:28:47]MH_I2C_Read... [19:28:47]Read from MH i2c: F0 [19:28:47]MH_I2C_Read... [19:28:47]Read from MH i2c: F0 09 00 [19:28:47]MH_I2C_Read... [19:28:47]Read from MH i2c: F0 09 00 65 00 00 6F ED A7 66 64 A3 A7 66 DA [19:28:47]GetLastDocTimeStamp 1722281322 [19:28:47]current date 1722281327 [19:28:47]FM_GetShiftState [19:28:47]SAM_PROTO_GetShiftState [19:28:47]wFMCommunicate request_size=4 [19:28:47]MH_SAM_APDU [19:28:47]CAPDU: 80 13 01 00 [19:28:47]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [19:28:47]Write i2c OK [19:28:47]MH_I2C_Read... [19:28:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:28:47]Read from MH i2c: E2 [19:28:47]MH_I2C_Read... [19:28:47]Read from MH i2c: E2 0E 00 [19:28:47]MH_I2C_Read... [19:28:47]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 7F [19:28:47]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [19:28:47]wFMCommunicate OK [19:28:47]SAM_PROTO_GetShiftState done [19:28:47]FM_GetShiftState done [19:28:47]opened in 1722211496 [19:28:47]opened+sec_in_day 1722297896 [19:28:47]quantity*price = 5000 [19:28:47]sum+1 = 5001 [19:28:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 129 29.07.2024 19:28 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41940 ФПД: 91897092000500 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T192848&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41940&fm=91897092000500&tin=02508201610067®Number=0000000000092626&sum=5000 0 [19:28:49]StoreToDocumentArchive [19:28:49]shift 427 fd 41940 [19:28:49]save to /storage/0427/doc_00041940 [19:28:49]save last doc name /storage/0427/doc_00041940 to /storage/kkm_last_doc_name [19:28:49]save OK [19:28:49]Clear old archive folders... [19:28:49]ProcessDocumentItem done err = 0, tmpTLVsize=272 [19:28:49]tlvbuf is 02052470 [19:28:49]SAM_PROTO_ClearQueue [19:28:49]wFMCommunicate request_size=4 [19:28:49]MH_SAM_APDU [19:28:49]CAPDU: 80 09 00 00 [19:28:49]Write to MH i2c: E2 08 00 73 00 80 09 00 00 00 00 00 00 E5 [19:28:49]Write i2c OK [19:28:49]MH_I2C_Read... [19:28:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:28:49]Read from MH i2c: E2 [19:28:49]MH_I2C_Read... [19:28:49]Read from MH i2c: E2 03 00 [19:28:49]MH_I2C_Read... [19:28:49]Read from MH i2c: E2 03 00 73 00 00 90 00 E7 [19:28:49]RAPDU: 90 00 [19:28:49]wFMCommunicate OK [19:28:49]SAM_PROTO_ClearQueue done [19:28:49]KKMCreateOFDPacket [19:28:49]OFDProtocolAddRootSTLVToBuf [19:28:49]FM_MakeSignedData [19:28:49]FM_MakeSignedData [19:28:49]SAM_PROTO_SignData [19:28:49]wFMCommunicate request_size=4 [19:28:49]MH_SAM_APDU [19:28:49]CAPDU: 80 0D 01 02 [19:28:49]Write to MH i2c: E2 08 00 74 00 80 0D 01 02 00 00 00 00 ED [19:28:49]ConnectInit Can't take IP for lk.salyk.kg [19:28:49]CommunicateWithHost connect error [19:28:49]CommunicateWithHost err = -1 [19:28:49]OFD Sender: Server communicate error [19:28:49]Write i2c OK [19:28:49]MH_I2C_Read... [19:28:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:28:49]Read from MH i2c: E2 [19:28:49]MH_I2C_Read... [19:28:49]Read from MH i2c: E2 03 00 [19:28:49]MH_I2C_Read... [19:28:49]Read from MH i2c: E2 03 00 74 00 00 90 00 E8 [19:28:49]RAPDU: 90 00 [19:28:49]wFMCommunicate OK [19:28:49]wFMCommunicate request_size=255 [19:28:49]MH_SAM_APDU [19:28:49]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 70 ED A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 [19:28:49]Write to MH i2c: E2 02 01 75 00 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 70 ED A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 00 00 D1 [19:28:49]Write i2c OK [19:28:49]MH_I2C_Read... [19:28:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:28:49]Read from MH i2c: E2 [19:28:49]MH_I2C_Read... [19:28:49]Read from MH i2c: E2 03 00 [19:28:49]MH_I2C_Read... [19:28:49]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [19:28:49]RAPDU: 90 00 [19:28:49]wFMCommunicate OK [19:28:49]wFMCommunicate request_size=31 [19:28:49]MH_SAM_APDU [19:28:49]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 39 35 38 10 04 04 00 D4 A3 00 00 35 04 06 00 53 94 75 86 4A F4 [19:28:49]Write to MH i2c: E2 22 00 76 00 80 0D 02 02 1A 00 30 30 38 37 34 39 35 38 10 04 04 00 D4 A3 00 00 35 04 06 00 53 94 75 86 4A F4 00 00 BB [19:28:49]Write i2c OK [19:28:49]MH_I2C_Read... [19:28:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:28:49]Read from MH i2c: E2 [19:28:49]MH_I2C_Read... [19:28:49]Read from MH i2c: E2 03 00 [19:28:49]MH_I2C_Read... [19:28:49]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [19:28:49]RAPDU: 90 00 [19:28:49]wFMCommunicate OK [19:28:49]wFMCommunicate request_size=4 [19:28:49]MH_SAM_APDU [19:28:49]CAPDU: 80 0D 03 02 [19:28:49]Write to MH i2c: E2 08 00 77 00 80 0D 03 02 00 00 00 00 F2 [19:28:49]Write i2c OK [19:28:49]MH_I2C_Read... [19:28:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:28:49]Read from MH i2c: E2 [19:28:49]MH_I2C_Read... [19:28:49]Read from MH i2c: E2 0B 00 [19:28:49]MH_I2C_Read... [19:28:49]Read from MH i2c: E2 0B 00 77 00 00 63 7A F0 B3 4C EB B2 8E 90 00 EA [19:28:49]RAPDU: 63 7A F0 B3 4C EB B2 8E 90 00 [19:28:49]wFMCommunicate OK [19:28:49]SAM_PROTO_SignData done [19:28:49]FM_MakeSignedData done [19:28:49]CreateOFDProtocolMessage [19:28:49]wFMCommunicate request_size=4 [19:28:49]MH_SAM_APDU [19:28:49]CAPDU: 80 11 00 00 [19:28:49]Write to MH i2c: E2 08 00 78 00 80 11 00 00 00 00 00 00 F2 [19:28:50]Write i2c OK [19:28:50]MH_I2C_Read... [19:28:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:28:50]Read from MH i2c: E2 [19:28:50]MH_I2C_Read... [19:28:50]Read from MH i2c: E2 17 00 [19:28:50]MH_I2C_Read... [19:28:50]Read from MH i2c: E2 17 00 78 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 4E [19:28:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [19:28:50]wFMCommunicate OK [19:28:50]CreateOFDProtocolMessage done [19:28:50]OFDSenderStorePacket 41940 [19:28:50]StoreOFDPacket docnum=41940 [19:28:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 24 01 00 00 3A E7 1C 01 06 CD 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 70 ED A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 D4 A3 00 00 35 04 06 00 53 94 75 86 4A F4 63 7A F0 B3 4C EB B2 8E [19:28:50]CheckFolder [19:28:50]dirname=/storage/ofd_packets [19:28:50]CheckFolder done [19:28:50]ProducePacketName [19:28:50]name=ofd_packets/00041940 [19:28:50]NVStorageSaveData ofd_packets/00041940 [19:28:50]File name is /storage/ofd_packets/00041940 [19:28:50]Write 322 bytes [19:28:50]NVStorageSaveData done [19:28:50]OFDSenderStorePacket done [19:28:50]KKMCreateOFDPacket done [19:28:50]NVStorageSaveData kkm_last_timestamp [19:28:50]File name is /storage/kkm_last_timestamp [19:28:50]Write 4 bytes [19:28:50]NVStorageSaveData done [19:28:50]ExternCall_PrintAddStr [19:28:50]wPrintStart [19:28:50]Write to MH i2c: 01 00 00 79 00 79 [19:28:50]Write i2c OK [19:28:50]MH_I2C_Read... [19:28:50]Read from MH i2c: 01 [19:28:50]MH_I2C_Read... [19:28:50]Read from MH i2c: 01 07 00 [19:28:50]MH_I2C_Read... [19:28:50]Read from MH i2c: 01 07 00 79 00 00 00 00 00 00 FF 0F 8E [19:28:50]RasterBufferAndPrint [19:28:50]line Счет N : (3)183969 [19:28:50]line ИНН: 02508201610067 [19:28:50]line Контрольно-Кассовый Чек [19:28:50]line ПРОДАЖА [19:28:50]line Товар: 4700000160051 [19:28:50]line Вода Ыссык Ата 1л [19:28:50]line 1.000 * 50.00 [19:28:50]line = 50.00 [19:28:50]line НДС 12% НСП 1% [19:28:50]line > о реализуемом товаре [19:28:50]line ИТОГО: 50.00 [19:28:50]line НСП 1% : 0.44 [19:28:50]line НДС 12% : 5.31 [19:28:50]line Наличными: 50.00 [19:28:50]line Безнал.: 0.00 [19:28:50]line Место: АЗС № 97 "Партнер Нефть" [19:28:50]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [19:28:50]line СНО: Общий режим [19:28:50]line Чек 129 29.07.2024 19:28 [19:28:50]line Смена: 427 ФФД: 1.0 [19:28:50]line ЗНМ: 0300000053 [19:28:50]line РНМ: 0000000000092626 [19:28:50]line Версия ККМ: 001 [19:28:50]line ФМ: 0000000000874958 [19:28:50]line ФД: 41940 [19:28:50]line ФПД: 91897092000500 [19:28:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T192848&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41940&fm=91897092000500&tin=02508201610067®Number=0000000000092626&sum=5000 [19:28:50]line 0 [19:28:50]written 0, free lines is 4095 [19:28:50]OFD Sender: Processing packet 41937 [packets to send 60, broken 56] [19:28:50]ProducePacketName [19:28:50]name=ofd_packets/00041937 [19:28:50]OFD Sender: To server: pG, [19:28:50]CommunicateWithHost lk.salyk.kg:30040 [19:28:50]ConnectInit lk.salyk.kg [19:28:50]Write to MH i2c: 01 00 00 A1 00 A1 [19:28:50]Write i2c OK [19:28:50]MH_I2C_Read... [19:28:50]Read from MH i2c: 01 [19:28:50]MH_I2C_Read... [19:28:50]Read from MH i2c: 01 07 00 [19:28:50]MH_I2C_Read... [19:28:50]Read from MH i2c: 01 07 00 A1 00 00 00 00 00 00 0E 0D C3 [19:28:50]RasterBufferAndPrint [19:28:50]line [19:28:50]line [19:28:50]line [19:28:50]line [19:28:50]line [19:28:50]written 0, free lines is 3372 [19:28:50]MH_Cut [19:28:50]Write to MH i2c: D1 01 00 A8 00 01 7A [19:28:50]Write i2c OK [19:28:50]MH_I2C_Read... [19:28:50]Read from MH i2c: D1 [19:28:50]MH_I2C_Read... [19:28:50]Read from MH i2c: D1 01 00 [19:28:50]MH_I2C_Read... [19:28:50]Read from MH i2c: D1 01 00 A8 00 00 79 [19:28:50]Write to MH i2c: 01 00 00 A9 00 A9 [19:28:50]Write i2c OK [19:28:50]MH_I2C_Read... [19:28:51]*** Cut start [19:28:51]*** Partial cut [19:28:51]*** CUTSNS_PIN = 1 [19:28:51]*** CUTSNS_PIN = 0 [19:28:51]*** Brake cut motor [19:28:51]Read from MH i2c: 01 [19:28:51]MH_I2C_Read... [19:28:51]*** Stop cut motor [19:28:51]*** Cut end [19:28:51]Read from MH i2c: 01 07 00 [19:28:51]MH_I2C_Read... [19:28:51]Read from MH i2c: 01 07 00 A9 00 00 00 00 00 00 FF 0F BE [19:28:51]process_action close_receipt done [19:28:51]requested_data is exist [19:28:51]produce_requested_data [19:28:51]requested_item fm.sn is exist - process it [19:28:51]wFMCommunicate request_size=4 [19:28:51]MH_SAM_APDU [19:28:51]CAPDU: 80 11 00 00 [19:28:51]Write to MH i2c: E2 08 00 AA 00 80 11 00 00 00 00 00 00 24 [19:28:51]Write i2c OK [19:28:51]MH_I2C_Read... [19:28:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:28:52]Read from MH i2c: E2 [19:28:52]MH_I2C_Read... [19:28:52]Read from MH i2c: E2 17 00 [19:28:52]MH_I2C_Read... [19:28:52]Read from MH i2c: E2 17 00 AA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 80 [19:28:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [19:28:52]wFMCommunicate OK [19:28:52]requested_item fd.num is exist - process it [19:28:52]SAM_PROTO_GetFieldsCounters [19:28:52]wFMCommunicate request_size=4 [19:28:52]MH_SAM_APDU [19:28:52]CAPDU: 80 13 00 00 [19:28:52]Write to MH i2c: E2 08 00 AB 00 80 13 00 00 00 00 00 00 27 [19:28:52]Write i2c OK [19:28:52]MH_I2C_Read... [19:28:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:28:52]Read from MH i2c: E2 [19:28:52]MH_I2C_Read... [19:28:52]Read from MH i2c: E2 62 00 [19:28:52]MH_I2C_Read... [19:28:52]Read from MH i2c: E2 62 00 AB 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 D4 A3 00 00 0E 04 04 00 AB 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 F7 [19:28: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 D4 A3 00 00 0E 04 04 00 AB 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 [19:28:52]wFMCommunicate OK [19:28:52]SAM_PROTO_GetFieldsCounters done [19:28:52]requested_item shift.num is exist - process it [19:28:52]requested_item shift.opened is exist - process it [19:28:52]req_shift_opened [19:28:52]FM_GetShiftState [19:28:52]SAM_PROTO_GetShiftState [19:28:52]wFMCommunicate request_size=4 [19:28:52]MH_SAM_APDU [19:28:52]CAPDU: 80 13 01 00 [19:28:52]Write to MH i2c: E2 08 00 AC 00 80 13 01 00 00 00 00 00 29 [19:28:52]Write i2c OK [19:28:52]MH_I2C_Read... [19:28:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:28:52]Read from MH i2c: E2 [19:28:52]MH_I2C_Read... [19:28:52]Read from MH i2c: E2 0E 00 [19:28:52]MH_I2C_Read... [19:28:52]Read from MH i2c: E2 0E 00 AC 00 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 C5 [19:28:52]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [19:28:52]wFMCommunicate OK [19:28:52]SAM_PROTO_GetShiftState done [19:28:52]FM_GetShiftState done [19:28:52]req_shift_opened done [19:28:52]requested_item shift.open_date is exist - process it [19:28:52]req_shift_open_date [19:28:52]req_shift_open_date done [19:28:52]produce_requested_data done [19:28:52]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41940,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [19:28:52]process_action_free close_receipt [19:28:52]json_value_free [19:28:52]json_value_free done [19:28:52]process_json_proto returns [19:28:52]Send response to host [19:28:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41940,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [19:28:52]free response buf [19:28:52]execute_script done [19:28:52]execute_script returns [19:28:52]free content buf [19:28:52]Sock 10.Close socket [19:28:52]Sock 10.Thread stoped [19:28:54]accept exits with 8 [19:28:54]New connection [19:28:54]New thread 3066998116 created [19:28:54]Thread 3066854756 joined [19:28:54]Waiting for new connection... [19:28:54] Sock 8.Parse request [19:28:54]Sock 8.Check first char [19:28:54]Sock 8.First char is OK [19:28:54]request: POST /json_proto HTTP/1.0 [19:28:54]Method: POST [19:28:54]URL: /json_proto [19:28:54]Method is POST - this is cgi request [19:28:54]url: /json_proto [19:28:54]query_string will be loaded in cgi processing [19:28:54]execute_cgi json_proto POST (null) [19:28:54]execute_cgi path=json_proto method=POST [19:28:54]POST find Content-Length [19:28:54]Host: 172.17.43.132:8080 [19:28:54]Content-Length: 931 [19:28:54]Content-Type: application/json [19:28:54] [19:28:54]POST finish read [19:28:54]Found Content-Length = 931 [19:28:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183970", "tax_sys" : 0, "items" : [ { "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:28:54]execute_script... [19:28: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 : (3)183970", "tax_sys" : 0, "items" : [ { "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:28:54]POST & json_proto [19:28:54]process_json_proto [19:28:54]json parsed OK: [19:28:54]protocol is kg_v1.0 [19:28:54]action value=close_receipt [19:28:54]process_action close_receipt [19:28:54]cmd_close_receipt [19:28:54]MH_GetDate [19:28:54]Write to MH i2c: F0 00 00 AD 00 9C [19:28:54]Write i2c OK [19:28:54]MH_I2C_Read... [19:28:54]Read from MH i2c: F0 [19:28:54]MH_I2C_Read... [19:28:54]Read from MH i2c: F0 09 00 [19:28:54]MH_I2C_Read... [19:28:54]Read from MH i2c: F0 09 00 AD 00 00 76 ED A7 66 64 A3 A7 66 29 [19:28:54]GetLastDocTimeStamp 1722281328 [19:28:54]current date 1722281334 [19:28:54]FM_GetShiftState [19:28:54]SAM_PROTO_GetShiftState [19:28:54]wFMCommunicate request_size=4 [19:28:54]MH_SAM_APDU [19:28:54]CAPDU: 80 13 01 00 [19:28:54]Write to MH i2c: E2 08 00 AE 00 80 13 01 00 00 00 00 00 2B [19:28:54]Write i2c OK [19:28:54]MH_I2C_Read... [19:28:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:28:54]Read from MH i2c: E2 [19:28:54]MH_I2C_Read... [19:28:54]Read from MH i2c: E2 0E 00 [19:28:54]MH_I2C_Read... [19:28:54]Read from MH i2c: E2 0E 00 AE 00 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 C7 [19:28:54]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [19:28:54]wFMCommunicate OK [19:28:54]SAM_PROTO_GetShiftState done [19:28:54]FM_GetShiftState done [19:28:54]opened in 1722211496 [19:28:54]opened+sec_in_day 1722297896 [19:28:54]quantity*price = 5000 [19:28:54]sum+1 = 5001 [19:28:54]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700040114137 Султан чай 1л. зел лимон 1.000 * 65.00 = 65.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.01 НДС 12% : 12.21 Наличными: 115.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 130 29.07.2024 19:28 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41941 ФПД: 219137005532172 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T192854&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41941&fm=219137005532172&tin=02508201610067®Number=0000000000092626&sum=11500 0 [19:28:55]StoreToDocumentArchive [19:28:55]shift 427 fd 41941 [19:28:55]save to /storage/0427/doc_00041941 [19:28:55]save last doc name /storage/0427/doc_00041941 to /storage/kkm_last_doc_name [19:28:55]save OK [19:28:55]Clear old archive folders... [19:28:55]ProcessDocumentItem done err = 0, tmpTLVsize=389 [19:28:55]tlvbuf is 02033770 [19:28:55]SAM_PROTO_ClearQueue [19:28:55]wFMCommunicate request_size=4 [19:28:55]MH_SAM_APDU [19:28:55]CAPDU: 80 09 00 00 [19:28:55]Write to MH i2c: E2 08 00 BB 00 80 09 00 00 00 00 00 00 2D [19:28:55]Write i2c OK [19:28:55]MH_I2C_Read... [19:28:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:28:55]Read from MH i2c: E2 [19:28:55]MH_I2C_Read... [19:28:55]Read from MH i2c: E2 03 00 [19:28:55]MH_I2C_Read... [19:28:55]Read from MH i2c: E2 03 00 BB 00 00 90 00 2F [19:28:55]RAPDU: 90 00 [19:28:55]wFMCommunicate OK [19:28:55]SAM_PROTO_ClearQueue done [19:28:55]KKMCreateOFDPacket [19:28:55]OFDProtocolAddRootSTLVToBuf [19:28:55]FM_MakeSignedData [19:28:55]FM_MakeSignedData [19:28:55]SAM_PROTO_SignData [19:28:55]wFMCommunicate request_size=4 [19:28:55]MH_SAM_APDU [19:28:55]CAPDU: 80 0D 01 02 [19:28:55]Write to MH i2c: E2 08 00 BC 00 80 0D 01 02 00 00 00 00 35 [19:28:55]Write i2c OK [19:28:55]MH_I2C_Read... [19:28:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:28:55]Read from MH i2c: E2 [19:28:55]MH_I2C_Read... [19:28:55]Read from MH i2c: E2 03 00 [19:28:55]MH_I2C_Read... [19:28:55]Read from MH i2c: E2 03 00 BC 00 00 90 00 30 [19:28:55]RAPDU: 90 00 [19:28:55]wFMCommunicate OK [19:28:55]wFMCommunicate request_size=255 [19:28:55]MH_SAM_APDU [19:28:55]CAPDU: 80 0D 02 02 FA 03 00 85 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 [19:28:55]Write to MH i2c: E2 02 01 BD 00 80 0D 02 02 FA 00 03 00 85 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 00 00 C6 [19:28:56]Write i2c OK [19:28:56]MH_I2C_Read... [19:28:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:28:56]Read from MH i2c: E2 [19:28:56]MH_I2C_Read... [19:28:56]Read from MH i2c: E2 03 00 [19:28:56]MH_I2C_Read... [19:28:56]Read from MH i2c: E2 03 00 BD 00 00 90 00 31 [19:28:56]RAPDU: 90 00 [19:28:56]wFMCommunicate OK [19:28:56]wFMCommunicate request_size=148 [19:28:56]MH_SAM_APDU [19:28:56]CAPDU: 80 0D 02 02 8F 01 F7 03 06 00 65 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 76 ED A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 D5 A3 00 00 35 04 06 00 C7 4D CF 5F 34 0C [19:28:56]Write to MH i2c: E2 97 00 BE 00 80 0D 02 02 8F 00 01 F7 03 06 00 65 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 76 ED A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 D5 A3 00 00 35 04 06 00 C7 4D CF 5F 34 0C 00 00 6B [19:28:56]Write i2c OK [19:28:56]MH_I2C_Read... [19:28:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:28:56]Read from MH i2c: E2 [19:28:56]MH_I2C_Read... [19:28:56]Read from MH i2c: E2 03 00 [19:28:56]MH_I2C_Read... [19:28:56]Read from MH i2c: E2 03 00 BE 00 00 90 00 32 [19:28:56]RAPDU: 90 00 [19:28:56]wFMCommunicate OK [19:28:56]wFMCommunicate request_size=4 [19:28:56]MH_SAM_APDU [19:28:56]CAPDU: 80 0D 03 02 [19:28:56]Write to MH i2c: E2 08 00 BF 00 80 0D 03 02 00 00 00 00 3A [19:28:56]Write i2c OK [19:28:56]MH_I2C_Read... [19:28:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:28:56]Read from MH i2c: E2 [19:28:56]MH_I2C_Read... [19:28:56]Read from MH i2c: E2 0B 00 [19:28:56]MH_I2C_Read... [19:28:56]Read from MH i2c: E2 0B 00 BF 00 00 F7 3E 32 F8 F6 D6 A9 F1 90 00 00 [19:28:56]RAPDU: F7 3E 32 F8 F6 D6 A9 F1 90 00 [19:28:56]wFMCommunicate OK [19:28:56]SAM_PROTO_SignData done [19:28:56]FM_MakeSignedData done [19:28:56]CreateOFDProtocolMessage [19:28:56]wFMCommunicate request_size=4 [19:28:56]MH_SAM_APDU [19:28:56]CAPDU: 80 11 00 00 [19:28:56]Write to MH i2c: E2 08 00 C0 00 80 11 00 00 00 00 00 00 3A [19:28:56]Write i2c OK [19:28:56]MH_I2C_Read... [19:28:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:28:56]Read from MH i2c: E2 [19:28:56]MH_I2C_Read... [19:28:56]Read from MH i2c: E2 17 00 [19:28:56]MH_I2C_Read... [19:28:56]Read from MH i2c: E2 17 00 C0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 96 [19:28:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [19:28:56]wFMCommunicate OK [19:28:56]CreateOFDProtocolMessage done [19:28:56]OFDSenderStorePacket 41941 [19:28:56]StoreOFDPacket docnum=41941 [19:28:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 99 01 00 00 BE 14 91 01 DE 3C 5A 03 01 00 03 00 85 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 65 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 76 ED A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 D5 A3 00 00 35 04 06 00 C7 4D CF 5F 34 0C F7 3E 32 F8 F6 D6 A9 F1 [19:28:56]CheckFolder [19:28:56]dirname=/storage/ofd_packets [19:28:56]CheckFolder done [19:28:56]ProducePacketName [19:28:56]name=ofd_packets/00041941 [19:28:56]NVStorageSaveData ofd_packets/00041941 [19:28:56]File name is /storage/ofd_packets/00041941 [19:28:56]Write 439 bytes [19:28:56]NVStorageSaveData done [19:28:56]OFDSenderStorePacket done [19:28:56]KKMCreateOFDPacket done [19:28:56]NVStorageSaveData kkm_last_timestamp [19:28:56]File name is /storage/kkm_last_timestamp [19:28:56]Write 4 bytes [19:28:56]NVStorageSaveData done [19:28:56]ExternCall_PrintAddStr [19:28:56]wPrintStart [19:28:56]Write to MH i2c: 01 00 00 C1 00 C1 [19:28:56]Write i2c OK [19:28:56]MH_I2C_Read... [19:28:56]Read from MH i2c: 01 [19:28:56]MH_I2C_Read... [19:28:56]Read from MH i2c: 01 07 00 [19:28:56]MH_I2C_Read... [19:28:56]Read from MH i2c: 01 07 00 C1 00 00 00 00 00 00 FF 0F D6 [19:28:56]RasterBufferAndPrint [19:28:56]line Счет N : (3)183970 [19:28:56]line ИНН: 02508201610067 [19:28:56]line Контрольно-Кассовый Чек [19:28:56]line ПРОДАЖА [19:28:56]line Товар: 5449000005489 [19:28:56]line Вода Бонаква 1л б/г [19:28:56]line 1.000 * 50.00 [19:28:56]line = 50.00 [19:28:56]line НДС 12% НСП 1% [19:28:56]line > о реализуемом товаре [19:28:56]line Товар: 4700040114137 [19:28:56]line Султан чай 1л. зел лимон [19:28:56]line 1.000 * 65.00 [19:28:56]line = 65.00 [19:28:56]line НДС 12% НСП 1% [19:28:56]line > о реализуемом товаре [19:28:56]line ИТОГО: 115.00 [19:28:56]line НСП 1% : 1.01 [19:28:56]line НДС 12% : 12.21 [19:28:56]line Наличными: 115.00 [19:28:56]line Безнал.: 0.00 [19:28:56]line Место: АЗС № 97 "Партнер Нефть" [19:28:56]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [19:28:56]line СНО: Общий режим [19:28:56]line Чек 130 29.07.2024 19:28 [19:28:56]line Смена: 427 ФФД: 1.0 [19:28:56]line ЗНМ: 0300000053 [19:28:56]line РНМ: 0000000000092626 [19:28:56]line Версия ККМ: 001 [19:28:56]line ФМ: 0000000000874958 [19:28:56]line ФД: 41941 [19:28:56]line ФПД: 219137005532172 [19:28:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T192854&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41941&fm=219137005532172&tin=02508201610067®Number=0000000000092626&sum=11500 [19:28:56]line 0 [19:28:56]written 0, free lines is 4095 [19:28:56]OFD Sender: Processing packet 41937 [packets to send 61, broken 56] [19:28:56]ProducePacketName [19:28:56]name=ofd_packets/00041937 [19:28:56]OFD Sender: To server: pG, [19:28:56]CommunicateWithHost lk.salyk.kg:30040 [19:28:56]ConnectInit lk.salyk.kg [19:28:57]Write to MH i2c: 01 00 00 EF 00 EF [19:28:57]Write i2c OK [19:28:57]MH_I2C_Read... [19:28:57]Read from MH i2c: 01 [19:28:57]MH_I2C_Read... [19:28:57]Read from MH i2c: 01 07 00 [19:28:57]MH_I2C_Read... [19:28:57]Read from MH i2c: 01 07 00 EF 00 00 00 00 00 00 C1 0C C3 [19:28:57]RasterBufferAndPrint [19:28:57]line [19:28:57]line [19:28:57]line [19:28:57]line [19:28:57]line [19:28:57]written 0, free lines is 3301 [19:28:57]MH_Cut [19:28:57]Write to MH i2c: D1 01 00 F6 00 01 C8 [19:28:57]Write i2c OK [19:28:57]MH_I2C_Read... [19:28:57]Read from MH i2c: D1 [19:28:57]MH_I2C_Read... [19:28:57]Read from MH i2c: D1 01 00 [19:28:57]MH_I2C_Read... [19:28:57]Read from MH i2c: D1 01 00 F6 00 00 C7 [19:28:57]Write to MH i2c: 01 00 00 F7 00 F7 [19:28:57]Write i2c OK [19:28:57]MH_I2C_Read... [19:28:58]*** Cut start [19:28:58]*** Partial cut [19:28:58]*** CUTSNS_PIN = 1 [19:28:58]*** CUTSNS_PIN = 0 [19:28:58]*** Brake cut motor [19:28:58]Read from MH i2c: 01 [19:28:58]MH_I2C_Read... [19:28:58]*** Stop cut motor [19:28:58]*** Cut end [19:28:58]Read from MH i2c: 01 07 00 [19:28:58]MH_I2C_Read... [19:28:58]Read from MH i2c: 01 07 00 F7 00 00 00 00 00 00 FF 0F 0C [19:28:58]process_action close_receipt done [19:28:58]requested_data is exist [19:28:58]produce_requested_data [19:28:58]requested_item fm.sn is exist - process it [19:28:58]wFMCommunicate request_size=4 [19:28:58]MH_SAM_APDU [19:28:58]CAPDU: 80 11 00 00 [19:28:58]Write to MH i2c: E2 08 00 F8 00 80 11 00 00 00 00 00 00 72 [19:28:58]Write i2c OK [19:28:58]MH_I2C_Read... [19:28:58]Read from MH i2c: E2 [19:28:58]MH_I2C_Read... [19:28:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:28:58]Read from MH i2c: E2 17 00 [19:28:58]MH_I2C_Read... [19:28:58]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 35 38 90 00 CE [19:28:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [19:28:58]wFMCommunicate OK [19:28:58]requested_item fd.num is exist - process it [19:28:58]SAM_PROTO_GetFieldsCounters [19:28:58]wFMCommunicate request_size=4 [19:28:58]MH_SAM_APDU [19:28:58]CAPDU: 80 13 00 00 [19:28:58]Write to MH i2c: E2 08 00 F9 00 80 13 00 00 00 00 00 00 75 [19:28:58]Write i2c OK [19:28:58]MH_I2C_Read... [19:28:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:28:59]Read from MH i2c: E2 [19:28:59]MH_I2C_Read... [19:28:59]Read from MH i2c: E2 62 00 [19:28:59]MH_I2C_Read... [19:28:59]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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 D5 A3 00 00 0E 04 04 00 AB 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 49 [19:28: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 D5 A3 00 00 0E 04 04 00 AB 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 [19:28:59]wFMCommunicate OK [19:28:59]SAM_PROTO_GetFieldsCounters done [19:28:59]requested_item shift.num is exist - process it [19:28:59]requested_item shift.opened is exist - process it [19:28:59]req_shift_opened [19:28:59]FM_GetShiftState [19:28:59]SAM_PROTO_GetShiftState [19:28:59]wFMCommunicate request_size=4 [19:28:59]MH_SAM_APDU [19:28:59]CAPDU: 80 13 01 00 [19:28:59]Write to MH i2c: E2 08 00 FA 00 80 13 01 00 00 00 00 00 77 [19:28:59]Write i2c OK [19:28:59]MH_I2C_Read... [19:28:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:28:59]Read from MH i2c: E2 [19:28:59]MH_I2C_Read... [19:28:59]Read from MH i2c: E2 0E 00 [19:28:59]MH_I2C_Read... [19:28:59]Read from MH i2c: E2 0E 00 FA 00 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 13 [19:28:59]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [19:28:59]wFMCommunicate OK [19:28:59]SAM_PROTO_GetShiftState done [19:28:59]FM_GetShiftState done [19:28:59]req_shift_opened done [19:28:59]requested_item shift.open_date is exist - process it [19:28:59]req_shift_open_date [19:28:59]req_shift_open_date done [19:28:59]produce_requested_data done [19:28:59]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41941,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [19:28:59]process_action_free close_receipt [19:28:59]json_value_free [19:28:59]json_value_free done [19:28:59]process_json_proto returns [19:28:59]Send response to host [19:28:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41941,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [19:28:59]free response buf [19:28:59]execute_script done [19:28:59]execute_script returns [19:28:59]free content buf [19:28:59]Sock 8.Close socket [19:28:59]Sock 8.Thread stoped [19:29:00]accept exits with 12 [19:29:00]New connection [19:29:00]New thread 3066854756 created [19:29:00]Thread 3066998116 joined [19:29:00]Waiting for new connection... [19:29:00] Sock 12.Parse request [19:29:00]Sock 12.Check first char [19:29:00]Sock 12.First char is OK [19:29:00]request: POST /json_proto HTTP/1.0 [19:29:00]Method: POST [19:29:00]URL: /json_proto [19:29:00]Method is POST - this is cgi request [19:29:00]url: /json_proto [19:29:00]query_string will be loaded in cgi processing [19:29:00]execute_cgi json_proto POST (null) [19:29:00]execute_cgi path=json_proto method=POST [19:29:00]POST find Content-Length [19:29:00]Host: 172.17.43.132:8080 [19:29:00]Content-Length: 850 [19:29:00]Content-Type: application/json [19:29:00] [19:29:00]POST finish read [19:29:00]Found Content-Length = 850 [19:29:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183971", "tax_sys" : 0, "items" : [ { "code": "4870002326172", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043B\u0438\u043C\u043E\u043D \u041F\u042D\u0422 1\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.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" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:29:00]execute_script... [19:29:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183971", "tax_sys" : 0, "items" : [ { "code": "4870002326172", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043B\u0438\u043C\u043E\u043D \u041F\u042D\u0422 1\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.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" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:29:00]POST & json_proto [19:29:00]process_json_proto [19:29:00]json parsed OK: [19:29:00]protocol is kg_v1.0 [19:29:00]action value=close_receipt [19:29:00]process_action close_receipt [19:29:00]cmd_close_receipt [19:29:00]MH_GetDate [19:29:00]Write to MH i2c: F0 00 00 FB 00 EA [19:29:00]Write i2c OK [19:29:00]MH_I2C_Read... [19:29:00]Read from MH i2c: F0 [19:29:00]MH_I2C_Read... [19:29:00]Read from MH i2c: F0 09 00 [19:29:00]MH_I2C_Read... [19:29:00]Read from MH i2c: F0 09 00 FB 00 00 7D ED A7 66 64 A3 A7 66 7E [19:29:00]GetLastDocTimeStamp 1722281334 [19:29:00]current date 1722281341 [19:29:00]FM_GetShiftState [19:29:00]SAM_PROTO_GetShiftState [19:29:00]wFMCommunicate request_size=4 [19:29:00]MH_SAM_APDU [19:29:00]CAPDU: 80 13 01 00 [19:29:00]Write to MH i2c: E2 08 00 FC 00 80 13 01 00 00 00 00 00 79 [19:29:00]Write i2c OK [19:29:00]MH_I2C_Read... [19:29:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:29:00]Read from MH i2c: E2 [19:29:00]MH_I2C_Read... [19:29:00]Read from MH i2c: E2 0E 00 [19:29:00]MH_I2C_Read... [19:29:00]Read from MH i2c: E2 0E 00 FC 00 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 15 [19:29:01]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [19:29:01]wFMCommunicate OK [19:29:01]SAM_PROTO_GetShiftState done [19:29:01]FM_GetShiftState done [19:29:01]opened in 1722211496 [19:29:01]opened+sec_in_day 1722297896 [19:29:01]quantity*price = 10000 [19:29:01]sum+1 = 10001 [19:29:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 100.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 0.00 Безнал.: 100.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 131 29.07.2024 19:29 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874958 ФД: 41942 ФПД: 118791018359205 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T192901&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41942&fm=118791018359205&tin=02508201610067®Number=0000000000092626&sum=10000 0 [19:29:02]StoreToDocumentArchive [19:29:02]shift 427 fd 41942 [19:29:02]save to /storage/0427/doc_00041942 [19:29:02]save last doc name /storage/0427/doc_00041942 to /storage/kkm_last_doc_name [19:29:02]save OK [19:29:02]Clear old archive folders... [19:29:02]ProcessDocumentItem done err = 0, tmpTLVsize=293 [19:29:02]tlvbuf is 02090A20 [19:29:02]SAM_PROTO_ClearQueue [19:29:02]wFMCommunicate request_size=4 [19:29:02]MH_SAM_APDU [19:29:02]CAPDU: 80 09 00 00 [19:29:02]Write to MH i2c: E2 08 00 09 01 80 09 00 00 00 00 00 00 7C [19:29:02]Write i2c OK [19:29:02]MH_I2C_Read... [19:29:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:29:02]Read from MH i2c: E2 [19:29:02]MH_I2C_Read... [19:29:02]Read from MH i2c: E2 03 00 [19:29:02]MH_I2C_Read... [19:29:02]Read from MH i2c: E2 03 00 09 01 00 90 00 7E [19:29:02]RAPDU: 90 00 [19:29:02]wFMCommunicate OK [19:29:02]SAM_PROTO_ClearQueue done [19:29:02]KKMCreateOFDPacket [19:29:02]OFDProtocolAddRootSTLVToBuf [19:29:02]FM_MakeSignedData [19:29:02]FM_MakeSignedData [19:29:02]SAM_PROTO_SignData [19:29:02]wFMCommunicate request_size=4 [19:29:02]MH_SAM_APDU [19:29:02]CAPDU: 80 0D 01 02 [19:29:02]Write to MH i2c: E2 08 00 0A 01 80 0D 01 02 00 00 00 00 84 [19:29:02]Write i2c OK [19:29:02]MH_I2C_Read... [19:29:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:29:02]Read from MH i2c: E2 [19:29:02]MH_I2C_Read... [19:29:02]Read from MH i2c: E2 03 00 [19:29:02]MH_I2C_Read... [19:29:02]Read from MH i2c: E2 03 00 0A 01 00 90 00 7F [19:29:02]RAPDU: 90 00 [19:29:02]wFMCommunicate OK [19:29:02]wFMCommunicate request_size=255 [19:29:02]MH_SAM_APDU [19:29:02]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 36 31 37 32 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC recv_with_timeout no data received [19:29:02]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 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 27 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 7D ED A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [19:29:02]Write to MH i2c: E2 02 01 0B 01 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 36 31 37 32 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 27 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 7D ED A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 E3 [19:29:03]Write i2c OK [19:29:03]MH_I2C_Read... [19:29:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:29:03]Read from MH i2c: E2 [19:29:03]MH_I2C_Read... [19:29:03]Read from MH i2c: E2 03 00 [19:29:03]MH_I2C_Read... [19:29:03]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [19:29:03]RAPDU: 90 00 [19:29:03]wFMCommunicate OK [19:29:03]wFMCommunicate request_size=52 [19:29:03]MH_SAM_APDU [19:29:03]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 D6 A3 00 00 35 04 06 00 6C 0A 30 73 A9 A5 [19:29:03]Write to MH i2c: E2 37 00 0C 01 80 0D 02 02 2F 00 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 D6 A3 00 00 35 04 06 00 6C 0A 30 73 A9 A5 00 00 33 [19:29:03]Write i2c OK [19:29:03]MH_I2C_Read... [19:29:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:29:03]Read from MH i2c: E2 [19:29:03]MH_I2C_Read... [19:29:03]Read from MH i2c: E2 03 00 [19:29:03]MH_I2C_Read... [19:29:03]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [19:29:03]RAPDU: 90 00 [19:29:03]wFMCommunicate OK [19:29:03]wFMCommunicate request_size=4 [19:29:03]MH_SAM_APDU [19:29:03]CAPDU: 80 0D 03 02 [19:29:03]Write to MH i2c: E2 08 00 0D 01 80 0D 03 02 00 00 00 00 89 [19:29:03]Write i2c OK [19:29:03]MH_I2C_Read... [19:29:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:29:03]Read from MH i2c: E2 [19:29:03]MH_I2C_Read... [19:29:03]Read from MH i2c: E2 0B 00 [19:29:03]MH_I2C_Read... [19:29:03]Read from MH i2c: E2 0B 00 0D 01 00 72 06 C1 35 E2 70 89 6E 90 00 41 [19:29:03]RAPDU: 72 06 C1 35 E2 70 89 6E 90 00 [19:29:03]wFMCommunicate OK [19:29:03]SAM_PROTO_SignData done [19:29:03]FM_MakeSignedData done [19:29:03]CreateOFDProtocolMessage [19:29:03]wFMCommunicate request_size=4 [19:29:03]MH_SAM_APDU [19:29:03]CAPDU: 80 11 00 00 [19:29:03]Write to MH i2c: E2 08 00 0E 01 80 11 00 00 00 00 00 00 89 [19:29:03]Write i2c OK [19:29:03]MH_I2C_Read... [19:29:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:29:03]Read from MH i2c: E2 [19:29:03]MH_I2C_Read... [19:29:03]Read from MH i2c: E2 17 00 [19:29:03]MH_I2C_Read... [19:29:03]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 35 38 90 00 E5 [19:29:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [19:29:03]wFMCommunicate OK [19:29:03]CreateOFDProtocolMessage done [19:29:03]OFDSenderStorePacket 41942 [19:29:03]StoreOFDPacket docnum=41942 [19:29:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 39 01 00 00 F3 7B 31 01 9F 6F 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 36 31 37 32 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 27 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 7D ED A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 D6 A3 00 00 35 04 06 00 6C 0A 30 73 A9 A5 72 06 C1 35 E2 70 89 6E [19:29:03]CheckFolder [19:29:03]dirname=/storage/ofd_packets [19:29:03]CheckFolder done [19:29:03]ProducePacketName [19:29:03]name=ofd_packets/00041942 [19:29:03]NVStorageSaveData ofd_packets/00041942 [19:29:03]File name is /storage/ofd_packets/00041942 [19:29:03]Write 343 bytes [19:29:03]NVStorageSaveData done [19:29:03]OFDSenderStorePacket done [19:29:03]KKMCreateOFDPacket done [19:29:03]NVStorageSaveData kkm_last_timestamp [19:29:03]File name is /storage/kkm_last_timestamp [19:29:03]Write 4 bytes [19:29:03]NVStorageSaveData done [19:29:03]ExternCall_PrintAddStr [19:29:03]wPrintStart [19:29:03]Write to MH i2c: 01 00 00 0F 01 10 [19:29:03]Write i2c OK [19:29:03]MH_I2C_Read... [19:29:03]Read from MH i2c: 01 [19:29:03]MH_I2C_Read... [19:29:03]Read from MH i2c: 01 07 00 [19:29:03]MH_I2C_Read... [19:29:03]Read from MH i2c: 01 07 00 0F 01 00 00 00 00 00 FF 0F 25 [19:29:03]RasterBufferAndPrint [19:29:03]line Счет N : (3)183971 [19:29:03]line ИНН: 02508201610067 [19:29:03]line Контрольно-Кассовый Чек [19:29:03]line ПРОДАЖА [19:29:03]line Товар: 4870002326172 [19:29:03]line Вода ASU пит н.газ лимон ПЭТ 1л [19:29:03]line 1.000 * 100.00 [19:29:03]line = 100.00 [19:29:03]line НДС 12% НСП 1% [19:29:03]line > о реализуемом товаре [19:29:03]line ИТОГО: 100.00 [19:29:03]line НСП 1% : 0.88 [19:29:03]line НДС 12% : 10.62 [19:29:03]line Наличными: 0.00 [19:29:03]line Безнал.: 100.00 [19:29:03]line Место: АЗС № 97 "Партнер Нефть" [19:29:03]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [19:29:03]line СНО: Общий режим [19:29:03]line Чек 131 29.07.2024 19:29 [19:29:03]line Смена: 427 ФФД: 1.0 [19:29:03]line ЗНМ: 0300000053 [19:29:03]line РНМ: 0000000000092626 [19:29:03]line Версия ККМ: 001 [19:29:03]line Платежная система: O! деньги [19:29:03]line ФМ: 0000000000874958 [19:29:03]line ФД: 41942 [19:29:03]line ФПД: 118791018359205 [19:29:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T192901&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41942&fm=118791018359205&tin=02508201610067®Number=0000000000092626&sum=10000 [19:29:03]line 0 [19:29:03]written 0, free lines is 4095 [19:29:04]Write to MH i2c: 01 00 00 3A 01 3B [19:29:04]Write i2c OK [19:29:04]MH_I2C_Read... [19:29:04]Read from MH i2c: 01 [19:29:04]MH_I2C_Read... [19:29:04]Read from MH i2c: 01 07 00 [19:29:04]MH_I2C_Read... [19:29:04]Read from MH i2c: 01 07 00 3A 01 00 00 00 00 00 EA 0C 38 [19:29:04]RasterBufferAndPrint [19:29:04]line [19:29:04]line [19:29:04]line [19:29:04]line [19:29:04]line [19:29:04]written 0, free lines is 3348 [19:29:04]MH_Cut [19:29:04]Write to MH i2c: D1 01 00 41 01 01 14 [19:29:04]Write i2c OK [19:29:04]MH_I2C_Read... [19:29:04]Read from MH i2c: D1 [19:29:04]MH_I2C_Read... [19:29:04]Read from MH i2c: D1 01 00 [19:29:04]MH_I2C_Read... [19:29:04]Read from MH i2c: D1 01 00 41 01 00 13 [19:29:04]Write to MH i2c: 01 00 00 42 01 43 [19:29:04]Write i2c OK [19:29:04]MH_I2C_Read... [19:29:04]*** Cut start [19:29:04]*** Partial cut [19:29:04]*** CUTSNS_PIN = 1 [19:29:05]*** CUTSNS_PIN = 0 [19:29:05]*** Brake cut motor [19:29:05]Read from MH i2c: 01 [19:29:05]MH_I2C_Read... [19:29:05]*** Stop cut motor [19:29:05]*** Cut end [19:29:05]Read from MH i2c: 01 07 00 [19:29:05]MH_I2C_Read... [19:29:05]Read from MH i2c: 01 07 00 42 01 00 00 00 00 00 FF 0F 58 [19:29:05]process_action close_receipt done [19:29:05]requested_data is exist [19:29:05]produce_requested_data [19:29:05]requested_item fm.sn is exist - process it [19:29:05]wFMCommunicate request_size=4 [19:29:05]MH_SAM_APDU [19:29:05]CAPDU: 80 11 00 00 [19:29:05]Write to MH i2c: E2 08 00 43 01 80 11 00 00 00 00 00 00 BE [19:29:05]Write i2c OK [19:29:05]MH_I2C_Read... [19:29:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:29:05]Read from MH i2c: E2 [19:29:05]MH_I2C_Read... [19:29:05]Read from MH i2c: E2 17 00 [19:29:05]MH_I2C_Read... [19:29:05]Read from MH i2c: E2 17 00 43 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 1A [19:29:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [19:29:05]wFMCommunicate OK [19:29:05]requested_item fd.num is exist - process it [19:29:05]SAM_PROTO_GetFieldsCounters [19:29:05]wFMCommunicate request_size=4 [19:29:05]MH_SAM_APDU [19:29:05]CAPDU: 80 13 00 00 [19:29:05]Write to MH i2c: E2 08 00 44 01 80 13 00 00 00 00 00 00 C1 [19:29:05]Write i2c OK [19:29:05]MH_I2C_Read... [19:29:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:29:05]Read from MH i2c: E2 [19:29:05]MH_I2C_Read... [19:29:05]Read from MH i2c: E2 62 00 [19:29:05]MH_I2C_Read... [19:29:05]Read from MH i2c: E2 62 00 44 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 D6 A3 00 00 0E 04 04 00 AB 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 99 [19:29:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 D6 A3 00 00 0E 04 04 00 AB 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 [19:29:06]wFMCommunicate OK [19:29:06]SAM_PROTO_GetFieldsCounters done [19:29:06]requested_item shift.num is exist - process it [19:29:06]requested_item shift.opened is exist - process it [19:29:06]req_shift_opened [19:29:06]FM_GetShiftState [19:29:06]SAM_PROTO_GetShiftState [19:29:06]wFMCommunicate request_size=4 [19:29:06]MH_SAM_APDU [19:29:06]CAPDU: 80 13 01 00 [19:29:06]Write to MH i2c: E2 08 00 45 01 80 13 01 00 00 00 00 00 C3 [19:29:06]Write i2c OK [19:29:06]MH_I2C_Read... [19:29:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:29:06]Read from MH i2c: E2 [19:29:06]MH_I2C_Read... [19:29:06]Read from MH i2c: E2 0E 00 [19:29:06]MH_I2C_Read... [19:29:06]Read from MH i2c: E2 0E 00 45 01 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 5F [19:29:06]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [19:29:06]wFMCommunicate OK [19:29:06]SAM_PROTO_GetShiftState done [19:29:06]FM_GetShiftState done [19:29:06]req_shift_opened done [19:29:06]requested_item shift.open_date is exist - process it [19:29:06]req_shift_open_date [19:29:06]req_shift_open_date done [19:29:06]produce_requested_data done [19:29:06]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41942,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [19:29:06]process_action_free close_receipt [19:29:06]json_value_free [19:29:06]json_value_free done [19:29:06]process_json_proto returns [19:29:06]Send response to host [19:29:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41942,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [19:29:06]free response buf [19:29:06]execute_script done [19:29:06]execute_script returns [19:29:06]free content buf [19:29:06]Sock 12.Close socket [19:29:06]Sock 12.Thread stoped [19:29:06]accept exits with 8 [19:29:06]New connection [19:29:06]New thread 3066998116 created [19:29:06]Thread 3066854756 joined [19:29:06]Waiting for new connection... [19:29:06] Sock 8.Parse request [19:29:06]Sock 8.Check first char [19:29:06]Sock 8.First char is OK [19:29:06]request: POST /json_proto HTTP/1.0 [19:29:06]Method: POST [19:29:06]URL: /json_proto [19:29:06]Method is POST - this is cgi request [19:29:06]url: /json_proto [19:29:06]query_string will be loaded in cgi processing [19:29:06]execute_cgi json_proto POST (null) [19:29:06]execute_cgi path=json_proto method=POST [19:29:06]POST find Content-Length [19:29:06]Host: 172.17.43.132:8080 [19:29:06]Content-Length: 814 [19:29:06]Content-Type: application/json [19:29:06] [19:29:06]POST finish read [19:29:06]Found Content-Length = 814 [19:29:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183972", "tax_sys" : 0, "items" : [ { "code": "54492509", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,25\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.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" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:29:06]execute_script... [19:29:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183972", "tax_sys" : 0, "items" : [ { "code": "54492509", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,25\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.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" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:29:06]POST & json_proto [19:29:06]process_json_proto [19:29:06]json parsed OK: [19:29:06]protocol is kg_v1.0 [19:29:06]action value=close_receipt [19:29:06]process_action close_receipt [19:29:06]cmd_close_receipt [19:29:06]MH_GetDate [19:29:06]Write to MH i2c: F0 00 00 46 01 36 [19:29:07]Write i2c OK [19:29:07]MH_I2C_Read... [19:29:07]Read from MH i2c: F0 [19:29:07]MH_I2C_Read... [19:29:07]Read from MH i2c: F0 09 00 [19:29:07]MH_I2C_Read... [19:29:07]Read from MH i2c: F0 09 00 46 01 00 83 ED A7 66 64 A3 A7 66 D0 [19:29:07]GetLastDocTimeStamp 1722281341 [19:29:07]current date 1722281347 [19:29:07]FM_GetShiftState [19:29:07]SAM_PROTO_GetShiftState [19:29:07]wFMCommunicate request_size=4 [19:29:07]MH_SAM_APDU [19:29:07]CAPDU: 80 13 01 00 [19:29:07]Write to MH i2c: E2 08 00 47 01 80 13 01 00 00 00 00 00 C5 [19:29:07]Write i2c OK [19:29:07]MH_I2C_Read... [19:29:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:29:07]Read from MH i2c: E2 [19:29:07]MH_I2C_Read... [19:29:07]Read from MH i2c: E2 0E 00 [19:29:07]MH_I2C_Read... [19:29:07]Read from MH i2c: E2 0E 00 47 01 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 61 [19:29:07]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [19:29:07]wFMCommunicate OK [19:29:07]SAM_PROTO_GetShiftState done [19:29:07]FM_GetShiftState done [19:29:07]opened in 1722211496 [19:29:07]opened+sec_in_day 1722297896 [19:29:07]quantity*price = 9000 [19:29:07]sum+1 = 9001 [19:29:07]Check (price>sum+1) || (price+1 о реализуемом товаре [19:29:10]line ИТОГО: 90.00 [19:29:10]line НСП 1% : 0.80 [19:29:10]line НДС 12% : 9.56 [19:29:10]line Наличными: 0.00 [19:29:10]line Безнал.: 90.00 [19:29:10]line Место: АЗС № 97 "Партнер Нефть" [19:29:10]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [19:29:10]line СНО: Общий режим [19:29:10]line Чек 132 29.07.2024 19:29 [19:29:10]line Смена: 427 ФФД: 1.0 [19:29:10]line ЗНМ: 0300000053 [19:29:10]line РНМ: 0000000000092626 [19:29:10]line Версия ККМ: 001 [19:29:10]line Платежная система: O! деньги [19:29:10]line ФМ: 0000000000874958 [19:29:10]line ФД: 41943 [19:29:10]line ФПД: 8768765881379 [19:29:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T192907&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41943&fm=8768765881379&tin=02508201610067®Number=0000000000092626&sum=9000 [19:29:10]line 0 [19:29:10]written 0, free lines is 4095 [19:29:11]Write to MH i2c: 01 00 00 84 01 85 [19:29:11]Write i2c OK [19:29:11]MH_I2C_Read... [19:29:11]Read from MH i2c: 01 [19:29:11]MH_I2C_Read... [19:29:11]Read from MH i2c: 01 07 00 [19:29:11]MH_I2C_Read... [19:29:11]Read from MH i2c: 01 07 00 84 01 00 00 00 00 00 FE 0C 96 [19:29:11]RasterBufferAndPrint [19:29:11]line [19:29:11]line [19:29:11]line [19:29:11]line [19:29:11]line [19:29:11]written 0, free lines is 3374 [19:29:11]MH_Cut [19:29:11]Write to MH i2c: D1 01 00 8B 01 01 5E [19:29:11]Write i2c OK [19:29:11]MH_I2C_Read... [19:29:11]Read from MH i2c: D1 [19:29:11]MH_I2C_Read... [19:29:11]Read from MH i2c: D1 01 00 [19:29:11]MH_I2C_Read... [19:29:11]Read from MH i2c: D1 01 00 8B 01 00 5D [19:29:11]Write to MH i2c: 01 00 00 8C 01 8D [19:29:11]Write i2c OK [19:29:11]MH_I2C_Read... [19:29:11]*** Cut start [19:29:11]*** Partial cut [19:29:11]*** CUTSNS_PIN = 1 [19:29:11]*** CUTSNS_PIN = 0 [19:29:12]*** Brake cut motor [19:29:12]Read from MH i2c: 01 [19:29:12]MH_I2C_Read... [19:29:12]*** Stop cut motor [19:29:12]*** Cut end [19:29:12]Read from MH i2c: 01 07 00 [19:29:12]MH_I2C_Read... [19:29:12]Read from MH i2c: 01 07 00 8C 01 00 00 00 00 00 FF 0F A2 [19:29:12]process_action close_receipt done [19:29:12]requested_data is exist [19:29:12]produce_requested_data [19:29:12]requested_item fm.sn is exist - process it [19:29:12]wFMCommunicate request_size=4 [19:29:12]MH_SAM_APDU [19:29:12]CAPDU: 80 11 00 00 [19:29:12]Write to MH i2c: E2 08 00 8D 01 80 11 00 00 00 00 00 00 08 [19:29:12]Write i2c OK [19:29:12]MH_I2C_Read... [19:29:12]Read from MH i2c: E2 [19:29:12]MH_I2C_Read... [19:29:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:29:12]Read from MH i2c: E2 17 00 [19:29:12]MH_I2C_Read... [19:29:12]Read from MH i2c: E2 17 00 8D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 64 [19:29:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [19:29:12]wFMCommunicate OK [19:29:12]requested_item fd.num is exist - process it [19:29:12]SAM_PROTO_GetFieldsCounters [19:29:12]wFMCommunicate request_size=4 [19:29:12]MH_SAM_APDU [19:29:12]CAPDU: 80 13 00 00 [19:29:12]Write to MH i2c: E2 08 00 8E 01 80 13 00 00 00 00 00 00 0B [19:29:12]Write i2c OK [19:29:12]MH_I2C_Read... [19:29:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:29:12]Read from MH i2c: E2 [19:29:12]MH_I2C_Read... [19:29:12]Read from MH i2c: E2 62 00 [19:29:12]MH_I2C_Read... [19:29:12]Read from MH i2c: E2 62 00 8E 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 D7 A3 00 00 0E 04 04 00 AB 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 E7 [19:29: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 D7 A3 00 00 0E 04 04 00 AB 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 [19:29:13]wFMCommunicate OK [19:29:13]SAM_PROTO_GetFieldsCounters done [19:29:13]requested_item shift.num is exist - process it [19:29:13]requested_item shift.opened is exist - process it [19:29:13]req_shift_opened [19:29:13]FM_GetShiftState [19:29:13]SAM_PROTO_GetShiftState [19:29:13]wFMCommunicate request_size=4 [19:29:13]MH_SAM_APDU [19:29:13]CAPDU: 80 13 01 00 [19:29:13]Write to MH i2c: E2 08 00 8F 01 80 13 01 00 00 00 00 00 0D [19:29:13]Write i2c OK [19:29:13]MH_I2C_Read... [19:29:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:29:13]Read from MH i2c: E2 [19:29:13]MH_I2C_Read... [19:29:13]Read from MH i2c: E2 0E 00 [19:29:13]MH_I2C_Read... [19:29:13]Read from MH i2c: E2 0E 00 8F 01 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 A9 [19:29:13]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [19:29:13]wFMCommunicate OK [19:29:13]SAM_PROTO_GetShiftState done [19:29:13]FM_GetShiftState done [19:29:13]req_shift_opened done [19:29:08]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [19:29:08]Read from MH i2c: E2 [19:29:08]MH_I2C_Read... [19:29:08]Read from MH i2c: E2 03 00 [19:29:08]MH_I2C_Read... [19:29:08]Read from MH i2c: E2 03 00 4D 01 00 90 00 C2 [19:29:08]RAPDU: 90 00 [19:29:08]wFMCommunicate OK [19:29:08]wFMCommunicate request_size=15 [19:29:08]MH_SAM_APDU [19:29:08]CAPDU: 80 15 02 00 0A 39 04 06 00 28 23 00 00 00 00 [19:29:08]Write to MH i2c: E2 12 00 4E 01 80 15 02 00 0A 00 39 04 06 00 28 23 00 00 00 00 00 00 71 [19:29:08]Write i2c OK [19:29:08]MH_I2C_Read... [19:29:08]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [19:29:08]Read from MH i2c: E2 [19:29:08]MH_I2C_Read... [19:29:08]Read from MH i2c: E2 03 00 [19:29:08]MH_I2C_Read... [19:29:08]Read from MH i2c: E2 03 00 4E 01 00 90 00 C3 [19:29:08]RAPDU: 90 00 [19:29:08]wFMCommunicate OK [19:29:08]wFMCommunicate request_size=11 [19:29:08]MH_SAM_APDU [19:29:08]CAPDU: 80 15 02 00 06 1F 04 02 00 01 00 [19:29:08]Write to MH i2c: E2 0E 00 4F 01 80 15 02 00 06 00 1F 04 02 00 01 00 00 00 02 [19:29:08]Write i2c OK [19:29:08]MH_I2C_Read... [19:29:08]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [19:29:08]Read from MH i2c: E2 [19:29:08]MH_I2C_Read... [19:29:08]Read from MH i2c: E2 03 00 [19:29:08]MH_I2C_Read... [19:29:08]Read from MH i2c: E2 03 00 4F 01 00 90 00 C4 [19:29:08]RAPDU: 90 00 [19:29:08]wFMCommunicate OK [19:29:08]wFMCommunicate request_size=13 [19:29:08]MH_SAM_APDU [19:29:08]CAPDU: 80 15 02 00 08 F4 03 04 00 83 ED A7 66 [19:29:08]Write to MH i2c: E2 10 00 50 01 80 15 02 00 08 00 F4 03 04 00 83 ED A7 66 00 00 59 [19:29:08]Write i2c OK [19:29:08]MH_I2C_Read... [19:29:08]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [19:29:08]Read from MH i2c: E2 [19:29:08]MH_I2C_Read... [19:29:08]Read from MH i2c: E2 03 00 [19:29:08]MH_I2C_Read... [19:29:08]Read from MH i2c: E2 03 00 50 01 00 90 00 C5 [19:29:08]RAPDU: 90 00 [19:29:08]wFMCommunicate OK [19:29:08]wFMCommunicate request_size=25 [19:29:08]MH_SAM_APDU [19:29:08]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 [19:29:08]Write to MH i2c: E2 1C 00 51 01 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 00 00 34 [19:29:08]Write i2c OK [19:29:08]MH_I2C_Read... [19:29:08]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [19:29:08]Read from MH i2c: E2 [19:29:08]MH_I2C_Read... [19:29:08]Read from MH i2c: E2 03 00 [19:29:08]MH_I2C_Read... [19:29:08]Read from MH i2c: E2 03 00 51 01 00 90 00 C6 [19:29:08]RAPDU: 90 00 [19:29:08]wFMCommunicate OK [19:29:08]wFMCommunicate request_size=4 [19:29:08]MH_SAM_APDU [19:29:08]CAPDU: 80 15 03 00 [19:29:08]Write to MH i2c: E2 08 00 52 01 80 15 03 00 00 00 00 00 D4 [19:29:08]Write i2c OK [19:29:08]MH_I2C_Read... [19:29:08]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [19:29:08]Read from MH i2c: E2 [19:29:08]MH_I2C_Read... [19:29:08]Read from MH i2c: E2 40 00 [19:29:08]MH_I2C_Read... [19:29:08]Read from MH i2c: E2 40 00 52 01 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 D7 A3 00 00 0E 04 04 00 AB 01 00 00 12 04 04 00 84 00 00 00 35 04 06 00 07 F9 A3 2C EC 23 90 00 5B [19:29:08]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 D7 A3 00 00 0E 04 04 00 AB 01 00 00 12 04 04 00 84 00 00 00 35 04 06 00 07 F9 A3 2C EC 23 90 00 [19:29:08]wFMCommunicate OK [19:29:08]SAM_PROTO_ProcessDocument answer len = 59 [19:29:08]SAM_PROTO_ProcessDocument done [19:29:08]SetTLVBufToDocument [19:29:08]Processing tag 1209 (04B9) [19:29:08]Malloc new data [19:29:08]Processing tag 1041 (0411) [19:29:08]Processing tag 1040 (0410) [19:29:08]Malloc new data [19:29:08]Processing tag 1038 (040E) [19:29:08]Malloc new data [19:29:08]Processing tag 1042 (0412) [19:29:08]Malloc new data [19:29:08]Processing tag 1077 (0435) [19:29:08]Malloc new data [19:29:08]SetTLVBufToDocument err=0 [19:29:08]KKMLoadAndSignReceiptData store KKM data [19:29:08]KKMLoadAndSignReceiptData err=0 [19:29:08]wFMCommunicate request_size=4 [19:29:08]MH_SAM_APDU [19:29:08]CAPDU: 80 11 00 00 [19:29:08]Write to MH i2c: E2 08 00 53 01 80 11 00 00 00 00 00 00 CE [19:29:08]Write i2c OK [19:29:08]MH_I2C_Read... [19:29:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:29:08]Read from MH i2c: E2 [19:29:08]MH_I2C_Read... [19:29:08]Read from MH i2c: E2 17 00 [19:29:08]MH_I2C_Read... [19:29:08]Read from MH i2c: E2 17 00 53 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 2A [19:29:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [19:29:08]wFMCommunicate OK [19:29:08]Счет N : (3)183972 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА Товар: 54492509 Напиток Кока-Кола 0,25л 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 90.00 НСП 1% : 0.80 НДС 12% : 9.56 Наличными: 0.00 Безнал.: 90.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 132 29.07.2024 19:29 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874958 ФД: 41943 ФПД: 8768765881379 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T192907&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41943&fm=8768765881379&tin=02508201610067®Number=0000000000092626&sum=9000 0 [19:29:08]StoreToDocumentArchive [19:29:08]shift 427 fd 41943 [19:29:08]save to /storage/0427/doc_00041943 [19:29:08]save last doc name /storage/0427/doc_00041943 to /storage/kkm_last_doc_name [19:29:08]save OK [19:29:08]Clear old archive folders... [19:29:08]ProcessDocumentItem done err = 0, tmpTLVsize=276 [19:29:08]tlvbuf is 01FDAAE0 [19:29:08]SAM_PROTO_ClearQueue [19:29:09]wFMCommunicate request_size=4 [19:29:09]MH_SAM_APDU [19:29:09]CAPDU: 80 09 00 00 [19:29:09]Write to MH i2c: E2 08 00 54 01 80 09 00 00 00 00 00 00 C7 [19:29:09]Write i2c OK [19:29:09]MH_I2C_Read... [19:29:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:29:09]Read from MH i2c: E2 [19:29:09]MH_I2C_Read... [19:29:09]Read from MH i2c: E2 03 00 [19:29:09]MH_I2C_Read... [19:29:09]Read from MH i2c: E2 03 00 54 01 00 90 00 C9 [19:29:09]RAPDU: 90 00 [19:29:09]wFMCommunicate OK [19:29:09]SAM_PROTO_ClearQueue done [19:29:09]KKMCreateOFDPacket [19:29:09]OFDProtocolAddRootSTLVToBuf [19:29:09]FM_MakeSignedData [19:29:09]FM_MakeSignedData [19:29:09]SAM_PROTO_SignData [19:29:09]wFMCommunicate request_size=4 [19:29:09]MH_SAM_APDU [19:29:09]CAPDU: 80 0D 01 02 [19:29:09]Write to MH i2c: E2 08 00 55 01 80 0D 01 02 00 00 00 00 CF [19:29:09]Write i2c OK [19:29:09]MH_I2C_Read... [19:29:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:29:09]Read from MH i2c: E2 [19:29:09]MH_I2C_Read... [19:29:09]Read from MH i2c: E2 03 00 [19:29:09]MH_I2C_Read... [19:29:09]Read from MH i2c: E2 03 00 55 01 00 90 00 CA [19:29:09]RAPDU: 90 00 [19:29:09]wFMCommunicate OK [19:29:09]wFMCommunicate request_size=255 [19:29:09]MH_SAM_APDU [19:29:09]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 35 34 34 39 32 35 30 39 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 28 23 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 83 ED A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 [19:29:09]Write to MH i2c: E2 02 01 56 01 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 35 34 34 39 32 35 30 39 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 28 23 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 83 ED A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 00 00 A8 [19:29:09]Write i2c OK [19:29:09]MH_I2C_Read... [19:29:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:29:09]Read from MH i2c: E2 [19:29:09]MH_I2C_Read... [19:29:09]Read from MH i2c: E2 03 00 [19:29:09]MH_I2C_Read... [19:29:09]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [19:29:09]RAPDU: 90 00 [19:29:09]wFMCommunicate OK [19:29:09]wFMCommunicate request_size=35 [19:29:09]MH_SAM_APDU [19:29:09]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 D7 A3 00 00 35 04 06 00 07 F9 A3 2C EC 23 [19:29:09]Write to MH i2c: E2 26 00 57 01 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 D7 A3 00 00 35 04 06 00 07 F9 A3 2C EC 23 00 00 26 [19:29:09]Write i2c OK [19:29:09]MH_I2C_Read... [19:29:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:29:09]Read from MH i2c: E2 [19:29:09]MH_I2C_Read... [19:29:09]Read from MH i2c: E2 03 00 [19:29:09]MH_I2C_Read... [19:29:09]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [19:29:13]requested_item shift.open_date is exist - process it [19:29:13]req_shift_open_date [19:29:13]req_shift_open_date done [19:29:13]produce_requested_data done [19:29:13]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41943,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [19:29:13]process_action_free close_receipt [19:29:13]json_value_free [19:29:13]json_value_free done [19:29:13]process_json_proto returns [19:29:13]Send response to host [19:29:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41943,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [19:29:13]free response buf [19:29:13]execute_script done [19:29:13]execute_script returns [19:29:13]free content buf [19:29:13]Sock 8.Close socket [19:29:13]Sock 8.Thread stoped [19:29:13]accept exits with 10 [19:29:13]New connection [19:29:13]New thread 3066854756 created [19:29:13]Thread 3066998116 joined [19:29:13]Waiting for new connection... [19:29:13] Sock 10.Parse request [19:29:13]Sock 10.Check first char [19:29:13]Sock 10.First char is OK [19:29:13]request: POST /json_proto HTTP/1.0 [19:29:13]Method: POST [19:29:13]URL: /json_proto [19:29:13]Method is POST - this is cgi request [19:29:13]url: /json_proto [19:29:13]query_string will be loaded in cgi processing [19:29:13]execute_cgi json_proto POST (null) [19:29:13]execute_cgi path=json_proto method=POST [19:29:13]POST find Content-Length [19:29:13]Host: 172.17.43.132:8080 [19:29:13]Content-Length: 822 [19:29:13]Content-Type: application/json [19:29:13] [19:29:13]POST finish read [19:29:13]Found Content-Length = 822 [19:29:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183973", "tax_sys" : 0, "items" : [ { "code": "6931280300549", "name": "\u0417\u0430\u0436\u0438\u0433\u0430\u043B\u043A\u0430 Cricket \u041F\u041D \u043F\u044C\u0435\u0437\u043E", "price" : 67.00, "quantity" : 1.000, "sum" : 67.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 67.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:29:13]execute_script... [19:29:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183973", "tax_sys" : 0, "items" : [ { "code": "6931280300549", "name": "\u0417\u0430\u0436\u0438\u0433\u0430\u043B\u043A\u0430 Cricket \u041F\u041D \u043F\u044C\u0435\u0437\u043E", "price" : 67.00, "quantity" : 1.000, "sum" : 67.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 67.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:29:13]POST & json_proto [19:29:13]process_json_proto [19:29:13]json parsed OK: [19:29:13]protocol is kg_v1.0 [19:29:13]action value=close_receipt [19:29:13]process_action close_receipt [19:29:13]cmd_close_receipt [19:29:13]MH_GetDate [19:29:13]Write to MH i2c: F0 00 00 90 01 80 [19:29:13]Write i2c OK [19:29:13]MH_I2C_Read... [19:29:13]Read from MH i2c: F0 [19:29:13]MH_I2C_Read... [19:29:13]Read from MH i2c: F0 09 00 [19:29:13]MH_I2C_Read... [19:29:13]Read from MH i2c: F0 09 00 90 01 00 8A ED A7 66 64 A3 A7 66 21 [19:29:13]GetLastDocTimeStamp 1722281347 [19:29:13]current date 1722281354 [19:29:13]FM_GetShiftState [19:29:13]SAM_PROTO_GetShiftState [19:29:13]wFMCommunicate request_size=4 [19:29:13]MH_SAM_APDU [19:29:13]CAPDU: 80 13 01 00 [19:29:13]Write to MH i2c: E2 08 00 91 01 80 13 01 00 00 00 00 00 0F [19:29:13]Write i2c OK [19:29:13]MH_I2C_Read... [19:29:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:29:14]Read from MH i2c: E2 [19:29:14]MH_I2C_Read... [19:29:14]Read from MH i2c: E2 0E 00 [19:29:14]MH_I2C_Read... [19:29:14]Read from MH i2c: E2 0E 00 91 01 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 AB [19:29:14]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [19:29:14]wFMCommunicate OK [19:29:14]SAM_PROTO_GetShiftState done [19:29:14]FM_GetShiftState done [19:29:14]opened in 1722211496 [19:29:14]opened+sec_in_day 1722297896 [19:29:14]quantity*price = 6700 [19:29:14]sum+1 = 6701 [19:29:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 67.00 НСП 1% : 0.59 НДС 12% : 7.11 Наличными: 0.00 Безнал.: 67.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 133 29.07.2024 19:29 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874958 ФД: 41944 ФПД: 83133892915911 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T192914&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41944&fm=83133892915911&tin=02508201610067®Number=0000000000092626&sum=6700 0 [19:29:16]StoreToDocumentArchive [19:29:16]shift 427 fd 41944 [19:29:16]save to /storage/0427/doc_00041944 [19:29:16]save last doc name /storage/0427/doc_00041944 to /storage/kkm_last_doc_name [19:29:16]save OK [19:29:16]Clear old archive folders... [19:29:16]ProcessDocumentItem done err = 0, tmpTLVsize=284 [19:29:16]tlvbuf is 01FDCE90 [19:29:16]SAM_PROTO_ClearQueue [19:29:16]wFMCommunicate request_size=4 [19:29:16]MH_SAM_APDU [19:29:16]CAPDU: 80 09 00 00 [19:29:16]Write to MH i2c: E2 08 00 9E 01 80 09 00 00 00 00 00 00 11 [19:29:16]Write i2c OK [19:29:16]MH_I2C_Read... [19:29:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:29:16]Read from MH i2c: E2 [19:29:16]MH_I2C_Read... [19:29:16]Read from MH i2c: E2 03 00 [19:29:16]MH_I2C_Read... [19:29:16]Read from MH i2c: E2 03 00 9E 01 00 90 00 13 [19:29:16]RAPDU: 90 00 [19:29:16]wFMCommunicate OK [19:29:16]SAM_PROTO_ClearQueue done [19:29:16]KKMCreateOFDPacket [19:29:16]OFDProtocolAddRootSTLVToBuf [19:29:16]FM_MakeSignedData [19:29:16]FM_MakeSignedData [19:29:16]SAM_PROTO_SignData [19:29:16]wFMCommunicate request_size=4 [19:29:16]MH_SAM_APDU [19:29:16]CAPDU: 80 0D 01 02 [19:29:16]Write to MH i2c: E2 08 00 9F 01 80 0D 01 02 00 00 00 00 19 [19:29:16]Write i2c OK [19:29:16]MH_I2C_Read... [19:29:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:29:16]Read from MH i2c: E2 [19:29:16]MH_I2C_Read... [19:29:16]Read from MH i2c: E2 03 00 [19:29:16]MH_I2C_Read... [19:29:16]Read from MH i2c: E2 03 00 9F 01 00 90 00 14 [19:29:16]RAPDU: 90 00 [19:29:16]wFMCommunicate OK [19:29:16]wFMCommunicate request_size=255 [19:29:16]MH_SAM_APDU [19:29:16]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 1A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 8A ED A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 [19:29:16]Write to MH i2c: E2 02 01 A0 01 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 1A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 8A ED A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 00 00 EF [19:29:16]Write i2c OK [19:29:16]MH_I2C_Read... [19:29:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:29:16]Read from MH i2c: E2 [19:29:16]MH_I2C_Read... [19:29:16]Read from MH i2c: E2 03 00 [19:29:16]MH_I2C_Read... [19:29:16]Read from MH i2c: E2 03 00 A0 01 00 90 00 15 [19:29:16]RAPDU: 90 00 [19:29:16]wFMCommunicate OK [19:29:16]wFMCommunicate request_size=43 [19:29:16]MH_SAM_APDU [19:29:16]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 D8 A3 00 00 35 04 06 00 4B 9C 1E 27 F2 C7 [19:29:17]Write to MH i2c: E2 2E 00 A1 01 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 D8 A3 00 00 35 04 06 00 4B 9C 1E 27 F2 C7 00 00 6D [19:29:17]Write i2c OK [19:29:17]MH_I2C_Read... [19:29:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:29:17]Read from MH i2c: E2 [19:29:17]MH_I2C_Read... [19:29:17]Read from MH i2c: E2 03 00 [19:29:17]MH_I2C_Read... [19:29:17]Read from MH i2c: E2 03 00 A1 01 00 90 00 16 [19:29:17]RAPDU: 90 00 [19:29:17]wFMCommunicate OK [19:29:17]wFMCommunicate request_size=4 [19:29:17]MH_SAM_APDU [19:29:17]CAPDU: 80 0D 03 02 [19:29:17]Write to MH i2c: E2 08 00 A2 01 80 0D 03 02 00 00 00 00 1E [19:29:17]Write i2c OK [19:29:17]MH_I2C_Read... [19:29:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:29:17]Read from MH i2c: E2 [19:29:17]MH_I2C_Read... [19:29:17]Read from MH i2c: E2 0B 00 [19:29:17]MH_I2C_Read... [19:29:17]Read from MH i2c: E2 0B 00 A2 01 00 12 A1 6E 9B 8B 2C 9C 3B 90 00 69 [19:29:17]RAPDU: 12 A1 6E 9B 8B 2C 9C 3B 90 00 [19:29:17]wFMCommunicate OK [19:29:17]SAM_PROTO_SignData done [19:29:17]FM_MakeSignedData done [19:29:17]CreateOFDProtocolMessage [19:29:17]wFMCommunicate request_size=4 [19:29:17]MH_SAM_APDU [19:29:17]CAPDU: 80 11 00 00 [19:29:17]Write to MH i2c: E2 08 00 A3 01 80 11 00 00 00 00 00 00 1E [19:29:17]Write i2c OK [19:29:17]MH_I2C_Read... [19:29:17]Read from MH i2c: E2 [19:29:17]MH_I2C_Read... [19:29:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:29:17]Read from MH i2c: E2 17 00 [19:29:17]MH_I2C_Read... [19:29:17]Read from MH i2c: E2 17 00 A3 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 7A [19:29:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [19:29:17]wFMCommunicate OK [19:29:17]CreateOFDProtocolMessage done [19:29:17]OFDSenderStorePacket 41944 [19:29:17]StoreOFDPacket docnum=41944 [19:29:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 30 01 00 00 4C A1 28 01 76 02 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 1A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 8A ED A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 D8 A3 00 00 35 04 06 00 4B 9C 1E 27 F2 C7 12 A1 6E 9B 8B 2C 9C 3B [19:29:17]CheckFolder [19:29:17]dirname=/storage/ofd_packets [19:29:17]CheckFolder done [19:29:17]ProducePacketName [19:29:17]name=ofd_packets/00041944 [19:29:17]NVStorageSaveData ofd_packets/00041944 [19:29:17]File name is /storage/ofd_packets/00041944 [19:29:17]Write 334 bytes [19:29:17]NVStorageSaveData done [19:29:17]OFDSenderStorePacket done [19:29:17]KKMCreateOFDPacket done [19:29:17]NVStorageSaveData kkm_last_timestamp [19:29:17]File name is /storage/kkm_last_timestamp [19:29:17]Write 4 bytes [19:29:17]NVStorageSaveData done [19:29:17]ExternCall_PrintAddStr [19:29:17]wPrintStart [19:29:17]Write to MH i2c: 01 00 00 A4 01 A5 [19:29:17]Write i2c OK [19:29:17]MH_I2C_Read... [19:29:17]Read from MH i2c: 01 [19:29:17]MH_I2C_Read... [19:29:17]Read from MH i2c: 01 07 00 [19:29:17]MH_I2C_Read... [19:29:17]Read from MH i2c: 01 07 00 A4 01 00 00 00 00 00 FF 0F BA [19:29:17]RasterBufferAndPrint [19:29:17]line Счет N : (3)183973 [19:29:17]line ИНН: 02508201610067 [19:29:17]line Контрольно-Кассовый Чек [19:29:17]line ПРОДАЖА [19:29:17]line Товар: 6931280300549 [19:29:17]line Зажигалка Cricket ПН пьезо [19:29:17]line 1.000 * 67.00 [19:29:17]line = 67.00 [19:29:17]line НДС 12% НСП 1% [19:29:17]line > о реализуемом товаре [19:29:17]line ИТОГО: 67.00 [19:29:17]line НСП 1% : 0.59 [19:29:17]line НДС 12% : 7.11 [19:29:17]line Наличными: 0.00 [19:29:17]line Безнал.: 67.00 [19:29:17]line Место: АЗС № 97 "Партнер Нефть" [19:29:17]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [19:29:17]line СНО: Общий режим [19:29:17]line Чек 133 29.07.2024 19:29 [19:29:17]line Смена: 427 ФФД: 1.0 [19:29:17]line ЗНМ: 0300000053 [19:29:17]line РНМ: 0000000000092626 [19:29:17]line Версия ККМ: 001 [19:29:17]line Платежная система: O! деньги [19:29:17]line ФМ: 0000000000874958 [19:29:17]line ФД: 41944 [19:29:17]line ФПД: 83133892915911 [19:29:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T192914&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41944&fm=83133892915911&tin=02508201610067®Number=0000000000092626&sum=6700 [19:29:17]line 0 [19:29:17]written 0, free lines is 4095 [19:29:17]Write to MH i2c: 01 00 00 CE 01 CF [19:29:17]Write i2c OK [19:29:17]MH_I2C_Read... [19:29:17]Read from MH i2c: 01 [19:29:17]MH_I2C_Read... [19:29:17]Read from MH i2c: 01 07 00 [19:29:17]MH_I2C_Read... [19:29:17]Read from MH i2c: 01 07 00 CE 01 00 00 00 00 00 02 0D E5 [19:29:17]RasterBufferAndPrint [19:29:17]line [19:29:17]line [19:29:17]line [19:29:17]line [19:29:17]line [19:29:17]written 0, free lines is 3382 [19:29:17]MH_Cut [19:29:17]Write to MH i2c: D1 01 00 D5 01 01 A8 [19:29:17]Write i2c OK [19:29:17]MH_I2C_Read... [19:29:17]Read from MH i2c: D1 [19:29:17]MH_I2C_Read... [19:29:17]Read from MH i2c: D1 01 00 [19:29:17]MH_I2C_Read... [19:29:17]Read from MH i2c: D1 01 00 D5 01 00 A7 [19:29:18]Write to MH i2c: 01 00 00 D6 01 D7 [19:29:18]Write i2c OK [19:29:18]MH_I2C_Read... [19:29:18]recv_with_timeout no data received [19:29:18]*** Cut start [19:29:18]*** Partial cut [19:29:18]*** CUTSNS_PIN = 1 [19:29:18]*** CUTSNS_PIN = 0 [19:29:19]*** Brake cut motor [19:29:19]Read from MH i2c: 01 [19:29:19]MH_I2C_Read... [19:29:19]*** Stop cut motor [19:29:19]*** Cut end [19:29:19]Read from MH i2c: 01 07 00 [19:29:19]MH_I2C_Read... [19:29:19]Read from MH i2c: 01 07 00 D6 01 00 00 00 00 00 FF 0F EC [19:29:19]process_action close_receipt done [19:29:19]requested_data is exist [19:29:19]produce_requested_data [19:29:19]requested_item fm.sn is exist - process it [19:29:19]wFMCommunicate request_size=4 [19:29:19]MH_SAM_APDU [19:29:19]CAPDU: 80 11 00 00 [19:29:19]Write to MH i2c: E2 08 00 D7 01 80 11 00 00 00 00 00 00 52 [19:29:19]Write i2c OK [19:29:19]MH_I2C_Read... [19:29:19]Read from MH i2c: E2 [19:29:19]MH_I2C_Read... [19:29:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:29:19]Read from MH i2c: E2 17 00 [19:29:19]MH_I2C_Read... [19:29:19]Read from MH i2c: E2 17 00 D7 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 AE [19:29:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [19:29:19]wFMCommunicate OK [19:29:19]requested_item fd.num is exist - process it [19:29:19]SAM_PROTO_GetFieldsCounters [19:29:19]wFMCommunicate request_size=4 [19:29:19]MH_SAM_APDU [19:29:19]CAPDU: 80 13 00 00 [19:29:19]Write to MH i2c: E2 08 00 D8 01 80 13 00 00 00 00 00 00 55 [19:29:19]Write i2c OK [19:29:19]MH_I2C_Read... [19:29:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:29:19]Read from MH i2c: E2 [19:29:19]MH_I2C_Read... [19:29:19]Read from MH i2c: E2 62 00 [19:29:19]MH_I2C_Read... [19:29:19]Read from MH i2c: E2 62 00 D8 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 D8 A3 00 00 0E 04 04 00 AB 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 35 [19: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 D8 A3 00 00 0E 04 04 00 AB 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 [19:29:19]wFMCommunicate OK [19:29:19]SAM_PROTO_GetFieldsCounters done [19:29:19]requested_item shift.num is exist - process it [19:29:19]requested_item shift.opened is exist - process it [19:29:19]req_shift_opened [19:29:19]FM_GetShiftState [19:29:19]SAM_PROTO_GetShiftState [19:29:19]wFMCommunicate request_size=4 [19:29:19]MH_SAM_APDU [19:29:19]CAPDU: 80 13 01 00 [19:29:19]Write to MH i2c: E2 08 00 D9 01 80 13 01 00 00 00 00 00 57 [19:29:19]Write i2c OK [19:29:19]MH_I2C_Read... [19:29:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:29:19]Read from MH i2c: E2 [19:29:19]MH_I2C_Read... [19:29:19]Read from MH i2c: E2 0E 00 [19:29:19]MH_I2C_Read... [19:29:19]Read from MH i2c: E2 0E 00 D9 01 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 F3 [19:29:19]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [19:29:19]wFMCommunicate OK [19:29:19]SAM_PROTO_GetShiftState done [19:29:19]FM_GetShiftState done [19:29:19]req_shift_opened done [19:29:19]requested_item shift.open_date is exist - process it [19:29:19]req_shift_open_date [19:29:19]req_shift_open_date done [19:29:19]produce_requested_data done [19:29:19]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41944,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [19:29:19]process_action_free close_receipt [19:29:19]json_value_free [19:29:19]json_value_free done [19:29:19]process_json_proto returns [19:29:19]Send response to host [19:29:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41944,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [19:29:20]free response buf [19:29:20]execute_script done [19:29:20]execute_script returns [19:29:20]free content buf [19:29:20]Sock 10.Close socket [19:29:20]Sock 10.Thread stoped [19:29:20]ConnectInit Can't take IP for lk.salyk.kg [19:29:20]CommunicateWithHost connect error [19:29:22]Read from MH i2c: E2 03 00 E3 01 00 90 00 58 [19:29:22]RAPDU: 90 00 [19:29:22]wFMCommunicate OK [19:29:22]wFMCommunicate request_size=13 [19:29:22]MH_SAM_APDU [19:29:22]CAPDU: 80 15 02 00 08 F4 03 04 00 91 ED A7 66 [19:29:22]Write to MH i2c: E2 10 00 E4 01 80 15 02 00 08 00 F4 03 04 00 91 ED A7 66 00 00 FB [19:29:22]Write i2c OK [19:29:22]MH_I2C_Read... [19:29:22]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [19:29:22]Read from MH i2c: E2 [19:29:22]MH_I2C_Read... [19:29:22]Read from MH i2c: E2 03 00 [19:29:22]MH_I2C_Read... [19:29:22]Read from MH i2c: E2 03 00 E4 01 00 90 00 59 [19:29:22]RAPDU: 90 00 [19:29:22]wFMCommunicate OK [19:29:22]wFMCommunicate request_size=25 [19:29:22]MH_SAM_APDU [19:29:22]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 [19:29:22]Write to MH i2c: E2 1C 00 E5 01 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 00 00 C8 [19:29:22]Write i2c OK [19:29:22]MH_I2C_Read... [19:29:22]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [19:29:22]Read from MH i2c: E2 [19:29:22]MH_I2C_Read... [19:29:22]Read from MH i2c: E2 03 00 [19:29:22]MH_I2C_Read... [19:29:22]Read from MH i2c: E2 03 00 E5 01 00 90 00 5A [19:29:22]RAPDU: 90 00 [19:29:22]wFMCommunicate OK [19:29:22]wFMCommunicate request_size=4 [19:29:22]MH_SAM_APDU [19:29:22]CAPDU: 80 15 03 00 [19:29:22]Write to MH i2c: E2 08 00 E6 01 80 15 03 00 00 00 00 00 68 [19:29:22]Write i2c OK [19:29:22]MH_I2C_Read... [19:29:23]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [19:29:23]Read from MH i2c: E2 [19:29:23]MH_I2C_Read... [19:29:23]Read from MH i2c: E2 40 00 [19:29:23]MH_I2C_Read... [19:29:23]Read from MH i2c: E2 40 00 E6 01 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 D9 A3 00 00 0E 04 04 00 AB 01 00 00 12 04 04 00 86 00 00 00 35 04 06 00 15 5F E6 81 A9 BB 90 00 54 [19:29:23]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 D9 A3 00 00 0E 04 04 00 AB 01 00 00 12 04 04 00 86 00 00 00 35 04 06 00 15 5F E6 81 A9 BB 90 00 [19:29:23]wFMCommunicate OK [19:29:23]SAM_PROTO_ProcessDocument answer len = 59 [19:29:23]SAM_PROTO_ProcessDocument done [19:29:23]SetTLVBufToDocument [19:29:23]Processing tag 1209 (04B9) [19:29:23]Malloc new data [19:29:23]Processing tag 1041 (0411) [19:29:23]Processing tag 1040 (0410) [19:29:23]Malloc new data [19:29:23]Processing tag 1038 (040E) [19:29:23]Malloc new data [19:29:23]Processing tag 1042 (0412) [19:29:23]Malloc new data [19:29:23]Processing tag 1077 (0435) [19:29:23]Malloc new data [19:29:23]SetTLVBufToDocument err=0 [19:29:23]KKMLoadAndSignReceiptData store KKM data [19:29:23]KKMLoadAndSignReceiptData err=0 [19:29:23]wFMCommunicate request_size=4 [19:29:23]MH_SAM_APDU [19:29:23]CAPDU: 80 11 00 00 [19:29:23]Write to MH i2c: E2 08 00 E7 01 80 11 00 00 00 00 00 00 62 [19:29:23]Write i2c OK [19:29:23]MH_I2C_Read... [19:29:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:29:23]Read from MH i2c: E2 [19:29:23]MH_I2C_Read... [19:29:23]Read from MH i2c: E2 17 00 [19:29:23]MH_I2C_Read... [19:29:23]Read from MH i2c: E2 17 00 E7 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 BE [19:29:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [19:29:23]wFMCommunicate OK [19:29:23]Счет N : (3)183974 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА Товар: 2000034730018 Кофе Американо (GABB TRADE) 2.000 * 105.00 = 210.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 210.00 НСП 1% : 1.86 НДС 12% : 22.30 Наличными: 210.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 134 29.07.2024 19:29 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41945 ФПД: 23501633333691 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T192921&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41945&fm=23501633333691&tin=02508201610067®Number=0000000000092626&sum=21000 0 [19:29:23]StoreToDocumentArchive [19:29:23]shift 427 fd 41945 [19:29:23]save to /storage/0427/doc_00041945 [19:29:23]save last doc name /storage/0427/doc_00041945 to /storage/kkm_last_doc_name [19:29:23]save OK [19:29:23]Clear old archive folders... [19:29:23]ProcessDocumentItem done err = 0, tmpTLVsize=282 [19:29:23]tlvbuf is 020FCBC0 [19:29:23]SAM_PROTO_ClearQueue [19:29:23]wFMCommunicate request_size=4 [19:29:23]MH_SAM_APDU [19:29:23]CAPDU: 80 09 00 00 [19:29:23]Write to MH i2c: E2 08 00 E8 01 80 09 00 00 00 00 00 00 5B [19:29:23]Write i2c OK [19:29:23]MH_I2C_Read... [19:29:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:29:23]Read from MH i2c: E2 [19:29:23]MH_I2C_Read... [19:29:23]Read from MH i2c: E2 03 00 [19:29:23]MH_I2C_Read... [19:29:23]Read from MH i2c: E2 03 00 E8 01 00 90 00 5D [19:29:23]RAPDU: 90 00 [19:29:23]wFMCommunicate OK [19:29:23]SAM_PROTO_ClearQueue done [19:29:23]KKMCreateOFDPacket [19:29:23]OFDProtocolAddRootSTLVToBuf [19:29:23]FM_MakeSignedData [19:29:23]FM_MakeSignedData [19:29:23]SAM_PROTO_SignData [19:29:23]wFMCommunicate request_size=4 [19:29:23]MH_SAM_APDU [19:29:23]CAPDU: 80 0D 01 02 [19:29:23]Write to MH i2c: E2 08 00 E9 01 80 0D 01 02 00 00 00 00 63 [19:29:23]Write i2c OK [19:29:23]MH_I2C_Read... [19:29:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:29:23]Read from MH i2c: E2 [19:29:23]MH_I2C_Read... [19:29:23]Read from MH i2c: E2 03 00 [19:29:23]MH_I2C_Read... [19:29:23]Read from MH i2c: E2 03 00 E9 01 00 90 00 5E [19:29:23]RAPDU: 90 00 [19:29:23]wFMCommunicate OK [19:29:23]wFMCommunicate request_size=255 [19:29:23]MH_SAM_APDU [19:29:23]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 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 86 00 00 00 F4 03 04 00 91 ED A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 [19:29:23]Write to MH i2c: E2 02 01 EA 01 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 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 86 00 00 00 F4 03 04 00 91 ED A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 00 00 17 [19:29:24]Write i2c OK [19:29:24]MH_I2C_Read... [19:29:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:29:24]Read from MH i2c: E2 [19:29:24]MH_I2C_Read... [19:29:24]Read from MH i2c: E2 03 00 [19:29:24]MH_I2C_Read... [19:29:24]Read from MH i2c: E2 03 00 EA 01 00 90 00 5F [19:29:24]RAPDU: 90 00 [19:29:24]wFMCommunicate OK [19:29:24]wFMCommunicate request_size=41 [19:29:24]MH_SAM_APDU [19:29:24]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 D9 A3 00 00 35 04 06 00 15 5F E6 81 A9 BB [19:29:24]Write to MH i2c: E2 2C 00 EB 01 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 D9 A3 00 00 35 04 06 00 15 5F E6 81 A9 BB 00 00 F9 [19:29:24]Write i2c OK [19:29:24]MH_I2C_Read... [19:29:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:29:24]Read from MH i2c: E2 [19:29:24]MH_I2C_Read... [19:29:24]Read from MH i2c: E2 03 00 [19:29:24]MH_I2C_Read... [19:29:24]Read from MH i2c: E2 03 00 EB 01 00 90 00 60 [19:29:24]RAPDU: 90 00 [19:29:24]wFMCommunicate OK [19:29:24]wFMCommunicate request_size=4 [19:29:24]MH_SAM_APDU [19:29:24]CAPDU: 80 0D 03 02 [19:29:24]Write to MH i2c: E2 08 00 EC 01 80 0D 03 02 00 00 00 00 68 [19:29:24]Write i2c OK [19:29:24]MH_I2C_Read... [19:29:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:29:24]Read from MH i2c: E2 [19:29:24]MH_I2C_Read... [19:29:24]Read from MH i2c: E2 0B 00 [19:29:24]MH_I2C_Read... [19:29:24]Read from MH i2c: E2 0B 00 EC 01 00 43 C1 CC 29 B0 D5 91 19 90 00 91 [19:29:24]RAPDU: 43 C1 CC 29 B0 D5 91 19 90 00 [19:29:24]wFMCommunicate OK [19:29:24]SAM_PROTO_SignData done [19:29:24]FM_MakeSignedData done [19:29:24]CreateOFDProtocolMessage [19:29:24]wFMCommunicate request_size=4 [19:29:24]MH_SAM_APDU [19:29:24]CAPDU: 80 11 00 00 [19:29:24]Write to MH i2c: E2 08 00 ED 01 80 11 00 00 00 00 00 00 68 [19:29:24]Write i2c OK [19:29:24]MH_I2C_Read... [19:29:24]Read from MH i2c: E2 [19:29:24]MH_I2C_Read... [19:29:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:29:24]Read from MH i2c: E2 17 00 [19:29:24]MH_I2C_Read... [19:29:24]Read from MH i2c: E2 17 00 ED 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 C4 [19:29:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [19:29:20]CommunicateWithHost err = -1 [19:29:20]OFD Sender: Server communicate error [19:29:20]OFD Sender: Processing packet 41937 [packets to send 64, broken 56] [19:29:20]ProducePacketName [19:29:20]name=ofd_packets/00041937 [19:29:20]OFD Sender: To server: pG, [19:29:20]CommunicateWithHost lk.salyk.kg:30040 [19:29:20]ConnectInit lk.salyk.kg [19:29:21]accept exits with 8 [19:29:21]New connection [19:29:21]New thread 3066998116 created [19:29:21]Thread 3066854756 joined [19:29:21]Waiting for new connection... [19:29:21] Sock 8.Parse request [19:29:21]Sock 8.Check first char [19:29:21]Sock 8.First char is OK [19:29:21]request: POST /json_proto HTTP/1.0 [19:29:21]Method: POST [19:29:21]URL: /json_proto [19:29:21]Method is POST - this is cgi request [19:29:21]url: /json_proto [19:29:21]query_string will be loaded in cgi processing [19:29:21]execute_cgi json_proto POST (null) [19:29:21]execute_cgi path=json_proto method=POST [19:29:21]POST find Content-Length [19:29:21]Host: 172.17.43.132:8080 [19:29:21]Content-Length: 650 [19:29:21]Content-Type: application/json [19:29:21] [19:29:21]POST finish read [19:29:21]Found Content-Length = 650 [19:29:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183974", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 2.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:29:21]execute_script... [19:29: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 : (3)183974", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 2.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:29:21]POST & json_proto [19:29:21]process_json_proto [19:29:21]json parsed OK: [19:29:21]protocol is kg_v1.0 [19:29:21]action value=close_receipt [19:29:21]process_action close_receipt [19:29:21]cmd_close_receipt [19:29:21]MH_GetDate [19:29:21]Write to MH i2c: F0 00 00 DA 01 CA [19:29:21]Write i2c OK [19:29:21]MH_I2C_Read... [19:29:21]Read from MH i2c: F0 [19:29:21]MH_I2C_Read... [19:29:21]Read from MH i2c: F0 09 00 [19:29:21]MH_I2C_Read... [19:29:21]Read from MH i2c: F0 09 00 DA 01 00 91 ED A7 66 64 A3 A7 66 72 [19:29:21]GetLastDocTimeStamp 1722281354 [19:29:21]current date 1722281361 [19:29:21]FM_GetShiftState [19:29:21]SAM_PROTO_GetShiftState [19:29:21]wFMCommunicate request_size=4 [19:29:21]MH_SAM_APDU [19:29:21]CAPDU: 80 13 01 00 [19:29:21]Write to MH i2c: E2 08 00 DB 01 80 13 01 00 00 00 00 00 59 [19:29:21]Write i2c OK [19:29:21]MH_I2C_Read... [19:29:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:29:21]Read from MH i2c: E2 [19:29:21]MH_I2C_Read... [19:29:21]Read from MH i2c: E2 0E 00 [19:29:21]MH_I2C_Read... [19:29:21]Read from MH i2c: E2 0E 00 DB 01 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 F5 [19:29:21]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [19:29:21]wFMCommunicate OK [19:29:21]SAM_PROTO_GetShiftState done [19:29:21]FM_GetShiftState done [19:29:21]opened in 1722211496 [19:29:21]opened+sec_in_day 1722297896 [19:29:21]quantity*price = 21000 [19:29:21]sum+1 = 21001 [19:29:21]Check (price>sum+1) || (price+1 о реализуемом товаре [19:29:24]line ИТОГО: 210.00 [19:29:24]line НСП 1% : 1.86 [19:29:24]line НДС 12% : 22.30 [19:29:24]line Наличными: 210.00 [19:29:24]line Безнал.: 0.00 [19:29:24]line Место: АЗС № 97 "Партнер Нефть" [19:29:24]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [19:29:24]line СНО: Общий режим [19:29:24]line Чек 134 29.07.2024 19:29 [19:29:24]line Смена: 427 ФФД: 1.0 [19:29:24]line ЗНМ: 0300000053 [19:29:24]line РНМ: 0000000000092626 [19:29:24]line Версия ККМ: 001 [19:29:24]line ФМ: 0000000000874958 [19:29:24]line ФД: 41945 [19:29:24]line ФПД: 23501633333691 [19:29:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T192921&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41945&fm=23501633333691&tin=02508201610067®Number=0000000000092626&sum=21000 [19:29:24]line 0 [19:29:24]written 0, free lines is 4095 [19:29:25]Write to MH i2c: 01 00 00 17 02 19 [19:29:25]Write i2c OK [19:29:25]MH_I2C_Read... [19:29:25]Read from MH i2c: 01 [19:29:25]MH_I2C_Read... [19:29:25]Read from MH i2c: 01 07 00 [19:29:25]MH_I2C_Read... [19:29:25]Read from MH i2c: 01 07 00 17 02 00 00 00 00 00 0B 0D 38 [19:29:25]RasterBufferAndPrint [19:29:25]line [19:29:25]line [19:29:25]line [19:29:25]line [19:29:25]line [19:29:25]written 0, free lines is 3396 [19:29:25]MH_Cut [19:29:25]Write to MH i2c: D1 01 00 1E 02 01 F2 [19:29:25]Write i2c OK [19:29:25]MH_I2C_Read... [19:29:25]Read from MH i2c: D1 [19:29:25]MH_I2C_Read... [19:29:25]Read from MH i2c: D1 01 00 [19:29:25]MH_I2C_Read... [19:29:25]Read from MH i2c: D1 01 00 1E 02 00 F1 [19:29:25]Write to MH i2c: 01 00 00 1F 02 21 [19:29:25]Write i2c OK [19:29:25]MH_I2C_Read... [19:29:25]ConnectInit Can't take IP for lk.salyk.kg [19:29:25]CommunicateWithHost connect error [19:29:25]CommunicateWithHost err = -1 [19:29:25]OFD Sender: Server communicate error [19:29:25]*** Cut start [19:29:25]*** Partial cut [19:29:25]*** CUTSNS_PIN = 1 [19:29:25]OFD Sender: Processing packet 41937 [packets to send 65, broken 56] [19:29:25]ProducePacketName [19:29:25]name=ofd_packets/00041937 [19:29:25]OFD Sender: To server: pG, [19:29:25]CommunicateWithHost lk.salyk.kg:30040 [19:29:25]ConnectInit lk.salyk.kg [19:29:26]*** CUTSNS_PIN = 0 [19:29:26]*** Brake cut motor [19:29:26]Read from MH i2c: 01 [19:29:26]MH_I2C_Read... [19:29:26]*** Stop cut motor [19:29:26]*** Cut end [19:29:26]Read from MH i2c: 01 07 00 [19:29:26]MH_I2C_Read... [19:29:26]Read from MH i2c: 01 07 00 1F 02 00 00 00 00 00 FF 0F 36 [19:29:26]process_action close_receipt done [19:29:26]requested_data is exist [19:29:26]produce_requested_data [19:29:26]requested_item fm.sn is exist - process it [19:29:26]wFMCommunicate request_size=4 [19:29:26]MH_SAM_APDU [19:29:26]CAPDU: 80 11 00 00 [19:29:26]Write to MH i2c: E2 08 00 20 02 80 11 00 00 00 00 00 00 9C [19:29:26]Write i2c OK [19:29:26]MH_I2C_Read... [19:29:26]Read from MH i2c: E2 [19:29:26]MH_I2C_Read... [19:29:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:29:26]Read from MH i2c: E2 17 00 [19:29:26]MH_I2C_Read... [19:29:26]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 35 38 90 00 F8 [19:29:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [19:29:26]wFMCommunicate OK [19:29:26]requested_item fd.num is exist - process it [19:29:26]SAM_PROTO_GetFieldsCounters [19:29:26]wFMCommunicate request_size=4 [19:29:26]MH_SAM_APDU [19:29:26]CAPDU: 80 13 00 00 [19:29:26]Write to MH i2c: E2 08 00 21 02 80 13 00 00 00 00 00 00 9F [19:29:26]Write i2c OK [19:29:26]MH_I2C_Read... [19:29:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:29:27]Read from MH i2c: E2 [19:29:27]MH_I2C_Read... [19:29:27]Read from MH i2c: E2 62 00 [19:29:27]MH_I2C_Read... [19:29:27]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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 D9 A3 00 00 0E 04 04 00 AB 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 83 [19:29: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 D9 A3 00 00 0E 04 04 00 AB 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 [19:29:27]wFMCommunicate OK [19:29:27]SAM_PROTO_GetFieldsCounters done [19:29:27]requested_item shift.num is exist - process it [19:29:27]requested_item shift.opened is exist - process it [19:29:27]req_shift_opened [19:29:27]FM_GetShiftState [19:29:27]SAM_PROTO_GetShiftState [19:29:27]wFMCommunicate request_size=4 [19:29:27]MH_SAM_APDU [19:29:27]CAPDU: 80 13 01 00 [19:29:27]Write to MH i2c: E2 08 00 22 02 80 13 01 00 00 00 00 00 A1 [19:29:27]Write i2c OK [19:29:27]MH_I2C_Read... [19:29:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:29:27]Read from MH i2c: E2 [19:29:27]MH_I2C_Read... [19:29:27]Read from MH i2c: E2 0E 00 [19:29:27]MH_I2C_Read... [19:29:27]Read from MH i2c: E2 0E 00 22 02 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 3D [19:29:27]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [19:29:27]wFMCommunicate OK [19:29:27]SAM_PROTO_GetShiftState done [19:29:27]FM_GetShiftState done [19:29:27]req_shift_opened done [19:29:27]requested_item shift.open_date is exist - process it [19:29:27]req_shift_open_date [19:29:27]req_shift_open_date done [19:29:27]produce_requested_data done [19:29:27]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41945,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [19:29:27]process_action_free close_receipt [19:29:27]json_value_free [19:29:27]json_value_free done [19:29:27]process_json_proto returns [19:29:27]Send response to host [19:29:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41945,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [19:29:27]free response buf [19:29:27]execute_script done [19:29:27]execute_script returns [19:29:27]free content buf [19:29:27]Sock 8.Close socket [19:29:27]Sock 8.Thread stoped [19:29:29]accept exits with 11 [19:29:29]New connection [19:29:29]New thread 3066854756 created [19:29:29]Thread 3066998116 joined [19:29:29]Waiting for new connection... [19:29:29] Sock 11.Parse request [19:29:29]Sock 11.Check first char [19:29:29]Sock 11.First char is OK [19:29:29]request: POST /json_proto HTTP/1.0 [19:29:29]Method: POST [19:29:29]URL: /json_proto [19:29:29]Method is POST - this is cgi request [19:29:29]url: /json_proto [19:29:29]query_string will be loaded in cgi processing [19:29:29]execute_cgi json_proto POST (null) [19:29:29]execute_cgi path=json_proto method=POST [19:29:29]POST find Content-Length [19:29:29]Host: 172.17.43.132:8080 [19:29:29]Content-Length: 622 [19:29:29]Content-Type: application/json [19:29:29] [19:29:29]POST finish read [19:29:29]Found Content-Length = 622 [19:29:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183975", "tax_sys" : 0, "items" : [ { "code": "46230614", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Red Edition", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:29:29]execute_script... [19:29:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183975", "tax_sys" : 0, "items" : [ { "code": "46230614", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Red Edition", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:29:29]POST & json_proto [19:29:29]process_json_proto [19:29:29]json parsed OK: [19:29:29]protocol is kg_v1.0 [19:29:29]action value=close_receipt [19:29:29]process_action close_receipt [19:29:29]cmd_close_receipt [19:29:29]MH_GetDate [19:29:29]Write to MH i2c: F0 00 00 23 02 14 [19:29:29]Write i2c OK [19:29:29]MH_I2C_Read... [19:29:29]Read from MH i2c: F0 [19:29:29]MH_I2C_Read... [19:29:29]Read from MH i2c: F0 09 00 [19:29:29]MH_I2C_Read... [19:29:29]Read from MH i2c: F0 09 00 23 02 00 99 ED A7 66 64 A3 A7 66 C4 [19:29:29]GetLastDocTimeStamp 1722281361 [19:29:29]current date 1722281369 [19:29:29]FM_GetShiftState [19:29:29]SAM_PROTO_GetShiftState [19:29:29]wFMCommunicate request_size=4 [19:29:29]MH_SAM_APDU [19:29:29]CAPDU: 80 13 01 00 [19:29:29]Write to MH i2c: E2 08 00 24 02 80 13 01 00 00 00 00 00 A3 [19:29:29]Write i2c OK [19:29:29]MH_I2C_Read... [19:29:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:29:29]Read from MH i2c: E2 [19:29:29]MH_I2C_Read... [19:29:29]Read from MH i2c: E2 0E 00 [19:29:29]MH_I2C_Read... [19:29:29]Read from MH i2c: E2 0E 00 24 02 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 3F [19:29:29]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [19:29:29]wFMCommunicate OK [19:29:29]SAM_PROTO_GetShiftState done [19:29:29]FM_GetShiftState done [19:29:29]opened in 1722211496 [19:29:29]opened+sec_in_day 1722297896 [19:29:29]quantity*price = 15000 [19:29:29]sum+1 = 15001 [19:29:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 135 29.07.2024 19:29 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41946 ФПД: 102590976840337 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T192929&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41946&fm=102590976840337&tin=02508201610067®Number=0000000000092626&sum=15000 0 [19:29:31]StoreToDocumentArchive [19:29:31]shift 427 fd 41946 [19:29:31]save to /storage/0427/doc_00041946 [19:29:31]save last doc name /storage/0427/doc_00041946 to /storage/kkm_last_doc_name [19:29:31]save OK [19:29:31]Clear old archive folders... [19:29:31]ProcessDocumentItem done err = 0, tmpTLVsize=274 [19:29:31]tlvbuf is 020DBBC0 [19:29:31]SAM_PROTO_ClearQueue [19:29:31]wFMCommunicate request_size=4 [19:29:31]MH_SAM_APDU [19:29:31]CAPDU: 80 09 00 00 [19:29:31]Write to MH i2c: E2 08 00 31 02 80 09 00 00 00 00 00 00 A5 [19:29:31]Write i2c OK [19:29:31]MH_I2C_Read... [19:29:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:29:31]Read from MH i2c: E2 [19:29:31]MH_I2C_Read... [19:29:31]Read from MH i2c: E2 03 00 [19:29:31]MH_I2C_Read... [19:29:31]Read from MH i2c: E2 03 00 31 02 00 90 00 A7 [19:29:31]RAPDU: 90 00 [19:29:31]wFMCommunicate OK [19:29:31]SAM_PROTO_ClearQueue done [19:29:31]KKMCreateOFDPacket [19:29:31]OFDProtocolAddRootSTLVToBuf [19:29:31]FM_MakeSignedData [19:29:31]FM_MakeSignedData [19:29:31]SAM_PROTO_SignData [19:29:31]wFMCommunicate request_size=4 [19:29:31]MH_SAM_APDU [19:29:31]CAPDU: 80 0D 01 02 [19:29:31]Write to MH i2c: E2 08 00 32 02 80 0D 01 02 00 00 00 00 AD [19:29:31]Write i2c OK [19:29:31]MH_I2C_Read... [19:29:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:29:31]Read from MH i2c: E2 [19:29:31]MH_I2C_Read... [19:29:31]Read from MH i2c: E2 03 00 [19:29:31]MH_I2C_Read... [19:29:31]Read from MH i2c: E2 03 00 32 02 00 90 00 A8 [19:29:31]RAPDU: 90 00 [19:29:31]wFMCommunicate OK [19:29:31]wFMCommunicate request_size=255 [19:29:31]MH_SAM_APDU [19:29:31]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 99 ED A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 [19:29:31]Write to MH i2c: E2 02 01 33 02 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 99 ED A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 00 00 8B [19:29:31]Write i2c OK [19:29:31]MH_I2C_Read... [19:29:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:29:32]Read from MH i2c: E2 [19:29:32]MH_I2C_Read... [19:29:32]Read from MH i2c: E2 03 00 [19:29:32]MH_I2C_Read... [19:29:32]Read from MH i2c: E2 03 00 33 02 00 90 00 A9 [19:29:32]RAPDU: 90 00 [19:29:32]wFMCommunicate OK [19:29:32]wFMCommunicate request_size=33 [19:29:32]MH_SAM_APDU [19:29:32]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 39 35 38 10 04 04 00 DA A3 00 00 35 04 06 00 5D 4E 52 BB 52 91 [19:29:32]Write to MH i2c: E2 24 00 34 02 80 0D 02 02 1C 00 30 30 30 30 38 37 34 39 35 38 10 04 04 00 DA A3 00 00 35 04 06 00 5D 4E 52 BB 52 91 00 00 60 [19:29:32]Write i2c OK [19:29:32]MH_I2C_Read... [19:29:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:29:32]Read from MH i2c: E2 [19:29:32]MH_I2C_Read... [19:29:32]Read from MH i2c: E2 03 00 [19:29:32]MH_I2C_Read... [19:29:32]Read from MH i2c: E2 03 00 34 02 00 90 00 AA [19:29:32]RAPDU: 90 00 [19:29:32]wFMCommunicate OK [19:29:32]wFMCommunicate request_size=4 [19:29:32]MH_SAM_APDU [19:29:32]CAPDU: 80 0D 03 02 [19:29:32]Write to MH i2c: E2 08 00 35 02 80 0D 03 02 00 00 00 00 B2 [19:29:32]Write i2c OK [19:29:32]MH_I2C_Read... [19:29:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:29:32]Read from MH i2c: E2 [19:29:32]MH_I2C_Read... [19:29:32]Read from MH i2c: E2 0B 00 [19:29:32]MH_I2C_Read... [19:29:32]Read from MH i2c: E2 0B 00 35 02 00 AB 9E DF E3 4C 9C 1A 37 90 00 F7 [19:29:32]RAPDU: AB 9E DF E3 4C 9C 1A 37 90 00 [19:29:32]wFMCommunicate OK [19:29:32]SAM_PROTO_SignData done [19:29:32]FM_MakeSignedData done [19:29:32]CreateOFDProtocolMessage [19:29:32]wFMCommunicate request_size=4 [19:29:32]MH_SAM_APDU [19:29:32]CAPDU: 80 11 00 00 [19:29:32]Write to MH i2c: E2 08 00 36 02 80 11 00 00 00 00 00 00 B2 [19:29:32]Write i2c OK [19:29:32]MH_I2C_Read... [19:29:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:29:32]Read from MH i2c: E2 [19:29:32]MH_I2C_Read... [19:29:32]Read from MH i2c: E2 17 00 [19:29:32]MH_I2C_Read... [19:29:32]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 35 38 90 00 0E [19:29:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [19:29:32]wFMCommunicate OK [19:29:32]CreateOFDProtocolMessage done [19:29:32]OFDSenderStorePacket 41946 [19:29:32]StoreOFDPacket docnum=41946 [19:29:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 26 01 00 00 5E B8 1E 01 CF 55 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 99 ED A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 DA A3 00 00 35 04 06 00 5D 4E 52 BB 52 91 AB 9E DF E3 4C 9C 1A 37 [19:29:32]CheckFolder [19:29:32]dirname=/storage/ofd_packets [19:29:32]CheckFolder done [19:29:32]ProducePacketName [19:29:32]name=ofd_packets/00041946 [19:29:32]NVStorageSaveData ofd_packets/00041946 [19:29:32]File name is /storage/ofd_packets/00041946 [19:29:32]Write 324 bytes [19:29:32]NVStorageSaveData done [19:29:32]OFDSenderStorePacket done [19:29:32]KKMCreateOFDPacket done [19:29:32]NVStorageSaveData kkm_last_timestamp [19:29:32]File name is /storage/kkm_last_timestamp [19:29:32]Write 4 bytes [19:29:32]NVStorageSaveData done [19:29:32]ExternCall_PrintAddStr [19:29:32]wPrintStart [19:29:32]Write to MH i2c: 01 00 00 37 02 39 [19:29:32]Write i2c OK [19:29:32]MH_I2C_Read... [19:29:32]Read from MH i2c: 01 [19:29:32]MH_I2C_Read... [19:29:32]Read from MH i2c: 01 07 00 [19:29:32]MH_I2C_Read... [19:29:32]Read from MH i2c: 01 07 00 37 02 00 00 00 00 00 FF 0F 4E [19:29:32]RasterBufferAndPrint [19:29:32]line Счет N : (3)183975 [19:29:32]line ИНН: 02508201610067 [19:29:32]line Контрольно-Кассовый Чек [19:29:32]line ПРОДАЖА [19:29:32]line Товар: 46230614 [19:29:32]line Сигареты Richmond Red Edition [19:29:32]line 1.000 * 150.00 [19:29:32]line = 150.00 [19:29:32]line НДС 12% НСП 1% [19:29:32]line > о реализуемом товаре [19:29:32]line ИТОГО: 150.00 [19:29:32]line НСП 1% : 1.33 [19:29:32]line НДС 12% : 15.93 [19:29:32]line Наличными: 150.00 [19:29:32]line Безнал.: 0.00 [19:29:32]line Место: АЗС № 97 "Партнер Нефть" [19:29:32]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [19:29:32]line СНО: Общий режим [19:29:32]line Чек 135 29.07.2024 19:29 [19:29:32]line Смена: 427 ФФД: 1.0 [19:29:32]line ЗНМ: 0300000053 [19:29:32]line РНМ: 0000000000092626 [19:29:32]line Версия ККМ: 001 [19:29:32]line ФМ: 0000000000874958 [19:29:32]line ФД: 41946 [19:29:32]line ФПД: 102590976840337 [19:29:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T192929&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41946&fm=102590976840337&tin=02508201610067®Number=0000000000092626&sum=15000 [19:29:32]line 0 [19:29:32]OFD Sender: Processing packet 41937 [packets to send 66, broken 56] [19:29:32]ProducePacketName [19:29:32]written 0, free lines is 4095 [19:29:32]name=ofd_packets/00041937 [19:29:32]OFD Sender: To server: pG, [19:29:32]CommunicateWithHost lk.salyk.kg:30040 [19:29:32]ConnectInit lk.salyk.kg [19:29:33]Write to MH i2c: 01 00 00 60 02 62 [19:29:33]Write i2c OK [19:29:33]MH_I2C_Read... [19:29:33]Read from MH i2c: 01 [19:29:33]MH_I2C_Read... [19:29:33]Read from MH i2c: 01 07 00 [19:29:33]MH_I2C_Read... [19:29:33]Read from MH i2c: 01 07 00 60 02 00 00 00 00 00 02 0D 78 [19:29:33]RasterBufferAndPrint [19:29:33]line [19:29:33]line [19:29:33]line [19:29:33]line [19:29:33]line [19:29:33]written 0, free lines is 3393 [19:29:33]MH_Cut [19:29:33]Write to MH i2c: D1 01 00 67 02 01 3B [19:29:33]Write i2c OK [19:29:33]MH_I2C_Read... [19:29:33]Read from MH i2c: D1 [19:29:33]MH_I2C_Read... [19:29:33]Read from MH i2c: D1 01 00 [19:29:33]MH_I2C_Read... [19:29:33]Read from MH i2c: D1 01 00 67 02 00 3A [19:29:33]Write to MH i2c: 01 00 00 68 02 6A [19:29:33]Write i2c OK [19:29:33]MH_I2C_Read... [19:29:33]*** Cut start [19:29:33]*** Partial cut [19:29:33]*** CUTSNS_PIN = 1 [19:29:33]*** CUTSNS_PIN = 0 [19:29:34]*** Brake cut motor [19:29:34]Read from MH i2c: *** Stop cut motor [19:29:34]01 *** Cut end [19:29:34] [19:29:34]MH_I2C_Read... [19:29:34]Read from MH i2c: 01 07 00 [19:29:34]MH_I2C_Read... [19:29:34]Read from MH i2c: 01 07 00 68 02 00 00 00 00 00 FF 0F 7F [19:29:34]process_action close_receipt done [19:29:34]requested_data is exist [19:29:34]produce_requested_data [19:29:34]requested_item fm.sn is exist - process it [19:29:34]wFMCommunicate request_size=4 [19:29:34]MH_SAM_APDU [19:29:34]CAPDU: 80 11 00 00 [19:29:34]Write to MH i2c: E2 08 00 69 02 80 11 00 00 00 00 00 00 E5 [19:29:34]Write i2c OK [19:29:34]MH_I2C_Read... [19:29:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:29:34]Read from MH i2c: E2 [19:29:34]MH_I2C_Read... [19:29:34]Read from MH i2c: E2 17 00 [19:29:34]MH_I2C_Read... [19:29:34]Read from MH i2c: E2 17 00 69 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 41 [19:29:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [19:29:34]wFMCommunicate OK [19:29:34]requested_item fd.num is exist - process it [19:29:34]SAM_PROTO_GetFieldsCounters [19:29:34]wFMCommunicate request_size=4 [19:29:34]MH_SAM_APDU [19:29:34]CAPDU: 80 13 00 00 [19:29:34]Write to MH i2c: E2 08 00 6A 02 80 13 00 00 00 00 00 00 E8 [19:29:34]Write i2c OK [19:29:34]MH_I2C_Read... [19:29:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:29:34]Read from MH i2c: E2 [19:29:34]MH_I2C_Read... [19:29:34]Read from MH i2c: E2 62 00 [19:29:34]MH_I2C_Read... [19:29:34]Read from MH i2c: E2 62 00 6A 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 DA A3 00 00 0E 04 04 00 AB 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 D0 [19:29: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 DA A3 00 00 0E 04 04 00 AB 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 [19:29:35]wFMCommunicate OK [19:29:35]SAM_PROTO_GetFieldsCounters done [19:29:35]requested_item shift.num is exist - process it [19:29:35]requested_item shift.opened is exist - process it [19:29:35]req_shift_opened [19:29:35]FM_GetShiftState [19:29:35]SAM_PROTO_GetShiftState [19:29:35]wFMCommunicate request_size=4 [19:29:35]MH_SAM_APDU [19:29:35]CAPDU: 80 13 01 00 [19:29:35]Write to MH i2c: E2 08 00 6B 02 80 13 01 00 00 00 00 00 EA [19:29:35]Write i2c OK [19:29:35]MH_I2C_Read... [19:29:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:29:35]Read from MH i2c: E2 [19:29:35]MH_I2C_Read... [19:29:35]Read from MH i2c: E2 0E 00 [19:29:35]MH_I2C_Read... [19:29:35]Read from MH i2c: E2 0E 00 6B 02 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 86 [19:29:35]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [19:29:35]wFMCommunicate OK [19:29:35]SAM_PROTO_GetShiftState done [19:29:35]FM_GetShiftState done [19:29:35]req_shift_opened done [19:29:35]requested_item shift.open_date is exist - process it [19:29:35]req_shift_open_date [19:29:35]req_shift_open_date done [19:29:35]produce_requested_data done [19:29:35]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41946,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [19:29:35]process_action_free close_receipt [19:29:35]json_value_free [19:29:35]json_value_free done [19:29:35]process_json_proto returns [19:29:35]Send response to host [19:29:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41946,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [19:29:35]free response buf [19:29:35]execute_script done [19:29:35]execute_script returns [19:29:35]free content buf [19:29:35]Sock 11.Close socket [19:29:35]Sock 11.Thread stoped [19:29:35]accept exits with 8 [19:29:35]New connection [19:29:35]New thread 3066998116 created [19:29:35]Thread 3066854756 joined [19:29:35]Waiting for new connection... [19:29:35] Sock 8.Parse request [19:29:35]Sock 8.Check first char [19:29:35]Sock 8.First char is OK [19:29:35]request: POST /json_proto HTTP/1.0 [19:29:35]Method: POST [19:29:35]URL: /json_proto [19:29:35]Method is POST - this is cgi request [19:29:35]url: /json_proto [19:29:35]query_string will be loaded in cgi processing [19:29:35]execute_cgi json_proto POST (null) [19:29:35]execute_cgi path=json_proto method=POST [19:29:35]POST find Content-Length [19:29:35]Host: 172.17.43.132:8080 [19:29:35]Content-Length: 644 [19:29:35]Content-Type: application/json [19:29:35] [19:29:35]POST finish read [19:29:35]Found Content-Length = 644 [19:29:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183976", "tax_sys" : 0, "items" : [ { "code": "2000036200014", "name": "\u041A\u043E\u0444\u0435 \u042D\u0441\u043F\u0440\u0435\u0441\u0441\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:29:35]execute_script... [19:29:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183976", "tax_sys" : 0, "items" : [ { "code": "2000036200014", "name": "\u041A\u043E\u0444\u0435 \u042D\u0441\u043F\u0440\u0435\u0441\u0441\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:29:35]POST & json_proto [19:29:35]process_json_proto [19:29:35]json parsed OK: [19:29:35]protocol is kg_v1.0 [19:29:35]action value=close_receipt [19:29:35]process_action close_receipt [19:29:35]cmd_close_receipt [19:29:35]MH_GetDate [19:29:35]Write to MH i2c: F0 00 00 6C 02 5D [19:29:35]Write i2c OK [19:29:35]MH_I2C_Read... [19:29:36]Read from MH i2c: F0 [19:29:36]MH_I2C_Read... [19:29:36]Read from MH i2c: F0 09 00 [19:29:36]MH_I2C_Read... [19:29:36]Read from MH i2c: F0 09 00 6C 02 00 A0 ED A7 66 64 A3 A7 66 14 [19:29:36]GetLastDocTimeStamp 1722281369 [19:29:36]current date 1722281376 [19:29:36]FM_GetShiftState [19:29:36]SAM_PROTO_GetShiftState [19:29:36]wFMCommunicate request_size=4 [19:29:36]MH_SAM_APDU [19:29:36]CAPDU: 80 13 01 00 [19:29:36]Write to MH i2c: E2 08 00 6D 02 80 13 01 00 00 00 00 00 EC [19:29:36]Write i2c OK [19:29:36]MH_I2C_Read... [19:29:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:29:36]Read from MH i2c: E2 [19:29:36]MH_I2C_Read... [19:29:36]Read from MH i2c: E2 0E 00 [19:29:36]MH_I2C_Read... [19:29:36]Read from MH i2c: E2 0E 00 6D 02 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 88 [19:29:36]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [19:29:36]wFMCommunicate OK [19:29:36]SAM_PROTO_GetShiftState done [19:29:36]FM_GetShiftState done [19:29:36]opened in 1722211496 [19:29:36]opened+sec_in_day 1722297896 [19:29:36]quantity*price = 10500 [19:29:36]sum+1 = 10501 [19:29:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 105.00 НСП 1% : 0.93 НДС 12% : 11.15 Наличными: 105.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 136 29.07.2024 19:29 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41947 ФПД: 252768925148499 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T192936&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41947&fm=252768925148499&tin=02508201610067®Number=0000000000092626&sum=10500 0 [19:29:38]StoreToDocumentArchive [19:29:38]shift 427 fd 41947 [19:29:38]save to /storage/0427/doc_00041947 [19:29:38]save last doc name /storage/0427/doc_00041947 to /storage/kkm_last_doc_name [19:29:38]save OK [19:29:38]Clear old archive folders... [19:29:38]ProcessDocumentItem done err = 0, tmpTLVsize=280 [19:29:38]tlvbuf is 02136760 [19:29:38]SAM_PROTO_ClearQueue [19:29:38]wFMCommunicate request_size=4 [19:29:38]MH_SAM_APDU [19:29:38]CAPDU: 80 09 00 00 [19:29:38]Write to MH i2c: E2 08 00 7A 02 80 09 00 00 00 00 00 00 EE [19:29:38]Write i2c OK [19:29:38]MH_I2C_Read... [19:29:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:29:38]Read from MH i2c: E2 [19:29:38]MH_I2C_Read... [19:29:38]Read from MH i2c: E2 03 00 [19:29:38]MH_I2C_Read... [19:29:38]Read from MH i2c: E2 03 00 7A 02 00 90 00 F0 [19:29:38]RAPDU: 90 00 [19:29:38]wFMCommunicate OK [19:29:38]SAM_PROTO_ClearQueue done [19:29:38]KKMCreateOFDPacket [19:29:38]OFDProtocolAddRootSTLVToBuf [19:29:38]FM_MakeSignedData [19:29:38]FM_MakeSignedData [19:29:38]SAM_PROTO_SignData [19:29:38]wFMCommunicate request_size=4 [19:29:38]MH_SAM_APDU [19:29:38]CAPDU: 80 0D 01 02 [19:29:38]Write to MH i2c: E2 08 00 7B 02 80 0D 01 02 00 00 00 00 F6 [19:29:38]Write i2c OK [19:29:38]MH_I2C_Read... [19:29:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:29:38]Read from MH i2c: E2 [19:29:38]MH_I2C_Read... [19:29:38]Read from MH i2c: E2 03 00 [19:29:38]MH_I2C_Read... [19:29:38]Read from MH i2c: E2 03 00 7B 02 00 90 00 F1 [19:29:38]RAPDU: 90 00 [19:29:38]wFMCommunicate OK [19:29:38]wFMCommunicate request_size=255 [19:29:38]MH_SAM_APDU [19:29:38]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 30 30 30 31 34 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 AD D1 81 D0 BF D1 80 D0 B5 D1 81 D1 81 D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 A0 ED A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 [19:29:39]Write to MH i2c: E2 02 01 7C 02 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 30 30 30 31 34 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 AD D1 81 D0 BF D1 80 D0 B5 D1 81 D1 81 D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 A0 ED A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 00 00 83 [19:29:39]Write i2c OK [19:29:39]MH_I2C_Read... [19:29:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:29:39]Read from MH i2c: E2 [19:29:39]MH_I2C_Read... [19:29:39]Read from MH i2c: E2 03 00 [19:29:39]MH_I2C_Read... [19:29:39]Read from MH i2c: E2 03 00 7C 02 00 90 00 F2 [19:29:39]RAPDU: 90 00 [19:29:39]wFMCommunicate OK [19:29:39]wFMCommunicate request_size=39 [19:29:39]MH_SAM_APDU [19:29:39]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 DB A3 00 00 35 04 06 00 E5 E4 59 FE 65 53 [19:29:39]Write to MH i2c: E2 2A 00 7D 02 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 DB A3 00 00 35 04 06 00 E5 E4 59 FE 65 53 00 00 13 [19:29:39]Write i2c OK [19:29:39]MH_I2C_Read... [19:29:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:29:39]Read from MH i2c: E2 [19:29:39]MH_I2C_Read... [19:29:39]Read from MH i2c: E2 03 00 [19:29:39]MH_I2C_Read... [19:29:39]Read from MH i2c: E2 03 00 7D 02 00 90 00 F3 [19:29:39]RAPDU: 90 00 [19:29:39]wFMCommunicate OK [19:29:39]wFMCommunicate request_size=4 [19:29:39]MH_SAM_APDU [19:29:39]CAPDU: 80 0D 03 02 [19:29:39]Write to MH i2c: E2 08 00 7E 02 80 0D 03 02 00 00 00 00 FB [19:29:39]Write i2c OK [19:29:39]MH_I2C_Read... [19:29:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:29:39]Read from MH i2c: E2 [19:29:39]MH_I2C_Read... [19:29:39]Read from MH i2c: E2 0B 00 [19:29:39]MH_I2C_Read... [19:29:39]Read from MH i2c: E2 0B 00 7E 02 00 6F A5 36 21 71 80 48 B3 90 00 53 [19:29:39]RAPDU: 6F A5 36 21 71 80 48 B3 90 00 [19:29:39]wFMCommunicate OK [19:29:39]SAM_PROTO_SignData done [19:29:39]FM_MakeSignedData done [19:29:39]CreateOFDProtocolMessage [19:29:39]wFMCommunicate request_size=4 [19:29:39]MH_SAM_APDU [19:29:39]CAPDU: 80 11 00 00 [19:29:39]Write to MH i2c: E2 08 00 7F 02 80 11 00 00 00 00 00 00 FB [19:29:40]Write i2c OK [19:29:40]MH_I2C_Read... [19:29:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:29:40]Read from MH i2c: E2 [19:29:40]MH_I2C_Read... [19:29:40]Read from MH i2c: E2 17 00 [19:29:40]MH_I2C_Read... [19:29:40]Read from MH i2c: E2 17 00 7F 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 57 [19:29:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [19:29:40]wFMCommunicate OK [19:29:40]CreateOFDProtocolMessage done [19:29:40]OFDSenderStorePacket 41947 [19:29:40]StoreOFDPacket docnum=41947 [19:29:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 2C 01 00 00 46 4D 24 01 64 C6 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 30 30 30 31 34 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 AD D1 81 D0 BF D1 80 D0 B5 D1 81 D1 81 D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 A0 ED A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 DB A3 00 00 35 04 06 00 E5 E4 59 FE 65 53 6F A5 36 21 71 80 48 B3 [19:29:40]CheckFolder [19:29:40]dirname=/storage/ofd_packets [19:29:40]CheckFolder done [19:29:40]ProducePacketName [19:29:40]name=ofd_packets/00041947 [19:29:40]NVStorageSaveData ofd_packets/00041947 [19:29:40]File name is /storage/ofd_packets/00041947 [19:29:40]Write 330 bytes [19:29:40]NVStorageSaveData done [19:29:40]OFDSenderStorePacket done [19:29:40]KKMCreateOFDPacket done [19:29:40]NVStorageSaveData kkm_last_timestamp [19:29:40]File name is /storage/kkm_last_timestamp [19:29:40]Write 4 bytes [19:29:40]NVStorageSaveData done [19:29:40]ExternCall_PrintAddStr [19:29:40]wPrintStart [19:29:40]Write to MH i2c: 01 00 00 80 02 82 [19:29:40]Write i2c OK [19:29:40]MH_I2C_Read... [19:29:40]Read from MH i2c: 01 [19:29:40]MH_I2C_Read... [19:29:40]Read from MH i2c: 01 07 00 [19:29:40]MH_I2C_Read... [19:29:40]Read from MH i2c: 01 07 00 80 02 00 00 00 00 00 FF 0F 97 [19:29:40]RasterBufferAndPrint [19:29:40]line Счет N : (3)183976 [19:29:40]line ИНН: 02508201610067 [19:29:40]line Контрольно-Кассовый Чек [19:29:40]line ПРОДАЖА [19:29:40]line Товар: 2000036200014 [19:29:40]line Кофе Эспрессо (GABB TRADE) [19:29:40]line 1.000 * 105.00 [19:29:40]line = 105.00 [19:29:40]line НДС 12% НСП 1% [19:29:40]line > о реализуемом товаре [19:29:40]line ИТОГО: 105.00 [19:29:40]line НСП 1% : 0.93 [19:29:40]line НДС 12% : 11.15 [19:29:40]line Наличными: 105.00 [19:29:40]line Безнал.: 0.00 [19:29:40]line Место: АЗС № 97 "Партнер Нефть" [19:29:40]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [19:29:40]line СНО: Общий режим [19:29:40]line Чек 136 29.07.2024 19:29 [19:29:40]line Смена: 427 ФФД: 1.0 [19:29:40]line ЗНМ: 0300000053 [19:29:40]line РНМ: 0000000000092626 [19:29:40]line Версия ККМ: 001 [19:29:40]line ФМ: 0000000000874958 [19:29:40]line ФД: 41947 [19:29:40]line ФПД: 252768925148499 [19:29:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T192936&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41947&fm=252768925148499&tin=02508201610067®Number=0000000000092626&sum=10500 [19:29:40]OFD Sender: Processing packet 41937 [packets to send 67, broken 56] [19:29:40]line 0 [19:29:40]ProducePacketName [19:29:40]name=ofd_packets/00041937 [19:29:40]OFD Sender: To server: pG, [19:29:40]CommunicateWithHost lk.salyk.kg:30040 [19:29:40]ConnectInit lk.salyk.kg [19:29:40]written 0, free lines is 4095 [19:29:40]Write to MH i2c: 01 00 00 A8 02 AA [19:29:40]Write i2c OK [19:29:40]MH_I2C_Read... [19:29:40]Read from MH i2c: 01 [19:29:40]MH_I2C_Read... [19:29:40]Read from MH i2c: 01 07 00 [19:29:40]MH_I2C_Read... [19:29:40]Read from MH i2c: 01 07 00 A8 02 00 00 00 00 00 2D 0D EB [19:29:40]RasterBufferAndPrint [19:29:40]line [19:29:40]line [19:29:40]line [19:29:40]line [19:29:40]line [19:29:40]written 0, free lines is 3442 [19:29:40]MH_Cut [19:29:40]Write to MH i2c: D1 01 00 AF 02 01 83 [19:29:40]Write i2c OK [19:29:40]MH_I2C_Read... [19:29:40]Read from MH i2c: D1 [19:29:40]MH_I2C_Read... [19:29:40]Read from MH i2c: D1 01 00 [19:29:40]MH_I2C_Read... [19:29:40]Read from MH i2c: D1 01 00 AF 02 00 82 [19:29:40]Write to MH i2c: 01 00 00 B0 02 B2 [19:29:40]Write i2c OK [19:29:40]MH_I2C_Read... [19:29:41]*** Cut start [19:29:41]*** Partial cut [19:29:41]*** CUTSNS_PIN = 1 [19:29:41]*** CUTSNS_PIN = 0 [19:29:41]*** Brake cut motor [19:29:42]Read from MH i2c: 01 [19:29:42]MH_I2C_Read... [19:29:42]*** Stop cut motor [19:29:42]*** Cut end [19:29:42]Read from MH i2c: 01 07 00 [19:29:42]MH_I2C_Read... [19:29:42]Read from MH i2c: 01 07 00 B0 02 00 00 00 00 00 FF 0F C7 [19:29:42]process_action close_receipt done [19:29:42]requested_data is exist [19:29:42]produce_requested_data [19:29:42]requested_item fm.sn is exist - process it [19:29:42]wFMCommunicate request_size=4 [19:29:42]MH_SAM_APDU [19:29:42]CAPDU: 80 11 00 00 [19:29:42]Write to MH i2c: E2 08 00 B1 02 80 11 00 00 00 00 00 00 2D [19:29:42]Write i2c OK [19:29:42]MH_I2C_Read... [19:29:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:29:42]Read from MH i2c: E2 [19:29:42]MH_I2C_Read... [19:29:42]Read from MH i2c: E2 17 00 [19:29:42]MH_I2C_Read... [19:29:42]Read from MH i2c: E2 17 00 B1 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 89 [19:29:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [19:29:42]wFMCommunicate OK [19:29:42]requested_item fd.num is exist - process it [19:29:42]SAM_PROTO_GetFieldsCounters [19:29:42]wFMCommunicate request_size=4 [19:29:42]MH_SAM_APDU [19:29:42]CAPDU: 80 13 00 00 [19:29:42]Write to MH i2c: E2 08 00 B2 02 80 13 00 00 00 00 00 00 30 [19:29:42]Write i2c OK [19:29:42]MH_I2C_Read... [19:29:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:29:42]Read from MH i2c: E2 [19:29:42]MH_I2C_Read... [19:29:42]Read from MH i2c: E2 62 00 [19:29:42]MH_I2C_Read... [19:29:42]Read from MH i2c: E2 62 00 B2 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 DB A3 00 00 0E 04 04 00 AB 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 1C [19:29:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 DB A3 00 00 0E 04 04 00 AB 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 [19:29:42]wFMCommunicate OK [19:29:42]SAM_PROTO_GetFieldsCounters done [19:29:42]requested_item shift.num is exist - process it [19:29:42]requested_item shift.opened is exist - process it [19:29:42]req_shift_opened [19:29:42]FM_GetShiftState [19:29:42]SAM_PROTO_GetShiftState [19:29:42]wFMCommunicate request_size=4 [19:29:42]MH_SAM_APDU [19:29:42]CAPDU: 80 13 01 00 [19:29:42]Write to MH i2c: E2 08 00 B3 02 80 13 01 00 00 00 00 00 32 [19:29:42]Write i2c OK [19:29:42]MH_I2C_Read... [19:29:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:29:42]Read from MH i2c: E2 [19:29:42]MH_I2C_Read... [19:29:42]Read from MH i2c: E2 0E 00 [19:29:42]MH_I2C_Read... [19:29:42]Read from MH i2c: E2 0E 00 B3 02 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 CE [19:29:42]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [19:29:42]wFMCommunicate OK [19:29:42]SAM_PROTO_GetShiftState done [19:29:42]FM_GetShiftState done [19:29:42]req_shift_opened done [19:29:42]requested_item shift.open_date is exist - process it [19:29:42]req_shift_open_date [19:29:42]req_shift_open_date done [19:29:42]produce_requested_data done [19:29:42]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41947,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [19:29:42]process_action_free close_receipt [19:29:42]json_value_free [19:29:42]json_value_free done [19:29:42]process_json_proto returns [19:29:42]Send response to host [19:29:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41947,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [19:29:42]free response buf [19:29:42]execute_script done [19:29:42]execute_script returns [19:29:42]free content buf [19:29:42]Sock 8.Close socket [19:29:42]Sock 8.Thread stoped [19:29:43]accept exits with 11 [19:29:43]New connection [19:29:43]New thread 3066854756 created [19:29:43]Thread 3066998116 joined [19:29:43]Waiting for new connection... [19:29:43] Sock 11.Parse request [19:29:43]Sock 11.Check first char [19:29:43]Sock 11.First char is OK [19:29:43]request: POST /json_proto HTTP/1.0 [19:29:43]Method: POST [19:29:43]URL: /json_proto [19:29:43]Method is POST - this is cgi request [19:29:43]url: /json_proto [19:29:43]query_string will be loaded in cgi processing [19:29:43]execute_cgi json_proto POST (null) [19:29:43]execute_cgi path=json_proto method=POST [19:29:43]POST find Content-Length [19:29:43]Host: 172.17.43.132:8080 [19:29:43]Content-Length: 845 [19:29:43]Content-Type: application/json [19:29:43] [19:29:43]POST finish read [19:29:43]Found Content-Length = 845 [19:29:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183977", "tax_sys" : 0, "items" : [ { "code": "4870202521230", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043B\u0438\u043C\u043E\u043D", "price" : 125.00, "quantity" : 1.000, "sum" : 125.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" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:29:43]execute_script... [19:29:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183977", "tax_sys" : 0, "items" : [ { "code": "4870202521230", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043B\u0438\u043C\u043E\u043D", "price" : 125.00, "quantity" : 1.000, "sum" : 125.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" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:29:43]POST & json_proto [19:29:43]process_json_proto [19:29:43]json parsed OK: [19:29:43]protocol is kg_v1.0 [19:29:43]action value=close_receipt [19:29:43]process_action close_receipt [19:29:43]cmd_close_receipt [19:29:43]MH_GetDate [19:29:43]Write to MH i2c: F0 00 00 B4 02 A5 [19:29:43]Write i2c OK [19:29:43]MH_I2C_Read... [19:29:43]Read from MH i2c: F0 [19:29:43]MH_I2C_Read... [19:29:43]Read from MH i2c: F0 09 00 [19:29:43]MH_I2C_Read... [19:29:43]Read from MH i2c: F0 09 00 B4 02 00 A8 ED A7 66 64 A3 A7 66 64 [19:29:44]GetLastDocTimeStamp 1722281376 [19:29:44]current date 1722281384 [19:29:44]FM_GetShiftState [19:29:44]SAM_PROTO_GetShiftState [19:29:44]wFMCommunicate request_size=4 [19:29:44]MH_SAM_APDU [19:29:44]CAPDU: 80 13 01 00 [19:29:44]Write to MH i2c: E2 08 00 B5 02 80 13 01 00 00 00 00 00 34 [19:29:44]Write i2c OK [19:29:44]MH_I2C_Read... [19:29:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:29:44]Read from MH i2c: E2 [19:29:44]MH_I2C_Read... [19:29:44]Read from MH i2c: E2 0E 00 [19:29:44]MH_I2C_Read... [19:29:44]Read from MH i2c: E2 0E 00 B5 02 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 D0 [19:29:44]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [19:29:44]wFMCommunicate OK [19:29:44]SAM_PROTO_GetShiftState done [19:29:44]FM_GetShiftState done [19:29:44]opened in 1722211496 [19:29:44]opened+sec_in_day 1722297896 [19:29:44]quantity*price = 12500 [19:29:44]sum+1 = 12501 [19:29:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 0.00 Безнал.: 125.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 137 29.07.2024 19:29 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874958 ФД: 41948 ФПД: 175382334279023 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T192944&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41948&fm=175382334279023&tin=02508201610067®Number=0000000000092626&sum=12500 0 [19:29:46]StoreToDocumentArchive [19:29:46]shift 427 fd 41948 [19:29:46]save to /storage/0427/doc_00041948 [19:29:46]save last doc name /storage/0427/doc_00041948 to /storage/kkm_last_doc_name [19:29:46]save OK [19:29:46]Clear old archive folders... [19:29:46]ProcessDocumentItem done err = 0, tmpTLVsize=292 [19:29:46]tlvbuf is 02136360 [19:29:46]SAM_PROTO_ClearQueue [19:29:46]wFMCommunicate request_size=4 [19:29:46]MH_SAM_APDU [19:29:46]CAPDU: 80 09 00 00 [19:29:46]Write to MH i2c: E2 08 00 C2 02 80 09 00 00 00 00 00 00 36 [19:29:46]Write i2c OK [19:29:46]MH_I2C_Read... [19:29:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:29:46]Read from MH i2c: E2 [19:29:46]MH_I2C_Read... [19:29:46]Read from MH i2c: E2 03 00 [19:29:46]MH_I2C_Read... [19:29:46]Read from MH i2c: E2 03 00 C2 02 00 90 00 38 [19:29:46]RAPDU: 90 00 [19:29:46]wFMCommunicate OK [19:29:46]SAM_PROTO_ClearQueue done [19:29:46]KKMCreateOFDPacket [19:29:46]OFDProtocolAddRootSTLVToBuf [19:29:46]FM_MakeSignedData [19:29:46]FM_MakeSignedData [19:29:46]SAM_PROTO_SignData [19:29:46]wFMCommunicate request_size=4 [19:29:46]MH_SAM_APDU [19:29:46]CAPDU: 80 0D 01 02 [19:29:46]Write to MH i2c: E2 08 00 C3 02 80 0D 01 02 00 00 00 00 3E [19:29:46]Write i2c OK [19:29:46]MH_I2C_Read... [19:29:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:29:46]Read from MH i2c: E2 [19:29:46]MH_I2C_Read... [19:29:46]Read from MH i2c: E2 03 00 [19:29:46]MH_I2C_Read... [19:29:46]Read from MH i2c: E2 03 00 C3 02 00 90 00 39 [19:29:46]RAPDU: 90 00 [19:29:46]wFMCommunicate OK [19:29:46]wFMCommunicate request_size=255 [19:29:46]MH_SAM_APDU [19:29:46]CAPDU: 80 0D 02 02 FA 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 33 30 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 A8 ED A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 [19:29:46]Write to MH i2c: E2 02 01 C4 02 80 0D 02 02 FA 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 33 30 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 A8 ED A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 00 00 DB [19:29:47]Write i2c OK [19:29:47]MH_I2C_Read... [19:29:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:29:47]Read from MH i2c: E2 [19:29:47]MH_I2C_Read... [19:29:47]Read from MH i2c: E2 03 00 [19:29:47]MH_I2C_Read... [19:29:47]Read from MH i2c: E2 03 00 C4 02 00 90 00 3A [19:29:47]RAPDU: 90 00 [19:29:47]wFMCommunicate OK [19:29:47]wFMCommunicate request_size=51 [19:29:47]MH_SAM_APDU [19:29:47]CAPDU: 80 0D 02 02 2E 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 DC A3 00 00 35 04 06 00 9F 82 61 BC 0D 6F [19:29:47]Write to MH i2c: E2 36 00 C5 02 80 0D 02 02 2E 00 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 DC A3 00 00 35 04 06 00 9F 82 61 BC 0D 6F 00 00 14 [19:29:47]Write i2c OK [19:29:47]MH_I2C_Read... [19:29:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:29:47]Read from MH i2c: E2 [19:29:47]MH_I2C_Read... [19:29:47]Read from MH i2c: E2 03 00 [19:29:47]MH_I2C_Read... [19:29:47]Read from MH i2c: E2 03 00 C5 02 00 90 00 3B [19:29:47]RAPDU: 90 00 [19:29:47]wFMCommunicate OK [19:29:47]wFMCommunicate request_size=4 [19:29:47]MH_SAM_APDU [19:29:47]CAPDU: 80 0D 03 02 [19:29:47]Write to MH i2c: E2 08 00 C6 02 80 0D 03 02 00 00 00 00 43 [19:29:47]Write i2c OK [19:29:47]MH_I2C_Read... [19:29:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:29:47]Read from MH i2c: E2 [19:29:47]MH_I2C_Read... [19:29:47]Read from MH i2c: E2 0B 00 [19:29:47]MH_I2C_Read... [19:29:47]Read from MH i2c: E2 0B 00 C6 02 00 EE 17 16 EA 38 B0 74 1E 90 00 C3 [19:29:47]RAPDU: EE 17 16 EA 38 B0 74 1E 90 00 [19:29:47]wFMCommunicate OK [19:29:47]SAM_PROTO_SignData done [19:29:47]FM_MakeSignedData done [19:29:47]CreateOFDProtocolMessage [19:29:47]wFMCommunicate request_size=4 [19:29:47]MH_SAM_APDU [19:29:47]CAPDU: 80 11 00 00 [19:29:48]Write to MH i2c: E2 08 00 C7 02 80 11 00 00 00 00 00 00 43 [19:29:48]Write i2c OK [19:29:48]MH_I2C_Read... [19:29:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:29:48]Read from MH i2c: E2 [19:29:48]MH_I2C_Read... [19:29:48]Read from MH i2c: E2 17 00 [19:29:48]MH_I2C_Read... [19:29:48]Read from MH i2c: E2 17 00 C7 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 9F [19:29:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [19:29:48]wFMCommunicate OK [19:29:48]CreateOFDProtocolMessage done [19:29:48]OFDSenderStorePacket 41948 [19:29:48]StoreOFDPacket docnum=41948 [19:29:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 38 01 00 00 D2 B6 30 01 D1 AA 5A 03 01 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 33 30 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 A8 ED A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 DC A3 00 00 35 04 06 00 9F 82 61 BC 0D 6F EE 17 16 EA 38 B0 74 1E [19:29:48]CheckFolder [19:29:48]dirname=/storage/ofd_packets [19:29:48]CheckFolder done [19:29:48]ProducePacketName [19:29:48]name=ofd_packets/00041948 [19:29:48]NVStorageSaveData ofd_packets/00041948 [19:29:48]File name is /storage/ofd_packets/00041948 [19:29:48]Write 342 bytes [19:29:48]NVStorageSaveData done [19:29:48]OFDSenderStorePacket done [19:29:48]KKMCreateOFDPacket done [19:29:48]NVStorageSaveData kkm_last_timestamp [19:29:48]File name is /storage/kkm_last_timestamp [19:29:48]Write 4 bytes [19:29:48]NVStorageSaveData done [19:29:48]ExternCall_PrintAddStr [19:29:48]wPrintStart [19:29:48]Write to MH i2c: 01 00 00 C8 02 CA [19:29:48]Write i2c OK [19:29:48]MH_I2C_Read... [19:29:48]Read from MH i2c: 01 [19:29:48]MH_I2C_Read... [19:29:48]Read from MH i2c: 01 07 00 [19:29:48]MH_I2C_Read... [19:29:48]Read from MH i2c: 01 07 00 C8 02 00 00 00 00 00 FF 0F DF [19:29:48]RasterBufferAndPrint [19:29:48]line Счет N : (3)183977 [19:29:48]line ИНН: 02508201610067 [19:29:48]line Контрольно-Кассовый Чек [19:29:48]line ПРОДАЖА [19:29:48]line Товар: 4870202521230 [19:29:48]line Напиток MAXI чай 1,2 черн.лимон [19:29:48]line 1.000 * 125.00 [19:29:48]line = 125.00 [19:29:48]line НДС 12% НСП 1% [19:29:48]line > о реализуемом товаре [19:29:48]line ИТОГО: 125.00 [19:29:48]line НСП 1% : 1.11 [19:29:48]line НДС 12% : 13.27 [19:29:48]line Наличными: 0.00 [19:29:48]line Безнал.: 125.00 [19:29:48]line Место: АЗС № 97 "Партнер Нефть" [19:29:48]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [19:29:48]line СНО: Общий режим [19:29:48]line Чек 137 29.07.2024 19:29 [19:29:48]line Смена: 427 ФФД: 1.0 [19:29:48]line ЗНМ: 0300000053 [19:29:48]line РНМ: 0000000000092626 [19:29:48]line Версия ККМ: 001 [19:29:48]line Платежная система: O! деньги [19:29:48]line ФМ: 0000000000874958 [19:29:48]line ФД: 41948 [19:29:48]line ФПД: 175382334279023 [19:29:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T192944&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41948&fm=175382334279023&tin=02508201610067®Number=0000000000092626&sum=12500 [19:29:48]OFD Sender: Processing packet 41937 [packets to send 68, broken 56] [19:29:48]ProducePacketName [19:29:48]name=ofd_packets/00041937 [19:29:48]line 0 [19:29:48]OFD Sender: To server: pG, [19:29:48]written 0, free lines is 4095 [19:29:48]CommunicateWithHost lk.salyk.kg:30040 [19:29:48]ConnectInit lk.salyk.kg [19:29:48]Write to MH i2c: 01 00 00 F3 02 F5 [19:29:48]Write i2c OK [19:29:48]MH_I2C_Read... [19:29:48]Read from MH i2c: 01 [19:29:48]MH_I2C_Read... [19:29:48]Read from MH i2c: 01 07 00 [19:29:48]MH_I2C_Read... [19:29:48]Read from MH i2c: 01 07 00 F3 02 00 00 00 00 00 F9 0C 01 [19:29:48]RasterBufferAndPrint [19:29:48]line [19:29:48]line [19:29:48]line [19:29:48]line [19:29:48]line [19:29:48]written 0, free lines is 3398 [19:29:48]MH_Cut [19:29:48]Write to MH i2c: D1 01 00 FA 02 01 CE [19:29:48]Write i2c OK [19:29:48]MH_I2C_Read... [19:29:48]Read from MH i2c: D1 [19:29:48]MH_I2C_Read... [19:29:48]Read from MH i2c: D1 01 00 [19:29:48]MH_I2C_Read... [19:29:48]Read from MH i2c: D1 01 00 FA 02 00 CD [19:29:48]Write to MH i2c: 01 00 00 FB 02 FD [19:29:48]Write i2c OK [19:29:48]MH_I2C_Read... [19:29:49]*** Cut start [19:29:49]*** Partial cut [19:29:49]*** CUTSNS_PIN = 1 [19:29:49]*** CUTSNS_PIN = 0 [19:29:49]*** Brake cut motor [19:29:50]Read from MH i2c: *** Stop cut motor [19:29:50]01 *** Cut end [19:29:50] [19:29:50]MH_I2C_Read... [19:29:50]Read from MH i2c: 01 07 00 [19:29:50]MH_I2C_Read... [19:29:50]Read from MH i2c: 01 07 00 FB 02 00 00 00 00 00 FF 0F 12 [19:29:50]process_action close_receipt done [19:29:50]requested_data is exist [19:29:50]produce_requested_data [19:29:50]requested_item fm.sn is exist - process it [19:29:50]wFMCommunicate request_size=4 [19:29:50]MH_SAM_APDU [19:29:50]CAPDU: 80 11 00 00 [19:29:50]Write to MH i2c: E2 08 00 FC 02 80 11 00 00 00 00 00 00 78 [19:29:50]Write i2c OK [19:29:50]MH_I2C_Read... [19:29:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:29:50]Read from MH i2c: E2 [19:29:50]MH_I2C_Read... [19:29:50]Read from MH i2c: E2 17 00 [19:29:50]MH_I2C_Read... [19:29:50]Read from MH i2c: E2 17 00 FC 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 D4 [19:29:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [19:29:50]wFMCommunicate OK [19:29:50]requested_item fd.num is exist - process it [19:29:50]SAM_PROTO_GetFieldsCounters [19:29:50]wFMCommunicate request_size=4 [19:29:50]MH_SAM_APDU [19:29:50]CAPDU: 80 13 00 00 [19:29:50]Write to MH i2c: E2 08 00 FD 02 80 13 00 00 00 00 00 00 7B [19:29:50]Write i2c OK [19:29:50]MH_I2C_Read... [19:29:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:29:50]Read from MH i2c: E2 [19:29:50]MH_I2C_Read... [19:29:50]Read from MH i2c: E2 62 00 [19:29:50]MH_I2C_Read... [19:29:50]Read from MH i2c: E2 62 00 FD 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 DC A3 00 00 0E 04 04 00 AB 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 6B [19:29: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 DC A3 00 00 0E 04 04 00 AB 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 [19:29:50]wFMCommunicate OK [19:29:50]SAM_PROTO_GetFieldsCounters done [19:29:50]requested_item shift.num is exist - process it [19:29:50]requested_item shift.opened is exist - process it [19:29:50]req_shift_opened [19:29:50]FM_GetShiftState [19:29:50]SAM_PROTO_GetShiftState [19:29:50]wFMCommunicate request_size=4 [19:29:50]MH_SAM_APDU [19:29:50]CAPDU: 80 13 01 00 [19:29:50]Write to MH i2c: E2 08 00 FE 02 80 13 01 00 00 00 00 00 7D [19:29:50]Write i2c OK [19:29:50]MH_I2C_Read... [19:29:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:29:50]Read from MH i2c: E2 [19:29:50]MH_I2C_Read... [19:29:50]Read from MH i2c: E2 0E 00 [19:29:50]MH_I2C_Read... [19:29:50]Read from MH i2c: E2 0E 00 FE 02 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 19 [19:29:51]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [19:29:51]wFMCommunicate OK [19:29:51]SAM_PROTO_GetShiftState done [19:29:51]FM_GetShiftState done [19:29:51]req_shift_opened done [19:29:51]requested_item shift.open_date is exist - process it [19:29:51]req_shift_open_date [19:29:51]req_shift_open_date done [19:29:51]produce_requested_data done [19:29:51]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41948,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [19:29:51]process_action_free close_receipt [19:29:51]json_value_free [19:29:51]json_value_free done [19:29:51]process_json_proto returns [19:29:51]Send response to host [19:29:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41948,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [19:29:51]free response buf [19:29:51]execute_script done [19:29:51]execute_script returns [19:29:51]free content buf [19:29:51]Sock 11.Close socket [19:29:51]Sock 11.Thread stoped [19:29:53]ConnectInit Can't take IP for lk.salyk.kg [19:29:53]CommunicateWithHost connect error [19:29:53]CommunicateWithHost err = -1 [19:29:53]OFD Sender: Server communicate error [19:29:58]OFD Sender: Processing packet 41937 [packets to send 68, broken 56] [19:29:58]ProducePacketName [19:29:58]name=ofd_packets/00041937 [19:29:58]OFD Sender: To server: pG, [19:29:58]CommunicateWithHost lk.salyk.kg:30040 [19:29:58]ConnectInit lk.salyk.kg [19:30:03]ConnectInit Can't take IP for lk.salyk.kg [19:30:03]CommunicateWithHost connect error [19:30:03]CommunicateWithHost err = -1 [19:30:03]OFD Sender: Server communicate error [19:30:04]accept exits with 8 [19:30:04]New connection [19:30:04]New thread 3066998116 created [19:30:04]Thread 3066854756 joined [19:30:04]Waiting for new connection... [19:30:04] Sock 8.Parse request [19:30:04]Sock 8.Check first char [19:30:04]Sock 8.First char is OK [19:30:04]request: POST /json_proto HTTP/1.0 [19:30:04]Method: POST [19:30:04]URL: /json_proto [19:30:04]Method is POST - this is cgi request [19:30:04]url: /json_proto [19:30:04]query_string will be loaded in cgi processing [19:30:04]execute_cgi json_proto POST (null) [19:30:04]execute_cgi path=json_proto method=POST [19:30:04]POST find Content-Length [19:30:04]Host: 172.17.43.132:8080 [19:30:04]Content-Length: 624 [19:30:04]Content-Type: application/json [19:30:04] [19:30:04]POST finish read [19:30:04]Found Content-Length = 624 [19:30:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183978", "tax_sys" : 0, "items" : [ { "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:30:04]execute_script... [19:30:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183978", "tax_sys" : 0, "items" : [ { "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:30:04]POST & json_proto [19:30:04]process_json_proto [19:30:04]json parsed OK: [19:30:04]protocol is kg_v1.0 [19:30:04]action value=close_receipt [19:30:04]process_action close_receipt [19:30:04]cmd_close_receipt [19:30:04]MH_GetDate [19:30:04]Write to MH i2c: F0 00 00 FF 02 F0 [19:30:04]Write i2c OK [19:30:04]MH_I2C_Read... [19:30:04]Read from MH i2c: F0 [19:30:04]MH_I2C_Read... [19:30:04]Read from MH i2c: F0 09 00 [19:30:05]MH_I2C_Read... [19:30:05]Read from MH i2c: F0 09 00 FF 02 00 BD ED A7 66 64 A3 A7 66 C4 [19:30:05]GetLastDocTimeStamp 1722281384 [19:30:05]current date 1722281405 [19:30:05]FM_GetShiftState [19:30:05]SAM_PROTO_GetShiftState [19:30:05]wFMCommunicate request_size=4 [19:30:05]MH_SAM_APDU [19:30:05]CAPDU: 80 13 01 00 [19:30:05]Write to MH i2c: E2 08 00 00 03 80 13 01 00 00 00 00 00 80 [19:30:05]Write i2c OK [19:30:05]MH_I2C_Read... [19:30:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:30:05]Read from MH i2c: E2 [19:30:05]MH_I2C_Read... [19:30:05]Read from MH i2c: E2 0E 00 [19:30:05]MH_I2C_Read... [19:30:05]Read from MH i2c: E2 0E 00 00 03 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 1C [19:30:05]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [19:30:05]wFMCommunicate OK [19:30:05]SAM_PROTO_GetShiftState done [19:30:05]FM_GetShiftState done [19:30:05]opened in 1722211496 [19:30:05]opened+sec_in_day 1722297896 [19:30:05]quantity*price = 15100 [19:30:05]sum+1 = 15101 [19:30:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 151.00 НСП 1% : 1.34 НДС 12% : 16.03 Наличными: 151.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 138 29.07.2024 19:30 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41949 ФПД: 248987769945723 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T193005&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41949&fm=248987769945723&tin=02508201610067®Number=0000000000092626&sum=15100 0 [19:30:07]StoreToDocumentArchive [19:30:07]shift 427 fd 41949 [19:30:07]save to /storage/0427/doc_00041949 [19:30:07]save last doc name /storage/0427/doc_00041949 to /storage/kkm_last_doc_name [19:30:07]save OK [19:30:07]Clear old archive folders... [19:30:07]ProcessDocumentItem done err = 0, tmpTLVsize=276 [19:30:07]tlvbuf is 0216CD80 [19:30:07]SAM_PROTO_ClearQueue [19:30:07]wFMCommunicate request_size=4 [19:30:07]MH_SAM_APDU [19:30:07]CAPDU: 80 09 00 00 [19:30:07]Write to MH i2c: E2 08 00 0D 03 80 09 00 00 00 00 00 00 82 [19:30:07]Write i2c OK [19:30:07]MH_I2C_Read... [19:30:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:30:07]Read from MH i2c: E2 [19:30:07]MH_I2C_Read... [19:30:07]Read from MH i2c: E2 03 00 [19:30:07]MH_I2C_Read... [19:30:07]Read from MH i2c: E2 03 00 0D 03 00 90 00 84 [19:30:07]RAPDU: 90 00 [19:30:07]wFMCommunicate OK [19:30:07]SAM_PROTO_ClearQueue done [19:30:07]KKMCreateOFDPacket [19:30:07]OFDProtocolAddRootSTLVToBuf [19:30:07]FM_MakeSignedData [19:30:07]FM_MakeSignedData [19:30:07]SAM_PROTO_SignData [19:30:07]wFMCommunicate request_size=4 [19:30:07]MH_SAM_APDU [19:30:07]CAPDU: 80 0D 01 02 [19:30:07]Write to MH i2c: E2 08 00 0E 03 80 0D 01 02 00 00 00 00 8A [19:30:07]Write i2c OK [19:30:07]MH_I2C_Read... [19:30:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:30:07]Read from MH i2c: E2 [19:30:07]MH_I2C_Read... [19:30:07]Read from MH i2c: E2 03 00 [19:30:07]MH_I2C_Read... [19:30:07]Read from MH i2c: E2 03 00 0E 03 00 90 00 85 [19:30:07]RAPDU: 90 00 [19:30:07]wFMCommunicate OK [19:30:07]wFMCommunicate request_size=255 [19:30:07]MH_SAM_APDU [19:30:07]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 BD ED A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 [19:30:08]Write to MH i2c: E2 02 01 0F 03 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 BD ED A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 00 00 C9 [19:30:08]OFD Sender: Processing packet 41937 [packets to send 68, broken 56] [19:30:08]ProducePacketName [19:30:08]name=ofd_packets/00041937 [19:30:08]OFD Sender: To server: pG, [19:30:08]CommunicateWithHost lk.salyk.kg:30040 [19:30:08]ConnectInit lk.salyk.kg [19:30:08]Write i2c OK [19:30:08]MH_I2C_Read... [19:30:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:30:08]Read from MH i2c: E2 [19:30:08]MH_I2C_Read... [19:30:08]Read from MH i2c: E2 03 00 [19:30:08]MH_I2C_Read... [19:30:08]Read from MH i2c: E2 03 00 0F 03 00 90 00 86 [19:30:08]RAPDU: 90 00 [19:30:08]wFMCommunicate OK [19:30:08]wFMCommunicate request_size=35 [19:30:08]MH_SAM_APDU [19:30:08]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 DD A3 00 00 35 04 06 00 E2 73 FB 94 BE 7B [19:30:08]Write to MH i2c: E2 26 00 10 03 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 DD A3 00 00 35 04 06 00 E2 73 FB 94 BE 7B 00 00 26 [19:30:08]Write i2c OK [19:30:08]MH_I2C_Read... [19:30:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:30:08]Read from MH i2c: E2 [19:30:08]MH_I2C_Read... [19:30:08]Read from MH i2c: E2 03 00 [19:30:08]MH_I2C_Read... [19:30:09]Read from MH i2c: E2 03 00 10 03 00 90 00 87 [19:30:09]RAPDU: 90 00 [19:30:09]wFMCommunicate OK [19:30:09]wFMCommunicate request_size=4 [19:30:09]MH_SAM_APDU [19:30:09]CAPDU: 80 0D 03 02 [19:30:09]Write to MH i2c: E2 08 00 11 03 80 0D 03 02 00 00 00 00 8F [19:30:09]Write i2c OK [19:30:09]MH_I2C_Read... [19:30:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:30:09]Read from MH i2c: E2 [19:30:09]MH_I2C_Read... [19:30:09]Read from MH i2c: E2 0B 00 [19:30:09]MH_I2C_Read... [19:30:09]Read from MH i2c: E2 0B 00 11 03 00 F3 14 A7 53 49 E9 F0 C5 90 00 78 [19:30:09]RAPDU: F3 14 A7 53 49 E9 F0 C5 90 00 [19:30:09]wFMCommunicate OK [19:30:09]SAM_PROTO_SignData done [19:30:09]FM_MakeSignedData done [19:30:09]CreateOFDProtocolMessage [19:30:09]wFMCommunicate request_size=4 [19:30:09]MH_SAM_APDU [19:30:09]CAPDU: 80 11 00 00 [19:30:09]Write to MH i2c: E2 08 00 12 03 80 11 00 00 00 00 00 00 8F [19:30:09]Write i2c OK [19:30:09]MH_I2C_Read... [19:30:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:30:09]Read from MH i2c: E2 [19:30:09]MH_I2C_Read... [19:30:09]Read from MH i2c: E2 17 00 [19:30:09]MH_I2C_Read... [19:30:09]Read from MH i2c: E2 17 00 12 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 EB [19:30:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [19:30:09]wFMCommunicate OK [19:30:09]CreateOFDProtocolMessage done [19:30:09]OFDSenderStorePacket 41949 [19:30:09]StoreOFDPacket docnum=41949 [19:30:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 28 01 00 00 E1 F9 20 01 AF 4B 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 BD ED A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 DD A3 00 00 35 04 06 00 E2 73 FB 94 BE 7B F3 14 A7 53 49 E9 F0 C5 [19:30:09]CheckFolder [19:30:09]dirname=/storage/ofd_packets [19:30:09]CheckFolder done [19:30:09]ProducePacketName [19:30:09]name=ofd_packets/00041949 [19:30:09]NVStorageSaveData ofd_packets/00041949 [19:30:09]File name is /storage/ofd_packets/00041949 [19:30:09]Write 326 bytes [19:30:09]NVStorageSaveData done [19:30:09]OFDSenderStorePacket done [19:30:09]KKMCreateOFDPacket done [19:30:09]NVStorageSaveData kkm_last_timestamp [19:30:09]File name is /storage/kkm_last_timestamp [19:30:09]Write 4 bytes [19:30:09]NVStorageSaveData done [19:30:09]ExternCall_PrintAddStr [19:30:09]wPrintStart [19:30:09]Write to MH i2c: 01 00 00 13 03 16 [19:30:09]Write i2c OK [19:30:09]MH_I2C_Read... [19:30:09]Read from MH i2c: 01 [19:30:09]MH_I2C_Read... [19:30:09]Read from MH i2c: 01 07 00 [19:30:09]MH_I2C_Read... [19:30:09]Read from MH i2c: 01 07 00 13 03 00 00 00 00 00 FF 0F 2B [19:30:09]RasterBufferAndPrint [19:30:09]line Счет N : (3)183978 [19:30:09]line ИНН: 02508201610067 [19:30:09]line Контрольно-Кассовый Чек [19:30:09]line ПРОДАЖА [19:30:09]line Товар: 48742245 [19:30:09]line Сигареты Parliament Silver Blue [19:30:09]line 1.000 * 151.00 [19:30:09]line = 151.00 [19:30:09]line НДС 12% НСП 1% [19:30:09]line > о реализуемом товаре [19:30:09]line ИТОГО: 151.00 [19:30:09]line НСП 1% : 1.34 [19:30:09]line НДС 12% : 16.03 [19:30:09]line Наличными: 151.00 [19:30:09]line Безнал.: 0.00 [19:30:09]line Место: АЗС № 97 "Партнер Нефть" [19:30:09]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [19:30:09]line СНО: Общий режим [19:30:09]line Чек 138 29.07.2024 19:30 [19:30:09]line Смена: 427 ФФД: 1.0 [19:30:09]line ЗНМ: 0300000053 [19:30:09]line РНМ: 0000000000092626 [19:30:09]line Версия ККМ: 001 [19:30:09]line ФМ: 0000000000874958 [19:30:09]line ФД: 41949 [19:30:09]line ФПД: 248987769945723 [19:30:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T193005&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41949&fm=248987769945723&tin=02508201610067®Number=0000000000092626&sum=15100 [19:30:09]line 0 [19:30:09]written 0, free lines is 4095 [19:30:09]Write to MH i2c: 01 00 00 3C 03 3F [19:30:09]Write i2c OK [19:30:09]MH_I2C_Read... [19:30:09]Read from MH i2c: 01 [19:30:09]MH_I2C_Read... [19:30:09]Read from MH i2c: 01 07 00 [19:30:09]MH_I2C_Read... [19:30:09]Read from MH i2c: 01 07 00 3C 03 00 00 00 00 00 0F 0D 62 [19:30:09]RasterBufferAndPrint [19:30:09]line [19:30:09]line [19:30:09]line [19:30:09]line [19:30:09]line [19:30:09]written 0, free lines is 3426 [19:30:09]MH_Cut [19:30:09]Write to MH i2c: D1 01 00 43 03 01 18 [19:30:10]Write i2c OK [19:30:10]MH_I2C_Read... [19:30:10]Read from MH i2c: D1 [19:30:10]MH_I2C_Read... [19:30:10]Read from MH i2c: D1 01 00 [19:30:10]MH_I2C_Read... [19:30:10]Read from MH i2c: D1 01 00 43 03 00 17 [19:30:10]Write to MH i2c: 01 00 00 44 03 47 [19:30:10]Write i2c OK [19:30:10]MH_I2C_Read... [19:30:10]*** Cut start [19:30:10]*** Partial cut [19:30:10]*** CUTSNS_PIN = 1 [19:30:10]*** CUTSNS_PIN = 0 [19:30:11]*** Brake cut motor [19:30:11]Read from MH i2c: 01 [19:30:11]MH_I2C_Read... [19:30:11]*** Stop cut motor [19:30:11]*** Cut end [19:30:11]Read from MH i2c: 01 07 00 [19:30:11]MH_I2C_Read... [19:30:11]Read from MH i2c: 01 07 00 44 03 00 00 00 00 00 FF 0F 5C [19:30:11]process_action close_receipt done [19:30:11]requested_data is exist [19:30:11]produce_requested_data [19:30:11]requested_item fm.sn is exist - process it [19:30:11]wFMCommunicate request_size=4 [19:30:11]MH_SAM_APDU [19:30:11]CAPDU: 80 11 00 00 [19:30:11]Write to MH i2c: E2 08 00 45 03 80 11 00 00 00 00 00 00 C2 [19:30:11]Write i2c OK [19:30:11]MH_I2C_Read... [19:30:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:30:11]Read from MH i2c: E2 [19:30:11]MH_I2C_Read... [19:30:11]Read from MH i2c: E2 17 00 [19:30:11]MH_I2C_Read... [19:30:11]Read from MH i2c: E2 17 00 45 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 1E [19:30:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [19:30:11]wFMCommunicate OK [19:30:11]requested_item fd.num is exist - process it [19:30:11]SAM_PROTO_GetFieldsCounters [19:30:11]wFMCommunicate request_size=4 [19:30:11]MH_SAM_APDU [19:30:11]CAPDU: 80 13 00 00 [19:30:11]Write to MH i2c: E2 08 00 46 03 80 13 00 00 00 00 00 00 C5 [19:30:11]Write i2c OK [19:30:11]MH_I2C_Read... [19:30:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:30:11]Read from MH i2c: E2 [19:30:11]MH_I2C_Read... [19:30:11]Read from MH i2c: E2 62 00 [19:30:11]MH_I2C_Read... [19:30:11]Read from MH i2c: E2 62 00 46 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 DD A3 00 00 0E 04 04 00 AB 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 B9 [19:30: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 DD A3 00 00 0E 04 04 00 AB 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 [19:30:12]wFMCommunicate OK [19:30:12]SAM_PROTO_GetFieldsCounters done [19:30:12]requested_item shift.num is exist - process it [19:30:12]requested_item shift.opened is exist - process it [19:30:12]req_shift_opened [19:30:12]FM_GetShiftState [19:30:12]SAM_PROTO_GetShiftState [19:30:12]wFMCommunicate request_size=4 [19:30:12]MH_SAM_APDU [19:30:12]CAPDU: 80 13 01 00 [19:30:12]Write to MH i2c: E2 08 00 47 03 80 13 01 00 00 00 00 00 C7 [19:30:12]Write i2c OK [19:30:12]MH_I2C_Read... [19:30:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:30:12]Read from MH i2c: E2 [19:30:12]MH_I2C_Read... [19:30:12]Read from MH i2c: E2 0E 00 [19:30:12]MH_I2C_Read... [19:30:12]Read from MH i2c: E2 0E 00 47 03 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 63 [19:30:12]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [19:30:12]wFMCommunicate OK [19:30:12]SAM_PROTO_GetShiftState done [19:30:12]FM_GetShiftState done [19:30:12]req_shift_opened done [19:30:12]requested_item shift.open_date is exist - process it [19:30:12]req_shift_open_date [19:30:12]req_shift_open_date done [19:30:12]produce_requested_data done [19:30:12]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41949,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [19:30:12]process_action_free close_receipt [19:30:12]json_value_free [19:30:12]json_value_free done [19:30:12]process_json_proto returns [19:30:12]Send response to host [19:30:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41949,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [19:30:12]free response buf [19:30:12]execute_script done [19:30:12]execute_script returns [19:30:12]free content buf [19:30:12]Sock 8.Close socket [19:30:12]Sock 8.Thread stoped [19:30:13]ConnectInit Can't take IP for lk.salyk.kg [19:30:13]CommunicateWithHost connect error [19:30:13]CommunicateWithHost err = -1 [19:30:13]OFD Sender: Server communicate error [19:30:13]OFD Sender: Processing packet 41937 [packets to send 69, broken 56] [19:30:13]ProducePacketName [19:30:13]name=ofd_packets/00041937 [19:30:13]OFD Sender: To server: pG, [19:30:13]CommunicateWithHost lk.salyk.kg:30040 [19:30:13]ConnectInit lk.salyk.kg [19:30:18]ConnectInit Can't take IP for lk.salyk.kg [19:30:18]CommunicateWithHost connect error [19:30:18]CommunicateWithHost err = -1 [19:30:18]OFD Sender: Server communicate error [19:30:23]OFD Sender: Processing packet 41937 [packets to send 69, broken 56] [19:30:23]ProducePacketName [19:30:23]name=ofd_packets/00041937 [19:30:23]OFD Sender: To server: pG, [19:30:23]CommunicateWithHost lk.salyk.kg:30040 [19:30:23]ConnectInit lk.salyk.kg [19:30:28]ConnectInit Can't take IP for lk.salyk.kg [19:30:28]CommunicateWithHost connect error [19:30:28]CommunicateWithHost err = -1 [19:30:28]OFD Sender: Server communicate error [19:30:33]OFD Sender: Processing packet 41937 [packets to send 69, broken 56] [19:30:33]ProducePacketName [19:30:33]name=ofd_packets/00041937 [19:30:33]OFD Sender: To server: pG, [19:30:33]CommunicateWithHost lk.salyk.kg:30040 [19:30:33]ConnectInit lk.salyk.kg [19:30:36]Connected sock=8 [19:30: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 35 38 21 01 00 00 CB 2F 19 01 A3 17 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD recv_with_timeout no data received [19:30:37]D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 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 7E 00 00 00 F4 03 04 00 8F E1 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 D1 A3 00 00 35 04 06 00 25 CB 9C C0 62 6A 31 89 11 CB FF 83 91 3A [19:30: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 35 38 4F 00 00 00 DF 7C 47 00 28 EA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 D1 A3 00 00 F4 03 04 00 F3 99 A7 66 B6 04 01 00 00 F0 F3 D5 CD 0D 3F F7 BB [19:30:41]CommunicateWithHost err = 0 [19:30:41]CheckOFDResponse [19:30:41]1017 (14) - 77093643461234 [19:30:41]1041 (16) - 0000000000874958 [19:30:41]1040 (4) - 41937 [19:30:41]1012 (4) - 29.07.2024 13:32 [19:30:41]1206 (1) - 0 [19:30:41]OFD Sender: Remove packet 41937 [19:30:41]ProducePacketName [19:30:41]name=ofd_packets/00041937 [19:30:41]NVStorageDeleteData [19:30:41]OFD Sender: Processing packet 41938 [packets to send 68, broken 56] [19:30:41]ProducePacketName [19:30:41]name=ofd_packets/00041938 [19:30:41]OFD Sender: To server: pG, [19:30:41]CommunicateWithHost lk.salyk.kg:30040 [19:30:41]ConnectInit lk.salyk.kg [19:30:48]recv_with_timeout no data received [19:31:09]recv_with_timeout no data received [19:31:22]recv_with_timeout no data received [19:31:35]recv_with_timeout no data received [19:32:07]recv_with_timeout no data received [19:32:55]ConnectInit Can't connect to host [19:32:55]CommunicateWithHost connect error [19:32:55]CommunicateWithHost err = -1 [19:32:55]OFD Sender: Server communicate error [19:33:00]OFD Sender: Processing packet 41938 [packets to send 68, broken 56] [19:33:00]ProducePacketName [19:33:00]name=ofd_packets/00041938 [19:33:00]OFD Sender: To server: pG, [19:33:00]CommunicateWithHost lk.salyk.kg:30040 [19:33:00]ConnectInit lk.salyk.kg [19:33:05]ConnectInit Can't take IP for lk.salyk.kg [19:33:05]CommunicateWithHost connect error [19:33:05]CommunicateWithHost err = -1 [19:33:05]OFD Sender: Server communicate error [19:33:10]recv_with_timeout no data received [19:33:10]OFD Sender: Processing packet 41938 [packets to send 68, broken 56] [19:33:10]ProducePacketName [19:33:10]name=ofd_packets/00041938 [19:33:10]OFD Sender: To server: pG, [19:33:10]CommunicateWithHost lk.salyk.kg:30040 [19:33:10]ConnectInit lk.salyk.kg [19:33:15]ConnectInit Can't take IP for lk.salyk.kg [19:33:15]CommunicateWithHost connect error [19:33:15]CommunicateWithHost err = -1 [19:33:15]OFD Sender: Server communicate error [19:33:20]OFD Sender: Processing packet 41938 [packets to send 68, broken 56] [19:33:20]ProducePacketName [19:33:20]name=ofd_packets/00041938 [19:33:20]OFD Sender: To server: pG, [19:33:20]CommunicateWithHost lk.salyk.kg:30040 [19:33:20]ConnectInit lk.salyk.kg [19:33:24]recv_with_timeout no data received [19:33:25]ConnectInit Can't take IP for lk.salyk.kg [19:33:25]CommunicateWithHost connect error [19:33:25]CommunicateWithHost err = -1 [19:33:25]OFD Sender: Server communicate error [19:33:30]OFD Sender: Processing packet 41938 [packets to send 68, broken 56] [19:33:30]ProducePacketName [19:33:30]name=ofd_packets/00041938 [19:33:30]OFD Sender: To server: pG, [19:33:30]CommunicateWithHost lk.salyk.kg:30040 [19:33:30]ConnectInit lk.salyk.kg [19:33:35]ConnectInit Can't take IP for lk.salyk.kg [19:33:35]CommunicateWithHost connect error [19:33:35]CommunicateWithHost err = -1 [19:33:35]OFD Sender: Server communicate error [19:33:40]OFD Sender: Processing packet 41938 [packets to send 68, broken 56] [19:33:40]ProducePacketName [19:33:40]name=ofd_packets/00041938 [19:33:40]OFD Sender: To server: pG, [19:33:40]CommunicateWithHost lk.salyk.kg:30040 [19:33:40]ConnectInit lk.salyk.kg [19:33:47]recv_with_timeout no data received [19:33:53]Connected sock=10 [19:33: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 35 38 F6 01 00 00 BF 97 EE 01 5E 0B 5A 03 01 00 03 00 E2 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 A0 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 A1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 11 00 00 00 00 07 04 06 00 B8 A1 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 E4 E2 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 D2 A3 00 00 35 04 06 00 6E 37 66 18 59 6D 88 BE 22 47 26 58 B6 19 [19:33: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 35 38 4F 00 00 00 DE 36 47 00 6E A3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 D2 A3 00 00 F4 03 04 00 B6 9A A7 66 B6 04 01 00 00 C9 89 68 C1 4D 37 DF EB [19:33:55]CommunicateWithHost err = 0 [19:33:55]CheckOFDResponse [19:33:55]1017 (14) - 77093643461234 [19:33:55]1041 (16) - 0000000000874958 [19:33:55]1040 (4) - 41938 [19:33:55]1012 (4) - 29.07.2024 13:35 [19:33:55]1206 (1) - 0 [19:33:55]OFD Sender: Remove packet 41938 [19:33:55]ProducePacketName [19:33:55]name=ofd_packets/00041938 [19:33:55]NVStorageDeleteData [19:33:55]OFD Sender: Processing packet 41939 [packets to send 67, broken 56] [19:33:55]ProducePacketName [19:33:55]name=ofd_packets/00041939 [19:33:55]OFD Sender: To server: pG, [19:33:55]CommunicateWithHost lk.salyk.kg:30040 [19:33:55]ConnectInit lk.salyk.kg [19:33:59]recv_with_timeout no data received [19:34:00]ConnectInit Can't take IP for lk.salyk.kg [19:34:00]CommunicateWithHost connect error [19:34:00]CommunicateWithHost err = -1 [19:34:00]OFD Sender: Server communicate error [19:34:05]OFD Sender: Processing packet 41939 [packets to send 67, broken 56] [19:34:05]ProducePacketName [19:34:05]name=ofd_packets/00041939 [19:34:05]OFD Sender: To server: pG, [19:34:05]CommunicateWithHost lk.salyk.kg:30040 [19:34:05]ConnectInit lk.salyk.kg [19:34:11]recv_with_timeout no data received [19:34:13]Connected sock=10 [19:34:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 21 01 00 00 0E EF 19 01 8D 8D 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 6A ED A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 D3 A3 00 00 35 04 06 00 F3 7D DF C0 17 7F 92 1F 3A 60 52 24 21 50 [19:34: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 35 38 4F 00 00 00 A3 FC 47 00 95 EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 D3 A3 00 00 F4 03 04 00 CA 9A A7 66 B6 04 01 00 00 D7 94 21 68 AE 46 BF 69 [19:34:15]CommunicateWithHost err = 0 [19:34:15]CheckOFDResponse [19:34:15]1017 (14) - 77093643461234 [19:34:15]1041 (16) - 0000000000874958 [19:34:15]1040 (4) - 41939 [19:34:15]1012 (4) - 29.07.2024 13:36 [19:34:15]1206 (1) - 0 [19:34:15]OFD Sender: Remove packet 41939 [19:34:15]ProducePacketName [19:34:15]name=ofd_packets/00041939 [19:34:15]NVStorageDeleteData [19:34:15]OFD Sender: Processing packet 41940 [packets to send 66, broken 56] [19:34:15]ProducePacketName [19:34:15]name=ofd_packets/00041940 [19:34:15]OFD Sender: To server: pG, [19:34:15]CommunicateWithHost lk.salyk.kg:30040 [19:34:15]ConnectInit lk.salyk.kg [19:34:17]Connected sock=8 [19: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 35 38 24 01 00 00 3A E7 1C 01 06 CD 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 70 ED A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 D4 A3 00 00 35 04 06 00 53 94 75 86 4A F4 63 7A F0 B3 4C EB B2 8E [19:34: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 35 38 4F 00 00 00 90 24 47 00 8C 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 35 38 10 04 04 00 D4 A3 00 00 F4 03 04 00 D0 9A A7 66 B6 04 01 00 00 24 96 B3 94 C8 11 ED AE [19:34:22]CommunicateWithHost err = 0 [19:34:22]CheckOFDResponse [19:34:22]1017 (14) - 77093643461234 [19:34:22]1041 (16) - 0000000000874958 [19:34:22]1040 (4) - 41940 [19:34:22]1012 (4) - 29.07.2024 13:36 [19:34:22]1206 (1) - 0 [19:34:22]OFD Sender: Remove packet 41940 [19:34:22]ProducePacketName [19:34:22]name=ofd_packets/00041940 [19:34:22]NVStorageDeleteData [19:34:22]recv_with_timeout no data received [19:34:22]OFD Sender: Processing packet 41941 [packets to send 65, broken 56] [19:34:22]ProducePacketName [19:34:22]name=ofd_packets/00041941 [19:34:22]OFD Sender: To server: pG, [19:34:22]CommunicateWithHost lk.salyk.kg:30040 [19:34:22]ConnectInit lk.salyk.kg [19:34:25]Connected sock=8 [19:34: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 35 38 99 01 00 00 BE 14 91 01 DE 3C 5A 03 01 00 03 00 85 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 65 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 76 ED A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 D5 A3 00 00 35 04 06 00 C7 4D CF 5F 34 0C F7 3E 32 F8 F6 D6 A9 F1 [19:34: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 35 38 4F 00 00 00 1A 2A 47 00 E3 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 35 38 10 04 04 00 D5 A3 00 00 F4 03 04 00 D6 9A A7 66 B6 04 01 00 00 F5 8A 3E 24 CF D1 15 39 [19:34:27]CommunicateWithHost err = 0 [19:34:27]CheckOFDResponse [19:34:27]1017 (14) - 77093643461234 [19:34:27]1041 (16) - 0000000000874958 [19:34:27]1040 (4) - 41941 [19:34:27]1012 (4) - 29.07.2024 13:36 [19:34:27]1206 (1) - 0 [19:34:27]OFD Sender: Remove packet 41941 [19:34:27]ProducePacketName [19:34:27]name=ofd_packets/00041941 [19:34:27]NVStorageDeleteData [19:34:28]OFD Sender: Processing packet 41942 [packets to send 64, broken 56] [19:34:28]ProducePacketName [19:34:28]name=ofd_packets/00041942 [19:34:28]OFD Sender: To server: pG, [19:34:28]CommunicateWithHost lk.salyk.kg:30040 [19:34:28]ConnectInit lk.salyk.kg [19:34:32]recv_with_timeout no data received [19:34:33]ConnectInit Can't take IP for lk.salyk.kg [19:34:33]CommunicateWithHost connect error [19:34:33]CommunicateWithHost err = -1 [19:34:33]OFD Sender: Server communicate error [19:34:38]OFD Sender: Processing packet 41942 [packets to send 64, broken 56] [19:34:38]ProducePacketName [19:34:38]name=ofd_packets/00041942 [19:34:38]OFD Sender: To server: pG, [19:34:38]CommunicateWithHost lk.salyk.kg:30040 [19:34:38]ConnectInit lk.salyk.kg [19:34:43]ConnectInit Can't take IP for lk.salyk.kg [19:34:43]CommunicateWithHost connect error [19:34:43]CommunicateWithHost err = -1 [19:34:43]OFD Sender: Server communicate error [19:34:48]OFD Sender: Processing packet 41942 [packets to send 64, broken 56] [19:34:48]ProducePacketName [19:34:48]name=ofd_packets/00041942 [19:34:48]OFD Sender: To server: pG, [19:34:48]CommunicateWithHost lk.salyk.kg:30040 [19:34:48]ConnectInit lk.salyk.kg [19:34:53]ConnectInit Can't take IP for lk.salyk.kg [19:34:53]CommunicateWithHost connect error [19:34:53]CommunicateWithHost err = -1 [19:34:53]OFD Sender: Server communicate error [19:34:58]OFD Sender: Processing packet 41942 [packets to send 64, broken 56] [19:34:58]ProducePacketName [19:34:58]name=ofd_packets/00041942 [19:34:58]OFD Sender: To server: pG, [19:34:58]CommunicateWithHost lk.salyk.kg:30040 [19:34:58]ConnectInit lk.salyk.kg [19:35:03]ConnectInit Can't take IP for lk.salyk.kg [19:35:03]CommunicateWithHost connect error [19:35:03]CommunicateWithHost err = -1 [19:35:03]OFD Sender: Server communicate error [19:35:04]recv_with_timeout no data received [19:35:08]OFD Sender: Processing packet 41942 [packets to send 64, broken 56] [19:35:08]ProducePacketName [19:35:08]name=ofd_packets/00041942 [19:35:08]OFD Sender: To server: pG, [19:35:08]CommunicateWithHost lk.salyk.kg:30040 [19:35:08]ConnectInit lk.salyk.kg [19:35:15]recv_with_timeout no data received [19:35:28]recv_with_timeout no data received [19:36:02]recv_with_timeout no data received [19:36:16]recv_with_timeout no data received [19:36:30]recv_with_timeout no data received [19:37:21]ConnectInit Can't connect to host [19:37:21]CommunicateWithHost connect error [19:37:21]CommunicateWithHost err = -1 [19:37:21]OFD Sender: Server communicate error [19:37:26]OFD Sender: Processing packet 41942 [packets to send 64, broken 56] [19:37:26]ProducePacketName [19:37:26]name=ofd_packets/00041942 [19:37:26]OFD Sender: To server: pG, [19:37:26]CommunicateWithHost lk.salyk.kg:30040 [19:37:26]ConnectInit lk.salyk.kg [19:37:29]Connected sock=8 [19:37: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 35 38 39 01 00 00 F3 7B 31 01 9F 6F 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 36 31 37 32 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 27 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 7D ED A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 D6 A3 00 00 35 04 06 00 6C 0A 30 73 A9 A5 72 06 C1 35 E2 70 89 6E [19:37:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 4F 00 00 00 22 D8 47 00 BD B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 D6 A3 00 00 F4 03 04 00 8D 9B A7 66 B6 04 01 00 00 64 9F 7C BA A2 13 58 73 [19:37:30]CommunicateWithHost err = 0 [19:37:30]CheckOFDResponse [19:37:30]1017 (14) - 77093643461234 [19:37:30]1041 (16) - 0000000000874958 [19:37:30]1040 (4) - 41942 [19:37:30]1012 (4) - 29.07.2024 13:39 [19:37:30]1206 (1) - 0 [19:37:30]OFD Sender: Remove packet 41942 [19:37:30]ProducePacketName [19:37:30]name=ofd_packets/00041942 [19:37:30]NVStorageDeleteData [19:37:30]OFD Sender: Processing packet 41943 [packets to send 63, broken 56] [19:37:30]ProducePacketName [19:37:30]name=ofd_packets/00041943 [19:37:30]OFD Sender: To server: pG, [19:37:30]CommunicateWithHost lk.salyk.kg:30040 [19:37:30]ConnectInit lk.salyk.kg [19:37:34]Connected sock=10 [19:37:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 28 01 00 00 A7 0D 20 01 1D 30 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 35 34 34 39 32 35 30 39 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 28 23 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 83 ED A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 D7 A3 00 00 35 04 06 00 07 F9 A3 2C EC 23 D3 31 69 9D BF 60 99 C5 [19:37: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 35 38 4F 00 00 00 3F 77 47 00 5A B6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 D7 A3 00 00 F4 03 04 00 92 9B A7 66 B6 04 01 00 00 0D 4B 73 DF 3C E8 F1 2B [19:37:34]CommunicateWithHost err = 0 [19:37:34]CheckOFDResponse [19:37:34]1017 (14) - 77093643461234 [19:37:34]1041 (16) - 0000000000874958 [19:37:34]1040 (4) - 41943 [19:37:34]1012 (4) - 29.07.2024 13:39 [19:37:34]1206 (1) - 0 [19:37:34]OFD Sender: Remove packet 41943 [19:37:34]ProducePacketName [19:37:34]name=ofd_packets/00041943 [19:37:34]NVStorageDeleteData [19:37:35]OFD Sender: Processing packet 41944 [packets to send 62, broken 56] [19:37:35]ProducePacketName [19:37:35]name=ofd_packets/00041944 [19:37:35]OFD Sender: To server: pG, [19:37:35]CommunicateWithHost lk.salyk.kg:30040 [19:37:35]ConnectInit lk.salyk.kg [19:37:38]Connected sock=8 [19:37:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 30 01 00 00 4C A1 28 01 76 02 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 1A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 8A ED A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 D8 A3 00 00 35 04 06 00 4B 9C 1E 27 F2 C7 12 A1 6E 9B 8B 2C 9C 3B [19:37: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 35 38 4F 00 00 00 7F B3 47 00 B1 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 35 38 10 04 04 00 D8 A3 00 00 F4 03 04 00 96 9B A7 66 B6 04 01 00 00 70 5B 5A 9E BA 45 75 FA [19:37:39]CommunicateWithHost err = 0 [19:37:39]CheckOFDResponse [19:37:39]1017 (14) - 77093643461234 [19:37:39]1041 (16) - 0000000000874958 [19:37:39]1040 (4) - 41944 [19:37:39]1012 (4) - 29.07.2024 13:39 [19:37:39]1206 (1) - 0 [19:37:39]OFD Sender: Remove packet 41944 [19:37:39]ProducePacketName [19:37:39]name=ofd_packets/00041944 [19:37:39]NVStorageDeleteData [19:37:39]OFD Sender: Processing packet 41945 [packets to send 61, broken 56] [19:37:39]ProducePacketName [19:37:39]name=ofd_packets/00041945 [19:37:39]OFD Sender: To server: pG, [19:37:39]CommunicateWithHost lk.salyk.kg:30040 [19:37:39]ConnectInit lk.salyk.kg [19:37:42]Connected sock=8 [19:37:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 2E 01 00 00 8D 4B 26 01 34 1F 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 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 86 00 00 00 F4 03 04 00 91 ED A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 D9 A3 00 00 35 04 06 00 15 5F E6 81 A9 BB 43 C1 CC 29 B0 D5 91 19 [19:37: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 35 38 4F 00 00 00 1B C5 47 00 F2 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 35 38 10 04 04 00 D9 A3 00 00 F4 03 04 00 9A 9B A7 66 B6 04 01 00 00 A9 64 80 B9 FD 59 F3 C5 [19:37:43]CommunicateWithHost err = 0 [19:37:43]CheckOFDResponse [19:37:43]1017 (14) - 77093643461234 [19:37:43]1041 (16) - 0000000000874958 [19:37:43]1040 (4) - 41945 [19:37:43]1012 (4) - 29.07.2024 13:39 [19:37:43]1206 (1) - 0 [19:37:43]OFD Sender: Remove packet 41945 [19:37:43]ProducePacketName [19:37:43]name=ofd_packets/00041945 [19:37:43]NVStorageDeleteData [19:37:44]OFD Sender: Processing packet 41946 [packets to send 60, broken 56] [19:37:44]ProducePacketName [19:37:44]name=ofd_packets/00041946 [19:37:44]OFD Sender: To server: pG, [19:37:44]CommunicateWithHost lk.salyk.kg:30040 [19:37:44]ConnectInit lk.salyk.kg [19:37:49]Connected sock=8 [19:37: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 35 38 26 01 00 00 5E B8 1E 01 CF 55 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 99 ED A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 DA A3 00 00 35 04 06 00 5D 4E 52 BB 52 91 AB 9E DF E3 4C 9C 1A 37 [19:37: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 35 38 4F 00 00 00 51 BC 47 00 82 FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 DA A3 00 00 F4 03 04 00 A1 9B A7 66 B6 04 01 00 00 0E BE 6E B9 1E 33 26 FB [19:37:50]CommunicateWithHost err = 0 [19:37:50]CheckOFDResponse [19:37:50]1017 (14) - 77093643461234 [19:37:50]1041 (16) - 0000000000874958 [19:37:50]1040 (4) - 41946 [19:37:50]1012 (4) - 29.07.2024 13:39 [19:37:50]1206 (1) - 0 [19:37:50]OFD Sender: Remove packet 41946 [19:37:50]ProducePacketName [19:37:50]name=ofd_packets/00041946 [19:37:50]NVStorageDeleteData [19:37:50]OFD Sender: Processing packet 41947 [packets to send 59, broken 56] [19:37:50]ProducePacketName [19:37:50]name=ofd_packets/00041947 [19:37:50]OFD Sender: To server: pG, [19:37:50]CommunicateWithHost lk.salyk.kg:30040 [19:37:50]ConnectInit lk.salyk.kg [19:37:53]Connected sock=8 [19:37:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 2C 01 00 00 46 4D 24 01 64 C6 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 30 30 30 31 34 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 AD D1 81 D0 BF D1 80 D0 B5 D1 81 D1 81 D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 A0 ED A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 DB A3 00 00 35 04 06 00 E5 E4 59 FE 65 53 6F A5 36 21 71 80 48 B3 [19:37: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 35 38 4F 00 00 00 64 9B 47 00 E0 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 35 38 10 04 04 00 DB A3 00 00 F4 03 04 00 A6 9B A7 66 B6 04 01 00 00 9D 4C C6 F3 46 54 82 64 [19:37:55]CommunicateWithHost err = 0 [19:37:55]CheckOFDResponse [19:37:55]1017 (14) - 77093643461234 [19:37:55]1041 (16) - 0000000000874958 [19:37:55]1040 (4) - 41947 [19:37:55]1012 (4) - 29.07.2024 13:39 [19:37:55]1206 (1) - 0 [19:37:55]OFD Sender: Remove packet 41947 [19:37:55]ProducePacketName [19:37:55]name=ofd_packets/00041947 [19:37:55]NVStorageDeleteData [19:37:56]OFD Sender: Processing packet 41948 [packets to send 58, broken 56] [19:37:56]ProducePacketName [19:37:56]name=ofd_packets/00041948 [19:37:56]OFD Sender: To server: pG, [19:37:56]CommunicateWithHost lk.salyk.kg:30040 [19:37:56]ConnectInit lk.salyk.kg [19:37:57]Connected sock=8 [19:37: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 35 38 38 01 00 00 D2 B6 30 01 D1 AA 5A 03 01 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 33 30 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 A8 ED A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 DC A3 00 00 35 04 06 00 9F 82 61 BC 0D 6F EE 17 16 EA 38 B0 74 1E [19:37: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 35 38 4F 00 00 00 91 76 47 00 FC 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 DC A3 00 00 F4 03 04 00 A8 9B A7 66 B6 04 01 00 00 61 A6 37 1F 1A 39 F0 83 [19:37:57]CommunicateWithHost err = 0 [19:37:57]CheckOFDResponse [19:37:57]1017 (14) - 77093643461234 [19:37:57]1041 (16) - 0000000000874958 [19:37:57]1040 (4) - 41948 [19:37:57]1012 (4) - 29.07.2024 13:39 [19:37:57]1206 (1) - 0 [19:37:57]OFD Sender: Remove packet 41948 [19:37:57]ProducePacketName [19:37:57]name=ofd_packets/00041948 [19:37:57]NVStorageDeleteData [19:37:58]OFD Sender: Processing packet 41949 [packets to send 57, broken 56] [19:37:58]ProducePacketName [19:37:58]name=ofd_packets/00041949 [19:37:58]OFD Sender: To server: pG, [19:37:58]CommunicateWithHost lk.salyk.kg:30040 [19:37:58]ConnectInit lk.salyk.kg [19:38:01]Connected sock=10 [19:38: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 35 38 28 01 00 00 E1 F9 20 01 AF 4B 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 BD ED A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 DD A3 00 00 35 04 06 00 E2 73 FB 94 BE 7B F3 14 A7 53 49 E9 F0 C5 [19:38:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 4F 00 00 00 73 68 47 00 52 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 35 38 10 04 04 00 DD A3 00 00 F4 03 04 00 AD 9B A7 66 B6 04 01 00 00 21 DA A9 03 C5 9A B9 02 [19:38:02]CommunicateWithHost err = 0 [19:38:02]CheckOFDResponse [19:38:02]1017 (14) - 77093643461234 [19:38:02]1041 (16) - 0000000000874958 [19:38:02]1040 (4) - 41949 [19:38:02]1012 (4) - 29.07.2024 13:39 [19:38:02]1206 (1) - 0 [19:38:02]OFD Sender: Remove packet 41949 [19:38:02]ProducePacketName [19:38:02]name=ofd_packets/00041949 [19:38:02]NVStorageDeleteData [19:38:02]OFD Sender: No OFD packet to send [19:38:07]OFD Sender: No OFD packet to send [19:38:12]OFD Sender: No OFD packet to send [19:38:17]OFD Sender: No OFD packet to send [19:38:22]OFD Sender: No OFD packet to send [19:38:27]OFD Sender: No OFD packet to send [19:38:32]OFD Sender: No OFD packet to send [19:38:37]OFD Sender: No OFD packet to send [19:38:42]OFD Sender: No OFD packet to send [19:38:47]OFD Sender: No OFD packet to send [19:38:52]OFD Sender: No OFD packet to send [19:38:57]OFD Sender: No OFD packet to send [19:39:02]OFD Sender: No OFD packet to send [19:39:07]OFD Sender: No OFD packet to send [19:39:12]OFD Sender: No OFD packet to send [19:39:17]OFD Sender: No OFD packet to send [19:39:22]OFD Sender: No OFD packet to send [19:39:27]OFD Sender: No OFD packet to send [19:39:32]OFD Sender: No OFD packet to send [19:39:37]OFD Sender: No OFD packet to send [19:39:52]OFD Sender: No OFD packet to send [19:39:57]recv_with_timeout no data received [19:39:57]OFD Sender: No OFD packet to send [19:40:02]OFD Sender: No OFD packet to send [19:40:07]OFD Sender: No OFD packet to send [19:40:12]OFD Sender: No OFD packet to send [19:40:17]OFD Sender: No OFD packet to send [19:40:22]OFD Sender: No OFD packet to send [19:40:23]recv_with_timeout no data received [19:40:27]OFD Sender: No OFD packet to send [19:40:32]OFD Sender: No OFD packet to send [19:40:37]OFD Sender: No OFD packet to send [19:40:42]OFD Sender: No OFD packet to send [19:40:47]OFD Sender: No OFD packet to send [19:40:52]OFD Sender: No OFD packet to send [19:40:57]OFD Sender: No OFD packet to send [19:41:02]OFD Sender: No OFD packet to send [19:41:07]OFD Sender: No OFD packet to send [19:41:12]OFD Sender: No OFD packet to send [19:41:17]OFD Sender: No OFD packet to send [19:41:22]OFD Sender: No OFD packet to send [19:41:27]OFD Sender: No OFD packet to send [19:41:32]OFD Sender: No OFD packet to send [19:41:37]OFD Sender: No OFD packet to send [19:41:42]recv_with_timeout no data received [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:54]recv_with_timeout no data received [19:41:57]OFD Sender: No OFD packet to send [19:42:02]OFD Sender: No OFD packet to send [19:42:07]OFD Sender: No OFD packet to send [19:42:12]OFD Sender: No OFD packet to send [19:42:17]OFD Sender: No OFD packet to send [19:42:22]OFD Sender: No OFD packet to send [19:42:27]OFD Sender: No OFD packet to send [19:42:32]OFD Sender: No OFD packet to send [19:42:37]OFD Sender: No OFD packet to send [19:42:42]OFD Sender: No OFD packet to send [19:42:47]OFD Sender: No OFD packet to send [19:42:52]OFD Sender: No OFD packet to send [19:42:57]OFD Sender: No OFD packet to send [19:43:02]OFD Sender: No OFD packet to send [19:43:07]OFD Sender: No OFD packet to send [19:43:12]OFD Sender: No OFD packet to send [19:43:17]OFD Sender: No OFD packet to send [19:43:22]OFD Sender: No OFD packet to send [19:43:27]OFD Sender: No OFD packet to send [19:43:32]OFD Sender: No OFD packet to send [19:43:37]OFD Sender: No OFD packet to send [19:43:42]OFD Sender: No OFD packet to send [19:43:47]OFD Sender: No OFD packet to send [19:43:52]OFD Sender: No OFD packet to send [19:43:57]OFD Sender: No OFD packet to send [19:44:02]OFD Sender: No OFD packet to send [19:44:07]OFD Sender: No OFD packet to send [19:44:12]OFD Sender: No OFD packet to send [19:44:17]OFD Sender: No OFD packet to send [19:44:22]OFD Sender: No OFD packet to send [19:44:23]recv_with_timeout no data received [19:44:27]OFD Sender: No OFD packet to send [19:44:32]OFD Sender: No OFD packet to send [19:44:37]OFD Sender: No OFD packet to send [19:44:41]recv_with_timeout no data received [19:44:42]OFD Sender: No OFD packet to send [19:45:02]OFD Sender: No OFD packet to send [19:45:07]OFD Sender: No OFD packet to send [19:45:10]recv_with_timeout no data received [19:45:12]OFD Sender: No OFD packet to send [19:45:17]OFD Sender: No OFD packet to send [19:45:22]OFD Sender: No OFD packet to send [19:45:27]OFD Sender: No OFD packet to send [19:45:32]OFD Sender: No OFD packet to send [19:45:37]OFD Sender: No OFD packet to send [19:45:41]recv_with_timeout no data received [19:45:42]OFD Sender: No OFD packet to send [19:45:47]OFD Sender: No OFD packet to send [19:45:51]recv_with_timeout no data received [19:45:52]OFD Sender: No OFD packet to send [19:45:57]OFD Sender: No OFD packet to send [19:46:02]OFD Sender: No OFD packet to send [19:46:07]OFD Sender: No OFD packet to send [19:46:12]OFD Sender: No OFD packet to send [19:46:17]OFD Sender: No OFD packet to send [19:46:23]OFD Sender: No OFD packet to send [19:46:28]OFD Sender: No OFD packet to send [19:46:33]OFD Sender: No OFD packet to send [19:46:38]OFD Sender: No OFD packet to send [19:46:43]OFD Sender: No OFD packet to send [19:46:48]OFD Sender: No OFD packet to send [19:46:53]OFD Sender: No OFD packet to send [19:46:58]OFD Sender: No OFD packet to send [19:47:03]OFD Sender: No OFD packet to send [19:47:08]OFD Sender: No OFD packet to send [19:47:13]OFD Sender: No OFD packet to send [19:47:18]OFD Sender: No OFD packet to send [19:47:23]OFD Sender: No OFD packet to send [19:47:28]OFD Sender: No OFD packet to send [19:47:33]OFD Sender: No OFD packet to send [19:47:38]OFD Sender: No OFD packet to send [19:47:43]OFD Sender: No OFD packet to send [19:47:48]OFD Sender: No OFD packet to send [19:47:48]accept exits with 9 [19:47:48]New connection [19:47:48]New thread 3066854756 created [19:47:48]Thread 3066998116 joined [19:47:48]Waiting for new connection... [19:47:48] Sock 9.Parse request [19:47:48]Sock 9.Check first char [19:47:48]Sock 9.First char is OK [19:47:48]request: POST /json_proto HTTP/1.0 [19:47:48]Method: POST [19:47:48]URL: /json_proto [19:47:48]Method is POST - this is cgi request [19:47:48]url: /json_proto [19:47:48]query_string will be loaded in cgi processing [19:47:48]execute_cgi json_proto POST (null) [19:47:48]execute_cgi path=json_proto method=POST [19:47:48]POST find Content-Length [19:47:48]Host: 172.17.43.132:8080 [19:47:48]Content-Length: 709 [19:47:48]Content-Type: application/json [19:47:48] [19:47:48]POST finish read [19:47:48]Found Content-Length = 709 [19:47:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183979", "tax_sys" : 0, "items" : [ { "code": "4700000480302", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043C\u0430\u043D\u0433\u043E-\u043A\u043B\u0443\u0431 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:47:48]execute_script... [19:47:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183979", "tax_sys" : 0, "items" : [ { "code": "4700000480302", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043C\u0430\u043D\u0433\u043E-\u043A\u043B\u0443\u0431 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:47:48]POST & json_proto [19:47:48]process_json_proto [19:47:48]json parsed OK: [19:47:48]protocol is kg_v1.0 [19:47:48]action value=close_receipt [19:47:48]process_action close_receipt [19:47:48]cmd_close_receipt [19:47:48]MH_GetDate [19:47:48]Write to MH i2c: F0 00 00 48 03 3A [19:47:48]Write i2c OK [19:47:48]MH_I2C_Read... [19:47:48]Read from MH i2c: F0 [19:47:48]MH_I2C_Read... [19:47:48]Read from MH i2c: F0 09 00 [19:47:48]MH_I2C_Read... [19:47:48]Read from MH i2c: F0 09 00 48 03 00 E4 F1 A7 66 64 A3 A7 66 39 [19:47:48]GetLastDocTimeStamp 1722281405 [19:47:48]current date 1722282468 [19:47:48]FM_GetShiftState [19:47:48]SAM_PROTO_GetShiftState [19:47:48]wFMCommunicate request_size=4 [19:47:48]MH_SAM_APDU [19:47:48]CAPDU: 80 13 01 00 [19:47:48]Write to MH i2c: E2 08 00 49 03 80 13 01 00 00 00 00 00 C9 [19:47:48]Write i2c OK [19:47:48]MH_I2C_Read... [19:47:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:47:48]Read from MH i2c: E2 [19:47:48]MH_I2C_Read... [19:47:48]Read from MH i2c: E2 0E 00 [19:47:48]MH_I2C_Read... [19:47:48]Read from MH i2c: E2 0E 00 49 03 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 65 [19:47:48]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [19:47:48]wFMCommunicate OK [19:47:48]SAM_PROTO_GetShiftState done [19:47:48]FM_GetShiftState done [19:47:48]opened in 1722211496 [19:47:48]opened+sec_in_day 1722297896 [19:47:48]quantity*price = 9500 [19:47:48]sum+1 = 9501 [19:47:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 139 29.07.2024 19:47 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41950 ФПД: 63404407898768 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T194749&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41950&fm=63404407898768&tin=02508201610067®Number=0000000000092626&sum=9500 0 [19:47:49]StoreToDocumentArchive [19:47:49]shift 427 fd 41950 [19:47:49]save to /storage/0427/doc_00041950 [19:47:49]save last doc name /storage/0427/doc_00041950 to /storage/kkm_last_doc_name [19:47:49]save OK [19:47:49]Clear old archive folders... [19:47:49]ProcessDocumentItem done err = 0, tmpTLVsize=304 [19:47:49]tlvbuf is 020D06F0 [19:47:49]SAM_PROTO_ClearQueue [19:47:49]wFMCommunicate request_size=4 [19:47:49]MH_SAM_APDU [19:47:49]CAPDU: 80 09 00 00 [19:47:49]Write to MH i2c: E2 08 00 56 03 80 09 00 00 00 00 00 00 CB [19:47:49]Write i2c OK [19:47:49]MH_I2C_Read... [19:47:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:47:50]Read from MH i2c: E2 [19:47:50]MH_I2C_Read... [19:47:50]Read from MH i2c: E2 03 00 [19:47:50]MH_I2C_Read... [19:47:50]Read from MH i2c: E2 03 00 56 03 00 90 00 CD [19:47:50]RAPDU: 90 00 [19:47:50]wFMCommunicate OK [19:47:50]SAM_PROTO_ClearQueue done [19:47:50]KKMCreateOFDPacket [19:47:50]OFDProtocolAddRootSTLVToBuf [19:47:50]FM_MakeSignedData [19:47:50]FM_MakeSignedData [19:47:50]SAM_PROTO_SignData [19:47:50]wFMCommunicate request_size=4 [19:47:50]MH_SAM_APDU [19:47:50]CAPDU: 80 0D 01 02 [19:47:50]Write to MH i2c: E2 08 00 57 03 80 0D 01 02 00 00 00 00 D3 [19:47:50]Write i2c OK [19:47:50]MH_I2C_Read... [19:47:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:47:50]Read from MH i2c: E2 [19:47:50]MH_I2C_Read... [19:47:50]Read from MH i2c: E2 03 00 [19:47:50]MH_I2C_Read... [19:47:50]Read from MH i2c: E2 03 00 57 03 00 90 00 CE [19:47:50]RAPDU: 90 00 [19:47:50]wFMCommunicate OK [19:47:50]wFMCommunicate request_size=255 [19:47:50]MH_SAM_APDU [19:47:50]CAPDU: 80 0D 02 02 FA 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 E5 F1 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 [19:47:50]Write to MH i2c: E2 02 01 58 03 80 0D 02 02 FA 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 E5 F1 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 00 00 33 [19:47:50]Write i2c OK [19:47:50]MH_I2C_Read... [19:47:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:47:50]Read from MH i2c: E2 [19:47:50]MH_I2C_Read... [19:47:50]Read from MH i2c: E2 03 00 [19:47:50]MH_I2C_Read... [19:47:50]Read from MH i2c: E2 03 00 58 03 00 90 00 CF [19:47:50]RAPDU: 90 00 [19:47:50]wFMCommunicate OK [19:47:50]wFMCommunicate request_size=63 [19:47:50]MH_SAM_APDU [19:47:50]CAPDU: 80 0D 02 02 3A 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 DE A3 00 00 35 04 06 00 39 AA 7D 35 C2 90 [19:47:50]Write to MH i2c: E2 42 00 59 03 80 0D 02 02 3A 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 DE A3 00 00 35 04 06 00 39 AA 7D 35 C2 90 00 00 91 [19:47:50]Write i2c OK [19:47:50]MH_I2C_Read... [19:47:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:47:50]Read from MH i2c: E2 [19:47:50]MH_I2C_Read... [19:47:50]Read from MH i2c: E2 03 00 [19:47:50]MH_I2C_Read... [19:47:50]Read from MH i2c: E2 03 00 59 03 00 90 00 D0 [19:47:50]RAPDU: 90 00 [19:47:50]wFMCommunicate OK [19:47:50]wFMCommunicate request_size=4 [19:47:50]MH_SAM_APDU [19:47:50]CAPDU: 80 0D 03 02 [19:47:50]Write to MH i2c: E2 08 00 5A 03 80 0D 03 02 00 00 00 00 D8 [19:47:50]Write i2c OK [19:47:50]MH_I2C_Read... [19:47:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:47:50]Read from MH i2c: E2 [19:47:50]MH_I2C_Read... [19:47:50]Read from MH i2c: E2 0B 00 [19:47:50]MH_I2C_Read... [19:47:50]Read from MH i2c: E2 0B 00 5A 03 00 EC 77 E9 88 96 AD D6 6D 90 00 33 [19:47:50]RAPDU: EC 77 E9 88 96 AD D6 6D 90 00 [19:47:50]wFMCommunicate OK [19:47:50]SAM_PROTO_SignData done [19:47:50]FM_MakeSignedData done [19:47:50]CreateOFDProtocolMessage [19:47:50]wFMCommunicate request_size=4 [19:47:50]MH_SAM_APDU [19:47:50]CAPDU: 80 11 00 00 [19:47:50]Write to MH i2c: E2 08 00 5B 03 80 11 00 00 00 00 00 00 D8 [19:47:50]Write i2c OK [19:47:50]MH_I2C_Read... [19:47:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:47:50]Read from MH i2c: E2 [19:47:50]MH_I2C_Read... [19:47:50]Read from MH i2c: E2 17 00 [19:47:50]MH_I2C_Read... [19:47:50]Read from MH i2c: E2 17 00 5B 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 34 [19:47:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [19:47:50]wFMCommunicate OK [19:47:50]CreateOFDProtocolMessage done [19:47:50]OFDSenderStorePacket 41950 [19:47:50]StoreOFDPacket docnum=41950 [19:47:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 44 01 00 00 7B A0 3C 01 F0 29 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 E5 F1 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 DE A3 00 00 35 04 06 00 39 AA 7D 35 C2 90 EC 77 E9 88 96 AD D6 6D [19:47:50]CheckFolder [19:47:50]dirname=/storage/ofd_packets [19:47:50]CheckFolder done [19:47:50]ProducePacketName [19:47:50]name=ofd_packets/00041950 [19:47:50]NVStorageSaveData ofd_packets/00041950 [19:47:50]File name is /storage/ofd_packets/00041950 [19:47:50]Write 354 bytes [19:47:50]NVStorageSaveData done [19:47:50]OFDSenderStorePacket done [19:47:50]KKMCreateOFDPacket done [19:47:50]NVStorageSaveData kkm_last_timestamp [19:47:50]File name is /storage/kkm_last_timestamp [19:47:50]Write 4 bytes [19:47:50]NVStorageSaveData done [19:47:50]ExternCall_PrintAddStr [19:47:50]wPrintStart [19:47:50]Write to MH i2c: 01 00 00 5C 03 5F [19:47:50]Write i2c OK [19:47:50]MH_I2C_Read... [19:47:50]Read from MH i2c: 01 [19:47:50]MH_I2C_Read... [19:47:50]Read from MH i2c: 01 07 00 [19:47:50]MH_I2C_Read... [19:47:50]Read from MH i2c: 01 07 00 5C 03 00 00 00 00 00 FF 0F 74 [19:47:50]RasterBufferAndPrint [19:47:50]line Счет N : (3)183979 [19:47:50]line ИНН: 02508201610067 [19:47:50]line Контрольно-Кассовый Чек [19:47:50]line ПРОДАЖА [19:47:50]line Товар: 4700000480302 [19:47:50]line Напиток энерг Nitro манго-клуб 0.45 ж/б [19:47:50]line 1.000 * 95.00 [19:47:50]line = 95.00 [19:47:50]line НДС 12% НСП 1% [19:47:50]line > о реализуемом товаре [19:47:50]line ИТОГО: 95.00 [19:47:50]line НСП 1% : 0.84 [19:47:50]line НДС 12% : 10.09 [19:47:50]line Наличными: 95.00 [19:47:50]line Безнал.: 0.00 [19:47:50]line Место: АЗС № 97 "Партнер Нефть" [19:47:50]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [19:47:50]line СНО: Общий режим [19:47:50]line Чек 139 29.07.2024 19:47 [19:47:50]line Смена: 427 ФФД: 1.0 [19:47:50]line ЗНМ: 0300000053 [19:47:50]line РНМ: 0000000000092626 [19:47:50]line Версия ККМ: 001 [19:47:50]line ФМ: 0000000000874958 [19:47:50]line ФД: 41950 [19:47:50]line ФПД: 63404407898768 [19:47:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T194749&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41950&fm=63404407898768&tin=02508201610067®Number=0000000000092626&sum=9500 [19:47:50]line 0 [19:47:50]OFD Sender: Processing packet 41950 [packets to send 57, broken 56] [19:47:50]ProducePacketName [19:47:50]name=ofd_packets/00041950 [19:47:50]OFD Sender: To server: pG, [19:47:50]CommunicateWithHost lk.salyk.kg:30040 [19:47:50]ConnectInit lk.salyk.kg [19:47:50]written 0, free lines is 4095 [19:47:51]Write to MH i2c: 01 00 00 85 03 88 [19:47:51]Write i2c OK [19:47:51]MH_I2C_Read... [19:47:51]Read from MH i2c: 01 [19:47:51]MH_I2C_Read... [19:47:51]Read from MH i2c: 01 07 00 [19:47:51]MH_I2C_Read... [19:47:51]Read from MH i2c: 01 07 00 85 03 00 00 00 00 00 FE 0C 99 [19:47:51]RasterBufferAndPrint [19:47:51]line [19:47:51]line [19:47:51]line [19:47:51]line [19:47:51]line [19:47:51]written 0, free lines is 3331 [19:47:51]MH_Cut [19:47:51]Write to MH i2c: D1 01 00 8C 03 01 61 [19:47:51]Write i2c OK [19:47:51]MH_I2C_Read... [19:47:51]Read from MH i2c: D1 [19:47:51]MH_I2C_Read... [19:47:51]Read from MH i2c: D1 01 00 [19:47:51]MH_I2C_Read... [19:47:51]Read from MH i2c: D1 01 00 8C 03 00 60 [19:47:51]Write to MH i2c: 01 00 00 8D 03 90 [19:47:51]Write i2c OK [19:47:51]MH_I2C_Read... [19:47:51]*** Cut start [19:47:51]*** Partial cut [19:47:51]*** CUTSNS_PIN = 1 [19:47:52]*** CUTSNS_PIN = 0 [19:47:52]*** Brake cut motor [19:47:52]Read from MH i2c: 01 [19:47:52]MH_I2C_Read... [19:47:52]*** Stop cut motor [19:47:52]*** Cut end [19:47:52]Read from MH i2c: 01 07 00 [19:47:52]MH_I2C_Read... [19:47:52]Read from MH i2c: 01 07 00 8D 03 00 00 00 00 00 FF 0F A5 [19:47:52]process_action close_receipt done [19:47:52]requested_data is exist [19:47:52]produce_requested_data [19:47:52]requested_item fm.sn is exist - process it [19:47:52]wFMCommunicate request_size=4 [19:47:52]MH_SAM_APDU [19:47:52]CAPDU: 80 11 00 00 [19:47:52]Write to MH i2c: E2 08 00 8E 03 80 11 00 00 00 00 00 00 0B [19:47:52]Write i2c OK [19:47:52]MH_I2C_Read... [19:47:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:47:52]Read from MH i2c: E2 [19:47:52]MH_I2C_Read... [19:47:52]Read from MH i2c: E2 17 00 [19:47:52]MH_I2C_Read... [19:47:52]Read from MH i2c: E2 17 00 8E 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 67 [19:47:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [19:47:52]wFMCommunicate OK [19:47:52]requested_item fd.num is exist - process it [19:47:52]SAM_PROTO_GetFieldsCounters [19:47:52]wFMCommunicate request_size=4 [19:47:52]MH_SAM_APDU [19:47:52]CAPDU: 80 13 00 00 [19:47:52]Write to MH i2c: E2 08 00 8F 03 80 13 00 00 00 00 00 00 0E [19:47:52]Write i2c OK [19:47:52]MH_I2C_Read... [19:47:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:47:52]Read from MH i2c: E2 [19:47:52]MH_I2C_Read... [19:47:52]Read from MH i2c: E2 62 00 [19:47:52]MH_I2C_Read... [19:47:52]Read from MH i2c: E2 62 00 8F 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 DE A3 00 00 0E 04 04 00 AB 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 06 [19:47: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 DE A3 00 00 0E 04 04 00 AB 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 [19:47:52]wFMCommunicate OK [19:47:52]SAM_PROTO_GetFieldsCounters done [19:47:52]requested_item shift.num is exist - process it [19:47:52]requested_item shift.opened is exist - process it [19:47:52]req_shift_opened [19:47:52]FM_GetShiftState [19:47:52]SAM_PROTO_GetShiftState [19:47:52]wFMCommunicate request_size=4 [19:47:52]MH_SAM_APDU [19:47:52]CAPDU: 80 13 01 00 [19:47:52]Write to MH i2c: E2 08 00 90 03 80 13 01 00 00 00 00 00 10 [19:47:52]Write i2c OK [19:47:52]MH_I2C_Read... [19:47:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:47:52]Read from MH i2c: E2 [19:47:52]MH_I2C_Read... [19:47:52]Read from MH i2c: E2 0E 00 [19:47:52]MH_I2C_Read... [19:47:52]Read from MH i2c: E2 0E 00 90 03 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 AC [19:47:52]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [19:47:52]wFMCommunicate OK [19:47:52]SAM_PROTO_GetShiftState done [19:47:52]FM_GetShiftState done [19:47:52]req_shift_opened done [19:47:52]requested_item shift.open_date is exist - process it [19:47:52]req_shift_open_date [19:47:52]req_shift_open_date done [19:47:52]produce_requested_data done [19:47:52]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41950,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [19:47:52]process_action_free close_receipt [19:47:52]json_value_free [19:47:52]json_value_free done [19:47:52]process_json_proto returns [19:47:52]Send response to host [19:47:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41950,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [19:47:52]free response buf [19:47:52]execute_script done [19:47:52]execute_script returns [19:47:52]free content buf [19:47:52]Sock 9.Close socket [19:47:52]Sock 9.Thread stoped [19:47:55]recv_with_timeout no data received [19:47:55]ConnectInit Can't take IP for lk.salyk.kg [19:47:55]CommunicateWithHost connect error [19:47:55]CommunicateWithHost err = -1 [19:47:55]OFD Sender: Server communicate error [19:48:00]OFD Sender: Processing packet 41950 [packets to send 57, broken 56] [19:48:00]ProducePacketName [19:48:00]name=ofd_packets/00041950 [19:48:00]OFD Sender: To server: pG, [19:48:00]CommunicateWithHost lk.salyk.kg:30040 [19:48:00]ConnectInit lk.salyk.kg [19:48:05]ConnectInit Can't take IP for lk.salyk.kg [19:48:05]CommunicateWithHost connect error [19:48:05]CommunicateWithHost err = -1 [19:48:05]OFD Sender: Server communicate error [19:48:10]OFD Sender: Processing packet 41950 [packets to send 57, broken 56] [19:48:10]ProducePacketName [19:48:10]name=ofd_packets/00041950 [19:48:10]OFD Sender: To server: pG, [19:48:10]CommunicateWithHost lk.salyk.kg:30040 [19:48:10]ConnectInit lk.salyk.kg [19:48:13]recv_with_timeout no data received [19:48:15]ConnectInit Can't take IP for lk.salyk.kg [19:48:15]CommunicateWithHost connect error [19:48:15]CommunicateWithHost err = -1 [19:48:15]OFD Sender: Server communicate error [19:48:20]OFD Sender: Processing packet 41950 [packets to send 57, broken 56] [19:48:20]ProducePacketName [19:48:20]name=ofd_packets/00041950 [19:48:20]OFD Sender: To server: pG, [19:48:20]CommunicateWithHost lk.salyk.kg:30040 [19:48:20]ConnectInit lk.salyk.kg [19:48:29]recv_with_timeout no data received [19:48:34]Connected sock=10 [19:48:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 44 01 00 00 7B A0 3C 01 F0 29 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 E5 F1 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 DE A3 00 00 35 04 06 00 39 AA 7D 35 C2 90 EC 77 E9 88 96 AD D6 6D [19:48: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 35 38 4F 00 00 00 64 62 47 00 5E 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 DE A3 00 00 F4 03 04 00 26 9E A7 66 B6 04 01 00 00 4C 9B FA E2 06 E6 48 A9 [19:48:35]CommunicateWithHost err = 0 [19:48:35]CheckOFDResponse [19:48:35]1017 (14) - 77093643461234 [19:48:35]1041 (16) - 0000000000874958 [19:48:35]1040 (4) - 41950 [19:48:35]1012 (4) - 29.07.2024 13:50 [19:48:35]1206 (1) - 0 [19:48:35]OFD Sender: Remove packet 41950 [19:48:35]ProducePacketName [19:48:35]name=ofd_packets/00041950 [19:48:35]NVStorageDeleteData [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:10]OFD Sender: No OFD packet to send [19:49:15]OFD Sender: No OFD packet to send [19:49:20]OFD Sender: No OFD packet to send [19:49:25]OFD Sender: No OFD packet to send [19:49:30]OFD Sender: No OFD packet to send [19:49:35]OFD Sender: No OFD packet to send [19:49:40]OFD Sender: No OFD packet to send [19:49:45]OFD Sender: No OFD packet to send [19:49:50]OFD Sender: No OFD packet to send [19:49:55]OFD Sender: No OFD packet to send [19:50:00]OFD Sender: No OFD packet to send [19:50:05]OFD Sender: No OFD packet to send [19:50:10]OFD Sender: No OFD packet to send [19:50:15]OFD Sender: No OFD packet to send [19:50:20]OFD Sender: No OFD packet to send [19:50:25]OFD Sender: No OFD packet to send [19:50:30]OFD Sender: No OFD packet to send [19:50:35]OFD Sender: No OFD packet to send [19:50:40]OFD Sender: No OFD packet to send [19:50:41]recv_with_timeout no data received [19:50:45]OFD Sender: No OFD packet to send [19:50:50]OFD Sender: No OFD packet to send [19:50:55]OFD Sender: No OFD packet to send [19:51:00]OFD Sender: No OFD packet to send [19:51:05]OFD Sender: No OFD packet to send [19:51:10]OFD Sender: No OFD packet to send [19:51:15]OFD Sender: No OFD packet to send [19:51:18]recv_with_timeout no data received [19:51:20]OFD Sender: No OFD packet to send [19:51:25]OFD Sender: No OFD packet to send [19:51:30]OFD Sender: No OFD packet to send [19:51:35]OFD Sender: No OFD packet to send [19:51:40]OFD Sender: No OFD packet to send [19:51:45]OFD Sender: No OFD packet to send [19:51:50]OFD Sender: No OFD packet to send [19:51:55]OFD Sender: No OFD packet to send [19:52:00]OFD Sender: No OFD packet to send [19:52:05]OFD Sender: No OFD packet to send [19:52:10]OFD Sender: No OFD packet to send [19:52:15]OFD Sender: No OFD packet to send [19:52:16]accept exits with 8 [19:52:16]New connection [19:52:16]New thread 3066998116 created [19:52:16]Thread 3066854756 joined [19:52:16]Waiting for new connection... [19:52:16] Sock 8.Parse request [19:52:16]Sock 8.Check first char [19:52:16]Sock 8.First char is OK [19:52:16]request: POST /json_proto HTTP/1.0 [19:52:16]Method: POST [19:52:16]URL: /json_proto [19:52:16]Method is POST - this is cgi request [19:52:16]url: /json_proto [19:52:16]query_string will be loaded in cgi processing [19:52:16]execute_cgi json_proto POST (null) [19:52:16]execute_cgi path=json_proto method=POST [19:52:16]POST find Content-Length [19:52:16]Host: 172.17.43.132:8080 [19:52:16]Content-Length: 645 [19:52:16]Content-Type: application/json [19:52:16] [19:52:16]POST finish read [19:52:16]Found Content-Length = 645 [19:52:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183980", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:52:16]execute_script... [19:52:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183980", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:52:16]POST & json_proto [19:52:16]process_json_proto [19:52:16]json parsed OK: [19:52:16]protocol is kg_v1.0 [19:52:16]action value=close_receipt [19:52:16]process_action close_receipt [19:52:16]cmd_close_receipt [19:52:16]MH_GetDate [19:52:16]Write to MH i2c: F0 00 00 91 03 83 [19:52:16]Write i2c OK [19:52:16]MH_I2C_Read... [19:52:16]Read from MH i2c: F0 [19:52:16]MH_I2C_Read... [19:52:16]Read from MH i2c: F0 09 00 [19:52:16]MH_I2C_Read... [19:52:16]Read from MH i2c: F0 09 00 91 03 00 F1 F2 A7 66 64 A3 A7 66 90 [19:52:16]GetLastDocTimeStamp 1722282469 [19:52:16]current date 1722282737 [19:52:16]FM_GetShiftState [19:52:16]SAM_PROTO_GetShiftState [19:52:16]wFMCommunicate request_size=4 [19:52:16]MH_SAM_APDU [19:52:16]CAPDU: 80 13 01 00 [19:52:16]Write to MH i2c: E2 08 00 92 03 80 13 01 00 00 00 00 00 12 [19:52:16]Write i2c OK [19:52:16]MH_I2C_Read... [19:52:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:52:16]Read from MH i2c: E2 [19:52:16]MH_I2C_Read... [19:52:16]Read from MH i2c: E2 0E 00 [19:52:16]MH_I2C_Read... [19:52:16]Read from MH i2c: E2 0E 00 92 03 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 AE [19:52:16]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [19:52:16]wFMCommunicate OK [19:52:16]SAM_PROTO_GetShiftState done [19:52:16]FM_GetShiftState done [19:52:16]opened in 1722211496 [19:52:16]opened+sec_in_day 1722297896 [19:52:16]quantity*price = 6000 [19:52:16]sum+1 = 6001 [19:52:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 140 29.07.2024 19:52 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41951 ФПД: 54874163118923 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T195217&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41951&fm=54874163118923&tin=02508201610067®Number=0000000000092626&sum=6000 0 [19:52:18]StoreToDocumentArchive [19:52:18]shift 427 fd 41951 [19:52:18]save to /storage/0427/doc_00041951 [19:52:18]save last doc name /storage/0427/doc_00041951 to /storage/kkm_last_doc_name [19:52:18]save OK [19:52:18]Clear old archive folders... [19:52:18]ProcessDocumentItem done err = 0, tmpTLVsize=276 [19:52:18]tlvbuf is 020669F0 [19:52:18]SAM_PROTO_ClearQueue [19:52:18]wFMCommunicate request_size=4 [19:52:18]MH_SAM_APDU [19:52:18]CAPDU: 80 09 00 00 [19:52:18]Write to MH i2c: E2 08 00 9F 03 80 09 00 00 00 00 00 00 14 [19:52:18]Write i2c OK [19:52:18]MH_I2C_Read... [19:52:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:52:18]Read from MH i2c: E2 [19:52:18]MH_I2C_Read... [19:52:18]Read from MH i2c: E2 03 00 [19:52:18]MH_I2C_Read... [19:52:18]Read from MH i2c: E2 03 00 9F 03 00 90 00 16 [19:52:18]RAPDU: 90 00 [19:52:18]wFMCommunicate OK [19:52:18]SAM_PROTO_ClearQueue done [19:52:18]KKMCreateOFDPacket [19:52:18]OFDProtocolAddRootSTLVToBuf [19:52:18]FM_MakeSignedData [19:52:18]FM_MakeSignedData [19:52:18]SAM_PROTO_SignData [19:52:18]wFMCommunicate request_size=4 [19:52:18]MH_SAM_APDU [19:52:18]CAPDU: 80 0D 01 02 [19:52:18]Write to MH i2c: E2 08 00 A0 03 80 0D 01 02 00 00 00 00 1C [19:52:18]Write i2c OK [19:52:18]MH_I2C_Read... [19:52:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:52:18]Read from MH i2c: E2 [19:52:18]MH_I2C_Read... [19:52:18]Read from MH i2c: E2 03 00 [19:52:18]MH_I2C_Read... [19:52:18]Read from MH i2c: E2 03 00 A0 03 00 90 00 17 [19:52:18]RAPDU: 90 00 [19:52:18]wFMCommunicate OK [19:52:18]wFMCommunicate request_size=255 [19:52:18]MH_SAM_APDU [19:52:18]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 F1 F2 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 [19:52:18]Write to MH i2c: E2 02 01 A1 03 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 F1 F2 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 00 00 7F [19:52:18]Write i2c OK [19:52:18]MH_I2C_Read... [19:52:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:52:18]Read from MH i2c: E2 [19:52:18]MH_I2C_Read... [19:52:18]Read from MH i2c: E2 03 00 [19:52:18]MH_I2C_Read... [19:52:18]Read from MH i2c: E2 03 00 A1 03 00 90 00 18 [19:52:18]RAPDU: 90 00 [19:52:18]wFMCommunicate OK [19:52:18]wFMCommunicate request_size=35 [19:52:18]MH_SAM_APDU [19:52:18]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 DF A3 00 00 35 04 06 00 31 E8 63 00 03 4B [19:52:18]Write to MH i2c: E2 26 00 A2 03 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 DF A3 00 00 35 04 06 00 31 E8 63 00 03 4B 00 00 67 [19:52:18]Write i2c OK [19:52:18]MH_I2C_Read... [19:52:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:52:18]Read from MH i2c: E2 [19:52:18]MH_I2C_Read... [19:52:18]Read from MH i2c: E2 03 00 [19:52:18]MH_I2C_Read... [19:52:18]Read from MH i2c: E2 03 00 A2 03 00 90 00 19 [19:52:18]RAPDU: 90 00 [19:52:18]wFMCommunicate OK [19:52:18]wFMCommunicate request_size=4 [19:52:18]MH_SAM_APDU [19:52:18]CAPDU: 80 0D 03 02 [19:52:18]Write to MH i2c: E2 08 00 A3 03 80 0D 03 02 00 00 00 00 21 [19:52:18]Write i2c OK [19:52:18]MH_I2C_Read... [19:52:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:52:18]Read from MH i2c: E2 [19:52:18]MH_I2C_Read... [19:52:18]Read from MH i2c: E2 0B 00 [19:52:18]MH_I2C_Read... [19:52:18]Read from MH i2c: E2 0B 00 A3 03 00 5A EB 0B 9C 2D 50 C6 67 90 00 B8 [19:52:18]RAPDU: 5A EB 0B 9C 2D 50 C6 67 90 00 [19:52:18]wFMCommunicate OK [19:52:18]SAM_PROTO_SignData done [19:52:18]FM_MakeSignedData done [19:52:18]CreateOFDProtocolMessage [19:52:18]wFMCommunicate request_size=4 [19:52:18]MH_SAM_APDU [19:52:18]CAPDU: 80 11 00 00 [19:52:18]Write to MH i2c: E2 08 00 A4 03 80 11 00 00 00 00 00 00 21 [19:52:18]Write i2c OK [19:52:18]MH_I2C_Read... [19:52:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:52:18]Read from MH i2c: E2 [19:52:18]MH_I2C_Read... [19:52:18]Read from MH i2c: E2 17 00 [19:52:18]MH_I2C_Read... [19:52:18]Read from MH i2c: E2 17 00 A4 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 7D [19:52:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [19:52:18]wFMCommunicate OK [19:52:18]CreateOFDProtocolMessage done [19:52:18]OFDSenderStorePacket 41951 [19:52:18]StoreOFDPacket docnum=41951 [19:52:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 28 01 00 00 DF B9 20 01 21 CF 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 F1 F2 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 DF A3 00 00 35 04 06 00 31 E8 63 00 03 4B 5A EB 0B 9C 2D 50 C6 67 [19:52:18]CheckFolder [19:52:18]dirname=/storage/ofd_packets [19:52:18]CheckFolder done [19:52:18]ProducePacketName [19:52:18]name=ofd_packets/00041951 [19:52:18]NVStorageSaveData ofd_packets/00041951 [19:52:18]File name is /storage/ofd_packets/00041951 [19:52:18]Write 326 bytes [19:52:18]NVStorageSaveData done [19:52:18]OFDSenderStorePacket done [19:52:18]KKMCreateOFDPacket done [19:52:18]NVStorageSaveData kkm_last_timestamp [19:52:18]File name is /storage/kkm_last_timestamp [19:52:18]Write 4 bytes [19:52:18]NVStorageSaveData done [19:52:18]ExternCall_PrintAddStr [19:52:18]wPrintStart [19:52:18]Write to MH i2c: 01 00 00 A5 03 A8 [19:52:18]Write i2c OK [19:52:18]MH_I2C_Read... [19:52:18]Read from MH i2c: 01 [19:52:18]MH_I2C_Read... [19:52:18]Read from MH i2c: 01 07 00 [19:52:18]MH_I2C_Read... [19:52:18]Read from MH i2c: 01 07 00 A5 03 00 00 00 00 00 FF 0F BD [19:52:18]RasterBufferAndPrint [19:52:18]line Счет N : (3)183980 [19:52:18]line ИНН: 02508201610067 [19:52:18]line Контрольно-Кассовый Чек [19:52:18]line ПРОДАЖА [19:52:18]line Товар: 4700000310043 [19:52:18]line Вода Жалалабат 27 1л [19:52:18]line 1.000 * 60.00 [19:52:18]line = 60.00 [19:52:18]line НДС 12% НСП 1% [19:52:18]line > о реализуемом товаре [19:52:18]line ИТОГО: 60.00 [19:52:18]line НСП 1% : 0.53 [19:52:18]line НДС 12% : 6.37 [19:52:18]line Наличными: 60.00 [19:52:18]line Безнал.: 0.00 [19:52:18]line Место: АЗС № 97 "Партнер Нефть" [19:52:18]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [19:52:18]line СНО: Общий режим [19:52:18]line Чек 140 29.07.2024 19:52 [19:52:18]line Смена: 427 ФФД: 1.0 [19:52:18]line ЗНМ: 0300000053 [19:52:18]line РНМ: 0000000000092626 [19:52:18]line Версия ККМ: 001 [19:52:18]line ФМ: 0000000000874958 [19:52:18]line ФД: 41951 [19:52:18]line ФПД: 54874163118923 [19:52:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T195217&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41951&fm=54874163118923&tin=02508201610067®Number=0000000000092626&sum=6000 [19:52:19]line 0 [19:52:19]OFD Sender: Processing packet 41951 [packets to send 57, broken 56] [19:52:19]ProducePacketName [19:52:19]name=ofd_packets/00041951 [19:52:19]OFD Sender: To server: pG, [19:52:19]CommunicateWithHost lk.salyk.kg:30040 [19:52:19]ConnectInit lk.salyk.kg [19:52:19]written 0, free lines is 4095 [19:52:19]Write to MH i2c: 01 00 00 CD 03 D0 [19:52:19]Write i2c OK [19:52:19]MH_I2C_Read... [19:52:19]Read from MH i2c: 01 [19:52:19]MH_I2C_Read... [19:52:19]Read from MH i2c: 01 07 00 [19:52:19]MH_I2C_Read... [19:52:19]Read from MH i2c: 01 07 00 CD 03 00 00 00 00 00 10 0D F4 [19:52:19]RasterBufferAndPrint [19:52:19]line [19:52:19]line [19:52:19]line [19:52:19]line [19:52:19]line [19:52:19]written 0, free lines is 3350 [19:52:19]MH_Cut [19:52:19]Write to MH i2c: D1 01 00 D4 03 01 A9 [19:52:19]Write i2c OK [19:52:19]MH_I2C_Read... [19:52:19]Read from MH i2c: D1 [19:52:19]MH_I2C_Read... [19:52:19]Read from MH i2c: D1 01 00 [19:52:19]MH_I2C_Read... [19:52:19]Read from MH i2c: D1 01 00 D4 03 00 A8 [19:52:19]Write to MH i2c: 01 00 00 D5 03 D8 [19:52:19]Write i2c OK [19:52:19]MH_I2C_Read... [19:52:20]*** Cut start [19:52:20]*** Partial cut [19:52:20]*** CUTSNS_PIN = 1 [19:52:20]*** CUTSNS_PIN = 0 [19:52:20]Connected sock=10 [19:52: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 35 38 28 01 00 00 DF B9 20 01 21 CF 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 F1 F2 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 DF A3 00 00 35 04 06 00 31 E8 63 00 03 4B 5A EB 0B 9C 2D 50 C6 67 [19:52:20]*** Brake cut motor [19:52:20]Read from MH i2c: 01 [19:52:20]MH_I2C_Read... [19:52:20]*** Stop cut motor [19:52:20]*** Cut end [19:52:20]Read from MH i2c: 01 07 00 [19:52:20]MH_I2C_Read... [19:52:20]Read from MH i2c: 01 07 00 D5 03 00 00 00 00 00 FF 0F ED [19:52:20]process_action close_receipt done [19:52:20]requested_data is exist [19:52:20]produce_requested_data [19:52:20]requested_item fm.sn is exist - process it [19:52:20]wFMCommunicate request_size=4 [19:52:20]MH_SAM_APDU [19:52:20]CAPDU: 80 11 00 00 [19:52:20]Write to MH i2c: E2 08 00 D6 03 80 11 00 00 00 00 00 00 53 [19:52:20]Write i2c OK [19:52:20]MH_I2C_Read... [19:52:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:52:20]Read from MH i2c: E2 [19:52:20]MH_I2C_Read... [19:52:20]Read from MH i2c: E2 17 00 [19:52:20]MH_I2C_Read... [19:52:20]Read from MH i2c: E2 17 00 D6 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 AF [19:52:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [19:52:20]wFMCommunicate OK [19:52:20]requested_item fd.num is exist - process it [19:52:20]SAM_PROTO_GetFieldsCounters [19:52:20]wFMCommunicate request_size=4 [19:52:20]MH_SAM_APDU [19:52:20]CAPDU: 80 13 00 00 [19:52:20]Write to MH i2c: E2 08 00 D7 03 80 13 00 00 00 00 00 00 56 [19:52:20]Write i2c OK [19:52:20]MH_I2C_Read... [19:52: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 35 38 4F 00 00 00 8C 38 47 00 D5 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 35 38 10 04 04 00 DF A3 00 00 F4 03 04 00 08 9F A7 66 B6 04 01 00 00 07 AB FC 8D 10 8E 2A 84 [19:52:20]CommunicateWithHost err = 0 [19:52:20]CheckOFDResponse [19:52:20]1017 (14) - 77093643461234 [19:52:20]1041 (16) - 0000000000874958 [19:52:20]1040 (4) - 41951 [19:52:20]1012 (4) - 29.07.2024 13:54 [19:52:20]1206 (1) - 0 [19:52:20]OFD Sender: Remove packet 41951 [19:52:20]ProducePacketName [19:52:20]name=ofd_packets/00041951 [19:52:20]NVStorageDeleteData [19:52:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:52:21]Read from MH i2c: E2 [19:52:21]MH_I2C_Read... [19:52:21]Read from MH i2c: E2 62 00 [19:52:21]MH_I2C_Read... [19:52:21]Read from MH i2c: E2 62 00 D7 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 DF A3 00 00 0E 04 04 00 AB 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 52 [19: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 DF A3 00 00 0E 04 04 00 AB 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 [19:52:21]wFMCommunicate OK [19:52:21]SAM_PROTO_GetFieldsCounters done [19:52:21]requested_item shift.num is exist - process it [19:52:21]requested_item shift.opened is exist - process it [19:52:21]req_shift_opened [19:52:21]FM_GetShiftState [19:52:21]SAM_PROTO_GetShiftState [19:52:21]wFMCommunicate request_size=4 [19:52:21]MH_SAM_APDU [19:52:21]CAPDU: 80 13 01 00 [19:52:21]Write to MH i2c: E2 08 00 D8 03 80 13 01 00 00 00 00 00 58 [19:52:21]Write i2c OK [19:52:21]MH_I2C_Read... [19:52:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:52:21]Read from MH i2c: E2 [19:52:21]MH_I2C_Read... [19:52:21]Read from MH i2c: E2 0E 00 [19:52:21]MH_I2C_Read... [19:52:21]Read from MH i2c: E2 0E 00 D8 03 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 F4 [19:52:21]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [19:52:21]wFMCommunicate OK [19:52:21]SAM_PROTO_GetShiftState done [19:52:21]FM_GetShiftState done [19:52:21]req_shift_opened done [19:52:21]requested_item shift.open_date is exist - process it [19:52:21]req_shift_open_date [19:52:21]req_shift_open_date done [19:52:21]produce_requested_data done [19:52:21]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41951,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [19:52:21]process_action_free close_receipt [19:52:21]json_value_free [19:52:21]json_value_free done [19:52:21]process_json_proto returns [19:52:21]Send response to host [19:52:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41951,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [19:52:21]free response buf [19:52:21]execute_script done [19:52:21]execute_script returns [19:52:21]free content buf [19:52:21]Sock 8.Close socket [19:52:21]Sock 8.Thread stoped [19:52:21]OFD Sender: No OFD packet to send [19:52:26]OFD Sender: No OFD packet to send [19:52:31]OFD Sender: No OFD packet to send [19:52:36]OFD Sender: No OFD packet to send [19:52:41]OFD Sender: No OFD packet to send [19:52:46]OFD Sender: No OFD packet to send [19:52:51]OFD Sender: No OFD packet to send [19:52:56]OFD Sender: No OFD packet to send [19:53:01]OFD Sender: No OFD packet to send [19:53:06]OFD Sender: No OFD packet to send [19:53:11]OFD Sender: No OFD packet to send [19:53:16]OFD Sender: No OFD packet to send [19:53:21]OFD Sender: No OFD packet to send [19:53:26]OFD Sender: No OFD packet to send [19:53:31]OFD Sender: No OFD packet to send [19:53:36]OFD Sender: No OFD packet to send [19:53:41]OFD Sender: No OFD packet to send [19:53:46]OFD Sender: No OFD packet to send [19:53:51]OFD Sender: No OFD packet to send [19:53:56]OFD Sender: No OFD packet to send [19:54:01]OFD Sender: No OFD packet to send [19:54:06]OFD Sender: No OFD packet to send [19:54:11]OFD Sender: No OFD packet to send [19:54:16]OFD Sender: No OFD packet to send [19:54:21]OFD Sender: No OFD packet to send [19:54:26]OFD Sender: No OFD packet to send [19:54:31]OFD Sender: No OFD packet to send [19:54:36]OFD Sender: No OFD packet to send [19:54:41]OFD Sender: No OFD packet to send [19:54:46]OFD Sender: No OFD packet to send [19:54:51]OFD Sender: No OFD packet to send [19:54:56]OFD Sender: No OFD packet to send [19:55:01]OFD Sender: No OFD packet to send [19:55:06]OFD Sender: No OFD packet to send [19:55:11]OFD Sender: No OFD packet to send [19:55:16]OFD Sender: No OFD packet to send [19:55:21]OFD Sender: No OFD packet to send [19:55:26]OFD Sender: No OFD packet to send [19:55:31]OFD Sender: No OFD packet to send [19:55:36]OFD Sender: No OFD packet to send [19:55:38]accept exits with 9 [19:55:38]New connection [19:55:38]New thread 3066854756 created [19:55:38]Thread 3066998116 joined [19:55:38]Waiting for new connection... [19:55:38] Sock 9.Parse request [19:55:38]Sock 9.Check first char [19:55:38]Sock 9.First char is OK [19:55:38]request: POST /json_proto HTTP/1.0 [19:55:38]Method: POST [19:55:38]URL: /json_proto [19:55:38]Method is POST - this is cgi request [19:55:38]url: /json_proto [19:55:38]query_string will be loaded in cgi processing [19:55:38]execute_cgi json_proto POST (null) [19:55:38]execute_cgi path=json_proto method=POST [19:55:38]POST find Content-Length [19:55:38]Host: 172.17.43.132:8080 [19:55:38]Content-Length: 962 [19:55:38]Content-Type: application/json [19:55:38] [19:55:38]POST finish read [19:55:38]Found Content-Length = 962 [19:55:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183981", "tax_sys" : 0, "items" : [ { "code": "4700040114120", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:55:38]execute_script... [19:55: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 : (3)183981", "tax_sys" : 0, "items" : [ { "code": "4700040114120", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:55:38]POST & json_proto [19:55:38]process_json_proto [19:55:38]json parsed OK: [19:55:38]protocol is kg_v1.0 [19:55:38]action value=close_receipt [19:55:38]process_action close_receipt [19:55:38]cmd_close_receipt [19:55:38]MH_GetDate [19:55:38]Write to MH i2c: F0 00 00 D9 03 CB [19:55:38]Write i2c OK [19:55:38]MH_I2C_Read... [19:55:38]Read from MH i2c: F0 [19:55:38]MH_I2C_Read... [19:55:38]Read from MH i2c: F0 09 00 [19:55:38]MH_I2C_Read... [19:55:38]Read from MH i2c: F0 09 00 D9 03 00 BA F3 A7 66 64 A3 A7 66 A2 [19:55:38]GetLastDocTimeStamp 1722282737 [19:55:38]current date 1722282938 [19:55:38]FM_GetShiftState [19:55:38]SAM_PROTO_GetShiftState [19:55:38]wFMCommunicate request_size=4 [19:55:38]MH_SAM_APDU [19:55:38]CAPDU: 80 13 01 00 [19:55:38]Write to MH i2c: E2 08 00 DA 03 80 13 01 00 00 00 00 00 5A [19:55:38]Write i2c OK [19:55:38]MH_I2C_Read... [19:55:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:55:38]Read from MH i2c: E2 [19:55:38]MH_I2C_Read... [19:55:38]Read from MH i2c: E2 0E 00 [19:55:38]MH_I2C_Read... [19:55:38]Read from MH i2c: E2 0E 00 DA 03 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 F6 [19:55:38]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [19:55:38]wFMCommunicate OK [19:55:38]SAM_PROTO_GetShiftState done [19:55:38]FM_GetShiftState done [19:55:38]opened in 1722211496 [19:55:38]opened+sec_in_day 1722297896 [19:55:38]quantity*price = 6500 [19:55:38]sum+1 = 6501 [19:55:38]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700040114137 Султан чай 1л. зел лимон 1.000 * 65.00 = 65.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.14 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 141 29.07.2024 19:55 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41952 ФПД: 253127596094622 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T195538&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41952&fm=253127596094622&tin=02508201610067®Number=0000000000092626&sum=13000 0 [19:55:39]StoreToDocumentArchive [19:55:39]shift 427 fd 41952 [19:55:39]save to /storage/0427/doc_00041952 [19:55:39]save last doc name /storage/0427/doc_00041952 to /storage/kkm_last_doc_name [19:55:39]save OK [19:55:39]Clear old archive folders... [19:55:39]ProcessDocumentItem done err = 0, tmpTLVsize=400 [19:55:39]tlvbuf is 01FB8120 [19:55:39]SAM_PROTO_ClearQueue [19:55:39]wFMCommunicate request_size=4 [19:55:39]MH_SAM_APDU [19:55:39]CAPDU: 80 09 00 00 [19:55:39]Write to MH i2c: E2 08 00 E7 03 80 09 00 00 00 00 00 00 5C [19:55:39]Write i2c OK [19:55:39]MH_I2C_Read... [19:55:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:55:39]Read from MH i2c: E2 [19:55:39]MH_I2C_Read... [19:55:39]Read from MH i2c: E2 03 00 [19:55:39]MH_I2C_Read... [19:55:39]Read from MH i2c: E2 03 00 E7 03 00 90 00 5E [19:55:39]RAPDU: 90 00 [19:55:39]wFMCommunicate OK [19:55:39]SAM_PROTO_ClearQueue done [19:55:39]KKMCreateOFDPacket [19:55:39]OFDProtocolAddRootSTLVToBuf [19:55:39]FM_MakeSignedData [19:55:39]FM_MakeSignedData [19:55:39]SAM_PROTO_SignData [19:55:39]wFMCommunicate request_size=4 [19:55:39]MH_SAM_APDU [19:55:39]CAPDU: 80 0D 01 02 [19:55:39]Write to MH i2c: E2 08 00 E8 03 80 0D 01 02 00 00 00 00 64 [19:55:39]Write i2c OK [19:55:39]MH_I2C_Read... [19:55:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:55:39]Read from MH i2c: E2 [19:55:39]MH_I2C_Read... [19:55:39]Read from MH i2c: E2 03 00 [19:55:39]MH_I2C_Read... [19:55:39]Read from MH i2c: E2 03 00 E8 03 00 90 00 5F [19:55:39]RAPDU: 90 00 [19:55:39]wFMCommunicate OK [19:55:39]wFMCommunicate request_size=255 [19:55:39]MH_SAM_APDU [19:55:39]CAPDU: 80 0D 02 02 FA 03 00 90 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB [19:55:39]Write to MH i2c: E2 02 01 E9 03 80 0D 02 02 FA 00 03 00 90 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 00 00 27 [19:55:39]Write i2c OK [19:55:39]MH_I2C_Read... [19:55:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:55:39]Read from MH i2c: E2 [19:55:39]MH_I2C_Read... [19:55:39]Read from MH i2c: E2 03 00 [19:55:39]MH_I2C_Read... [19:55:39]Read from MH i2c: E2 03 00 E9 03 00 90 00 60 [19:55:39]RAPDU: 90 00 [19:55:39]wFMCommunicate OK [19:55:39]wFMCommunicate request_size=159 [19:55:39]MH_SAM_APDU [19:55:39]CAPDU: 80 0D 02 02 9A 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 BA F3 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 E0 A3 00 00 35 04 06 00 E6 37 DC 72 B4 9E [19:55:39]Write to MH i2c: E2 A2 00 EA 03 80 0D 02 02 9A 00 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 BA F3 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 E0 A3 00 00 35 04 06 00 E6 37 DC 72 B4 9E 00 00 FE [19:55:39]Write i2c OK [19:55:39]MH_I2C_Read... [19:55:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:55:39]Read from MH i2c: E2 [19:55:39]MH_I2C_Read... [19:55:39]Read from MH i2c: E2 03 00 [19:55:39]MH_I2C_Read... [19:55:39]Read from MH i2c: E2 03 00 EA 03 00 90 00 61 [19:55:39]RAPDU: 90 00 [19:55:39]wFMCommunicate OK [19:55:39]wFMCommunicate request_size=4 [19:55:39]MH_SAM_APDU [19:55:39]CAPDU: 80 0D 03 02 [19:55:39]Write to MH i2c: E2 08 00 EB 03 80 0D 03 02 00 00 00 00 69 [19:55:39]Write i2c OK [19:55:39]MH_I2C_Read... [19:55:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:55:39]Read from MH i2c: E2 [19:55:39]MH_I2C_Read... [19:55:39]Read from MH i2c: E2 0B 00 [19:55:39]MH_I2C_Read... [19:55:39]Read from MH i2c: E2 0B 00 EB 03 00 D4 23 0B B4 2E 2A AD 07 90 00 2C [19:55:39]RAPDU: D4 23 0B B4 2E 2A AD 07 90 00 [19:55:39]wFMCommunicate OK [19:55:39]SAM_PROTO_SignData done [19:55:39]FM_MakeSignedData done [19:55:39]CreateOFDProtocolMessage [19:55:39]wFMCommunicate request_size=4 [19:55:39]MH_SAM_APDU [19:55:39]CAPDU: 80 11 00 00 [19:55:39]Write to MH i2c: E2 08 00 EC 03 80 11 00 00 00 00 00 00 69 [19:55:39]Write i2c OK [19:55:39]MH_I2C_Read... [19:55:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:55:39]Read from MH i2c: E2 [19:55:39]MH_I2C_Read... [19:55:39]Read from MH i2c: E2 17 00 [19:55:39]MH_I2C_Read... [19:55:39]Read from MH i2c: E2 17 00 EC 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 C5 [19:55:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [19:55:39]wFMCommunicate OK [19:55:39]CreateOFDProtocolMessage done [19:55:39]OFDSenderStorePacket 41952 [19:55:39]StoreOFDPacket docnum=41952 [19:55:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 A4 01 00 00 C3 9B 9C 01 9D 2D 5A 03 01 00 03 00 90 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 BA F3 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 E0 A3 00 00 35 04 06 00 E6 37 DC 72 B4 9E D4 23 0B B4 2E 2A AD 07 [19:55:39]CheckFolder [19:55:39]dirname=/storage/ofd_packets [19:55:39]CheckFolder done [19:55:39]ProducePacketName [19:55:39]name=ofd_packets/00041952 [19:55:39]NVStorageSaveData ofd_packets/00041952 [19:55:39]File name is /storage/ofd_packets/00041952 [19:55:39]Write 450 bytes [19:55:39]NVStorageSaveData done [19:55:39]OFDSenderStorePacket done [19:55:39]KKMCreateOFDPacket done [19:55:39]NVStorageSaveData kkm_last_timestamp [19:55:39]File name is /storage/kkm_last_timestamp [19:55:39]Write 4 bytes [19:55:39]NVStorageSaveData done [19:55:39]ExternCall_PrintAddStr [19:55:39]wPrintStart [19:55:39]Write to MH i2c: 01 00 00 ED 03 F0 [19:55:39]Write i2c OK [19:55:39]MH_I2C_Read... [19:55:39]Read from MH i2c: 01 [19:55:39]MH_I2C_Read... [19:55:39]Read from MH i2c: 01 07 00 [19:55:40]MH_I2C_Read... [19:55:40]OFD Sender: Processing packet 41952 [packets to send 57, broken 56] [19:55:40]ProducePacketName [19:55:40]name=ofd_packets/00041952 [19:55:40]OFD Sender: To server: pG, [19:55:40]CommunicateWithHost lk.salyk.kg:30040 [19:55:40]ConnectInit lk.salyk.kg [19:55:40]Read from MH i2c: 01 07 00 ED 03 00 00 00 00 00 FF 0F 05 [19:55:40]RasterBufferAndPrint [19:55:40]line Счет N : (3)183981 [19:55:40]line ИНН: 02508201610067 [19:55:40]line Контрольно-Кассовый Чек [19:55:40]line ПРОДАЖА [19:55:40]line Товар: 4700040114120 [19:55:40]line Султан чай 1л. чер персик [19:55:40]line 1.000 * 65.00 [19:55:40]line = 65.00 [19:55:40]line НДС 12% НСП 1% [19:55:40]line > о реализуемом товаре [19:55:40]line Товар: 4700040114137 [19:55:40]line Султан чай 1л. зел лимон [19:55:40]line 1.000 * 65.00 [19:55:40]line = 65.00 [19:55:40]line НДС 12% НСП 1% [19:55:40]line > о реализуемом товаре [19:55:40]line ИТОГО: 130.00 [19:55:40]line НСП 1% : 1.14 [19:55:40]line НДС 12% : 13.80 [19:55:40]line Наличными: 130.00 [19:55:40]line Безнал.: 0.00 [19:55:40]line Место: АЗС № 97 "Партнер Нефть" [19:55:40]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [19:55:40]line СНО: Общий режим [19:55:40]line Чек 141 29.07.2024 19:55 [19:55:40]line Смена: 427 ФФД: 1.0 [19:55:40]line ЗНМ: 0300000053 [19:55:40]line РНМ: 0000000000092626 [19:55:40]line Версия ККМ: 001 [19:55:40]line ФМ: 0000000000874958 [19:55:40]line ФД: 41952 [19:55:40]line ФПД: 253127596094622 [19:55:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T195538&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41952&fm=253127596094622&tin=02508201610067®Number=0000000000092626&sum=13000 [19:55:40]line 0 [19:55:40]written 0, free lines is 4095 [19:55:40]Write to MH i2c: 01 00 00 1B 04 1F [19:55:40]Write i2c OK [19:55:40]MH_I2C_Read... [19:55:40]Read from MH i2c: 01 [19:55:40]MH_I2C_Read... [19:55:40]Read from MH i2c: 01 07 00 [19:55:40]MH_I2C_Read... [19:55:40]Read from MH i2c: 01 07 00 1B 04 00 00 00 00 00 C7 0C F9 [19:55:40]RasterBufferAndPrint [19:55:40]line [19:55:40]line [19:55:40]line [19:55:40]line [19:55:40]line [19:55:40]written 0, free lines is 3277 [19:55:40]MH_Cut [19:55:40]Write to MH i2c: D1 01 00 22 04 01 F8 [19:55:40]Write i2c OK [19:55:40]MH_I2C_Read... [19:55:40]Read from MH i2c: D1 [19:55:40]MH_I2C_Read... [19:55:40]Read from MH i2c: D1 01 00 [19:55:40]MH_I2C_Read... [19:55:40]Read from MH i2c: D1 01 00 22 04 00 F7 [19:55:40]Write to MH i2c: 01 00 00 23 04 27 [19:55:40]Write i2c OK [19:55:40]MH_I2C_Read... [19:55:41]*** Cut start [19:55:41]*** Partial cut [19:55:41]*** CUTSNS_PIN = 1 [19:55:41]*** CUTSNS_PIN = 0 [19:55:41]*** Brake cut motor [19:55:42]Read from MH i2c: 01 [19:55:42]MH_I2C_Read... [19:55:42]*** Stop cut motor [19:55:42]*** Cut end [19:55:42]Read from MH i2c: 01 07 00 [19:55:42]MH_I2C_Read... [19:55:42]Read from MH i2c: 01 07 00 23 04 00 00 00 00 00 FF 0F 3C [19:55:42]process_action close_receipt done [19:55:42]requested_data is exist [19:55:42]produce_requested_data [19:55:42]requested_item fm.sn is exist - process it [19:55:42]wFMCommunicate request_size=4 [19:55:42]MH_SAM_APDU [19:55:42]CAPDU: 80 11 00 00 [19:55:42]Write to MH i2c: E2 08 00 24 04 80 11 00 00 00 00 00 00 A2 [19:55:42]Write i2c OK [19:55:42]MH_I2C_Read... [19:55:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:55:42]Read from MH i2c: E2 [19:55:42]MH_I2C_Read... [19:55:42]Read from MH i2c: E2 17 00 [19:55:42]MH_I2C_Read... [19:55:42]Read from MH i2c: E2 17 00 24 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 FE [19:55:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [19:55:42]wFMCommunicate OK [19:55:42]requested_item fd.num is exist - process it [19:55:42]SAM_PROTO_GetFieldsCounters [19:55:42]wFMCommunicate request_size=4 [19:55:42]MH_SAM_APDU [19:55:42]CAPDU: 80 13 00 00 [19:55:42]Write to MH i2c: E2 08 00 25 04 80 13 00 00 00 00 00 00 A5 [19:55:42]Write i2c OK [19:55:42]MH_I2C_Read... [19:55:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:55:42]Read from MH i2c: E2 [19:55:42]MH_I2C_Read... [19:55:42]Read from MH i2c: E2 62 00 [19:55:42]MH_I2C_Read... [19:55:42]Read from MH i2c: E2 62 00 25 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 E0 A3 00 00 0E 04 04 00 AB 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 A5 [19:55: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 E0 A3 00 00 0E 04 04 00 AB 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 [19:55:42]wFMCommunicate OK [19:55:42]SAM_PROTO_GetFieldsCounters done [19:55:42]requested_item shift.num is exist - process it [19:55:42]requested_item shift.opened is exist - process it [19:55:42]req_shift_opened [19:55:42]FM_GetShiftState [19:55:42]SAM_PROTO_GetShiftState [19:55:42]wFMCommunicate request_size=4 [19:55:42]MH_SAM_APDU [19:55:42]CAPDU: 80 13 01 00 [19:55:42]Write to MH i2c: E2 08 00 26 04 80 13 01 00 00 00 00 00 A7 [19:55:42]Write i2c OK [19:55:42]MH_I2C_Read... [19:55:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:55:42]Read from MH i2c: E2 [19:55:42]MH_I2C_Read... [19:55:42]Read from MH i2c: E2 0E 00 [19:55:42]MH_I2C_Read... [19:55:42]Read from MH i2c: E2 0E 00 26 04 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 43 [19:55:42]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [19:55:42]wFMCommunicate OK [19:55:42]SAM_PROTO_GetShiftState done [19:55:42]FM_GetShiftState done [19:55:42]req_shift_opened done [19:55:42]requested_item shift.open_date is exist - process it [19:55:42]req_shift_open_date [19:55:42]req_shift_open_date done [19:55:42]produce_requested_data done [19:55:42]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41952,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [19:55:42]process_action_free close_receipt [19:55:42]json_value_free [19:55:42]json_value_free done [19:55:42]process_json_proto returns [19:55:42]Send response to host [19:55:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41952,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [19:55:42]free response buf [19:55:42]execute_script done [19:55:42]execute_script returns [19:55:42]free content buf [19:55:42]Sock 9.Close socket [19:55:42]Sock 9.Thread stoped [19:55:43]Connected sock=8 [19:55: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 35 38 A4 01 00 00 C3 9B 9C 01 9D 2D 5A 03 01 00 03 00 90 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 BA F3 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 E0 A3 00 00 35 04 06 00 E6 37 DC 72 B4 9E D4 23 0B B4 2E 2A AD 07 [19:55: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 35 38 4F 00 00 00 83 AB 47 00 10 CF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 E0 A3 00 00 F4 03 04 00 D3 9F A7 66 B6 04 01 00 00 0A E7 F7 06 3C BE 99 91 [19:55:43]CommunicateWithHost err = 0 [19:55:43]CheckOFDResponse [19:55:43]1017 (14) - 77093643461234 [19:55:43]1041 (16) - 0000000000874958 [19:55:43]1040 (4) - 41952 [19:55:43]1012 (4) - 29.07.2024 13:57 [19:55:43]1206 (1) - 0 [19:55:43]OFD Sender: Remove packet 41952 [19:55:43]ProducePacketName [19:55:43]name=ofd_packets/00041952 [19:55:43]NVStorageDeleteData [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:54]recv_with_timeout no data received [19:55:59]OFD Sender: No OFD packet to send [19:56:04]OFD Sender: No OFD packet to send [19:56:06]recv_with_timeout no data received [19:56:09]OFD Sender: No OFD packet to send [19:56:14]OFD Sender: No OFD packet to send [19:56:18]recv_with_timeout no data received [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:30]recv_with_timeout no data received [19:56:34]OFD Sender: No OFD packet to send [19:56:39]OFD Sender: No OFD packet to send [19:56:41]recv_with_timeout no data received [19:56:44]OFD Sender: No OFD packet to send [19:56:49]OFD Sender: No OFD packet to send [19:56:54]OFD Sender: No OFD packet to send [19:56:58]accept exits with 10 [19:56:58]New connection [19:56:58]New thread 3066998116 created [19:56:58]Thread 3066854756 joined [19:56:58]Waiting for new connection... [19:56:58] Sock 10.Parse request [19:56:58]Sock 10.Check first char [19:56:58]Sock 10.First char is OK [19:56:58]request: POST /json_proto HTTP/1.0 [19:56:58]Method: POST [19:56:58]URL: /json_proto [19:56:58]Method is POST - this is cgi request [19:56:58]url: /json_proto [19:56:58]query_string will be loaded in cgi processing [19:56:58]execute_cgi json_proto POST (null) [19:56:58]execute_cgi path=json_proto method=POST [19:56:58]POST find Content-Length [19:56:58]Host: 172.17.43.132:8080 [19:56:58]Content-Length: 696 [19:56:58]Content-Type: application/json [19:56:58] [19:56:58]POST finish read [19:56:58]Found Content-Length = 696 [19:56:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183982", "tax_sys" : 0, "items" : [ { "code": "4870202521261", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u043B\u0435\u0441\u043D\u044B\u0435 \u044F\u0433\u043E\u0434\u044B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:56:58]execute_script... [19:56:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183982", "tax_sys" : 0, "items" : [ { "code": "4870202521261", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u043B\u0435\u0441\u043D\u044B\u0435 \u044F\u0433\u043E\u0434\u044B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:56:58]POST & json_proto [19:56:58]process_json_proto [19:56:58]json parsed OK: [19:56:58]protocol is kg_v1.0 [19:56:58]action value=close_receipt [19:56:58]process_action close_receipt [19:56:58]cmd_close_receipt [19:56:58]MH_GetDate [19:56:58]Write to MH i2c: F0 00 00 27 04 1A [19:56:58]Write i2c OK [19:56:58]MH_I2C_Read... [19:56:58]Read from MH i2c: F0 [19:56:58]MH_I2C_Read... [19:56:58]Read from MH i2c: F0 09 00 [19:56:58]MH_I2C_Read... [19:56:58]Read from MH i2c: F0 09 00 27 04 00 0B F4 A7 66 64 A3 A7 66 43 [19:56:58]GetLastDocTimeStamp 1722282938 [19:56:58]current date 1722283019 [19:56:58]FM_GetShiftState [19:56:58]SAM_PROTO_GetShiftState [19:56:58]wFMCommunicate request_size=4 [19:56:58]MH_SAM_APDU [19:56:58]CAPDU: 80 13 01 00 [19:56:58]Write to MH i2c: E2 08 00 28 04 80 13 01 00 00 00 00 00 A9 [19:56:58]Write i2c OK [19:56:58]MH_I2C_Read... [19:56:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:56:59]Read from MH i2c: E2 [19:56:59]MH_I2C_Read... [19:56:59]Read from MH i2c: E2 0E 00 [19:56:59]MH_I2C_Read... [19:56:59]Read from MH i2c: E2 0E 00 28 04 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 45 [19:56:59]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [19:56:59]wFMCommunicate OK [19:56:59]SAM_PROTO_GetShiftState done [19:56:59]FM_GetShiftState done [19:56:59]opened in 1722211496 [19:56:59]opened+sec_in_day 1722297896 [19:56:59]quantity*price = 11000 [19:56:59]sum+1 = 11001 [19:56:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 142 29.07.2024 19:56 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41953 ФПД: 108960553068217 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T195659&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41953&fm=108960553068217&tin=02508201610067®Number=0000000000092626&sum=11000 0 [19:57:00]StoreToDocumentArchive [19:57:00]shift 427 fd 41953 [19:57:00]save to /storage/0427/doc_00041953 [19:57:00]save last doc name /storage/0427/doc_00041953 to /storage/kkm_last_doc_name [19:57:00]save OK [19:57:00]Clear old archive folders... [19:57:00]ProcessDocumentItem done err = 0, tmpTLVsize=296 [19:57:00]tlvbuf is 020CEB00 [19:57:00]SAM_PROTO_ClearQueue [19:57:00]wFMCommunicate request_size=4 [19:57:00]MH_SAM_APDU [19:57:00]CAPDU: 80 09 00 00 [19:57:00]Write to MH i2c: E2 08 00 35 04 80 09 00 00 00 00 00 00 AB [19:57:00]Write i2c OK [19:57:00]MH_I2C_Read... [19:57:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:57:00]Read from MH i2c: E2 [19:57:00]MH_I2C_Read... [19:57:00]Read from MH i2c: E2 03 00 [19:57:00]MH_I2C_Read... [19:57:00]Read from MH i2c: E2 03 00 35 04 00 90 00 AD [19:57:00]RAPDU: 90 00 [19:57:00]wFMCommunicate OK [19:57:00]SAM_PROTO_ClearQueue done [19:57:00]KKMCreateOFDPacket [19:57:00]OFDProtocolAddRootSTLVToBuf [19:57:00]FM_MakeSignedData [19:57:00]FM_MakeSignedData [19:57:00]SAM_PROTO_SignData [19:57:00]wFMCommunicate request_size=4 [19:57:00]MH_SAM_APDU [19:57:00]CAPDU: 80 0D 01 02 [19:57:00]Write to MH i2c: E2 08 00 36 04 80 0D 01 02 00 00 00 00 B3 [19:57:00]Write i2c OK [19:57:00]MH_I2C_Read... [19:57:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:57:00]Read from MH i2c: E2 [19:57:00]MH_I2C_Read... [19:57:00]Read from MH i2c: E2 03 00 [19:57:00]MH_I2C_Read... [19:57:00]Read from MH i2c: E2 03 00 36 04 00 90 00 AE [19:57:00]RAPDU: 90 00 [19:57:00]wFMCommunicate OK [19:57:00]wFMCommunicate request_size=255 [19:57:00]MH_SAM_APDU [19:57:00]CAPDU: 80 0D 02 02 FA 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 0B F4 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [19:57:00]Write to MH i2c: E2 02 01 37 04 80 0D 02 02 FA 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 0B F4 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 77 [19:57:00]Write i2c OK [19:57:00]MH_I2C_Read... [19:57:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:57:00]Read from MH i2c: E2 [19:57:00]MH_I2C_Read... [19:57:00]Read from MH i2c: E2 03 00 [19:57:00]MH_I2C_Read... [19:57:00]Read from MH i2c: E2 03 00 37 04 00 90 00 AF [19:57:00]RAPDU: 90 00 [19:57:00]wFMCommunicate OK [19:57:00]wFMCommunicate request_size=55 [19:57:00]MH_SAM_APDU [19:57:00]CAPDU: 80 0D 02 02 32 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 E1 A3 00 00 35 04 06 00 63 19 5B 0F 66 B9 [19:57:00]Write to MH i2c: E2 3A 00 38 04 80 0D 02 02 32 00 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 E1 A3 00 00 35 04 06 00 63 19 5B 0F 66 B9 00 00 A1 [19:57:00]Write i2c OK [19:57:00]MH_I2C_Read... [19:57:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:57:00]Read from MH i2c: E2 [19:57:00]MH_I2C_Read... [19:57:00]Read from MH i2c: E2 03 00 [19:57:00]MH_I2C_Read... [19:57:00]Read from MH i2c: E2 03 00 38 04 00 90 00 B0 [19:57:00]RAPDU: 90 00 [19:57:00]wFMCommunicate OK [19:57:00]wFMCommunicate request_size=4 [19:57:00]MH_SAM_APDU [19:57:00]CAPDU: 80 0D 03 02 [19:57:00]Write to MH i2c: E2 08 00 39 04 80 0D 03 02 00 00 00 00 B8 [19:57:00]Write i2c OK [19:57:00]MH_I2C_Read... [19:57:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:57:00]Read from MH i2c: E2 [19:57:00]MH_I2C_Read... [19:57:00]Read from MH i2c: E2 0B 00 [19:57:00]MH_I2C_Read... [19:57:00]Read from MH i2c: E2 0B 00 39 04 00 B5 D2 05 14 DC 5F 56 52 90 00 3C [19:57:00]RAPDU: B5 D2 05 14 DC 5F 56 52 90 00 [19:57:00]wFMCommunicate OK [19:57:00]SAM_PROTO_SignData done [19:57:00]FM_MakeSignedData done [19:57:00]CreateOFDProtocolMessage [19:57:00]wFMCommunicate request_size=4 [19:57:00]MH_SAM_APDU [19:57:00]CAPDU: 80 11 00 00 [19:57:00]Write to MH i2c: E2 08 00 3A 04 80 11 00 00 00 00 00 00 B8 [19:57:00]Write i2c OK [19:57:00]MH_I2C_Read... [19:57:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:57:00]Read from MH i2c: E2 [19:57:00]MH_I2C_Read... [19:57:00]Read from MH i2c: E2 17 00 [19:57:00]MH_I2C_Read... [19:57:00]Read from MH i2c: E2 17 00 3A 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 14 [19:57:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [19:57:00]wFMCommunicate OK [19:57:00]CreateOFDProtocolMessage done [19:57:00]OFDSenderStorePacket 41953 [19:57:00]StoreOFDPacket docnum=41953 [19:57:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 3C 01 00 00 07 91 34 01 BC F7 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 0B F4 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 E1 A3 00 00 35 04 06 00 63 19 5B 0F 66 B9 B5 D2 05 14 DC 5F 56 52 [19:57:00]CheckFolder [19:57:00]dirname=/storage/ofd_packets [19:57:00]CheckFolder done [19:57:00]ProducePacketName [19:57:00]name=ofd_packets/00041953 [19:57:00]NVStorageSaveData ofd_packets/00041953 [19:57:00]File name is /storage/ofd_packets/00041953 [19:57:00]Write 346 bytes [19:57:00]NVStorageSaveData done [19:57:00]OFDSenderStorePacket done [19:57:00]KKMCreateOFDPacket done [19:57:00]NVStorageSaveData kkm_last_timestamp [19:57:00]File name is /storage/kkm_last_timestamp [19:57:00]Write 4 bytes [19:57:00]NVStorageSaveData done [19:57:00]ExternCall_PrintAddStr [19:57:00]wPrintStart [19:57:00]Write to MH i2c: 01 00 00 3B 04 3F [19:57:00]Write i2c OK [19:57:00]MH_I2C_Read... [19:57:00]Read from MH i2c: 01 [19:57:00]MH_I2C_Read... [19:57:00]Read from MH i2c: 01 07 00 [19:57:00]MH_I2C_Read... [19:57:00]Read from MH i2c: 01 07 00 3B 04 00 00 00 00 00 FF 0F 54 [19:57:00]RasterBufferAndPrint [19:57:00]line Счет N : (3)183982 [19:57:00]line ИНН: 02508201610067 [19:57:00]line Контрольно-Кассовый Чек [19:57:00]line ПРОДАЖА [19:57:00]line Товар: 4870202521261 [19:57:00]line Напиток MAXI чай 1,2 лесные ягоды [19:57:00]line 1.000 * 110.00 [19:57:00]line = 110.00 [19:57:00]line НДС 12% НСП 1% [19:57:00]line > о реализуемом товаре [19:57:00]line ИТОГО: 110.00 [19:57:00]line НСП 1% : 0.97 [19:57:00]line НДС 12% : 11.68 [19:57:00]line Наличными: 110.00 [19:57:00]line Безнал.: 0.00 [19:57:00]line Место: АЗС № 97 "Партнер Нефть" [19:57:00]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [19:57:00]line СНО: Общий режим [19:57:00]line Чек 142 29.07.2024 19:56 [19:57:00]line Смена: 427 ФФД: 1.0 [19:57:00]line ЗНМ: 0300000053 [19:57:00]line РНМ: 0000000000092626 [19:57:00]line Версия ККМ: 001 [19:57:00]line ФМ: 0000000000874958 [19:57:00]line ФД: 41953 [19:57:00]line ФПД: 108960553068217 [19:57:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T195659&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41953&fm=108960553068217&tin=02508201610067®Number=0000000000092626&sum=11000 [19:57:01]OFD Sender: Processing packet 41953 [packets to send 57, broken 56] [19:57:01]ProducePacketName [19:57:01]name=ofd_packets/00041953 [19:57:01]OFD Sender: To server: pG, [19:57:01]CommunicateWithHost lk.salyk.kg:30040 [19:57:01]ConnectInit lk.salyk.kg [19:57:01]line 0 [19:57:01]written 0, free lines is 4095 [19:57:01]Write to MH i2c: 01 00 00 64 04 68 [19:57:01]Write i2c OK [19:57:01]MH_I2C_Read... [19:57:01]Read from MH i2c: 01 [19:57:01]MH_I2C_Read... [19:57:01]Read from MH i2c: 01 07 00 [19:57:01]MH_I2C_Read... [19:57:01]Read from MH i2c: 01 07 00 64 04 00 00 00 00 00 02 0D 7E [19:57:01]RasterBufferAndPrint [19:57:01]line [19:57:01]line [19:57:01]line [19:57:01]line [19:57:01]line [19:57:01]written 0, free lines is 3336 [19:57:01]MH_Cut [19:57:01]Write to MH i2c: D1 01 00 6B 04 01 41 [19:57:01]Write i2c OK [19:57:01]MH_I2C_Read... [19:57:01]Read from MH i2c: D1 [19:57:01]MH_I2C_Read... [19:57:01]Read from MH i2c: D1 01 00 [19:57:01]MH_I2C_Read... [19:57:01]Read from MH i2c: D1 01 00 6B 04 00 40 [19:57:01]Write to MH i2c: 01 00 00 6C 04 70 [19:57:01]Write i2c OK [19:57:01]MH_I2C_Read... [19:57:02]*** Cut start [19:57:02]*** Partial cut [19:57:02]*** CUTSNS_PIN = 1 [19:57:02]*** CUTSNS_PIN = 0 [19:57:02]*** Brake cut motor [19:57:02]Read from MH i2c: 01 [19:57:02]MH_I2C_Read... [19:57:02]*** Stop cut motor [19:57:02]*** Cut end [19:57:02]Read from MH i2c: 01 07 00 [19:57:02]MH_I2C_Read... [19:57:02]Read from MH i2c: 01 07 00 6C 04 00 00 00 00 00 FF 0F 85 [19:57:02]process_action close_receipt done [19:57:02]requested_data is exist [19:57:02]produce_requested_data [19:57:02]requested_item fm.sn is exist - process it [19:57:02]wFMCommunicate request_size=4 [19:57:02]MH_SAM_APDU [19:57:02]CAPDU: 80 11 00 00 [19:57:02]Write to MH i2c: E2 08 00 6D 04 80 11 00 00 00 00 00 00 EB [19:57:02]Write i2c OK [19:57:02]MH_I2C_Read... [19:57:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:57:02]Read from MH i2c: E2 [19:57:02]MH_I2C_Read... [19:57:02]Read from MH i2c: E2 17 00 [19:57:02]MH_I2C_Read... [19:57:02]Read from MH i2c: E2 17 00 6D 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 47 [19:57:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [19:57:02]wFMCommunicate OK [19:57:02]requested_item fd.num is exist - process it [19:57:02]SAM_PROTO_GetFieldsCounters [19:57:02]wFMCommunicate request_size=4 [19:57:02]MH_SAM_APDU [19:57:02]CAPDU: 80 13 00 00 [19:57:02]Write to MH i2c: E2 08 00 6E 04 80 13 00 00 00 00 00 00 EE [19:57:02]Write i2c OK [19:57:02]MH_I2C_Read... [19:57:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:57:03]Read from MH i2c: E2 [19:57:03]MH_I2C_Read... [19:57:03]Read from MH i2c: E2 62 00 [19:57:03]MH_I2C_Read... [19:57:03]Read from MH i2c: E2 62 00 6E 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 E1 A3 00 00 0E 04 04 00 AB 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 F2 [19:57: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 E1 A3 00 00 0E 04 04 00 AB 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 [19:57:03]wFMCommunicate OK [19:57:03]SAM_PROTO_GetFieldsCounters done [19:57:03]requested_item shift.num is exist - process it [19:57:03]requested_item shift.opened is exist - process it [19:57:03]req_shift_opened [19:57:03]FM_GetShiftState [19:57:03]SAM_PROTO_GetShiftState [19:57:03]wFMCommunicate request_size=4 [19:57:03]MH_SAM_APDU [19:57:03]CAPDU: 80 13 01 00 [19:57:03]Write to MH i2c: E2 08 00 6F 04 80 13 01 00 00 00 00 00 F0 [19:57:03]Write i2c OK [19:57:03]MH_I2C_Read... [19:57:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:57:03]Read from MH i2c: E2 [19:57:03]MH_I2C_Read... [19:57:03]Read from MH i2c: E2 0E 00 [19:57:03]MH_I2C_Read... [19:57:03]Read from MH i2c: E2 0E 00 6F 04 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 8C [19:57:03]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [19:57:03]wFMCommunicate OK [19:57:03]SAM_PROTO_GetShiftState done [19:57:03]FM_GetShiftState done [19:57:03]req_shift_opened done [19:57:03]requested_item shift.open_date is exist - process it [19:57:03]req_shift_open_date [19:57:03]req_shift_open_date done [19:57:03]produce_requested_data done [19:57:03]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41953,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [19:57:03]process_action_free close_receipt [19:57:03]json_value_free [19:57:03]json_value_free done [19:57:03]process_json_proto returns [19:57:03]Send response to host [19:57:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41953,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [19:57:03]free response buf [19:57:03]execute_script done [19:57:03]execute_script returns [19:57:03]free content buf [19:57:03]Sock 10.Close socket [19:57:03]Sock 10.Thread stoped [19:57:06]ConnectInit Can't take IP for lk.salyk.kg [19:57:06]CommunicateWithHost connect error [19:57:06]CommunicateWithHost err = -1 [19:57:06]OFD Sender: Server communicate error [19:57:10]recv_with_timeout no data received [19:57:11]OFD Sender: Processing packet 41953 [packets to send 57, broken 56] [19:57:11]ProducePacketName [19:57:11]name=ofd_packets/00041953 [19:57:11]OFD Sender: To server: pG, [19:57:11]CommunicateWithHost lk.salyk.kg:30040 [19:57:11]ConnectInit lk.salyk.kg [19:57:16]ConnectInit Can't take IP for lk.salyk.kg [19:57:16]CommunicateWithHost connect error [19:57:16]CommunicateWithHost err = -1 [19:57:16]OFD Sender: Server communicate error [19:57:21]OFD Sender: Processing packet 41953 [packets to send 57, broken 56] [19:57:21]ProducePacketName [19:57:21]name=ofd_packets/00041953 [19:57:21]OFD Sender: To server: pG, [19:57:21]CommunicateWithHost lk.salyk.kg:30040 [19:57:21]ConnectInit lk.salyk.kg [19:57:25]recv_with_timeout no data received [19:57:26]ConnectInit Can't take IP for lk.salyk.kg [19:57:26]CommunicateWithHost connect error [19:57:26]CommunicateWithHost err = -1 [19:57:26]OFD Sender: Server communicate error [19:57:31]OFD Sender: Processing packet 41953 [packets to send 57, broken 56] [19:57:31]ProducePacketName [19:57:31]name=ofd_packets/00041953 [19:57:31]OFD Sender: To server: pG, [19:57:31]CommunicateWithHost lk.salyk.kg:30040 [19:57:31]ConnectInit lk.salyk.kg [19:57:36]ConnectInit Can't take IP for lk.salyk.kg [19:57:36]CommunicateWithHost connect error [19:57:36]CommunicateWithHost err = -1 [19:57:36]OFD Sender: Server communicate error [19:57:41]OFD Sender: Processing packet 41953 [packets to send 57, broken 56] [19:57:41]ProducePacketName [19:57:41]name=ofd_packets/00041953 [19:57:41]OFD Sender: To server: pG, [19:57:41]CommunicateWithHost lk.salyk.kg:30040 [19:57:41]ConnectInit lk.salyk.kg [19:57:46]ConnectInit Can't take IP for lk.salyk.kg [19:57:46]CommunicateWithHost connect error [19:57:46]CommunicateWithHost err = -1 [19:57:46]OFD Sender: Server communicate error [19:57:51]OFD Sender: Processing packet 41953 [packets to send 57, broken 56] [19:57:51]ProducePacketName [19:57:51]name=ofd_packets/00041953 [19:57:51]OFD Sender: To server: pG, [19:57:51]CommunicateWithHost lk.salyk.kg:30040 [19:57:51]ConnectInit lk.salyk.kg [19:57:52]recv_with_timeout no data received [19:57:56]ConnectInit Can't take IP for lk.salyk.kg [19:57:56]CommunicateWithHost connect error [19:57:56]CommunicateWithHost err = -1 [19:57:56]OFD Sender: Server communicate error [19:58:01]OFD Sender: Processing packet 41953 [packets to send 57, broken 56] [19:58:01]ProducePacketName [19:58:01]name=ofd_packets/00041953 [19:58:01]OFD Sender: To server: pG, [19:58:01]CommunicateWithHost lk.salyk.kg:30040 [19:58:01]ConnectInit lk.salyk.kg [19:58:06]ConnectInit Can't take IP for lk.salyk.kg [19:58:06]CommunicateWithHost connect error [19:58:06]CommunicateWithHost err = -1 [19:58:06]OFD Sender: Server communicate error [19:58:11]OFD Sender: Processing packet 41953 [packets to send 57, broken 56] [19:58:11]ProducePacketName [19:58:11]name=ofd_packets/00041953 [19:58:11]OFD Sender: To server: pG, [19:58:11]CommunicateWithHost lk.salyk.kg:30040 [19:58:11]ConnectInit lk.salyk.kg [19:58:16]ConnectInit Can't take IP for lk.salyk.kg [19:58:16]CommunicateWithHost connect error [19:58:16]CommunicateWithHost err = -1 [19:58:16]OFD Sender: Server communicate error [19:58:21]OFD Sender: Processing packet 41953 [packets to send 57, broken 56] [19:58:21]ProducePacketName [19:58:21]name=ofd_packets/00041953 [19:58:21]OFD Sender: To server: pG, [19:58:21]CommunicateWithHost lk.salyk.kg:30040 [19:58:21]ConnectInit lk.salyk.kg [19:58:24]Connected sock=8 [19:58:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 3C 01 00 00 07 91 34 01 BC F7 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 0B F4 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 E1 A3 00 00 35 04 06 00 63 19 5B 0F 66 B9 B5 D2 05 14 DC 5F 56 52 [19:58: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 35 38 4F 00 00 00 76 75 47 00 D2 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 35 38 10 04 04 00 E1 A3 00 00 F4 03 04 00 74 A0 A7 66 B6 04 01 00 00 C3 2D 6F E7 D0 92 3B 36 [19:58:25]CommunicateWithHost err = 0 [19:58:25]CheckOFDResponse [19:58:25]1017 (14) - 77093643461234 [19:58:25]1041 (16) - 0000000000874958 [19:58:25]1040 (4) - 41953 [19:58:25]1012 (4) - 29.07.2024 14:00 [19:58:25]1206 (1) - 0 [19:58:25]OFD Sender: Remove packet 41953 [19:58:25]ProducePacketName [19:58:25]name=ofd_packets/00041953 [19:58:25]NVStorageDeleteData [19:58:25]OFD Sender: No OFD packet to send [19:58:30]OFD Sender: No OFD packet to send [19:58:35]OFD Sender: No OFD packet to send [19:58:40]OFD Sender: No OFD packet to send [19:58:45]OFD Sender: No OFD packet to send [19:58:50]OFD Sender: No OFD packet to send [19:58:55]OFD Sender: No OFD packet to send [19:59:00]OFD Sender: No OFD packet to send [19:59:05]OFD Sender: No OFD packet to send [19:59:10]OFD Sender: No OFD packet to send [19:59:15]OFD Sender: No OFD packet to send [19:59:20]OFD Sender: No OFD packet to send [19:59:25]OFD Sender: No OFD packet to send [19:59:30]OFD Sender: No OFD packet to send [19:59:35]OFD Sender: No OFD packet to send [19:59:40]OFD Sender: No OFD packet to send [19:59:45]recv_with_timeout no data received [19:59:45]OFD Sender: No OFD packet to send [19:59:50]OFD Sender: No OFD packet to send [19:59:55]OFD Sender: No OFD packet to send [20:00:00]OFD Sender: No OFD packet to send [20:00:02]recv_with_timeout no data received [20:00:05]OFD Sender: No OFD packet to send [20:00:10]OFD Sender: No OFD packet to send [20:00:15]OFD Sender: No OFD packet to send [20:00:20]OFD Sender: No OFD packet to send [20:00:25]OFD Sender: No OFD packet to send [20:00:30]OFD Sender: No OFD packet to send [20:00:35]OFD Sender: No OFD packet to send [20:00:40]OFD Sender: No OFD packet to send [20:00:45]OFD Sender: No OFD packet to send [20:00:50]OFD Sender: No OFD packet to send [20:00:55]OFD Sender: No OFD packet to send [20:00:56]recv_with_timeout no data received [20:01:00]OFD Sender: No OFD packet to send [20:01:05]OFD Sender: No OFD packet to send [20:01:10]OFD Sender: No OFD packet to send [20:01:13]recv_with_timeout no data received [20:01:15]OFD Sender: No OFD packet to send [20:01:20]OFD Sender: No OFD packet to send [20:01:25]OFD Sender: No OFD packet to send [20:01:30]OFD Sender: No OFD packet to send [20:01:35]OFD Sender: No OFD packet to send [20:01:40]OFD Sender: No OFD packet to send [20:01:45]OFD Sender: No OFD packet to send [20:01:50]OFD Sender: No OFD packet to send [20:01:55]OFD Sender: No OFD packet to send [20:02:00]OFD Sender: No OFD packet to send [20:02:05]OFD Sender: No OFD packet to send [20:02:10]OFD Sender: No OFD packet to send [20:02:15]OFD Sender: No OFD packet to send [20:02:20]OFD Sender: No OFD packet to send [20:02:25]OFD Sender: No OFD packet to send [20:02:30]OFD Sender: No OFD packet to send [20:02:34]recv_with_timeout no data received [20:02:35]OFD Sender: No OFD packet to send [20:02:40]OFD Sender: No OFD packet to send [20:02:45]OFD Sender: No OFD packet to send [20:02:50]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:07]recv_with_timeout no data received [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:03:58]recv_with_timeout no data received [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:15]recv_with_timeout no data received [20:04:16]OFD Sender: No OFD packet to send [20:04:21]OFD Sender: No OFD packet to send [20:04:26]OFD Sender: No OFD packet to send [20:04:31]OFD Sender: No OFD packet to send [20:04:36]OFD Sender: No OFD packet to send [20:04:41]OFD Sender: No OFD packet to send [20:04:46]OFD Sender: No OFD packet to send [20:04:51]OFD Sender: No OFD packet to send [20:04:56]OFD Sender: No OFD packet to send [20:05:01]OFD Sender: No OFD packet to send [20:05:06]OFD Sender: No OFD packet to send [20:05:11]OFD Sender: No OFD packet to send [20:05:16]OFD Sender: No OFD packet to send [20:05:21]OFD Sender: No OFD packet to send [20:05:26]OFD Sender: No OFD packet to send [20:05:31]OFD Sender: No OFD packet to send [20:05:36]OFD Sender: No OFD packet to send [20:05:41]OFD Sender: No OFD packet to send [20:05:46]OFD Sender: No OFD packet to send [20:05:51]OFD Sender: No OFD packet to send [20:05:56]OFD Sender: No OFD packet to send [20:05:58]recv_with_timeout no data received [20:06:01]OFD Sender: No OFD packet to send [20:06:06]OFD Sender: No OFD packet to send [20:06:11]OFD Sender: No OFD packet to send [20:06:16]OFD Sender: No OFD packet to send [20:06:21]OFD Sender: No OFD packet to send [20:06:26]OFD Sender: No OFD packet to send [20:06:31]OFD Sender: No OFD packet to send [20:06:33]recv_with_timeout no data received [20:06:35]accept exits with 9 [20:06:35]New connection [20:06:35]New thread 3066854756 created [20:06:35]Thread 3066998116 joined [20:06:35]Waiting for new connection... [20:06:35] Sock 9.Parse request [20:06:35]Sock 9.Check first char [20:06:35]Sock 9.First char is OK [20:06:35]request: POST /json_proto HTTP/1.0 [20:06:35]Method: POST [20:06:35]URL: /json_proto [20:06:35]Method is POST - this is cgi request [20:06:35]url: /json_proto [20:06:35]query_string will be loaded in cgi processing [20:06:35]execute_cgi json_proto POST (null) [20:06:35]execute_cgi path=json_proto method=POST [20:06:35]POST find Content-Length [20:06:35]Host: 172.17.43.132:8080 [20:06:35]Content-Length: 1076 [20:06:35]Content-Type: application/json [20:06:35] [20:06:35]POST finish read [20:06:35]Found Content-Length = 1076 [20:06:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183983", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700040114120", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 65.00, "quantity" : 1.000, "sum" : 65.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" : 205.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:06:35]execute_script... [20:06:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183983", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700040114120", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 65.00, "quantity" : 1.000, "sum" : 65.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" : 205.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:06:35]POST & json_proto [20:06:35]process_json_proto [20:06:35]json parsed OK: [20:06:35]protocol is kg_v1.0 [20:06:35]action value=close_receipt [20:06:35]process_action close_receipt [20:06:35]cmd_close_receipt [20:06:35]MH_GetDate [20:06:35]Write to MH i2c: F0 00 00 70 04 63 [20:06:35]Write i2c OK [20:06:35]MH_I2C_Read... [20:06:35]Read from MH i2c: F0 [20:06:35]MH_I2C_Read... [20:06:35]Read from MH i2c: F0 09 00 [20:06:35]MH_I2C_Read... [20:06:35]Read from MH i2c: F0 09 00 70 04 00 4B F6 A7 66 64 A3 A7 66 CE [20:06:35]GetLastDocTimeStamp 1722283019 [20:06:35]current date 1722283595 [20:06:35]FM_GetShiftState [20:06:35]SAM_PROTO_GetShiftState [20:06:35]wFMCommunicate request_size=4 [20:06:35]MH_SAM_APDU [20:06:35]CAPDU: 80 13 01 00 [20:06:35]Write to MH i2c: E2 08 00 71 04 80 13 01 00 00 00 00 00 F2 [20:06:35]Write i2c OK [20:06:35]MH_I2C_Read... [20:06:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:06:35]Read from MH i2c: E2 [20:06:35]MH_I2C_Read... [20:06:35]Read from MH i2c: E2 0E 00 [20:06:35]MH_I2C_Read... [20:06:35]Read from MH i2c: E2 0E 00 71 04 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 8E [20:06:35]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [20:06:35]wFMCommunicate OK [20:06:35]SAM_PROTO_GetShiftState done [20:06:35]FM_GetShiftState done [20:06:35]opened in 1722211496 [20:06:35]opened+sec_in_day 1722297896 [20:06:35]quantity*price = 14000 [20:06:35]sum+1 = 14001 [20:06:35]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700040114120 Султан чай 1л. чер персик 1.000 * 65.00 = 65.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 205.00 НСП 1% : 1.81 НДС 12% : 21.77 Наличными: 0.00 Безнал.: 205.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 143 29.07.2024 20:06 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874958 ФД: 41954 ФПД: 267128706980980 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T200635&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41954&fm=267128706980980&tin=02508201610067®Number=0000000000092626&sum=20500 0 [20:06:36]StoreToDocumentArchive [20:06:36]shift 427 fd 41954 [20:06:36]save to /storage/0427/doc_00041954 [20:06:36]save last doc name /storage/0427/doc_00041954 to /storage/kkm_last_doc_name [20:06:36]save OK [20:06:36]Clear old archive folders... [20:06:36]ProcessDocumentItem done err = 0, tmpTLVsize=391 [20:06:36]tlvbuf is 020CD020 [20:06:36]SAM_PROTO_ClearQueue [20:06:36]wFMCommunicate request_size=4 [20:06:36]MH_SAM_APDU [20:06:36]CAPDU: 80 09 00 00 [20:06:36]Write to MH i2c: E2 08 00 7E 04 80 09 00 00 00 00 00 00 F4 [20:06:36]Write i2c OK [20:06:36]MH_I2C_Read... [20:06:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:06:36]Read from MH i2c: E2 [20:06:36]MH_I2C_Read... [20:06:36]Read from MH i2c: E2 03 00 [20:06:36]MH_I2C_Read... [20:06:36]Read from MH i2c: E2 03 00 7E 04 00 90 00 F6 [20:06:36]RAPDU: 90 00 [20:06:36]wFMCommunicate OK [20:06:36]SAM_PROTO_ClearQueue done [20:06:36]KKMCreateOFDPacket [20:06:36]OFDProtocolAddRootSTLVToBuf [20:06:36]FM_MakeSignedData [20:06:36]FM_MakeSignedData [20:06:36]SAM_PROTO_SignData [20:06:36]wFMCommunicate request_size=4 [20:06:36]MH_SAM_APDU [20:06:36]CAPDU: 80 0D 01 02 [20:06:36]Write to MH i2c: E2 08 00 7F 04 80 0D 01 02 00 00 00 00 FC [20:06:36]Write i2c OK [20:06:36]MH_I2C_Read... [20:06:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:06:36]Read from MH i2c: E2 [20:06:36]MH_I2C_Read... [20:06:36]Read from MH i2c: E2 03 00 [20:06:36]MH_I2C_Read... [20:06:36]Read from MH i2c: E2 03 00 7F 04 00 90 00 F7 [20:06:36]RAPDU: 90 00 [20:06:36]wFMCommunicate OK [20:06:36]wFMCommunicate request_size=255 [20:06:36]MH_SAM_APDU [20:06:36]CAPDU: 80 0D 02 02 FA 03 00 87 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 [20:06:36]Write to MH i2c: E2 02 01 80 04 80 0D 02 02 FA 00 03 00 87 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 00 00 06 [20:06:36]Write i2c OK [20:06:36]MH_I2C_Read... [20:06:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:06:36]Read from MH i2c: E2 [20:06:36]MH_I2C_Read... [20:06:36]Read from MH i2c: E2 03 00 [20:06:36]MH_I2C_Read... [20:06:36]Read from MH i2c: E2 03 00 80 04 00 90 00 F8 [20:06:36]RAPDU: 90 00 [20:06:36]wFMCommunicate OK [20:06:36]wFMCommunicate request_size=150 [20:06:36]MH_SAM_APDU [20:06:36]CAPDU: 80 0D 02 02 91 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 50 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 4B F6 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 E2 A3 00 00 35 04 06 00 F2 F3 BF B0 5C 74 [20:06:36]Write to MH i2c: E2 99 00 81 04 80 0D 02 02 91 00 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 50 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 4B F6 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 E2 A3 00 00 35 04 06 00 F2 F3 BF B0 5C 74 00 00 2D [20:06:36]Write i2c OK [20:06:36]MH_I2C_Read... [20:06:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:06:36]Read from MH i2c: E2 [20:06:36]MH_I2C_Read... [20:06:36]Read from MH i2c: E2 03 00 [20:06:36]MH_I2C_Read... [20:06:36]Read from MH i2c: E2 03 00 81 04 00 90 00 F9 [20:06:36]RAPDU: 90 00 [20:06:36]wFMCommunicate OK [20:06:36]wFMCommunicate request_size=4 [20:06:36]MH_SAM_APDU [20:06:36]CAPDU: 80 0D 03 02 [20:06:36]Write to MH i2c: E2 08 00 82 04 80 0D 03 02 00 00 00 00 01 [20:06:36]Write i2c OK [20:06:36]MH_I2C_Read... [20:06:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:06:36]Read from MH i2c: E2 [20:06:36]MH_I2C_Read... [20:06:36]Read from MH i2c: E2 0B 00 [20:06:36]MH_I2C_Read... [20:06:36]Read from MH i2c: E2 0B 00 82 04 00 32 90 15 D2 44 50 48 1A 90 00 A1 [20:06:36]RAPDU: 32 90 15 D2 44 50 48 1A 90 00 [20:06:36]wFMCommunicate OK [20:06:36]SAM_PROTO_SignData done [20:06:36]FM_MakeSignedData done [20:06:36]CreateOFDProtocolMessage [20:06:36]wFMCommunicate request_size=4 [20:06:36]MH_SAM_APDU [20:06:36]CAPDU: 80 11 00 00 [20:06:36]Write to MH i2c: E2 08 00 83 04 80 11 00 00 00 00 00 00 01 [20:06:36]Write i2c OK [20:06:36]MH_I2C_Read... [20:06:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:06:36]Read from MH i2c: E2 [20:06:36]MH_I2C_Read... [20:06:36]Read from MH i2c: E2 17 00 [20:06:36]MH_I2C_Read... [20:06:36]Read from MH i2c: E2 17 00 83 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 5D [20:06:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [20:06:36]wFMCommunicate OK [20:06:36]CreateOFDProtocolMessage done [20:06:36]OFDSenderStorePacket 41954 [20:06:36]StoreOFDPacket docnum=41954 [20:06:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 9B 01 00 00 19 00 93 01 D4 EE 5A 03 01 00 03 00 87 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 50 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 4B F6 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 E2 A3 00 00 35 04 06 00 F2 F3 BF B0 5C 74 32 90 15 D2 44 50 48 1A [20:06:36]CheckFolder [20:06:36]dirname=/storage/ofd_packets [20:06:36]CheckFolder done [20:06:36]ProducePacketName [20:06:36]name=ofd_packets/00041954 [20:06:36]NVStorageSaveData ofd_packets/00041954 [20:06:36]File name is /storage/ofd_packets/00041954 [20:06:36]Write 441 bytes [20:06:36]NVStorageSaveData done [20:06:36]OFDSenderStorePacket done [20:06:36]KKMCreateOFDPacket done [20:06:36]NVStorageSaveData kkm_last_timestamp [20:06:36]File name is /storage/kkm_last_timestamp [20:06:36]Write 4 bytes [20:06:37]NVStorageSaveData done [20:06:37]ExternCall_PrintAddStr [20:06:37]wPrintStart [20:06:37]Write to MH i2c: 01 00 00 84 04 88 [20:06:37]OFD Sender: Processing packet 41954 [packets to send 57, broken 56] [20:06:37]ProducePacketName [20:06:37]name=ofd_packets/00041954 [20:06:37]OFD Sender: To server: pG, [20:06:37]CommunicateWithHost lk.salyk.kg:30040 [20:06:37]ConnectInit lk.salyk.kg [20:06:37]Write i2c OK [20:06:37]MH_I2C_Read... [20:06:37]Read from MH i2c: 01 [20:06:37]MH_I2C_Read... [20:06:37]Read from MH i2c: 01 07 00 [20:06:37]MH_I2C_Read... [20:06:37]Read from MH i2c: 01 07 00 84 04 00 00 00 00 00 FF 0F 9D [20:06:37]RasterBufferAndPrint [20:06:37]line Счет N : (3)183983 [20:06:37]line ИНН: 02508201610067 [20:06:37]line Контрольно-Кассовый Чек [20:06:37]line ПРОДАЖА [20:06:37]line Товар: 48743587 [20:06:37]line Сигареты Winston XStyle Silver [20:06:37]line 1.000 * 140.00 [20:06:37]line = 140.00 [20:06:37]line НДС 12% НСП 1% [20:06:37]line > о реализуемом товаре [20:06:37]line Товар: 4700040114120 [20:06:37]line Султан чай 1л. чер персик [20:06:37]line 1.000 * 65.00 [20:06:37]line = 65.00 [20:06:37]line НДС 12% НСП 1% [20:06:37]line > о реализуемом товаре [20:06:37]line ИТОГО: 205.00 [20:06:37]line НСП 1% : 1.81 [20:06:37]line НДС 12% : 21.77 [20:06:37]line Наличными: 0.00 [20:06:37]line Безнал.: 205.00 [20:06:37]line Место: АЗС № 97 "Партнер Нефть" [20:06:37]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [20:06:37]line СНО: Общий режим [20:06:37]line Чек 143 29.07.2024 20:06 [20:06:37]line Смена: 427 ФФД: 1.0 [20:06:37]line ЗНМ: 0300000053 [20:06:37]line РНМ: 0000000000092626 [20:06:37]line Версия ККМ: 001 [20:06:37]line Платежная система: O! деньги [20:06:37]line ФМ: 0000000000874958 [20:06:37]line ФД: 41954 [20:06:37]line ФПД: 267128706980980 [20:06:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T200635&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41954&fm=267128706980980&tin=02508201610067®Number=0000000000092626&sum=20500 [20:06:37]line 0 [20:06:37]written 0, free lines is 4095 [20:06:37]Connected sock=10 [20:06: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 35 38 9B 01 00 00 19 00 93 01 D4 EE 5A 03 01 00 03 00 87 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 50 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 4B F6 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 E2 A3 00 00 35 04 06 00 F2 F3 BF B0 5C 74 32 90 15 D2 44 50 48 1A [20:06:37]Write to MH i2c: 01 00 00 B5 04 B9 [20:06:37]Write i2c OK [20:06:37]MH_I2C_Read... [20:06:37]Read from MH i2c: 01 [20:06:37]MH_I2C_Read... [20:06:37]Read from MH i2c: 01 07 00 [20:06:37]MH_I2C_Read... [20:06:37]Read from MH i2c: 01 07 00 B5 04 00 00 00 00 00 A6 0C 72 [20:06:37]RasterBufferAndPrint [20:06:37]line [20:06:37]line [20:06:37]line [20:06:37]line [20:06:37]line [20:06:37]written 0, free lines is 3246 [20:06:37]MH_Cut [20:06:37]Write to MH i2c: D1 01 00 BC 04 01 92 [20:06:37]Write i2c OK [20:06:37]MH_I2C_Read... [20:06:37]Read from MH i2c: D1 [20:06:37]MH_I2C_Read... [20:06:37]Read from MH i2c: D1 01 00 [20:06:37]MH_I2C_Read... [20:06:37]Read from MH i2c: D1 01 00 BC 04 00 91 [20:06:37]Write to MH i2c: 01 00 00 BD 04 C1 [20:06:37]Write i2c OK [20:06:37]MH_I2C_Read... [20:06: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 35 38 4F 00 00 00 87 71 47 00 F8 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 35 38 10 04 04 00 E2 A3 00 00 F4 03 04 00 61 A2 A7 66 B6 04 01 00 00 BB B9 07 48 26 A8 8B A3 [20:06:38]CommunicateWithHost err = 0 [20:06:38]CheckOFDResponse [20:06:38]1017 (14) - 77093643461234 [20:06:38]1041 (16) - 0000000000874958 [20:06:38]1040 (4) - 41954 [20:06:38]1012 (4) - 29.07.2024 14:08 [20:06:38]1206 (1) - 0 [20:06:38]OFD Sender: Remove packet 41954 [20:06:38]ProducePacketName [20:06:38]name=ofd_packets/00041954 [20:06:38]NVStorageDeleteData [20:06:38]*** Cut start [20:06:38]*** Partial cut [20:06:38]*** CUTSNS_PIN = 1 [20:06:38]OFD Sender: No OFD packet to send [20:06:38]*** CUTSNS_PIN = 0 [20:06:38]*** Brake cut motor [20:06:39]Read from MH i2c: 01 [20:06:39]MH_I2C_Read... [20:06:39]*** Stop cut motor [20:06:39]*** Cut end [20:06:39]Read from MH i2c: 01 07 00 [20:06:39]MH_I2C_Read... [20:06:39]Read from MH i2c: 01 07 00 BD 04 00 00 00 00 00 FF 0F D6 [20:06:39]process_action close_receipt done [20:06:39]requested_data is exist [20:06:39]produce_requested_data [20:06:39]requested_item fm.sn is exist - process it [20:06:39]wFMCommunicate request_size=4 [20:06:39]MH_SAM_APDU [20:06:39]CAPDU: 80 11 00 00 [20:06:39]Write to MH i2c: E2 08 00 BE 04 80 11 00 00 00 00 00 00 3C [20:06:39]Write i2c OK [20:06:39]MH_I2C_Read... [20:06:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:06:39]Read from MH i2c: E2 [20:06:39]MH_I2C_Read... [20:06:39]Read from MH i2c: E2 17 00 [20:06:39]MH_I2C_Read... [20:06:39]Read from MH i2c: E2 17 00 BE 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 98 [20:06:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [20:06:39]wFMCommunicate OK [20:06:39]requested_item fd.num is exist - process it [20:06:39]SAM_PROTO_GetFieldsCounters [20:06:39]wFMCommunicate request_size=4 [20:06:39]MH_SAM_APDU [20:06:39]CAPDU: 80 13 00 00 [20:06:39]Write to MH i2c: E2 08 00 BF 04 80 13 00 00 00 00 00 00 3F [20:06:39]Write i2c OK [20:06:39]MH_I2C_Read... [20:06:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:06:39]Read from MH i2c: E2 [20:06:39]MH_I2C_Read... [20:06:39]Read from MH i2c: E2 62 00 [20:06:39]MH_I2C_Read... [20:06:39]Read from MH i2c: E2 62 00 BF 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 E2 A3 00 00 0E 04 04 00 AB 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 47 [20:06: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 E2 A3 00 00 0E 04 04 00 AB 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 [20:06:39]wFMCommunicate OK [20:06:39]SAM_PROTO_GetFieldsCounters done [20:06:39]requested_item shift.num is exist - process it [20:06:39]requested_item shift.opened is exist - process it [20:06:39]req_shift_opened [20:06:39]FM_GetShiftState [20:06:39]SAM_PROTO_GetShiftState [20:06:39]wFMCommunicate request_size=4 [20:06:39]MH_SAM_APDU [20:06:39]CAPDU: 80 13 01 00 [20:06:39]Write to MH i2c: E2 08 00 C0 04 80 13 01 00 00 00 00 00 41 [20:06:39]Write i2c OK [20:06:39]MH_I2C_Read... [20:06:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:06:39]Read from MH i2c: E2 [20:06:39]MH_I2C_Read... [20:06:39]Read from MH i2c: E2 0E 00 [20:06:39]MH_I2C_Read... [20:06:39]Read from MH i2c: E2 0E 00 C0 04 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 DD [20:06:39]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [20:06:39]wFMCommunicate OK [20:06:39]SAM_PROTO_GetShiftState done [20:06:39]FM_GetShiftState done [20:06:39]req_shift_opened done [20:06:39]requested_item shift.open_date is exist - process it [20:06:39]req_shift_open_date [20:06:39]req_shift_open_date done [20:06:39]produce_requested_data done [20:06:39]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41954,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [20:06:39]process_action_free close_receipt [20:06:39]json_value_free [20:06:39]json_value_free done [20:06:39]process_json_proto returns [20:06:39]Send response to host [20:06:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41954,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [20:06:39]free response buf [20:06:39]execute_script done [20:06:39]execute_script returns [20:06:39]free content buf [20:06:39]Sock 9.Close socket [20:06:39]Sock 9.Thread stoped [20:06:43]OFD Sender: No OFD packet to send [20:06:48]OFD Sender: No OFD packet to send [20:06:53]OFD Sender: No OFD packet to send [20:06:58]OFD Sender: No OFD packet to send [20:07:03]OFD Sender: No OFD packet to send [20:07:08]OFD Sender: No OFD packet to send [20:07:13]OFD Sender: No OFD packet to send [20:07:18]OFD Sender: No OFD packet to send [20:07:23]OFD Sender: No OFD packet to send [20:07:28]OFD Sender: No OFD packet to send [20:07:33]OFD Sender: No OFD packet to send [20:07:38]OFD Sender: No OFD packet to send [20:07:41]recv_with_timeout no data received [20:07:43]OFD Sender: No OFD packet to send [20:07:48]OFD Sender: No OFD packet to send [20:07:53]OFD Sender: No OFD packet to send [20:07:58]OFD Sender: No OFD packet to send [20:08:03]OFD Sender: No OFD packet to send [20:08:08]OFD Sender: No OFD packet to send [20:08:09]recv_with_timeout no data received [20:08:13]OFD Sender: No OFD packet to send [20:08:18]OFD Sender: No OFD packet to send [20:08:23]OFD Sender: No OFD packet to send [20:08:28]OFD Sender: No OFD packet to send [20:08:33]OFD Sender: No OFD packet to send [20:08:38]OFD Sender: No OFD packet to send [20:08:43]OFD Sender: No OFD packet to send [20:08:48]OFD Sender: No OFD packet to send [20:08:53]OFD Sender: No OFD packet to send [20:08:58]OFD Sender: No OFD packet to send [20:09:03]OFD Sender: No OFD packet to send [20:09:08]OFD Sender: No OFD packet to send [20:09:13]OFD Sender: No OFD packet to send [20:09:18]OFD Sender: No OFD packet to send [20:09:23]OFD Sender: No OFD packet to send [20:09:28]OFD Sender: No OFD packet to send [20:09:33]OFD Sender: No OFD packet to send [20:09:38]OFD Sender: No OFD packet to send [20:09:43]recv_with_timeout no data received [20:09:43]OFD Sender: No OFD packet to send [20:09:48]OFD Sender: No OFD packet to send [20:09:53]OFD Sender: No OFD packet to send [20:09:58]OFD Sender: No OFD packet to send [20:10:03]OFD Sender: No OFD packet to send [20:10:08]OFD Sender: No OFD packet to send [20:10:13]OFD Sender: No OFD packet to send [20:10:18]OFD Sender: No OFD packet to send [20:10:23]OFD Sender: No OFD packet to send [20:10:28]OFD Sender: No OFD packet to send [20:10:33]OFD Sender: No OFD packet to send [20:10:38]OFD Sender: No OFD packet to send [20:10:43]OFD Sender: No OFD packet to send [20:10:48]OFD Sender: No OFD packet to send [20:10:53]OFD Sender: No OFD packet to send [20:10:58]OFD Sender: No OFD packet to send [20:11:03]OFD Sender: No OFD packet to send [20:11:08]OFD Sender: No OFD packet to send [20:11:13]OFD Sender: No OFD packet to send [20:11:18]OFD Sender: No OFD packet to send [20:11:23]OFD Sender: No OFD packet to send [20:11:28]OFD Sender: No OFD packet to send [20:11:33]OFD Sender: No OFD packet to send [20:11:38]OFD Sender: No OFD packet to send [20:11:43]OFD Sender: No OFD packet to send [20:11:48]OFD Sender: No OFD packet to send [20:11:53]OFD Sender: No OFD packet to send [20:11:58]OFD Sender: No OFD packet to send [20:12:03]OFD Sender: No OFD packet to send [20:12:08]OFD Sender: No OFD packet to send [20:12:13]OFD Sender: No OFD packet to send [20:12:14]recv_with_timeout no data received [20:12:18]OFD Sender: No OFD packet to send [20:12:23]OFD Sender: No OFD packet to send [20:12:28]OFD Sender: No OFD packet to send [20:12:33]OFD Sender: No OFD packet to send [20:12:38]OFD Sender: No OFD packet to send [20:12:43]OFD Sender: No OFD packet to send [20:12:48]OFD Sender: No OFD packet to send [20:12:53]OFD Sender: No OFD packet to send [20:12:58]OFD Sender: No OFD packet to send [20:13: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:24]recv_with_timeout no data received [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:14:59]recv_with_timeout no data received [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]recv_with_timeout no data received [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:44]accept exits with 8 [20:15:44]New connection [20:15:44]New thread 3066998116 created [20:15:44]Thread 3066854756 joined [20:15:44]Waiting for new connection... [20:15:44] Sock 8.Parse request [20:15:44]Sock 8.Check first char [20:15:44]Sock 8.First char is OK [20:15:44]request: POST /json_proto HTTP/1.0 [20:15:44]Method: POST [20:15:44]URL: /json_proto [20:15:44]Method is POST - this is cgi request [20:15:44]url: /json_proto [20:15:44]query_string will be loaded in cgi processing [20:15:44]execute_cgi json_proto POST (null) [20:15:44]execute_cgi path=json_proto method=POST [20:15:44]POST find Content-Length [20:15:44]Host: 172.17.43.132:8080 [20:15:44]Content-Length: 675 [20:15:44]Content-Type: application/json [20:15:44] [20:15:44]POST finish read [20:15:44]Found Content-Length = 675 [20:15:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183984", "tax_sys" : 0, "items" : [ { "code": "4823063106498", "name": "\u0421\u0430\u0434\u043E\u0447\u043E\u043A 0,2 \u042F\u0431\u043B\u043E\u0447\u043D\u044B\u0439 \u0441\u043E\u043A 1/200", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:15:44]execute_script... [20:15: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 : (3)183984", "tax_sys" : 0, "items" : [ { "code": "4823063106498", "name": "\u0421\u0430\u0434\u043E\u0447\u043E\u043A 0,2 \u042F\u0431\u043B\u043E\u0447\u043D\u044B\u0439 \u0441\u043E\u043A 1/200", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:15:44]POST & json_proto [20:15:44]process_json_proto [20:15:44]json parsed OK: [20:15:44]protocol is kg_v1.0 [20:15:44]action value=close_receipt [20:15:44]process_action close_receipt [20:15:44]cmd_close_receipt [20:15:44]MH_GetDate [20:15:44]Write to MH i2c: F0 00 00 C1 04 B4 [20:15:44]Write i2c OK [20:15:44]MH_I2C_Read... [20:15:44]Read from MH i2c: F0 [20:15:44]MH_I2C_Read... [20:15:44]Read from MH i2c: F0 09 00 [20:15:44]MH_I2C_Read... [20:15:44]Read from MH i2c: F0 09 00 C1 04 00 71 F8 A7 66 64 A3 A7 66 47 [20:15:44]GetLastDocTimeStamp 1722283595 [20:15:44]current date 1722284145 [20:15:44]FM_GetShiftState [20:15:44]SAM_PROTO_GetShiftState [20:15:44]wFMCommunicate request_size=4 [20:15:44]MH_SAM_APDU [20:15:44]CAPDU: 80 13 01 00 [20:15:44]Write to MH i2c: E2 08 00 C2 04 80 13 01 00 00 00 00 00 43 [20:15:44]Write i2c OK [20:15:44]MH_I2C_Read... [20:15:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:15:44]Read from MH i2c: E2 [20:15:44]MH_I2C_Read... [20:15:44]Read from MH i2c: E2 0E 00 [20:15:44]MH_I2C_Read... [20:15:44]Read from MH i2c: E2 0E 00 C2 04 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 DF [20:15:44]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [20:15:44]wFMCommunicate OK [20:15:44]SAM_PROTO_GetShiftState done [20:15:44]FM_GetShiftState done [20:15:44]opened in 1722211496 [20:15:44]opened+sec_in_day 1722297896 [20:15:44]quantity*price = 4500 [20:15:44]sum+1 = 4501 [20:15:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 45.00 НСП 1% : 0.40 НДС 12% : 4.78 Наличными: 45.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 144 29.07.2024 20:15 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41955 ФПД: 167857557201367 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T201545&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41955&fm=167857557201367&tin=02508201610067®Number=0000000000092626&sum=4500 0 [20:15:46]StoreToDocumentArchive [20:15:46]shift 427 fd 41955 [20:15:46]save to /storage/0427/doc_00041955 [20:15:46]save last doc name /storage/0427/doc_00041955 to /storage/kkm_last_doc_name [20:15:46]save OK [20:15:46]Clear old archive folders... [20:15:46]ProcessDocumentItem done err = 0, tmpTLVsize=290 [20:15:46]tlvbuf is 02002590 [20:15:46]SAM_PROTO_ClearQueue [20:15:46]wFMCommunicate request_size=4 [20:15:46]MH_SAM_APDU [20:15:46]CAPDU: 80 09 00 00 [20:15:46]Write to MH i2c: E2 08 00 CF 04 80 09 00 00 00 00 00 00 45 [20:15:46]Write i2c OK [20:15:46]MH_I2C_Read... [20:15:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:15:46]Read from MH i2c: E2 [20:15:46]MH_I2C_Read... [20:15:46]Read from MH i2c: E2 03 00 [20:15:46]MH_I2C_Read... [20:15:46]Read from MH i2c: E2 03 00 CF 04 00 90 00 47 [20:15:46]RAPDU: 90 00 [20:15:46]wFMCommunicate OK [20:15:46]SAM_PROTO_ClearQueue done [20:15:46]KKMCreateOFDPacket [20:15:46]OFDProtocolAddRootSTLVToBuf [20:15:46]FM_MakeSignedData [20:15:46]FM_MakeSignedData [20:15:46]SAM_PROTO_SignData [20:15:46]wFMCommunicate request_size=4 [20:15:46]MH_SAM_APDU [20:15:46]CAPDU: 80 0D 01 02 [20:15:46]Write to MH i2c: E2 08 00 D0 04 80 0D 01 02 00 00 00 00 4D [20:15:46]Write i2c OK [20:15:46]MH_I2C_Read... [20:15:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:15:46]Read from MH i2c: E2 [20:15:46]MH_I2C_Read... [20:15:46]Read from MH i2c: E2 03 00 [20:15:46]MH_I2C_Read... [20:15:46]Read from MH i2c: E2 03 00 D0 04 00 90 00 48 [20:15:46]RAPDU: 90 00 [20:15:46]wFMCommunicate OK [20:15:46]wFMCommunicate request_size=255 [20:15:46]MH_SAM_APDU [20:15:46]CAPDU: 80 0D 02 02 FA 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 32 33 30 36 33 31 30 36 34 39 38 06 04 30 00 D0 A1 D0 B0 D0 B4 D0 BE D1 87 D0 BE D0 BA 20 30 2C 32 20 D0 AF D0 B1 D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 D1 81 D0 BE D0 BA 20 31 2F 32 30 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 71 F8 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 [20:15:46]Write to MH i2c: E2 02 01 D1 04 80 0D 02 02 FA 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 32 33 30 36 33 31 30 36 34 39 38 06 04 30 00 D0 A1 D0 B0 D0 B4 D0 BE D1 87 D0 BE D0 BA 20 30 2C 32 20 D0 AF D0 B1 D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 D1 81 D0 BE D0 BA 20 31 2F 32 30 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 71 F8 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 28 [20:15:46]Write i2c OK [20:15:46]MH_I2C_Read... [20:15:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:15:46]Read from MH i2c: E2 [20:15:46]MH_I2C_Read... [20:15:46]Read from MH i2c: E2 03 00 [20:15:46]MH_I2C_Read... [20:15:46]Read from MH i2c: E2 03 00 D1 04 00 90 00 49 [20:15:46]RAPDU: 90 00 [20:15:46]wFMCommunicate OK [20:15:46]wFMCommunicate request_size=49 [20:15:46]MH_SAM_APDU [20:15:46]CAPDU: 80 0D 02 02 2C 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 E3 A3 00 00 35 04 06 00 98 AA 62 11 E1 D7 [20:15:46]Write to MH i2c: E2 34 00 D2 04 80 0D 02 02 2C 00 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 E3 A3 00 00 35 04 06 00 98 AA 62 11 E1 D7 00 00 79 [20:15:46]Write i2c OK [20:15:46]MH_I2C_Read... [20:15:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:15:46]Read from MH i2c: E2 [20:15:46]MH_I2C_Read... [20:15:46]Read from MH i2c: E2 03 00 [20:15:46]MH_I2C_Read... [20:15:46]Read from MH i2c: E2 03 00 D2 04 00 90 00 4A [20:15:46]RAPDU: 90 00 [20:15:46]wFMCommunicate OK [20:15:46]wFMCommunicate request_size=4 [20:15:46]MH_SAM_APDU [20:15:46]CAPDU: 80 0D 03 02 [20:15:46]Write to MH i2c: E2 08 00 D3 04 80 0D 03 02 00 00 00 00 52 [20:15:46]Write i2c OK [20:15:46]MH_I2C_Read... [20:15:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:15:46]Read from MH i2c: E2 [20:15:46]MH_I2C_Read... [20:15:46]Read from MH i2c: E2 0B 00 [20:15:46]MH_I2C_Read... [20:15:46]Read from MH i2c: E2 0B 00 D3 04 00 88 C0 F9 FC 98 14 07 96 90 00 D9 [20:15:46]RAPDU: 88 C0 F9 FC 98 14 07 96 90 00 [20:15:46]wFMCommunicate OK [20:15:46]SAM_PROTO_SignData done [20:15:46]FM_MakeSignedData done [20:15:46]CreateOFDProtocolMessage [20:15:46]wFMCommunicate request_size=4 [20:15:46]MH_SAM_APDU [20:15:46]CAPDU: 80 11 00 00 [20:15:46]Write to MH i2c: E2 08 00 D4 04 80 11 00 00 00 00 00 00 52 [20:15:46]Write i2c OK [20:15:46]MH_I2C_Read... [20:15:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:15:46]Read from MH i2c: E2 [20:15:46]MH_I2C_Read... [20:15:46]Read from MH i2c: E2 17 00 [20:15:46]MH_I2C_Read... [20:15:46]Read from MH i2c: E2 17 00 D4 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 AE [20:15:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [20:15:46]wFMCommunicate OK [20:15:46]CreateOFDProtocolMessage done [20:15:46]OFDSenderStorePacket 41955 [20:15:46]StoreOFDPacket docnum=41955 [00:00:11] *** EcrCore started. Build 196 *** [00:00:11]/dev/ttyS4 opened [00:00:11]MH_InterfaceInit /dev/i2c-1 [00:00:11]Malloc ok [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 01 00 00 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 81 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 26 [00:00:11]Are we in boot? [00:00:11]We are in boot - try to switch [00:00:11]Write to MH i2c: A0 00 00 02 00 A1 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: A0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: A0 01 00 [00:00:11]MH_I2C_Read... [00:00:11]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:11]*** [00:00:11]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:11]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:11]*** Waiting for read because exit forced [00:00:11]*** 10 ms more... [00:00:11]*** MH1903S init start (LINUX_LIGHT) [00:00:11]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:11]*** Serial: 3139303353513838 5400000000572581 (1903SQ88T) [00:00:11]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:11]*** step 0: 5000 (2650, 2350 REF) [00:00:11]*** step 1: 4835 (2500, 2335 REF) [00:00:11]*** step 2: 4676 (2440, 2236 REF) [00:00:11]*** step 3: 4523 (2280, 2243 REF) [00:00:11]*** step 4: 4376 (2160, 2216 REF) [00:00:11]*** step 5: 4235 (2050, 2185 REF) [00:00:11]*** step 6: 4098 (1950, 2148 REF) [00:00:11]*** step 7: 3967 (1870, 2097 REF) [00:00:11]*** step 8: 3840 (1828, 2012 REF) [00:00:11]*** step 9: 3719 (1728, 1991 REF) [00:00:11]*** step 10: 3601 (1675, 1926 REF) [00:00:11]*** step 11: 3488 (1635, 1853 REF) [00:00:11]*** step 12: 3379 (1595, 1784 REF) [00:00:11]*** step 13: 3275 (1565, 1710 REF) [00:00:11]*** step 14: 3174 (1543, 1631 REF) [00:00:11]*** step 15: 3077 (1523, 1554 REF) [00:00:11]*** step 16: 2983 (1503, 1480 REF) [00:00:11]*** step 17: 2893 (1486, 1407 REF) [00:00:11]*** step 18: 2806 (1466, 1340 REF) [00:00:11]*** step 19: 2723 (1426, 1297 REF) [00:00:11]*** step 20: 2642 (1406, 1236 REF) [00:00:11]*** step 21: 2565 (1384, 1181 REF) [00:00:11]*** step 22: 2490 (1364, 1126 REF) [00:00:11]*** step 23: 2418 (1344, 1074 REF) [00:00:11]*** step 24: 2349 (1322, 1027 REF) [00:00:11]*** step 25: 2283 (1302, 981 REF) [00:00:11]*** step 26: 2218 (1282, 936 REF) [00:00:11]*** step 27: 2157 (1262, 895 REF) [00:00:11]*** step 28: 2097 (1242, 855 REF) [00:00:11]*** step 29: 2040 (1222, 818 REF) [00:00:11]*** step 30: 1985 (1202, 783 REF) [00:00:11]*** step 31: 1932 (1191, 741 REF) [00:00:11]*** step 32: 1880 (1181, 699 REF) [00:00:11]*** step 33: 1831 (1171, 660 REF) [00:00:11]*** step 34: 1784 (1161, 623 REF) [00:00:11]*** step 35: 1738 (1151, 587 REF) [00:00:11]*** step 36: 1694 (1141, 553 REF) [00:00:11]*** step 37: 1652 (1131, 521 REF) [00:00:11]*** step 38: 1611 (1121, 490 REF) [00:00:11]*** step 39: 1572 (1111, 461 REF) [00:00:11]*** step 40: 1534 (1103, 431 REF) [00:00:11]*** step 41: 1497 (1093, 404 REF) [00:00:11]*** step 42: 1462 (1083, 379 REF) [00:00:11]*** step 43: 1428 (1073, 355 REF) [00:00:11]*** step 44: 1396 (1063, 333 REF) [00:00:11]*** step 45: 1365 (1053, 312 REF) [00:00:11]*** step 46: 1334 (1043, 291 REF) [00:00:11]*** step 47: 1305 (1033, 272 REF) [00:00:11]*** step 48: 1277 (1023, 254 REF) [00:00:11]*** step 49: 1250 (1013, 237 REF) [00:00:11]*** step 50: 1224 (990, 234 REF) [00:00:11]*** step 51: 1199 (980, 219 REF) [00:00:11]*** step 52: 1175 (970, 205 REF) [00:00:11]*** step 53: 1152 (960, 192 REF) [00:00:11]*** step 54: 1130 (950, 180 REF) [00:00:11]*** step 55: 1108 (940, 168 REF) [00:00:11]*** step 56: 1088 (930, 158 REF) [00:00:11]*** step 57: 1068 (920, 148 REF) [00:00:11]*** step 58: 1049 (910, 139 REF) [00:00:11]*** step 59: 1030 (900, 130 REF) [00:00:11]*** step 60: 1012 (890, 122 REF) [00:00:11]*** step 61: 995 (880, 115 REF) [00:00:11]*** step 62: 979 (870, 109 REF) [00:00:11]*** step 63: 963 (860, 103 REF) [00:00:11]*** step 64: 948 (850, 98 REF) [00:00:11]*** step 65: 933 (840, 93 REF) [00:00:11]*** step 66: 919 (830, 89 REF) [00:00:11]*** step 67: 905 (820, 85 REF) [00:00:11]*** step 68: 892 (810, 82 REF) [00:00:11]*** step 69: 879 (800, 79 REF) [00:00:11]*** step 70: 867 (790, 77 REF) [00:00:11]*** step 71: 855 (780, 75 REF) [00:00:11]*** step 72: 844 (770, 74 REF) [00:00:11]*** step 73: 833 (760, 73 REF) [00:00:11]*** step 74: 822 (750, 72 REF) [00:00:11]*** step 75: 812 (740, 72 REF) [00:00:11]*** step 76: 803 (730, 73 REF) [00:00:11]*** step 77: 793 (720, 73 REF) [00:00:11]*** step 78: 784 (710, 74 REF) [00:00:11]*** step 79: 776 (700, 76 REF) [00:00:11]*** step 80: 767 (690, 77 REF) [00:00:11]*** step 81: 759 (680, 79 REF) [00:00:11]*** step 82: 751 (670, 81 REF) [00:00:11]*** step 83: 744 (660, 84 REF) [00:00:11]*** step 84: 737 (650, 87 REF) [00:00:11]*** step 85: 730 (640, 90 REF) [00:00:11]*** step 86: 723 (630, 93 REF) [00:00:11]*** step 87: 717 (620, 97 REF) [00:00:11]*** step 88: 710 (610, 100 REF) [00:00:11]*** step 89: 705 (600, 105 REF) [00:00:11]*** step 90: 699 [00:00:11]*** step 91: 693 [00:00:11]*** step 92: 688 [00:00:11]*** step 93: 683 [00:00:11]*** step 94: 678 [00:00:11]*** step 95: 673 [00:00:11]*** step 96: 669 [00:00:11]*** step 97: 664 [00:00:11]*** step 98: 660 [00:00:11]*** step 99: 656 [00:00:11]*** step 100: 652 [00:00:11]*** step 101: 648 [00:00:11]*** step 102: 644 [00:00:11]*** step 103: 641 [00:00:11]*** step 104: 638 [00:00:11]*** step 105: 634 [00:00:11]*** step 106: 631 [00:00:11]*** step 107: 628 [00:00:11]*** step 108: 625 [00:00:11]*** step 109: 622 [00:00:11]*** step 110: 620 [00:00:11]*** step 111: 617 [00:00:11]*** step 112: 615 [00:00:11]*** step 113: 612 [00:00:11]*** step 114: 610 [00:00:11]*** step 115: 608 [00:00:11]*** step 116: 605 [00:00:11]*** step 117: 603 [00:00:11]*** step 118: 601 [00:00:11]*** step 119: 599 [00:00:11]*** printer: Printer HW initialized [00:00:11]*** initSamCard finished [00:00:11]*** RTC: 23177+1722262372=1722285549 [00:00:11]*** BPK Status Register BPK_RDY = 0x0 [00:00:11]*** SEN State Register SEN_STATE = 0xff [00:00:11]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:11]*** Analog Control Register 0 SEN_ANA0 = 0x33540624 [00:00:11]*** Is cutter blocked? [00:00:12]MH_GetMetrics [00:00:12]Write to MH i2c: 00 00 00 03 00 02 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 29 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 81 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 27 [00:00:12]Are we in boot? [00:00:12]We are not in boot now [00:00:12]Write to MH i2c: 01 00 00 04 00 04 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 07 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:12]Model is 3 [00:00:12]MH firmware is 30620 [00:00:12]MH boot firmware is 3 [00:00:12]MH_SetPrinterDots 448 [00:00:12]HeadWidthInBytes 56 [00:00:12]maxmasksize 7 [00:00:12]Write to MH i2c: D6 06 00 05 00 41 00 60 00 FF FF 7F [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 01 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:12]Write to MH i2c: D5 00 00 06 00 DA [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 01 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]ExternCall_SetCallbacks [00:00:12]NVStorageInit [00:00:12]MH_GetDate [00:00:12]Write to MH i2c: F0 00 00 07 00 F6 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 09 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 09 00 07 00 00 EE FD A7 66 64 A3 A7 66 0B [20:39:10]Current date/time: 29.07.2024 20:39 [20:39:10]FM_Init [20:39:10]wFMConnect [20:39:10]MH_SAM_On [20:39:10]Write to MH i2c: E0 00 00 08 00 E7 [20:39:10]Write i2c OK [20:39:10]MH_I2C_Read... [20:39:10]*** iso7816_init finished! [20:39:10]*** atr: [20:39:10]*** 0F 3B D5 18 FF 81 91 FE [20:39:10]*** 1F C3 80 73 C8 21 10 0A [20:39:10]*** 00 00 00 00 00 00 00 00 [20:39:10]*** 00 00 00 00 00 00 00 00 [20:39:10]*** 00 00 00 00 00 00 00 00 [20:39:10]*** 00 00 00 00 00 00 00 00 [20:39:10]*** 00 00 00 00 00 00 00 00 [20:39:10]*** 00 00 00 00 00 00 00 00 [20:39:10]Read from MH i2c: E0 [20:39:10]MH_I2C_Read... [20:39:10]Read from MH i2c: E0 10 00 [20:39:10]MH_I2C_Read... [20:39:10]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 [20:39:10]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [20:39:10]wFMCommunicate request_size=10 [20:39:10]MH_SAM_APDU [20:39:10]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [20:39:10]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [20:39:10]Write i2c OK [20:39:10]MH_I2C_Read... [20:39:10]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [20:39:10]Read from MH i2c: E2 [20:39:10]MH_I2C_Read... [20:39:10]Read from MH i2c: E2 03 00 [20:39:10]MH_I2C_Read... [20:39:10]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [20:39:10]RAPDU: 90 00 [20:39:10]wFMCommunicate OK [20:39:10]wFMCommunicate request_size=4 [20:39:10]MH_SAM_APDU [20:39:10]CAPDU: 80 11 00 00 [20:39:10]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [20:39:10]Write i2c OK [20:39:10]MH_I2C_Read... [20:39:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:39:10]Read from MH i2c: E2 [20:39:10]MH_I2C_Read... [20:39:10]Read from MH i2c: E2 17 00 [20:39:10]MH_I2C_Read... [20:39:10]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 35 38 90 00 E0 [20:39:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [20:39:10]wFMCommunicate OK [20:39:10]Detected FM SN is 0000000000874958 [20:39:10]Stored FM SN is 0000000000874958 [20:39:10]wFMCommunicate request_size=9 [20:39:10]MH_SAM_APDU [20:39:10]CAPDU: 80 16 00 00 04 FB 29 00 00 [20:39:10]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 FB 29 00 00 00 00 B6 [20:39:10]Write i2c OK [20:39:10]MH_I2C_Read... [20:39:10]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [20:39:10]Read from MH i2c: E2 [20:39:10]MH_I2C_Read... [20:39:10]Read from MH i2c: E2 03 00 [20:39:10]MH_I2C_Read... [20:39:10]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [20:39:10]RAPDU: 90 00 [20:39:10]wFMCommunicate OK [20:39:10]FM PIN OK [20:39:10]wFMCommunicate request_size=8 [20:39:10]MH_SAM_APDU [20:39:10]CAPDU: 80 14 04 00 03 02 00 01 [20:39:10]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [20:39:10]Write i2c OK [20:39:10]MH_I2C_Read... [20:39:10]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [20:39:10]Read from MH i2c: E2 [20:39:10]MH_I2C_Read... [20:39:10]Read from MH i2c: E2 03 00 [20:39:10]MH_I2C_Read... [20:39:10]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [20:39:10]RAPDU: 90 00 [20:39:10]wFMCommunicate OK [20:39:10]wFMCommunicate request_size=13 [20:39:10]MH_SAM_APDU [20:39:10]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [20:39:10]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 [20:39:10]Write i2c OK [20:39:10]MH_I2C_Read... [20:39:10]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [20:39:10]Read from MH i2c: E2 [20:39:10]MH_I2C_Read... [20:39:10]Read from MH i2c: E2 03 00 [20:39:10]MH_I2C_Read... [20:39:10]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [20:39:10]RAPDU: 90 00 [20:39:10]wFMCommunicate OK [20:39:10]wFMCommunicate request_size=4 [20:39:10]MH_SAM_APDU [20:39:10]CAPDU: 80 11 00 00 [20:39:10]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [20:39:10]Write i2c OK [20:39:10]MH_I2C_Read... [20:39:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:39:10]Read from MH i2c: E2 [20:39:10]MH_I2C_Read... [20:39:10]Read from MH i2c: E2 17 00 [20:39:10]MH_I2C_Read... [20:39:10]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 35 38 90 00 E4 [20:39:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [20:39:10]wFMCommunicate OK [20:39:10]DocumentArchiveInit [20:39:10]Start Httpd... [20:39:10]Httpd thread 3067792740 created [20:39:10]Write to MH i2c: 01 00 00 0F 00 0F [20:39:10]Write i2c OK [20:39:10]MH_I2C_Read... [20:39:10]Read from MH i2c: 01 [20:39:10]MH_I2C_Read... [20:39:10]Read from MH i2c: 01 07 00 [20:39:10]MH_I2C_Read... [20:39:10]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [20:39:10]MH Int Process started [20:39:10]Allocated Socket 7 [20:39:10]Bind OK [20:39:10]Listen OK [20:39:10]httpd running on port 8080 [20:39:10]Waiting for new connection... [20:39:10]OFD Sender: Processing packet 41955 [packets to send 57, broken 56] [20:39:10]ProducePacketName [20:39:10]name=ofd_packets/00041955 [20:39:10]OFD Sender: To server: pG, [20:39:10]CommunicateWithHost lk.salyk.kg:30040 [20:39:10]ConnectInit lk.salyk.kg [20:39:11]Connected sock=9 [20:39:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 36 01 00 00 8F 25 2E 01 E7 38 5A 03 01 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 32 33 30 36 33 31 30 36 34 39 38 06 04 30 00 D0 A1 D0 B0 D0 B4 D0 BE D1 87 D0 BE D0 BA 20 30 2C 32 20 D0 AF D0 B1 D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 D1 81 D0 BE D0 BA 20 31 2F 32 30 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 71 F8 A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 E3 A3 00 00 35 04 06 00 98 AA 62 11 E1 D7 88 C0 F9 FC 98 14 07 96 [20:39:11]accept exits with 8 [20:39:11]New connection [20:39:11]New thread 3067506020 created [20:39:11]Waiting for new connection... [20:39:11] Sock 8.Parse request [20:39:11]Sock 8.Check first char [20:39:11]Sock 8.First char is OK [20:39:11]request: POST /json_proto HTTP/1.0 [20:39:11]Method: POST [20:39:11]URL: /json_proto [20:39:11]Method is POST - this is cgi request [20:39:11]url: /json_proto [20:39:11]query_string will be loaded in cgi processing [20:39:11]execute_cgi json_proto POST (null) [20:39:11]execute_cgi path=json_proto method=POST [20:39:11]POST find Content-Length [20:39:11]Host: 172.17.43.132:8080 [20:39:11]Content-Length: 215 [20:39:11]Content-Type: application/json [20:39:11] [20:39:11]POST finish read [20:39:11]Found Content-Length = 215 [20:39:11]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" ] } } [20:39:11]execute_script... [20:39:11]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" ] } } [20:39:11]POST & json_proto [20:39:11]process_json_proto [20:39:11]json parsed OK: [20:39:11]protocol is kg_v1.0 [20:39:11]action value=get_value [20:39:11]process_action get_value [20:39:11]cmd_get_value [20:39:11]process_action get_value done [20:39:11]requested_data is exist [20:39:11]produce_requested_data [20:39:11]requested_item kkm.sn is exist - process it [20:39:11]requested_item kkm.ver is exist - process it [20:39:11]requested_item fm.sn is exist - process it [20:39:11]wFMCommunicate request_size=4 [20:39:11]MH_SAM_APDU [20:39:11]CAPDU: 80 11 00 00 [20:39:11]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [20:39:11]Write i2c OK [20:39:11]MH_I2C_Read... [20:39:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:39:11]Read from MH i2c: E2 [20:39:11]MH_I2C_Read... [20:39:11]Read from MH i2c: E2 17 00 [20:39:11]MH_I2C_Read... [20:39:11]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 35 38 90 00 E6 [20:39:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [20:39:11]wFMCommunicate OK [20:39:11]requested_item fd.num is exist - process it [20:39:11]SAM_PROTO_GetFieldsCounters [20:39:11]wFMCommunicate request_size=4 [20:39:11]MH_SAM_APDU [20:39:11]CAPDU: 80 13 00 00 [20:39:11]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [20:39:11]Write i2c OK [20:39:11]MH_I2C_Read... [20:39:11]Read from MH i2c: E2 [20:39:11]MH_I2C_Read... [20:39:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:39:11]Read from MH i2c: E2 62 00 [20:39:11]MH_I2C_Read... [20:39:11]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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 E3 A3 00 00 0E 04 04 00 AB 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 99 [20:39:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 E3 A3 00 00 0E 04 04 00 AB 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 [20:39:11]wFMCommunicate OK [20:39:11]SAM_PROTO_GetFieldsCounters done [20:39:11]requested_item shift.num is exist - process it [20:39:11]requested_item shift.opened is exist - process it [20:39:11]req_shift_opened [20:39:11]FM_GetShiftState [20:39:11]SAM_PROTO_GetShiftState [20:39:11]wFMCommunicate request_size=4 [20:39:11]MH_SAM_APDU [20:39:11]CAPDU: 80 13 01 00 [20:39:11]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [20:39:11]Write i2c OK [20:39:11]MH_I2C_Read... [20:39:11]Read from MH i2c: E2 [20:39:11]MH_I2C_Read... [20:39:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:39:11]Read from MH i2c: E2 0E 00 [20:39:11]MH_I2C_Read... [20:39:11]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 2B [20:39:11]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [20:39:11]wFMCommunicate OK [20:39:11]SAM_PROTO_GetShiftState done [20:39:11]FM_GetShiftState done [20:39:11]req_shift_opened done [20:39:11]requested_item shift.open_date is exist - process it [20:39:11]req_shift_open_date [20:39:11]req_shift_open_date done [20:39:11]produce_requested_data done [20:39:11]produce_requested_data return {"kkm.sn":"0300000053","kkm.ver":"001","fm.sn":"0000000000874958","fd.num":41955,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [20:39:11]process_action_free get_value [20:39:11]json_value_free [20:39:11]json_value_free done [20:39:11]process_json_proto returns [20:39:11]Send response to host [20:39:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000053","kkm.ver":"001","fm.sn":"0000000000874958","fd.num":41955,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [20:39:11]free response buf [20:39:11]execute_script done [20:39:11]execute_script returns [20:39:11]free content buf [20:39:11]Sock 8.Close socket [20:39:11]Sock 8.Thread stoped [20:39:11]accept exits with 10 [20:39:11]New connection [20:39:11]New thread 3067362660 created [20:39:11]Thread 3067506020 joined [20:39:11]Waiting for new connection... [20:39:11] Sock 10.Parse request [20:39:11]Sock 10.Check first char [20:39:11]Sock 10.First char is OK [20:39:11]request: POST /json_proto HTTP/1.0 [20:39:11]Method: POST [20:39:11]URL: /json_proto [20:39:11]Method is POST - this is cgi request [20:39:11]url: /json_proto [20:39:11]query_string will be loaded in cgi processing [20:39:11]execute_cgi json_proto POST (null) [20:39:11]execute_cgi path=json_proto method=POST [20:39:11]POST find Content-Length [20:39:11]Host: 172.17.43.132:8080 [20:39:11]Content-Length: 331 [20:39:11]Content-Type: application/json [20:39:11] [20:39:11]POST finish read [20:39:11]Found Content-Length = 331 [20:39:11]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" ] } } [20:39:11]execute_script... [20:39:11]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" ] } } [20:39:11]POST & json_proto [20:39:11]process_json_proto [20:39:11]json parsed OK: [20:39:11]protocol is kg_v1.0 [20:39:11]action value=get_value [20:39:11]process_action get_value [20:39:11]cmd_get_value [20:39:11]process_action get_value done [20:39:11]requested_data is exist [20:39:11]produce_requested_data [20:39:11]requested_item fm.sale.total is exist - process it [20:39:11]SAM_PROTO_GetFMData [20:39:11]wFMCommunicate request_size=4 [20:39:11]MH_SAM_APDU [20:39:11]CAPDU: 80 13 03 00 [20:39:11]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [20:39: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 35 38 4F 00 00 00 CA 27 47 00 27 75 Write i2c OK [20:39:12]A5 MH_I2C_Read... [20:39:12]07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 E3 A3 00 00 F4 03 04 00 03 AA A7 66 B6 04 01 00 00 80 74 5C AC EA 51 A1 2F [20:39:12]CommunicateWithHost err = 0 [20:39:12]CheckOFDResponse [20:39:12]1017 (14) - 77093643461234 [20:39:12]1041 (16) - 0000000000874958 [20:39:12]1040 (4) - 41955 [20:39:12]1012 (4) - 29.07.2024 14:41 [20:39:12]1206 (1) - 0 [20:39:12]OFD Sender: Remove packet 41955 [20:39:12]ProducePacketName [20:39:12]name=ofd_packets/00041955 [20:39:12]NVStorageDeleteData [20:39:12]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [20:39:12]Read from MH i2c: E2 [20:39:12]MH_I2C_Read... [20:39:12]Read from MH i2c: E2 FD 00 [20:39:12]MH_I2C_Read... [20:39:12]Read from MH i2c: E2 FD 00 13 00 00 C1 04 85 04 BD 04 6E 04 04 00 8D A0 00 00 69 04 A0 00 6F 04 04 00 F3 9F 00 00 B1 04 04 00 B1 73 3B 37 70 04 04 00 1C B5 E3 31 72 04 04 00 95 BE 57 05 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 C3 70 DD 05 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 C1 0A 7D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 9A 00 00 00 B1 04 03 00 54 D5 4E 70 04 03 00 58 C9 42 72 04 03 00 FC 0B 0C 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 13 5F 08 EF 03 09 00 F6 03 90 00 E2 [20:39:12]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 8D A0 00 00 69 04 A0 00 6F 04 04 00 F3 9F 00 00 B1 04 04 00 B1 73 3B 37 70 04 04 00 1C B5 E3 31 72 04 04 00 95 BE 57 05 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 C3 70 DD 05 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 C1 0A 7D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 9A 00 00 00 B1 04 03 00 54 D5 4E 70 04 03 00 58 C9 42 72 04 03 00 FC 0B 0C 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 13 5F 08 EF 03 09 00 F6 03 90 00 [20:39:12]wFMCommunicate OK [20:39:12]wFMCommunicate request_size=4 [20:39:12]MH_SAM_APDU [20:39:12]CAPDU: 80 17 00 00 [20:39:12]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [20:39:12]Write i2c OK [20:39:12]MH_I2C_Read... [20:39:12]OFD Sender: No OFD packet to send [20:39:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:39:12]Read from MH i2c: E2 [20:39:12]MH_I2C_Read... [20:39:12]Read from MH i2c: E2 FD 00 [20:39:12]MH_I2C_Read... [20:39:12]Read from MH i2c: E2 FD 00 14 00 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 F4 [20:39:12]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 [20:39:12]wFMCommunicate OK [20:39:12]wFMCommunicate request_size=4 [20:39:12]MH_SAM_APDU [20:39:12]CAPDU: 80 17 00 00 [20:39:12]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [20:39:12]Write i2c OK [20:39:12]MH_I2C_Read... [20:39:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:39:13]Read from MH i2c: E2 [20:39:13]MH_I2C_Read... [20:39:13]Read from MH i2c: E2 FD 00 [20:39:13]MH_I2C_Read... [20:39:13]Read from MH i2c: E2 FD 00 15 00 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 35 [20:39:13]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [20:39:13]wFMCommunicate OK [20:39:13]wFMCommunicate request_size=4 [20:39:13]MH_SAM_APDU [20:39:13]CAPDU: 80 17 00 00 [20:39:13]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [20:39:13]Write i2c OK [20:39:13]MH_I2C_Read... [20:39:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:39:13]Read from MH i2c: E2 [20:39:13]MH_I2C_Read... [20:39:13]Read from MH i2c: E2 FD 00 [20:39:13]MH_I2C_Read... [20:39:13]Read from MH i2c: E2 FD 00 16 00 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 1B [20:39:13]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [20:39:13]wFMCommunicate OK [20:39:13]wFMCommunicate request_size=4 [20:39:13]MH_SAM_APDU [20:39:13]CAPDU: 80 17 00 00 [20:39:13]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [20:39:13]Write i2c OK [20:39:13]MH_I2C_Read... [20:39:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [20:39:13]Read from MH i2c: E2 [20:39:13]MH_I2C_Read... [20:39:13]Read from MH i2c: E2 DE 00 [20:39:13]MH_I2C_Read... [20:39:13]Read from MH i2c: E2 DE 00 17 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 76 [20:39:13]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [20:39:13]wFMCommunicate OK [20:39:13]SAM_PROTO_GetFMData done [20:39:13]requested_item fm.sale_refund.total is exist - process it [20:39:13]requested_item fm.buy.total is exist - process it [20:39:13]requested_item shift.sale.total is exist - process it [20:39:13]SAM_PROTO_GetShiftData [20:39:13]wFMCommunicate request_size=4 [20:39:13]MH_SAM_APDU [20:39:13]CAPDU: 80 13 02 00 [20:39:13]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [20:39:13]Write i2c OK [20:39:13]MH_I2C_Read... [20:39:14]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [20:39:14]Read from MH i2c: E2 [20:39:14]MH_I2C_Read... [20:39:14]Read from MH i2c: E2 FD 00 [20:39:14]MH_I2C_Read... [20:39:14]Read from MH i2c: E2 FD 00 18 00 00 B6 04 AA 04 B2 04 6E 04 04 00 90 00 00 00 69 04 9B 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 F0 58 25 70 04 03 00 1C 0E 21 72 04 03 00 D4 4A 04 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 43 F7 03 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 90 54 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 D4 AD 70 04 02 00 D4 AD 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 76 12 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 90 00 30 [20:39:14]RAPDU: B6 04 AA 04 B2 04 6E 04 04 00 90 00 00 00 69 04 9B 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 F0 58 25 70 04 03 00 1C 0E 21 72 04 03 00 D4 4A 04 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 43 F7 03 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 90 54 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 D4 AD 70 04 02 00 D4 AD 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 76 12 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 90 00 [20:39:14]wFMCommunicate OK [20:39:14]wFMCommunicate request_size=4 [20:39:14]MH_SAM_APDU [20:39:14]CAPDU: 80 17 00 00 [20:39:14]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [20:39:14]Write i2c OK [20:39:14]MH_I2C_Read... [20:39:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:39:14]Read from MH i2c: E2 [20:39:14]MH_I2C_Read... [20:39:14]Read from MH i2c: E2 FD 00 [20:39:14]MH_I2C_Read... [20:39:14]Read from MH i2c: E2 FD 00 19 00 00 F6 03 01 00 01 F7 03 02 00 89 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 37 [20:39:14]RAPDU: F6 03 01 00 01 F7 03 02 00 89 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [20:39:14]wFMCommunicate OK [20:39:14]wFMCommunicate request_size=4 [20:39:14]MH_SAM_APDU [20:39:14]CAPDU: 80 17 00 00 [20:39:14]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [20:39:14]Write i2c OK [20:39:14]MH_I2C_Read... [20:39:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:39:14]Read from MH i2c: E2 [20:39:14]MH_I2C_Read... [20:39:14]Read from MH i2c: E2 FD 00 [20:39:14]MH_I2C_Read... [20:39:14]Read from MH i2c: E2 FD 00 1A 00 00 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 5A [20:39:14]RAPDU: 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [20:39:14]wFMCommunicate OK [20:39:14]wFMCommunicate request_size=4 [20:39:14]MH_SAM_APDU [20:39:14]CAPDU: 80 17 00 00 [20:39:14]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [20:39:14]Write i2c OK [20:39:14]MH_I2C_Read... [20:39:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:39:15]Read from MH i2c: E2 [20:39:15]MH_I2C_Read... [20:39:15]Read from MH i2c: E2 FD 00 [20:39:15]MH_I2C_Read... [20:39:15]Read from MH i2c: E2 FD 00 1B 00 00 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 90 00 0A [20:39:15]RAPDU: 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 90 00 [20:39:15]wFMCommunicate OK [20:39:15]wFMCommunicate request_size=4 [20:39:15]MH_SAM_APDU [20:39:15]CAPDU: 80 17 00 00 [20:39:15]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [20:39:15]Write i2c OK [20:39:15]MH_I2C_Read... [20:39:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 208! [20:39:15]Read from MH i2c: E2 [20:39:15]MH_I2C_Read... [20:39:15]Read from MH i2c: E2 D3 00 [20:39:15]MH_I2C_Read... [20:39:15]Read from MH i2c: E2 D3 00 1C 00 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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 89 [20:39:15]RAPDU: 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:39:15]wFMCommunicate OK [20:39:15]SAM_PROTO_GetShiftData done [20:39:15]requested_item shift.sale.total_cash is exist - process it [20:39:15]requested_item shift.sale_refund.total is exist - process it [20:39:15]requested_item shift.sale_refund.total_cash is exist - process it [20:39:15]requested_item shift.buy.total is exist - process it [20:39:15]requested_item shift.buy.total_cash is exist - process it [20:39:15]produce_requested_data done [20:39:15]produce_requested_data return {"fm.sale.total":9266431.21,"fm.sale_refund.total":51664.20,"fm.buy.total":0.00,"shift.sale.total":24476.00,"shift.sale.total_cash":21663.00,"shift.sale_refund.total":445.00,"shift.sale_refund.total_cash":445.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [20:39:15]process_action_free get_value [20:39:15]json_value_free [20:39:15]json_value_free done [20:39:15]process_json_proto returns [20:39:15]Send response to host [20:39:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":9266431.21,"fm.sale_refund.total":51664.20,"fm.buy.total":0.00,"shift.sale.total":24476.00,"shift.sale.total_cash":21663.00,"shift.sale_refund.total":445.00,"shift.sale_refund.total_cash":445.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [20:39:15]free response buf [20:39:15]execute_script done [20:39:15]execute_script returns [20:39:15]free content buf [20:39:15]Sock 10.Close socket [20:39:15]Sock 10.Thread stoped [20:39:17]accept exits with 8 [20:39:17]New connection [20:39:17]New thread 3067506020 created [20:39:17]Thread 3067362660 joined [20:39:17]Waiting for new connection... [20:39:17] Sock 8.Parse request [20:39:17]Sock 8.Check first char [20:39:17]Sock 8.First char is OK [20:39:17]request: POST /json_proto HTTP/1.0 [20:39:17]Method: POST [20:39:17]URL: /json_proto [20:39:17]Method is POST - this is cgi request [20:39:17]url: /json_proto [20:39:17]query_string will be loaded in cgi processing [20:39:17]execute_cgi json_proto POST (null) [20:39:17]execute_cgi path=json_proto method=POST [20:39:17]POST find Content-Length [20:39:17]Host: 172.17.43.132:8080 [20:39:17]Content-Length: 661 [20:39:17]Content-Type: application/json [20:39:17] [20:39:17]POST finish read [20:39:17]Found Content-Length = 661 [20:39:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183985", "tax_sys" : 0, "items" : [ { "code": "4870002329999", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 1\u043B \u043B\u0438\u043C\u043E\u043D Regular", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:39:17]execute_script... [20:39: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 : (3)183985", "tax_sys" : 0, "items" : [ { "code": "4870002329999", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 1\u043B \u043B\u0438\u043C\u043E\u043D Regular", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:39:17]POST & json_proto [20:39:17]process_json_proto [20:39:17]json parsed OK: [20:39:17]protocol is kg_v1.0 [20:39:17]action value=close_receipt [20:39:17]process_action close_receipt [20:39:17]cmd_close_receipt [20:39:17]MH_GetDate [20:39:17]Write to MH i2c: F0 00 00 1D 00 0C [20:39:17]Write i2c OK [20:39:17]MH_I2C_Read... [20:39:17]Read from MH i2c: F0 [20:39:17]MH_I2C_Read... [20:39:17]Read from MH i2c: F0 09 00 [20:39:17]MH_I2C_Read... [20:39:17]Read from MH i2c: F0 09 00 1D 00 00 F5 FD A7 66 64 A3 A7 66 28 [20:39:17]GetLastDocTimeStamp 1722284145 [20:39:17]current date 1722285557 [20:39:17]FM_GetShiftState [20:39:17]SAM_PROTO_GetShiftState [20:39:17]wFMCommunicate request_size=4 [20:39:17]MH_SAM_APDU [20:39:17]CAPDU: 80 13 01 00 [20:39:17]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [20:39:17]Write i2c OK [20:39:17]MH_I2C_Read... [20:39:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:39:17]Read from MH i2c: E2 [20:39:17]MH_I2C_Read... [20:39:17]Read from MH i2c: E2 0E 00 [20:39:17]MH_I2C_Read... [20:39:17]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 37 [20:39:17]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [20:39:17]wFMCommunicate OK [20:39:17]SAM_PROTO_GetShiftState done [20:39:17]FM_GetShiftState done [20:39:17]opened in 1722211496 [20:39:17]opened+sec_in_day 1722297896 [20:39:17]quantity*price = 13000 [20:39:17]sum+1 = 13001 [20:39:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 145 29.07.2024 20:39 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41956 ФПД: 223896906447512 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T203917&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41956&fm=223896906447512&tin=02508201610067®Number=0000000000092626&sum=13000 0 [20:39:18]StoreToDocumentArchive [20:39:18]shift 427 fd 41956 [20:39:18]save to /storage/0427/doc_00041956 [20:39:18]save last doc name /storage/0427/doc_00041956 to /storage/kkm_last_doc_name [20:39:18]save OK [20:39:18]Clear old archive folders... [20:39:18]ProcessDocumentItem done err = 0, tmpTLVsize=293 [20:39:18]tlvbuf is 0126D2A0 [20:39:18]SAM_PROTO_ClearQueue [20:39:18]wFMCommunicate request_size=4 [20:39:18]MH_SAM_APDU [20:39:18]CAPDU: 80 09 00 00 [20:39:18]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [20:39:18]Write i2c OK [20:39:18]MH_I2C_Read... [20:39:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:39:18]Read from MH i2c: E2 [20:39:18]MH_I2C_Read... [20:39:18]Read from MH i2c: E2 03 00 [20:39:18]MH_I2C_Read... [20:39:18]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [20:39:18]RAPDU: 90 00 [20:39:18]wFMCommunicate OK [20:39:18]SAM_PROTO_ClearQueue done [20:39:18]KKMCreateOFDPacket [20:39:18]OFDProtocolAddRootSTLVToBuf [20:39:18]FM_MakeSignedData [20:39:18]FM_MakeSignedData [20:39:18]SAM_PROTO_SignData [20:39:18]wFMCommunicate request_size=4 [20:39:18]MH_SAM_APDU [20:39:18]CAPDU: 80 0D 01 02 [20:39:18]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [20:39:18]Write i2c OK [20:39:18]MH_I2C_Read... [20:39:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:39:18]Read from MH i2c: E2 [20:39:18]MH_I2C_Read... [20:39:18]Read from MH i2c: E2 03 00 [20:39:18]MH_I2C_Read... [20:39:18]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [20:39:18]RAPDU: 90 00 [20:39:18]wFMCommunicate OK [20:39:18]wFMCommunicate request_size=255 [20:39:18]MH_SAM_APDU [20:39:18]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 39 39 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 F5 FD A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [20:39:18]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 39 39 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 F5 FD A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 EC [20:39:18]Write i2c OK [20:39:18]MH_I2C_Read... [20:39:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:39:19]Read from MH i2c: E2 [20:39:19]MH_I2C_Read... [20:39:19]Read from MH i2c: E2 03 00 [20:39:19]MH_I2C_Read... [20:39:19]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [20:39:19]RAPDU: 90 00 [20:39:19]wFMCommunicate OK [20:39:19]wFMCommunicate request_size=52 [20:39:19]MH_SAM_APDU [20:39:19]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 E4 A3 00 00 35 04 06 00 CB A2 0F 93 3A 98 [20:39:19]Write to MH i2c: E2 37 00 2E 00 80 0D 02 02 2F 00 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 E4 A3 00 00 35 04 06 00 CB A2 0F 93 3A 98 00 00 DC [20:39:19]Write i2c OK [20:39:19]MH_I2C_Read... [20:39:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:39:19]Read from MH i2c: E2 [20:39:19]MH_I2C_Read... [20:39:19]Read from MH i2c: E2 03 00 [20:39:19]MH_I2C_Read... [20:39:19]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [20:39:19]RAPDU: 90 00 [20:39:19]wFMCommunicate OK [20:39:19]wFMCommunicate request_size=4 [20:39:19]MH_SAM_APDU [20:39:19]CAPDU: 80 0D 03 02 [20:39:19]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [20:39:19]Write i2c OK [20:39:19]MH_I2C_Read... [20:39:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:39:19]Read from MH i2c: E2 [20:39:19]MH_I2C_Read... [20:39:19]Read from MH i2c: E2 0B 00 [20:39:19]MH_I2C_Read... [20:39:19]Read from MH i2c: E2 0B 00 2F 00 00 A0 0C 36 F3 5F A5 3A 85 90 00 43 [20:39:19]RAPDU: A0 0C 36 F3 5F A5 3A 85 90 00 [20:39:19]wFMCommunicate OK [20:39:19]SAM_PROTO_SignData done [20:39:19]FM_MakeSignedData done [20:39:19]CreateOFDProtocolMessage [20:39:19]wFMCommunicate request_size=4 [20:39:19]MH_SAM_APDU [20:39:19]CAPDU: 80 11 00 00 [20:39:19]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [20:39:19]Write i2c OK [20:39:19]MH_I2C_Read... [20:39:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:39:19]Read from MH i2c: E2 [20:39:19]MH_I2C_Read... [20:39:19]Read from MH i2c: E2 17 00 [20:39:19]MH_I2C_Read... [20:39:19]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 35 38 90 00 06 [20:39:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [20:39:19]wFMCommunicate OK [20:39:19]CreateOFDProtocolMessage done [20:39:19]OFDSenderStorePacket 41956 [20:39:19]StoreOFDPacket docnum=41956 [20:39:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 39 01 00 00 A4 FB 31 01 DC A8 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 39 39 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 F5 FD A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 E4 A3 00 00 35 04 06 00 CB A2 0F 93 3A 98 A0 0C 36 F3 5F A5 3A 85 [20:39:19]CheckFolder [20:39:19]dirname=/storage/ofd_packets [20:39:19]CheckFolder done [20:39:19]ProducePacketName [20:39:19]name=ofd_packets/00041956 [20:39:19]NVStorageSaveData ofd_packets/00041956 [20:39:19]File name is /storage/ofd_packets/00041956 [20:39:19]Write 343 bytes [20:39:19]NVStorageSaveData done [20:39:19]OFDSenderStorePacket done [20:39:19]KKMCreateOFDPacket done [20:39:19]NVStorageSaveData kkm_last_timestamp [20:39:19]File name is /storage/kkm_last_timestamp [20:39:19]Write 4 bytes [20:39:19]NVStorageSaveData done [20:39:19]ExternCall_PrintAddStr [20:39:19]wPrintStart [20:39:19]Write to MH i2c: 01 00 00 31 00 31 [20:39:19]Write i2c OK [20:39:19]MH_I2C_Read... [20:39:19]Read from MH i2c: 01 [20:39:19]MH_I2C_Read... [20:39:19]Read from MH i2c: 01 07 00 [20:39:19]MH_I2C_Read... [20:39:19]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [20:39:19]RasterBufferAndPrint [20:39:19]line Счет N : (3)183985 [20:39:19]line ИНН: 02508201610067 [20:39:19]line Контрольно-Кассовый Чек [20:39:19]line ПРОДАЖА [20:39:19]line Товар: 4870002329999 [20:39:19]line Напиток Lipton IceTea 1л лимон Regular [20:39:19]line 1.000 * 130.00 [20:39:19]line = 130.00 [20:39:19]line НДС 12% НСП 1% [20:39:19]line > о реализуемом товаре [20:39:19]line ИТОГО: 130.00 [20:39:19]line НСП 1% : 1.15 [20:39:19]line НДС 12% : 13.80 [20:39:19]line Наличными: 130.00 [20:39:19]line Безнал.: 0.00 [20:39:19]line Место: АЗС № 97 "Партнер Нефть" [20:39:19]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [20:39:19]line СНО: Общий режим [20:39:19]line Чек 145 29.07.2024 20:39 [20:39:19]line Смена: 427 ФФД: 1.0 [20:39:19]line ЗНМ: 0300000053 [20:39:19]line РНМ: 0000000000092626 [20:39:19]line Версия ККМ: 001 [20:39:19]line ФМ: 0000000000874958 [20:39:19]line ФД: 41956 [20:39:19]line ФПД: 223896906447512 [20:39:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T203917&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41956&fm=223896906447512&tin=02508201610067®Number=0000000000092626&sum=13000 [20:39:19]line 0 [20:39:19]written 0, free lines is 4095 [20:39:19]OFD Sender: Processing packet 41956 [packets to send 57, broken 56] [20:39:19]ProducePacketName [20:39:19]name=ofd_packets/00041956 [20:39:19]OFD Sender: To server: pG, [20:39:19]CommunicateWithHost lk.salyk.kg:30040 [20:39:19]ConnectInit lk.salyk.kg [20:39:19]Write to MH i2c: 01 00 00 5A 00 5A [20:39:19]Write i2c OK [20:39:19]MH_I2C_Read... [20:39:19]Read from MH i2c: 01 [20:39:19]MH_I2C_Read... [20:39:19]Read from MH i2c: 01 07 00 [20:39:19]MH_I2C_Read... [20:39:19]Read from MH i2c: 01 07 00 5A 00 00 00 00 00 00 07 0D 75 [20:39:19]RasterBufferAndPrint [20:39:19]line [20:39:19]line [20:39:19]line [20:39:19]line [20:39:19]line [20:39:19]written 0, free lines is 3359 [20:39:19]MH_Cut [20:39:19]Write to MH i2c: D1 01 00 61 00 01 33 [20:39:19]Write i2c OK [20:39:19]MH_I2C_Read... [20:39:20]Read from MH i2c: D1 [20:39:20]MH_I2C_Read... [20:39:20]Read from MH i2c: D1 01 00 [20:39:20]MH_I2C_Read... [20:39:20]Read from MH i2c: D1 01 00 61 00 00 32 [20:39:20]Write to MH i2c: 01 00 00 62 00 62 [20:39:20]Write i2c OK [20:39:20]MH_I2C_Read... [20:39:20]*** Cut start [20:39:20]*** Partial cut [20:39:20]*** CUTSNS_PIN = 1 [20:39:20]Connected sock=9 [20:39: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 35 38 39 01 00 00 A4 FB 31 01 DC A8 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 39 39 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 *** CUTSNS_PIN = 0 [20:39:20]65 61 20 31 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 F5 FD A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 E4 A3 00 00 35 04 06 00 CB A2 0F 93 3A 98 A0 0C 36 F3 5F A5 3A 85 [20:39:21]*** Brake cut motor [20:39:21]Read from MH i2c: 01 [20:39:21]MH_I2C_Read... [20:39:21]*** Stop cut motor [20:39:21]*** Cut end [20:39:21]Read from MH i2c: 01 07 00 [20:39:21]MH_I2C_Read... [20:39:21]Read from MH i2c: 01 07 00 62 00 00 00 00 00 00 FF 0F 77 [20:39:21]process_action close_receipt done [20:39:21]requested_data is exist [20:39:21]produce_requested_data [20:39:21]requested_item fm.sn is exist - process it [20:39:21]wFMCommunicate request_size=4 [20:39:21]MH_SAM_APDU [20:39:21]CAPDU: 80 11 00 00 [20:39:21]Write to MH i2c: E2 08 00 63 00 80 11 00 00 00 00 00 00 DD [20:39:21]Write i2c OK [20:39:21]MH_I2C_Read... [20:39:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:39:21]Read from MH i2c: E2 [20:39:21]MH_I2C_Read... [20:39:21]Read from MH i2c: E2 17 00 [20:39:21]MH_I2C_Read... [20:39:21]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 35 38 90 00 39 [20:39:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [20:39:21]wFMCommunicate OK [20:39:21]requested_item fd.num is exist - process it [20:39:21]SAM_PROTO_GetFieldsCounters [20:39:21]wFMCommunicate request_size=4 [20:39:21]MH_SAM_APDU [20:39:21]CAPDU: 80 13 00 00 [20:39:21]Write to MH i2c: E2 08 00 64 00 80 13 00 00 00 00 00 00 E0 [20:39:21]Write i2c OK [20:39:21]MH_I2C_Read... [20:39: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 35 38 4F 00 00 00 2C 9B 47 00 AC 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 35 38 10 04 04 00 E4 A3 00 00 F4 03 04 00 0C AA A7 66 B6 04 01 00 00 A5 0C EE B0 7E FD 46 26 [20:39:21]CommunicateWithHost err = 0 [20:39:21]CheckOFDResponse [20:39:21]1017 (14) - 77093643461234 [20:39:21]1041 (16) - 0000000000874958 [20:39:21]1040 (4) - 41956 [20:39:21]1012 (4) - 29.07.2024 14:41 [20:39:21]1206 (1) - 0 [20:39:21]OFD Sender: Remove packet 41956 [20:39:21]ProducePacketName [20:39:21]name=ofd_packets/00041956 [20:39:21]NVStorageDeleteData [20:39:21]Read from MH i2c: E2 [20:39:21]MH_I2C_Read... [20:39:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:39:21]Read from MH i2c: E2 62 00 [20:39:21]MH_I2C_Read... [20:39:21]Read from MH i2c: E2 62 00 64 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 E4 A3 00 00 0E 04 04 00 AB 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 F0 [20:39: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 E4 A3 00 00 0E 04 04 00 AB 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 [20:39:21]wFMCommunicate OK [20:39:21]SAM_PROTO_GetFieldsCounters done [20:39:21]requested_item shift.num is exist - process it [20:39:21]requested_item shift.opened is exist - process it [20:39:21]req_shift_opened [20:39:21]FM_GetShiftState [20:39:21]SAM_PROTO_GetShiftState [20:39:21]wFMCommunicate request_size=4 [20:39:21]MH_SAM_APDU [20:39:21]CAPDU: 80 13 01 00 [20:39:21]Write to MH i2c: E2 08 00 65 00 80 13 01 00 00 00 00 00 E2 [20:39:21]Write i2c OK [20:39:21]MH_I2C_Read... [20:39:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:39:21]Read from MH i2c: E2 [20:39:21]MH_I2C_Read... [20:39:21]Read from MH i2c: E2 0E 00 [20:39:21]MH_I2C_Read... [20:39:21]Read from MH i2c: E2 0E 00 65 00 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 7E [20:39:21]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [20:39:21]wFMCommunicate OK [20:39:21]SAM_PROTO_GetShiftState done [20:39:21]FM_GetShiftState done [20:39:21]req_shift_opened done [20:39:21]requested_item shift.open_date is exist - process it [20:39:21]req_shift_open_date [20:39:21]req_shift_open_date done [20:39:21]produce_requested_data done [20:39:21]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41956,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [20:39:21]process_action_free close_receipt [20:39:21]json_value_free [20:39:21]json_value_free done [20:39:21]process_json_proto returns [20:39:21]Send response to host [20:39:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41956,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [20:39:21]free response buf [20:39:21]execute_script done [20:39:21]execute_script returns [20:39:21]free content buf [20:39:21]Sock 8.Close socket [20:39:21]Sock 8.Thread stoped [20:39:22]OFD Sender: No OFD packet to send [20:39:23]accept exits with 10 [20:39:23]New connection [20:39:23]New thread 3067362660 created [20:39:23]Thread 3067506020 joined [20:39:23]Waiting for new connection... [20:39:23] Sock 10.Parse request [20:39:23]Sock 10.Check first char [20:39:23]Sock 10.First char is OK [20:39:23]request: POST /json_proto HTTP/1.0 [20:39:23]Method: POST [20:39:23]URL: /json_proto [20:39:23]Method is POST - this is cgi request [20:39:23]url: /json_proto [20:39:23]query_string will be loaded in cgi processing [20:39:23]execute_cgi json_proto POST (null) [20:39:23]execute_cgi path=json_proto method=POST [20:39:23]POST find Content-Length [20:39:23]Host: 172.17.43.132:8080 [20:39:23]Content-Length: 646 [20:39:23]Content-Type: application/json [20:39:23] [20:39:23]POST finish read [20:39:23]Found Content-Length = 646 [20:39:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183986", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:39:23]execute_script... [20:39:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183986", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:39:23]POST & json_proto [20:39:23]process_json_proto [20:39:23]json parsed OK: [20:39:23]protocol is kg_v1.0 [20:39:23]action value=close_receipt [20:39:23]process_action close_receipt [20:39:23]cmd_close_receipt [20:39:23]MH_GetDate [20:39:23]Write to MH i2c: F0 00 00 66 00 55 [20:39:23]Write i2c OK [20:39:23]MH_I2C_Read... [20:39:23]Read from MH i2c: F0 [20:39:23]MH_I2C_Read... [20:39:23]Read from MH i2c: F0 09 00 [20:39:23]MH_I2C_Read... [20:39:23]Read from MH i2c: F0 09 00 66 00 00 FB FD A7 66 64 A3 A7 66 77 [20:39:23]GetLastDocTimeStamp 1722285557 [20:39:23]current date 1722285563 [20:39:23]FM_GetShiftState [20:39:23]SAM_PROTO_GetShiftState [20:39:23]wFMCommunicate request_size=4 [20:39:23]MH_SAM_APDU [20:39:23]CAPDU: 80 13 01 00 [20:39:23]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [20:39:23]Write i2c OK [20:39:23]MH_I2C_Read... [20:39:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:39:23]Read from MH i2c: E2 [20:39:23]MH_I2C_Read... [20:39:23]Read from MH i2c: E2 0E 00 [20:39:23]MH_I2C_Read... [20:39:23]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 80 [20:39:23]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [20:39:23]wFMCommunicate OK [20:39:23]SAM_PROTO_GetShiftState done [20:39:23]FM_GetShiftState done [20:39:23]opened in 1722211496 [20:39:23]opened+sec_in_day 1722297896 [20:39:23]quantity*price = 26000 [20:39:23]sum+1 = 26001 [20:39:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 146 29.07.2024 20:39 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41957 ФПД: 134902615190540 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T203923&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41957&fm=134902615190540&tin=02508201610067®Number=0000000000092626&sum=26000 0 [20:39:24]StoreToDocumentArchive [20:39:24]shift 427 fd 41957 [20:39:24]save to /storage/0427/doc_00041957 [20:39:24]save last doc name /storage/0427/doc_00041957 to /storage/kkm_last_doc_name [20:39:24]save OK [20:39:24]Clear old archive folders... [20:39:24]ProcessDocumentItem done err = 0, tmpTLVsize=282 [20:39:24]tlvbuf is 01215710 [20:39:24]SAM_PROTO_ClearQueue [20:39:24]wFMCommunicate request_size=4 [20:39:24]MH_SAM_APDU [20:39:24]CAPDU: 80 09 00 00 [20:39:24]Write to MH i2c: E2 08 00 74 00 80 09 00 00 00 00 00 00 E6 [20:39:24]Write i2c OK [20:39:24]MH_I2C_Read... [20:39:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:39:24]Read from MH i2c: E2 [20:39:24]MH_I2C_Read... [20:39:24]Read from MH i2c: E2 03 00 [20:39:24]MH_I2C_Read... [20:39:24]Read from MH i2c: E2 03 00 74 00 00 90 00 E8 [20:39:24]RAPDU: 90 00 [20:39:24]wFMCommunicate OK [20:39:24]SAM_PROTO_ClearQueue done [20:39:24]KKMCreateOFDPacket [20:39:24]OFDProtocolAddRootSTLVToBuf [20:39:24]FM_MakeSignedData [20:39:24]FM_MakeSignedData [20:39:24]SAM_PROTO_SignData [20:39:24]wFMCommunicate request_size=4 [20:39:24]MH_SAM_APDU [20:39:24]CAPDU: 80 0D 01 02 [20:39:24]Write to MH i2c: E2 08 00 75 00 80 0D 01 02 00 00 00 00 EE [20:39:24]Write i2c OK [20:39:24]MH_I2C_Read... [20:39:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:39:24]Read from MH i2c: E2 [20:39:24]MH_I2C_Read... [20:39:24]Read from MH i2c: E2 03 00 [20:39:24]MH_I2C_Read... [20:39:24]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [20:39:24]RAPDU: 90 00 [20:39:24]wFMCommunicate OK [20:39:24]wFMCommunicate request_size=255 [20:39:24]MH_SAM_APDU [20:39:24]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 FB FD A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 [20:39:24]Write to MH i2c: E2 02 01 76 00 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 FB FD A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 00 00 FA [20:39:24]Write i2c OK [20:39:24]MH_I2C_Read... [20:39:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:39:25]Read from MH i2c: E2 [20:39:25]MH_I2C_Read... [20:39:25]Read from MH i2c: E2 03 00 [20:39:25]MH_I2C_Read... [20:39:25]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [20:39:25]RAPDU: 90 00 [20:39:25]wFMCommunicate OK [20:39:25]wFMCommunicate request_size=41 [20:39:25]MH_SAM_APDU [20:39:25]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 E5 A3 00 00 35 04 06 00 7A B1 76 75 2C 0C [20:39:25]Write to MH i2c: E2 2C 00 77 00 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 E5 A3 00 00 35 04 06 00 7A B1 76 75 2C 0C 00 00 9F [20:39:25]Write i2c OK [20:39:25]MH_I2C_Read... [20:39:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:39:25]Read from MH i2c: E2 [20:39:25]MH_I2C_Read... [20:39:25]Read from MH i2c: E2 03 00 [20:39:25]MH_I2C_Read... [20:39:25]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [20:39:25]RAPDU: 90 00 [20:39:25]wFMCommunicate OK [20:39:25]wFMCommunicate request_size=4 [20:39:25]MH_SAM_APDU [20:39:25]CAPDU: 80 0D 03 02 [20:39:25]Write to MH i2c: E2 08 00 78 00 80 0D 03 02 00 00 00 00 F3 [20:39:25]Write i2c OK [20:39:25]MH_I2C_Read... [20:39:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:39:25]Read from MH i2c: E2 [20:39:25]MH_I2C_Read... [20:39:25]Read from MH i2c: E2 0B 00 [20:39:25]MH_I2C_Read... [20:39:25]Read from MH i2c: E2 0B 00 78 00 00 BE B5 74 02 5A A6 37 05 90 00 19 [20:39:25]RAPDU: BE B5 74 02 5A A6 37 05 90 00 [20:39:25]wFMCommunicate OK [20:39:25]SAM_PROTO_SignData done [20:39:25]FM_MakeSignedData done [20:39:25]CreateOFDProtocolMessage [20:39:25]wFMCommunicate request_size=4 [20:39:25]MH_SAM_APDU [20:39:25]CAPDU: 80 11 00 00 [20:39:25]Write to MH i2c: E2 08 00 79 00 80 11 00 00 00 00 00 00 F3 [20:39:25]Write i2c OK [20:39:25]MH_I2C_Read... [20:39:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:39:25]Read from MH i2c: E2 [20:39:25]MH_I2C_Read... [20:39:25]Read from MH i2c: E2 17 00 [20:39:25]MH_I2C_Read... [20:39:25]Read from MH i2c: E2 17 00 79 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 4F [20:39:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [20:39:25]wFMCommunicate OK [20:39:25]CreateOFDProtocolMessage done [20:39:25]OFDSenderStorePacket 41957 [20:39:25]StoreOFDPacket docnum=41957 [20:39:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 2E 01 00 00 FD D5 26 01 D8 45 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 FB FD A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 E5 A3 00 00 35 04 06 00 7A B1 76 75 2C 0C BE B5 74 02 5A A6 37 05 [20:39:25]CheckFolder [20:39:25]dirname=/storage/ofd_packets [20:39:25]CheckFolder done [20:39:25]ProducePacketName [20:39:25]name=ofd_packets/00041957 [20:39:25]NVStorageSaveData ofd_packets/00041957 [20:39:25]File name is /storage/ofd_packets/00041957 [20:39:25]Write 332 bytes [20:39:25]NVStorageSaveData done [20:39:25]OFDSenderStorePacket done [20:39:25]KKMCreateOFDPacket done [20:39:25]NVStorageSaveData kkm_last_timestamp [20:39:25]File name is /storage/kkm_last_timestamp [20:39:25]Write 4 bytes [20:39:25]NVStorageSaveData done [20:39:25]ExternCall_PrintAddStr [20:39:25]wPrintStart [20:39:25]Write to MH i2c: 01 00 00 7A 00 7A [20:39:25]Write i2c OK [20:39:25]MH_I2C_Read... [20:39:25]Read from MH i2c: 01 [20:39:25]MH_I2C_Read... [20:39:25]Read from MH i2c: 01 07 00 [20:39:25]MH_I2C_Read... [20:39:25]Read from MH i2c: 01 07 00 7A 00 00 00 00 00 00 FF 0F 8F [20:39:25]RasterBufferAndPrint [20:39:25]line Счет N : (3)183986 [20:39:25]line ИНН: 02508201610067 [20:39:25]line Контрольно-Кассовый Чек [20:39:25]line ПРОДАЖА [20:39:25]line Товар: 2000036220012 [20:39:25]line Кофе Капучино XL(GABB TRADE) [20:39:25]line 2.000 * 130.00 [20:39:25]line = 260.00 [20:39:25]line НДС 12% НСП 1% [20:39:25]line > о реализуемом товаре [20:39:25]line ИТОГО: 260.00 [20:39:25]line НСП 1% : 2.30 [20:39:25]line НДС 12% : 27.61 [20:39:25]line Наличными: 260.00 [20:39:25]line Безнал.: 0.00 [20:39:25]line Место: АЗС № 97 "Партнер Нефть" [20:39:25]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [20:39:25]line СНО: Общий режим [20:39:25]line Чек 146 29.07.2024 20:39 [20:39:25]line Смена: 427 ФФД: 1.0 [20:39:25]line ЗНМ: 0300000053 [20:39:25]line РНМ: 0000000000092626 [20:39:25]line Версия ККМ: 001 [20:39:25]line ФМ: 0000000000874958 [20:39:25]line ФД: 41957 [20:39:25]line ФПД: 134902615190540 [20:39:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T203923&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41957&fm=134902615190540&tin=02508201610067®Number=0000000000092626&sum=26000 [20:39:25]line 0 [20:39:25]written 0, free lines is 4095 [20:39:25]OFD Sender: Processing packet 41957 [packets to send 57, broken 56] [20:39:25]ProducePacketName [20:39:25]name=ofd_packets/00041957 [20:39:25]OFD Sender: To server: pG, [20:39:25]CommunicateWithHost lk.salyk.kg:30040 [20:39:25]ConnectInit lk.salyk.kg [20:39:26]Write to MH i2c: 01 00 00 A3 00 A3 [20:39:26]Write i2c OK [20:39:26]MH_I2C_Read... [20:39:26]Read from MH i2c: 01 [20:39:26]MH_I2C_Read... [20:39:26]Read from MH i2c: 01 07 00 [20:39:26]MH_I2C_Read... [20:39:26]Read from MH i2c: 01 07 00 A3 00 00 00 00 00 00 0B 0D C2 [20:39:26]RasterBufferAndPrint [20:39:26]line [20:39:26]line [20:39:26]line [20:39:26]line [20:39:26]line [20:39:26]written 0, free lines is 3369 [20:39:26]MH_Cut [20:39:26]Write to MH i2c: D1 01 00 AA 00 01 7C [20:39:26]Write i2c OK [20:39:26]MH_I2C_Read... [20:39:26]Read from MH i2c: D1 [20:39:26]MH_I2C_Read... [20:39:26]Read from MH i2c: D1 01 00 [20:39:26]MH_I2C_Read... [20:39:26]Read from MH i2c: D1 01 00 AA 00 00 7B [20:39:26]Write to MH i2c: 01 00 00 AB 00 AB [20:39:26]Write i2c OK [20:39:26]MH_I2C_Read... [20:39:26]*** Cut start [20:39:26]*** Partial cut [20:39:26]*** CUTSNS_PIN = 1 [20:39:26]*** CUTSNS_PIN = 0 [20:39:27]*** Brake cut motor [20:39:27]Read from MH i2c: *** Stop cut motor [20:39:27]01 *** Cut end [20:39:27] [20:39:27]MH_I2C_Read... [20:39:27]Read from MH i2c: 01 07 00 [20:39:27]MH_I2C_Read... [20:39:27]Read from MH i2c: 01 07 00 AB 00 00 00 00 00 00 FF 0F C0 [20:39:27]process_action close_receipt done [20:39:27]requested_data is exist [20:39:27]produce_requested_data [20:39:27]requested_item fm.sn is exist - process it [20:39:27]wFMCommunicate request_size=4 [20:39:27]MH_SAM_APDU [20:39:27]CAPDU: 80 11 00 00 [20:39:27]Write to MH i2c: E2 08 00 AC 00 80 11 00 00 00 00 00 00 26 [20:39:27]Write i2c OK [20:39:27]MH_I2C_Read... [20:39:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:39:27]Read from MH i2c: E2 [20:39:27]MH_I2C_Read... [20:39:27]Read from MH i2c: E2 17 00 [20:39:27]MH_I2C_Read... [20:39:27]Read from MH i2c: E2 17 00 AC 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 82 [20:39:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [20:39:27]wFMCommunicate OK [20:39:27]requested_item fd.num is exist - process it [20:39:27]SAM_PROTO_GetFieldsCounters [20:39:27]wFMCommunicate request_size=4 [20:39:27]MH_SAM_APDU [20:39:27]CAPDU: 80 13 00 00 [20:39:27]Write to MH i2c: E2 08 00 AD 00 80 13 00 00 00 00 00 00 29 [20:39:27]Write i2c OK [20:39:27]MH_I2C_Read... [20:39:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:39:27]Read from MH i2c: E2 [20:39:27]MH_I2C_Read... [20:39:27]Read from MH i2c: E2 62 00 [20:39:27]MH_I2C_Read... [20:39:27]Read from MH i2c: E2 62 00 AD 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 E5 A3 00 00 0E 04 04 00 AB 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 3D [20:39:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 E5 A3 00 00 0E 04 04 00 AB 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 [20:39:27]wFMCommunicate OK [20:39:27]SAM_PROTO_GetFieldsCounters done [20:39:27]requested_item shift.num is exist - process it [20:39:27]requested_item shift.opened is exist - process it [20:39:27]req_shift_opened [20:39:27]FM_GetShiftState [20:39:27]SAM_PROTO_GetShiftState [20:39:27]wFMCommunicate request_size=4 [20:39:27]MH_SAM_APDU [20:39:27]CAPDU: 80 13 01 00 [20:39:27]Write to MH i2c: E2 08 00 AE 00 80 13 01 00 00 00 00 00 2B [20:39:27]Write i2c OK [20:39:27]MH_I2C_Read... [20:39:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:39:27]Read from MH i2c: E2 [20:39:27]MH_I2C_Read... [20:39:27]Read from MH i2c: E2 0E 00 [20:39:27]MH_I2C_Read... [20:39:27]Read from MH i2c: E2 0E 00 AE 00 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 C7 [20:39:27]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [20:39:27]wFMCommunicate OK [20:39:27]SAM_PROTO_GetShiftState done [20:39:27]FM_GetShiftState done [20:39:27]req_shift_opened done [20:39:27]requested_item shift.open_date is exist - process it [20:39:27]req_shift_open_date [20:39:27]req_shift_open_date done [20:39:27]produce_requested_data done [20:39:27]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41957,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [20:39:27]process_action_free close_receipt [20:39:27]json_value_free [20:39:27]json_value_free done [20:39:27]process_json_proto returns [20:39:27]Send response to host [20:39:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41957,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [20:39:27]free response buf [20:39:27]execute_script done [20:39:27]execute_script returns [20:39:27]free content buf [20:39:27]Sock 10.Close socket [20:39:27]Sock 10.Thread stoped [20:39:29]accept exits with 8 [20:39:29]New connection [20:39:29]New thread 3067506020 created [20:39:29]Thread 3067362660 joined [20:39:29]Waiting for new connection... [20:39:29] Sock 8.Parse request [20:39:29]Sock 8.Check first char [20:39:29]Sock 8.First char is OK [20:39:29]request: POST /json_proto HTTP/1.0 [20:39:29]Method: POST [20:39:29]URL: /json_proto [20:39:29]Method is POST - this is cgi request [20:39:29]url: /json_proto [20:39:29]query_string will be loaded in cgi processing [20:39:29]execute_cgi json_proto POST (null) [20:39:29]execute_cgi path=json_proto method=POST [20:39:29]POST find Content-Length [20:39:29]Host: 172.17.43.132:8080 [20:39:29]Content-Length: 718 [20:39:29]Content-Type: application/json [20:39:29] [20:39:29]POST finish read [20:39:29]Found Content-Length = 718 [20:39:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183987", "tax_sys" : 0, "items" : [ { "code": "4606532000189", "name": "\u0422\u043E\u0440\u043C\u043E\u0437\u043D\u0430\u044F \u0436\u0438\u0434\u043A\u043E\u0441\u0442\u044C \u0420\u043E\u0441\u0414\u043E\u0442-4 0,455\u043A\u0433", "price" : 250.00, "quantity" : 1.000, "sum" : 250.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 250.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:39:29]execute_script... [20:39:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183987", "tax_sys" : 0, "items" : [ { "code": "4606532000189", "name": "\u0422\u043E\u0440\u043C\u043E\u0437\u043D\u0430\u044F \u0436\u0438\u0434\u043A\u043E\u0441\u0442\u044C \u0420\u043E\u0441\u0414\u043E\u0442-4 0,455\u043A\u0433", "price" : 250.00, "quantity" : 1.000, "sum" : 250.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 250.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:39:29]POST & json_proto [20:39:29]process_json_proto [20:39:29]json parsed OK: [20:39:29]protocol is kg_v1.0 [20:39:29]action value=close_receipt [20:39:29]process_action close_receipt [20:39:29]cmd_close_receipt [20:39:29]MH_GetDate [20:39:29]Write to MH i2c: F0 00 00 AF 00 9E [20:39:29]Write i2c OK [20:39:29]MH_I2C_Read... [20:39:29]Read from MH i2c: F0 [20:39:29]MH_I2C_Read... [20:39:29]Read from MH i2c: F0 09 00 [20:39:29]MH_I2C_Read... [20:39:29]Read from MH i2c: F0 09 00 AF 00 00 01 FE A7 66 64 A3 A7 66 C7 [20:39:29]GetLastDocTimeStamp 1722285563 [20:39:29]current date 1722285569 [20:39:29]FM_GetShiftState [20:39:29]SAM_PROTO_GetShiftState [20:39:29]wFMCommunicate request_size=4 [20:39:29]MH_SAM_APDU [20:39:29]CAPDU: 80 13 01 00 [20:39:29]Write to MH i2c: E2 08 00 B0 00 80 13 01 00 00 00 00 00 2D [20:39:29]Write i2c OK [20:39:29]MH_I2C_Read... [20:39:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:39:29]Read from MH i2c: E2 [20:39:29]MH_I2C_Read... [20:39:29]Read from MH i2c: E2 0E 00 [20:39:29]MH_I2C_Read... [20:39:29]Read from MH i2c: E2 0E 00 B0 00 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 C9 [20:39:29]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [20:39:29]wFMCommunicate OK [20:39:29]SAM_PROTO_GetShiftState done [20:39:29]FM_GetShiftState done [20:39:29]opened in 1722211496 [20:39:29]opened+sec_in_day 1722297896 [20:39:29]quantity*price = 25000 [20:39:29]sum+1 = 25001 [20:39:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 250.00 НСП 1% : 2.21 НДС 12% : 26.55 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 147 29.07.2024 20:39 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41958 ФПД: 181771273683692 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T203929&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41958&fm=181771273683692&tin=02508201610067®Number=0000000000092626&sum=25000 0 [20:39:30]StoreToDocumentArchive [20:39:30]shift 427 fd 41958 [20:39:30]save to /storage/0427/doc_00041958 [20:39:30]save last doc name /storage/0427/doc_00041958 to /storage/kkm_last_doc_name [20:39:30]save OK [20:39:30]Clear old archive folders... [20:39:30]ProcessDocumentItem done err = 0, tmpTLVsize=302 [20:39:30]tlvbuf is 012BC020 [20:39:30]SAM_PROTO_ClearQueue [20:39:30]wFMCommunicate request_size=4 [20:39:30]MH_SAM_APDU [20:39:30]CAPDU: 80 09 00 00 [20:39:30]Write to MH i2c: E2 08 00 BD 00 80 09 00 00 00 00 00 00 2F [20:39:30]Write i2c OK [20:39:30]MH_I2C_Read... [20:39:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:39:30]Read from MH i2c: E2 [20:39:30]MH_I2C_Read... [20:39:30]Read from MH i2c: E2 03 00 [20:39:30]MH_I2C_Read... [20:39:30]Read from MH i2c: E2 03 00 BD 00 00 90 00 31 [20:39:30]RAPDU: 90 00 [20:39:30]wFMCommunicate OK [20:39:30]SAM_PROTO_ClearQueue done [20:39:30]KKMCreateOFDPacket [20:39:30]OFDProtocolAddRootSTLVToBuf [20:39:30]FM_MakeSignedData [20:39:30]FM_MakeSignedData [20:39:30]SAM_PROTO_SignData [20:39:30]wFMCommunicate request_size=4 [20:39:30]MH_SAM_APDU [20:39:30]CAPDU: 80 0D 01 02 [20:39:30]Write to MH i2c: E2 08 00 BE 00 80 0D 01 02 00 00 00 00 37 [20:39:30]Write i2c OK [20:39:30]MH_I2C_Read... [20:39:30]ConnectInit Can't take IP for lk.salyk.kg [20:39:30]CommunicateWithHost connect error [20:39:30]CommunicateWithHost err = -1 [20:39:30]OFD Sender: Server communicate error [20:39:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:39:30]Read from MH i2c: E2 [20:39:30]MH_I2C_Read... [20:39:30]Read from MH i2c: E2 03 00 [20:39:30]MH_I2C_Read... [20:39:30]Read from MH i2c: E2 03 00 BE 00 00 90 00 32 [20:39:30]RAPDU: 90 00 [20:39:30]wFMCommunicate OK [20:39:30]wFMCommunicate request_size=255 [20:39:30]MH_SAM_APDU [20:39:30]CAPDU: 80 0D 02 02 FA 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 30 36 35 33 32 30 30 30 31 38 39 06 04 3C 00 D0 A2 D0 BE D1 80 D0 BC D0 BE D0 B7 D0 BD D0 B0 D1 8F 20 D0 B6 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D0 A0 D0 BE D1 81 D0 94 D0 BE D1 82 2D 34 20 30 2C 34 35 35 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A8 61 00 00 00 00 13 04 06 00 A8 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 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 01 FE A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 [20:39:30]Write to MH i2c: E2 02 01 BF 00 80 0D 02 02 FA 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 30 36 35 33 32 30 30 30 31 38 39 06 04 3C 00 D0 A2 D0 BE D1 80 D0 BC D0 BE D0 B7 D0 BD D0 B0 D1 8F 20 D0 B6 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D0 A0 D0 BE D1 81 D0 94 D0 BE D1 82 2D 34 20 30 2C 34 35 35 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A8 61 00 00 00 00 13 04 06 00 A8 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 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 01 FE A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 00 00 4C [20:39:30]Write i2c OK [20:39:30]MH_I2C_Read... [20:39:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:39:31]Read from MH i2c: E2 [20:39:31]MH_I2C_Read... [20:39:31]Read from MH i2c: E2 03 00 [20:39:31]MH_I2C_Read... [20:39:31]Read from MH i2c: E2 03 00 BF 00 00 90 00 33 [20:39:31]RAPDU: 90 00 [20:39:31]wFMCommunicate OK [20:39:31]wFMCommunicate request_size=61 [20:39:31]MH_SAM_APDU [20:39:31]CAPDU: 80 0D 02 02 38 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 E6 A3 00 00 35 04 06 00 A5 51 EC 32 C2 EC [20:39:31]Write to MH i2c: E2 40 00 C0 00 80 0D 02 02 38 00 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 E6 A3 00 00 35 04 06 00 A5 51 EC 32 C2 EC 00 00 C3 [20:39:31]Write i2c OK [20:39:31]MH_I2C_Read... [20:39:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:39:31]Read from MH i2c: E2 [20:39:31]MH_I2C_Read... [20:39:31]Read from MH i2c: E2 03 00 [20:39:31]MH_I2C_Read... [20:39:31]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [20:39:31]RAPDU: 90 00 [20:39:31]wFMCommunicate OK [20:39:31]wFMCommunicate request_size=4 [20:39:31]MH_SAM_APDU [20:39:31]CAPDU: 80 0D 03 02 [20:39:31]Write to MH i2c: E2 08 00 C1 00 80 0D 03 02 00 00 00 00 3C [20:39:31]Write i2c OK [20:39:31]MH_I2C_Read... [20:39:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:39:31]Read from MH i2c: E2 [20:39:31]MH_I2C_Read... [20:39:31]Read from MH i2c: E2 0B 00 [20:39:31]MH_I2C_Read... [20:39:31]Read from MH i2c: E2 0B 00 C1 00 00 A9 6E EA 39 EA AB 01 37 90 00 44 [20:39:31]RAPDU: A9 6E EA 39 EA AB 01 37 90 00 [20:39:31]wFMCommunicate OK [20:39:31]SAM_PROTO_SignData done [20:39:31]FM_MakeSignedData done [20:39:31]CreateOFDProtocolMessage [20:39:31]wFMCommunicate request_size=4 [20:39:31]MH_SAM_APDU [20:39:31]CAPDU: 80 11 00 00 [20:39:31]Write to MH i2c: E2 08 00 C2 00 80 11 00 00 00 00 00 00 3C [20:39:31]Write i2c OK [20:39:31]MH_I2C_Read... [20:39:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:39:31]Read from MH i2c: E2 [20:39:31]MH_I2C_Read... [20:39:31]Read from MH i2c: E2 17 00 [20:39:31]MH_I2C_Read... [20:39:31]Read from MH i2c: E2 17 00 C2 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 98 [20:39:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [20:39:31]wFMCommunicate OK [20:39:31]CreateOFDProtocolMessage done [20:39:31]OFDSenderStorePacket 41958 [20:39:31]StoreOFDPacket docnum=41958 [20:39:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 42 01 00 00 36 FC 3A 01 1C D5 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 30 36 35 33 32 30 30 30 31 38 39 06 04 3C 00 D0 A2 D0 BE D1 80 D0 BC D0 BE D0 B7 D0 BD D0 B0 D1 8F 20 D0 B6 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D0 A0 D0 BE D1 81 D0 94 D0 BE D1 82 2D 34 20 30 2C 34 35 35 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A8 61 00 00 00 00 13 04 06 00 A8 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 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 01 FE A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 E6 A3 00 00 35 04 06 00 A5 51 EC 32 C2 EC A9 6E EA 39 EA AB 01 37 [20:39:31]CheckFolder [20:39:31]dirname=/storage/ofd_packets [20:39:31]CheckFolder done [20:39:31]ProducePacketName [20:39:31]name=ofd_packets/00041958 [20:39:31]NVStorageSaveData ofd_packets/00041958 [20:39:31]File name is /storage/ofd_packets/00041958 [20:39:31]Write 352 bytes [20:39:31]NVStorageSaveData done [20:39:31]OFDSenderStorePacket done [20:39:31]KKMCreateOFDPacket done [20:39:31]NVStorageSaveData kkm_last_timestamp [20:39:31]File name is /storage/kkm_last_timestamp [20:39:31]Write 4 bytes [20:39:31]NVStorageSaveData done [20:39:31]ExternCall_PrintAddStr [20:39:31]wPrintStart [20:39:31]Write to MH i2c: 01 00 00 C3 00 C3 [20:39:31]Write i2c OK [20:39:31]MH_I2C_Read... [20:39:31]Read from MH i2c: 01 [20:39:31]MH_I2C_Read... [20:39:31]Read from MH i2c: 01 07 00 [20:39:31]MH_I2C_Read... [20:39:31]Read from MH i2c: 01 07 00 C3 00 00 00 00 00 00 FF 0F D8 [20:39:31]RasterBufferAndPrint [20:39:31]line Счет N : (3)183987 [20:39:31]line ИНН: 02508201610067 [20:39:31]line Контрольно-Кассовый Чек [20:39:31]line ПРОДАЖА [20:39:31]line Товар: 4606532000189 [20:39:31]line Тормозная жидкость РосДот-4 0,455кг [20:39:31]line 1.000 * 250.00 [20:39:31]line = 250.00 [20:39:31]line НДС 12% НСП 1% [20:39:31]line > о реализуемом товаре [20:39:31]line ИТОГО: 250.00 [20:39:31]line НСП 1% : 2.21 [20:39:31]line НДС 12% : 26.55 [20:39:31]line Наличными: 250.00 [20:39:31]line Безнал.: 0.00 [20:39:31]line Место: АЗС № 97 "Партнер Нефть" [20:39:31]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [20:39:31]line СНО: Общий режим [20:39:31]line Чек 147 29.07.2024 20:39 [20:39:31]line Смена: 427 ФФД: 1.0 [20:39:31]line ЗНМ: 0300000053 [20:39:31]line РНМ: 0000000000092626 [20:39:31]line Версия ККМ: 001 [20:39:31]line ФМ: 0000000000874958 [20:39:31]line ФД: 41958 [20:39:31]line ФПД: 181771273683692 [20:39:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T203929&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41958&fm=181771273683692&tin=02508201610067®Number=0000000000092626&sum=25000 [20:39:31]line 0 [20:39:31]OFD Sender: Processing packet 41957 [packets to send 58, broken 56] [20:39:31]ProducePacketName [20:39:31]name=ofd_packets/00041957 [20:39:31]OFD Sender: To server: pG, [20:39:31]CommunicateWithHost lk.salyk.kg:30040 [20:39:31]ConnectInit lk.salyk.kg [20:39:31]written 0, free lines is 4095 [20:39:32]Write to MH i2c: 01 00 00 EC 00 EC [20:39:32]Write i2c OK [20:39:32]MH_I2C_Read... [20:39:32]Read from MH i2c: 01 [20:39:32]MH_I2C_Read... [20:39:32]Read from MH i2c: 01 07 00 [20:39:32]MH_I2C_Read... [20:39:32]Read from MH i2c: 01 07 00 EC 00 00 00 00 00 00 2B 0D 2B [20:39:32]RasterBufferAndPrint [20:39:32]line [20:39:32]line [20:39:32]line [20:39:32]line [20:39:32]line [20:39:32]written 0, free lines is 3435 [20:39:32]MH_Cut [20:39:32]Write to MH i2c: D1 01 00 F3 00 01 C5 [20:39:32]Write i2c OK [20:39:32]MH_I2C_Read... [20:39:32]Read from MH i2c: D1 [20:39:32]MH_I2C_Read... [20:39:32]Read from MH i2c: D1 01 00 [20:39:32]MH_I2C_Read... [20:39:32]Read from MH i2c: D1 01 00 F3 00 00 C4 [20:39:32]Write to MH i2c: 01 00 00 F4 00 F4 [20:39:32]Write i2c OK [20:39:32]MH_I2C_Read... [20:39:32]Connected sock=9 [20:39: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 35 38 2E 01 00 00 FD D5 26 01 D8 45 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 FB FD A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 *** Cut start [20:39:32]0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 *** Partial cut [20:39:32]32 36 32 36 11 04 *** CUTSNS_PIN = 1 [20:39:32]10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 E5 A3 00 00 35 04 06 00 7A B1 76 75 2C *** CUTSNS_PIN = 0 [20:39:32]0C BE B5 74 02 5A A6 37 05 [20:39:33]*** Brake cut motor [20:39:33]Read from MH i2c: *** Stop cut motor [20:39:33]01 *** Cut end [20:39:33] [20:39:33]MH_I2C_Read... [20:39:33]Read from MH i2c: 01 07 00 [20:39:33]MH_I2C_Read... [20:39:33]Read from MH i2c: 01 07 00 F4 00 00 00 00 00 00 FF 0F 09 [20:39:33]process_action close_receipt done [20:39:33]requested_data is exist [20:39:33]produce_requested_data [20:39:33]requested_item fm.sn is exist - process it [20:39:33]wFMCommunicate request_size=4 [20:39:33]MH_SAM_APDU [20:39:33]CAPDU: 80 11 00 00 [20:39:33]Write to MH i2c: E2 08 00 F5 00 80 11 00 00 00 00 00 00 6F [20:39:33]Write i2c OK [20:39:33]MH_I2C_Read... [20:39:33]Read from MH i2c: *** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:39:33]E2 [20:39:33]MH_I2C_Read... [20:39:33]Read from MH i2c: E2 17 00 [20:39:33]MH_I2C_Read... [20:39:33]Read from MH i2c: E2 17 00 F5 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 CB [20:39:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [20:39:33]wFMCommunicate OK [20:39:33]requested_item fd.num is exist - process it [20:39:33]SAM_PROTO_GetFieldsCounters [20:39:33]wFMCommunicate request_size=4 [20:39:33]MH_SAM_APDU [20:39:33]CAPDU: 80 13 00 00 [20:39:33]Write to MH i2c: E2 08 00 F6 00 80 13 00 00 00 00 00 00 72 [20:39:33]Write i2c OK [20:39:33]MH_I2C_Read... [20:39: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 35 38 4F 00 00 00 DC 1F 47 00 83 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 E5 A3 00 00 F4 03 04 00 18 AA A7 66 B6 04 01 00 00 91 E1 B8 B7 1A E0 F2 70 [20:39:33]CommunicateWithHost err = 0 [20:39:33]CheckOFDResponse [20:39:33]1017 (14) - 77093643461234 [20:39:33]1041 (16) - 0000000000874958 [20:39:33]1040 (4) - 41957 [20:39:33]1012 (4) - 29.07.2024 14:41 [20:39:33]1206 (1) - 0 [20:39:33]OFD Sender: Remove packet 41957 [20:39:33]ProducePacketName [20:39:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:39:33]name=ofd_packets/00041957 [20:39:33]NVStorageDeleteData [20:39:33]Read from MH i2c: E2 [20:39:33]MH_I2C_Read... [20:39:33]Read from MH i2c: E2 62 00 [20:39:33]MH_I2C_Read... [20:39:33]Read from MH i2c: E2 62 00 F6 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 E6 A3 00 00 0E 04 04 00 AB 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 8A [20:39: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 E6 A3 00 00 0E 04 04 00 AB 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 [20:39:33]wFMCommunicate OK [20:39:33]SAM_PROTO_GetFieldsCounters done [20:39:33]requested_item shift.num is exist - process it [20:39:33]requested_item shift.opened is exist - process it [20:39:33]req_shift_opened [20:39:33]FM_GetShiftState [20:39:33]SAM_PROTO_GetShiftState [20:39:33]wFMCommunicate request_size=4 [20:39:33]MH_SAM_APDU [20:39:33]CAPDU: 80 13 01 00 [20:39:33]Write to MH i2c: E2 08 00 F7 00 80 13 01 00 00 00 00 00 74 [20:39:33]Write i2c OK [20:39:33]MH_I2C_Read... [20:39:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:39:33]Read from MH i2c: E2 [20:39:33]MH_I2C_Read... [20:39:33]Read from MH i2c: E2 0E 00 [20:39:33]MH_I2C_Read... [20:39:33]Read from MH i2c: E2 0E 00 F7 00 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 10 [20:39:34]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [20:39:34]wFMCommunicate OK [20:39:34]SAM_PROTO_GetShiftState done [20:39:34]FM_GetShiftState done [20:39:34]req_shift_opened done [20:39:34]requested_item shift.open_date is exist - process it [20:39:34]req_shift_open_date [20:39:34]req_shift_open_date done [20:39:34]produce_requested_data done [20:39:34]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41958,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [20:39:34]process_action_free close_receipt [20:39:34]json_value_free [20:39:34]json_value_free done [20:39:34]process_json_proto returns [20:39:34]Send response to host [20:39:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41958,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [20:39:34]free response buf [20:39:34]execute_script done [20:39:34]execute_script returns [20:39:34]free content buf [20:39:34]Sock 8.Close socket [20:39:34]Sock 8.Thread stoped [20:39:34]OFD Sender: Processing packet 41958 [packets to send 57, broken 56] [20:39:34]ProducePacketName [20:39:34]name=ofd_packets/00041958 [20:39:34]OFD Sender: To server: pG, [20:39:34]CommunicateWithHost lk.salyk.kg:30040 [20:39:34]ConnectInit lk.salyk.kg [20:39:34]Connected sock=8 [20:39: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 35 38 42 01 00 00 36 FC 3A 01 1C D5 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 30 36 35 33 32 30 30 30 31 38 39 06 04 3C 00 D0 A2 D0 BE D1 80 D0 BC D0 BE D0 B7 D0 BD D0 B0 D1 8F 20 D0 B6 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D0 A0 D0 BE D1 81 D0 94 D0 BE D1 82 2D 34 20 30 2C 34 35 35 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A8 61 00 00 00 00 13 04 06 00 A8 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 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 01 FE A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 E6 A3 00 00 35 04 06 00 A5 51 EC 32 C2 EC A9 6E EA 39 EA AB 01 37 [20:39:35]accept exits with 10 [20:39:35]New connection [20:39:35]New thread 3067362660 created [20:39:35]Thread 3067506020 joined [20:39:35]Waiting for new connection... [20:39:35] Sock 10.Parse request [20:39:35]Sock 10.Check first char [20:39:35]Sock 10.First char is OK [20:39:35]request: POST /json_proto HTTP/1.0 [20:39:35]Method: POST [20:39:35]URL: /json_proto [20:39:35]Method is POST - this is cgi request [20:39:35]url: /json_proto [20:39:35]query_string will be loaded in cgi processing [20:39:35]execute_cgi json_proto POST (null) [20:39:35]execute_cgi path=json_proto method=POST [20:39:35]POST find Content-Length [20:39:35]Host: 172.17.43.132:8080 [20:39:35]Content-Length: 1125 [20:39:35]Content-Type: application/json [20:39:35] [20:39:35]POST finish read [20:39:35]Found Content-Length = 1125 [20:39:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183988", "tax_sys" : 0, "items" : [ { "code": "4607084351378", "name": "\u0411\u0438\u0441\u043A\u0432\u0438\u0442 \u0427\u043E\u043A\u043E \u043F\u0430\u0439 6\u0448\u0442", "price" : 175.00, "quantity" : 1.000, "sum" : 175.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521247", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043F\u0435\u0440\u0441\u0438\u043A", "price" : 125.00, "quantity" : 1.000, "sum" : 125.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" : 300.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:39:35]execute_script... [20:39:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183988", "tax_sys" : 0, "items" : [ { "code": "4607084351378", "name": "\u0411\u0438\u0441\u043A\u0432\u0438\u0442 \u0427\u043E\u043A\u043E \u043F\u0430\u0439 6\u0448\u0442", "price" : 175.00, "quantity" : 1.000, "sum" : 175.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521247", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043F\u0435\u0440\u0441\u0438\u043A", "price" : 125.00, "quantity" : 1.000, "sum" : 125.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" : 300.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:39:35]POST & json_proto [20:39:35]process_json_proto [20:39:35]json parsed OK: [20:39:35]protocol is kg_v1.0 [20:39:35]action value=close_receipt [20:39:35]process_action close_receipt [20:39:35]cmd_close_receipt [20:39:35]MH_GetDate [20:39:35]Write to MH i2c: F0 00 00 F8 00 E7 [20:39:35]Write i2c OK [20:39:35]MH_I2C_Read... [20:39:35]Read from MH i2c: F0 [20:39:35]MH_I2C_Read... [20:39:35]Read from MH i2c: F0 09 00 [20:39:35]MH_I2C_Read... [20:39:35]Read from MH i2c: F0 09 00 F8 00 00 07 FE A7 66 64 A3 A7 66 16 [20:39:35]GetLastDocTimeStamp 1722285569 [20:39:35]current date 1722285575 [20:39:35]FM_GetShiftState [20:39:35]SAM_PROTO_GetShiftState [20:39:35]wFMCommunicate request_size=4 [20:39:35]MH_SAM_APDU [20:39:35]CAPDU: 80 13 01 00 [20:39:35]Write to MH i2c: E2 08 00 F9 00 80 13 01 00 00 00 00 00 76 [20:39:35]Write i2c OK [20:39:35]MH_I2C_Read... [20:39:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:39:35]Read from MH i2c: E2 [20:39:35]MH_I2C_Read... [20:39:35]Read from MH i2c: E2 0E 00 [20:39:35]MH_I2C_Read... [20:39:35]Read from MH i2c: E2 0E 00 F9 00 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 12 [20:39:35]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [20:39:35]wFMCommunicate OK [20:39:35]SAM_PROTO_GetShiftState done [20:39:35]FM_GetShiftState done [20:39:35]opened in 1722211496 [20:39:35]opened+sec_in_day 1722297896 [20:39:35]quantity*price = 17500 [20:39:35]sum+1 = 17501 [20:39:35]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870202521247 Напиток MAXI чай 1,2 черн.персик 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 300.00 НСП 1% : 2.66 НДС 12% : 31.85 Наличными: 0.00 Безнал.: 300.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 148 29.07.2024 20:39 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874958 ФД: 41959 ФПД: 230544152834161 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T203935&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41959&fm=230544152834161&tin=02508201610067®Number=0000000000092626&sum=30000 0 [20:39:36]StoreToDocumentArchive [20:39:36]shift 427 fd 41959 [20:39:36]save to /storage/0427/doc_00041959 [20:39:36]save last doc name /storage/0427/doc_00041959 to /storage/kkm_last_doc_name [20:39:36]save OK [20:39:36]Clear old archive folders... [20:39:36]ProcessDocumentItem done err = 0, tmpTLVsize=402 [20:39:36]tlvbuf is 012BBC10 [20:39:36]SAM_PROTO_ClearQueue [20:39:36]wFMCommunicate request_size=4 [20:39:36]MH_SAM_APDU [20:39:36]CAPDU: 80 09 00 00 [20:39:36]Write to MH i2c: E2 08 00 06 01 80 09 00 00 00 00 00 00 79 [20:39:36]Write i2c OK [20:39:36]MH_I2C_Read... [20:39:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:39:36]Read from MH i2c: E2 [20:39:36]MH_I2C_Read... [20:39:36]Read from MH i2c: E2 03 00 [20:39:36]MH_I2C_Read... [20:39:36]Read from MH i2c: E2 03 00 06 01 00 90 00 7B [20:39:36]RAPDU: 90 00 [20:39:36]wFMCommunicate OK [20:39:36]SAM_PROTO_ClearQueue done [20:39:36]KKMCreateOFDPacket [20:39:36]OFDProtocolAddRootSTLVToBuf [20:39:36]FM_MakeSignedData [20:39:36]FM_MakeSignedData [20:39:36]SAM_PROTO_SignData [20:39:36]wFMCommunicate request_size=4 [20:39:36]MH_SAM_APDU [20:39:36]CAPDU: 80 0D 01 02 [20:39:36]Write to MH i2c: E2 08 00 07 01 80 0D 01 02 00 00 00 00 81 [20:39:36]Write i2c OK [20:39:36]MH_I2C_Read... [20:39:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:39:36]Read from MH i2c: E2 [20:39:36]MH_I2C_Read... [20:39:36]Read from MH i2c: E2 03 00 [20:39:36]MH_I2C_Read... [20:39:36]Read from MH i2c: E2 03 00 07 01 00 90 00 7C [20:39:36]RAPDU: 90 00 [20:39:36]wFMCommunicate OK [20:39:36]wFMCommunicate request_size=255 [20:39:36]MH_SAM_APDU [20:39:36]CAPDU: 80 0D 02 02 FA 03 00 92 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 30 37 30 38 34 33 35 31 33 37 38 06 04 24 00 D0 91 D0 B8 D1 81 D0 BA D0 B2 D0 B8 D1 82 20 D0 A7 D0 BE D0 BA D0 BE 20 D0 BF D0 B0 D0 B9 20 36 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 [20:39:37]Write to MH i2c: E2 02 01 08 01 80 0D 02 02 FA 00 03 00 92 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 30 37 30 38 34 33 35 31 33 37 38 06 04 24 00 D0 91 D0 B8 D1 81 D0 BA D0 B2 D0 B8 D1 82 20 D0 A7 D0 BE D0 BA D0 BE 20 D0 BF D0 B0 D0 B9 20 36 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 00 25 [20:39:37]Write i2c OK [20:39:37]MH_I2C_Read... [20:39:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:39:37]Read from MH i2c: E2 [20:39:37]MH_I2C_Read... [20:39:37]Read from MH i2c: E2 03 00 [20:39:37]MH_I2C_Read... [20:39:37]Read from MH i2c: E2 03 00 08 01 00 90 00 7D [20:39:37]RAPDU: 90 00 [20:39:37]wFMCommunicate OK [20:39:37]wFMCommunicate request_size=161 [20:39:37]MH_SAM_APDU [20:39:37]CAPDU: 80 0D 02 02 9C 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 71 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 94 00 00 00 F4 03 04 00 07 FE A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 E7 A3 00 00 35 04 06 00 D1 AD BE 55 B0 71 [20:39:37]Write to MH i2c: E2 A4 00 09 01 80 0D 02 02 9C 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 71 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 94 00 00 00 F4 03 04 00 07 FE A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 E7 A3 00 00 35 04 06 00 D1 AD BE 55 B0 71 00 00 BD [20:39:37]Write i2c OK [20:39:37]MH_I2C_Read... [20:39:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:39:37]Read from MH i2c: E2 [20:39:37]MH_I2C_Read... [20:39:37]Read from MH i2c: E2 03 00 [20:39:37]MH_I2C_Read... [20:39:37]Read from MH i2c: E2 03 00 09 01 00 90 00 7E [20:39:37]RAPDU: 90 00 [20:39:37]wFMCommunicate OK [20:39:37]wFMCommunicate request_size=4 [20:39:37]MH_SAM_APDU [20:39:37]CAPDU: 80 0D 03 02 [20:39:37]Write to MH i2c: E2 08 00 0A 01 80 0D 03 02 00 00 00 00 86 [20:39:38]Write i2c OK [20:39:38]MH_I2C_Read... [20:39:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:39:38]Read from MH i2c: E2 [20:39:38]MH_I2C_Read... [20:39:38]Read from MH i2c: E2 0B 00 [20:39:38]MH_I2C_Read... [20:39:38]Read from MH i2c: E2 0B 00 0A 01 00 DD A7 C4 87 EE 20 7D 5F 90 00 40 [20:39:38]RAPDU: DD A7 C4 87 EE 20 7D 5F 90 00 [20:39:38]wFMCommunicate OK [20:39:38]SAM_PROTO_SignData done [20:39:38]FM_MakeSignedData done [20:39:38]CreateOFDProtocolMessage [20:39:38]wFMCommunicate request_size=4 [20:39:38]MH_SAM_APDU [20:39:38]CAPDU: 80 11 00 00 [20:39:38]Write to MH i2c: E2 08 00 0B 01 80 11 00 00 00 00 00 00 86 [20:39:38]Write i2c OK [20:39:38]MH_I2C_Read... [20:39:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:39:38]Read from MH i2c: E2 [20:39:38]MH_I2C_Read... [20:39:38]Read from MH i2c: E2 17 00 [20:39:38]MH_I2C_Read... [20:39:38]Read from MH i2c: E2 17 00 0B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 E2 [20:39:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [20:39:38]wFMCommunicate OK [20:39:38]CreateOFDProtocolMessage done [20:39:38]OFDSenderStorePacket 41959 [20:39:38]StoreOFDPacket docnum=41959 [20:39:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 A6 01 00 00 E8 44 9E 01 42 37 5A 03 01 00 03 00 92 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 30 37 30 38 34 33 35 31 33 37 38 06 04 24 00 D0 91 D0 B8 D1 81 D0 BA D0 B2 D0 B8 D1 82 20 D0 A7 D0 BE D0 BA D0 BE 20 D0 BF D0 B0 D0 B9 20 36 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 71 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 94 00 00 00 F4 03 04 00 07 FE A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 E7 A3 00 00 35 04 06 00 D1 AD BE 55 B0 71 DD A7 C4 87 EE 20 7D 5F [20:39:38]CheckFolder [20:39:38]dirname=/storage/ofd_packets [20:39:38]CheckFolder done [20:39:38]ProducePacketName [20:39:38]name=ofd_packets/00041959 [20:39:38]NVStorageSaveData ofd_packets/00041959 [20:39:38]File name is /storage/ofd_packets/00041959 [20:39:38]Write 452 bytes [20:39:38]NVStorageSaveData done [20:39:38]OFDSenderStorePacket done [20:39:38]KKMCreateOFDPacket done [20:39:38]NVStorageSaveData kkm_last_timestamp [20:39:38]File name is /storage/kkm_last_timestamp [20:39:38]Write 4 bytes [20:39:38]NVStorageSaveData done [20:39:38]ExternCall_PrintAddStr [20:39:38]wPrintStart [20:39:38]Write to MH i2c: 01 00 00 0C 01 0D [20:39:38]Write i2c OK [20:39:38]MH_I2C_Read... [20:39:38]Read from MH i2c: 01 [20:39:38]MH_I2C_Read... [20:39:38]Read from MH i2c: 01 07 00 [20:39:38]MH_I2C_Read... [20:39:38]Read from MH i2c: 01 07 00 0C 01 00 00 00 00 00 FF 0F 22 [20:39:38]RasterBufferAndPrint [20:39:38]line Счет N : (3)183988 [20:39:38]line ИНН: 02508201610067 [20:39:38]line Контрольно-Кассовый Чек [20:39:38]line ПРОДАЖА [20:39:38]line Товар: 4607084351378 [20:39:38]line Бисквит Чоко пай 6шт [20:39:38]line 1.000 * 175.00 [20:39:38]line = 175.00 [20:39:38]line НДС 12% НСП 1% [20:39:38]line > о реализуемом товаре [20:39:38]line Товар: 4870202521247 [20:39:38]line Напиток MAXI чай 1,2 черн.персик [20:39:38]line 1.000 * 125.00 [20:39:38]line = 125.00 [20:39:38]line НДС 12% НСП 1% [20:39:38]line > о реализуемом товаре [20:39:38]line ИТОГО: 300.00 [20:39:38]line НСП 1% : 2.66 [20:39:38]line НДС 12% : 31.85 [20:39:38]line Наличными: 0.00 [20:39:38]line Безнал.: 300.00 [20:39:38]line Место: АЗС № 97 "Партнер Нефть" [20:39:38]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [20:39:38]line СНО: Общий режим [20:39:38]line Чек 148 29.07.2024 20:39 [20:39:38]line Смена: 427 ФФД: 1.0 [20:39:38]line ЗНМ: 0300000053 [20:39:38]line РНМ: 0000000000092626 [20:39:38]line Версия ККМ: 001 [20:39:38]line Платежная система: O! деньги [20:39:38]line ФМ: 0000000000874958 [20:39:38]line ФД: 41959 [20:39:38]line ФПД: 230544152834161 [20:39:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T203935&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41959&fm=230544152834161&tin=02508201610067®Number=0000000000092626&sum=30000 [20:39:38]line 0 [20:39:38]written 0, free lines is 4095 [20:39:38]Write to MH i2c: 01 00 00 3D 01 3E [20:39:38]Write i2c OK [20:39:38]MH_I2C_Read... [20:39:38]Read from MH i2c: 01 [20:39:38]MH_I2C_Read... [20:39:38]Read from MH i2c: 01 07 00 [20:39:38]MH_I2C_Read... [20:39:38]Read from MH i2c: 01 07 00 3D 01 00 00 00 00 00 A3 0C F4 [20:39:38]RasterBufferAndPrint [20:39:38]line [20:39:38]line [20:39:38]line [20:39:38]line [20:39:38]line [20:39:38]written 0, free lines is 3277 [20:39:38]MH_Cut [20:39:38]Write to MH i2c: D1 01 00 44 01 01 17 [20:39:38]Write i2c OK [20:39:38]MH_I2C_Read... [20:39:38]Read from MH i2c: D1 [20:39:38]MH_I2C_Read... [20:39:38]Read from MH i2c: D1 01 00 [20:39:38]MH_I2C_Read... [20:39:38]Read from MH i2c: D1 01 00 44 01 00 16 [20:39:38]Write to MH i2c: 01 00 00 45 01 46 [20:39:38]Write i2c OK [20:39:38]MH_I2C_Read... [20:39:39]*** Cut start [20:39:39]*** Partial cut [20:39:39]*** CUTSNS_PIN = 1 [20:39:39]*** CUTSNS_PIN = 0 [20:39:39]*** Brake cut motor [20:39:40]recv_with_timeout no data received [20:39:40]recv_with_timeout no data received [20:39:40]CommunicateWithHost answer receiving error [20:39:40]CommunicateWithHost err = -3 [20:39:40]OFD Sender: Server communicate error [20:39:40]OFD Sender: Processing packet 41958 [packets to send 58, broken 56] [20:39:40]ProducePacketName [20:39:40]name=ofd_packets/00041958 [20:39:40]OFD Sender: To server: pG, [20:39:40]CommunicateWithHost lk.salyk.kg:30040 [20:39:40]ConnectInit lk.salyk.kg [20:39:40]Read from MH i2c: 01 [20:39:40]MH_I2C_Read... [20:39:40]*** Stop cut motor [20:39:40]*** Cut end [20:39:40]Read from MH i2c: 01 07 00 [20:39:40]MH_I2C_Read... [20:39:40]Read from MH i2c: 01 07 00 45 01 00 00 00 00 00 FF 0F 5B [20:39:40]process_action close_receipt done [20:39:40]requested_data is exist [20:39:40]produce_requested_data [20:39:40]requested_item fm.sn is exist - process it [20:39:40]wFMCommunicate request_size=4 [20:39:40]MH_SAM_APDU [20:39:40]CAPDU: 80 11 00 00 [20:39:40]Write to MH i2c: E2 08 00 46 01 80 11 00 00 00 00 00 00 C1 [20:39:40]Write i2c OK [20:39:40]MH_I2C_Read... [20:39:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:39:40]Read from MH i2c: E2 [20:39:40]MH_I2C_Read... [20:39:40]Read from MH i2c: E2 17 00 [20:39:40]MH_I2C_Read... [20:39:40]Read from MH i2c: E2 17 00 46 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 1D [20:39:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [20:39:40]wFMCommunicate OK [20:39:40]requested_item fd.num is exist - process it [20:39:40]SAM_PROTO_GetFieldsCounters [20:39:40]wFMCommunicate request_size=4 [20:39:40]MH_SAM_APDU [20:39:40]CAPDU: 80 13 00 00 [20:39:40]Write to MH i2c: E2 08 00 47 01 80 13 00 00 00 00 00 00 C4 [20:39:40]Write i2c OK [20:39:40]MH_I2C_Read... [20:39:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:39:40]Read from MH i2c: E2 [20:39:40]MH_I2C_Read... [20:39:40]Read from MH i2c: E2 62 00 [20:39:40]MH_I2C_Read... [20:39:40]Read from MH i2c: E2 62 00 47 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 E7 A3 00 00 0E 04 04 00 AB 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 E0 [20:39: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 E7 A3 00 00 0E 04 04 00 AB 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 [20:39:40]wFMCommunicate OK [20:39:40]SAM_PROTO_GetFieldsCounters done [20:39:40]requested_item shift.num is exist - process it [20:39:40]requested_item shift.opened is exist - process it [20:39:40]req_shift_opened [20:39:40]FM_GetShiftState [20:39:40]SAM_PROTO_GetShiftState [20:39:40]wFMCommunicate request_size=4 [20:39:40]MH_SAM_APDU [20:39:40]CAPDU: 80 13 01 00 [20:39:40]Write to MH i2c: E2 08 00 48 01 80 13 01 00 00 00 00 00 C6 [20:39:40]Write i2c OK [20:39:40]MH_I2C_Read... [20:39:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:39:40]Read from MH i2c: E2 [20:39:40]MH_I2C_Read... [20:39:40]Read from MH i2c: E2 0E 00 [20:39:40]MH_I2C_Read... [20:39:40]Read from MH i2c: E2 0E 00 48 01 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 62 [20:39:40]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [20:39:40]wFMCommunicate OK [20:39:40]SAM_PROTO_GetShiftState done [20:39:40]FM_GetShiftState done [20:39:40]req_shift_opened done [20:39:40]requested_item shift.open_date is exist - process it [20:39:40]req_shift_open_date [20:39:40]req_shift_open_date done [20:39:40]produce_requested_data done [20:39:40]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41959,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [20:39:40]process_action_free close_receipt [20:39:40]json_value_free [20:39:40]json_value_free done [20:39:40]process_json_proto returns [20:39:40]Send response to host [20:39:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41959,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [20:39:40]free response buf [20:39:40]execute_script done [20:39:40]execute_script returns [20:39:40]free content buf [20:39:40]Sock 10.Close socket [20:39:40]Sock 10.Thread stoped [20:39:43]Connected sock=8 [20:39: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 35 38 42 01 00 00 36 FC 3A 01 1C D5 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 30 36 35 33 32 30 30 30 31 38 39 06 04 3C 00 D0 A2 D0 BE D1 80 D0 BC D0 BE D0 B7 D0 BD D0 B0 D1 8F 20 D0 B6 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D0 A0 D0 BE D1 81 D0 94 D0 BE D1 82 2D 34 20 30 2C 34 35 35 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A8 61 00 00 00 00 13 04 06 00 A8 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 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 01 FE A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 E6 A3 00 00 35 04 06 00 A5 51 EC 32 C2 EC A9 6E EA 39 EA AB 01 37 [20:39: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 35 38 4F 00 00 00 E9 A1 47 00 C1 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 35 38 10 04 04 00 E6 A3 00 00 F4 03 04 00 23 AA A7 66 B6 04 01 00 00 AD 34 34 65 48 2C 10 09 [20:39:44]CommunicateWithHost err = 0 [20:39:44]CheckOFDResponse [20:39:44]1017 (14) - 77093643461234 [20:39:44]1041 (16) - 0000000000874958 [20:39:44]1040 (4) - 41958 [20:39:44]1012 (4) - 29.07.2024 14:41 [20:39:44]1206 (1) - 0 [20:39:44]OFD Sender: Remove packet 41958 [20:39:44]ProducePacketName [20:39:44]name=ofd_packets/00041958 [20:39:44]NVStorageDeleteData [20:39:45]OFD Sender: Processing packet 41959 [packets to send 57, broken 56] [20:39:45]ProducePacketName [20:39:45]name=ofd_packets/00041959 [20:39:45]OFD Sender: To server: pG, [20:39:45]CommunicateWithHost lk.salyk.kg:30040 [20:39:45]ConnectInit lk.salyk.kg [20:39:50]recv_with_timeout no data received [20:39:52]Connected sock=9 [20:39: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 35 38 A6 01 00 00 E8 44 9E 01 42 37 5A 03 01 00 03 00 92 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 30 37 30 38 34 33 35 31 33 37 38 06 04 24 00 D0 91 D0 B8 D1 81 D0 BA D0 B2 D0 B8 D1 82 20 D0 A7 D0 BE D0 BA D0 BE 20 D0 BF D0 B0 D0 B9 20 36 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 71 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 94 00 00 00 F4 03 04 00 07 FE A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 E7 A3 00 00 35 04 06 00 D1 AD BE 55 B0 71 DD A7 C4 87 EE 20 7D 5F [20:39: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 35 38 4F 00 00 00 E1 F3 47 00 EF 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 E7 A3 00 00 F4 03 04 00 2C AA A7 66 B6 04 01 00 00 32 5E 05 6A B3 25 C9 E9 [20:39:53]CommunicateWithHost err = 0 [20:39:53]CheckOFDResponse [20:39:53]1017 (14) - 77093643461234 [20:39:53]1041 (16) - 0000000000874958 [20:39:53]1040 (4) - 41959 [20:39:53]1012 (4) - 29.07.2024 14:41 [20:39:53]1206 (1) - 0 [20:39:53]OFD Sender: Remove packet 41959 [20:39:53]ProducePacketName [20:39:53]name=ofd_packets/00041959 [20:39:53]NVStorageDeleteData [20:39:54]OFD Sender: No OFD packet to send [20:39:59]OFD Sender: No OFD packet to send [20:40:04]OFD Sender: No OFD packet to send [20:40:09]OFD Sender: No OFD packet to send [20:40:14]OFD Sender: No OFD packet to send [20:40:19]OFD Sender: No OFD packet to send [20:40:21]recv_with_timeout no data received [20:40:24]OFD Sender: No OFD packet to send [20:40:29]OFD Sender: No OFD packet to send [20:40:34]OFD Sender: No OFD packet to send [20:40:39]OFD Sender: No OFD packet to send [20:40:39]recv_with_timeout no data received [20:40:44]OFD Sender: No OFD packet to send [20:40:49]OFD Sender: No OFD packet to send [20:40:49]recv_with_timeout no data received [20:40:54]OFD Sender: No OFD packet to send [20:40:59]OFD Sender: No OFD packet to send [20:41:04]recv_with_timeout no data received [20:41:04]OFD Sender: No OFD packet to send [20:41:09]OFD Sender: No OFD packet to send [20:41:14]OFD Sender: No OFD packet to send [20:41:19]OFD Sender: No OFD packet to send [20:41:24]OFD Sender: No OFD packet to send [20:41:29]OFD Sender: No OFD packet to send [20:41:34]OFD Sender: No OFD packet to send [20:41:39]OFD Sender: No OFD packet to send [20:41:44]OFD Sender: No OFD packet to send [20:41:49]OFD Sender: No OFD packet to send [20:41:54]OFD Sender: No OFD packet to send [20:41:59]OFD Sender: No OFD packet to send [20:42:04]OFD Sender: No OFD packet to send [20:42:09]OFD Sender: No OFD packet to send [20:42:14]OFD Sender: No OFD packet to send [20:42:19]OFD Sender: No OFD packet to send [20:42:24]OFD Sender: No OFD packet to send [20:42:29]OFD Sender: No OFD packet to send [20:42:34]OFD Sender: No OFD packet to send [20:42:39]OFD Sender: No OFD packet to send [20:42:44]OFD Sender: No OFD packet to send [20:42:49]OFD Sender: No OFD packet to send [20:42:54]OFD Sender: No OFD packet to send [20:42:59]OFD Sender: No OFD packet to send [20:43:04]OFD Sender: No OFD packet to send [20:43:09]OFD Sender: No OFD packet to send [20:43:14]OFD Sender: No OFD packet to send [20:43:19]OFD Sender: No OFD packet to send [20:43:24]OFD Sender: No OFD packet to send [20:43:29]OFD Sender: No OFD packet to send [20:43:32]accept exits with 11 [20:43:32]New connection [20:43:32]New thread 3067506020 created [20:43:32]Thread 3067362660 joined [20:43:32]Waiting for new connection... [20:43:32] Sock 11.Parse request [20:43:32]Sock 11.Check first char [20:43:32]Sock 11.First char is OK [20:43:32]request: POST /json_proto HTTP/1.0 [20:43:32]Method: POST [20:43:32]URL: /json_proto [20:43:32]Method is POST - this is cgi request [20:43:32]url: /json_proto [20:43:32]query_string will be loaded in cgi processing [20:43:32]execute_cgi json_proto POST (null) [20:43:32]execute_cgi path=json_proto method=POST [20:43:32]POST find Content-Length [20:43:32]Host: 172.17.43.132:8080 [20:43:32]Content-Length: 668 [20:43:32]Content-Type: application/json [20:43:32] [20:43:32]POST finish read [20:43:32]Found Content-Length = 668 [20:43:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183989", "tax_sys" : 0, "items" : [ { "code": "4670003190037", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u0416-40 \u0437\u0435\u043B 1\u043B", "price" : 225.00, "quantity" : 1.000, "sum" : 225.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:43:32]execute_script... [20:43:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183989", "tax_sys" : 0, "items" : [ { "code": "4670003190037", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u0416-40 \u0437\u0435\u043B 1\u043B", "price" : 225.00, "quantity" : 1.000, "sum" : 225.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:43:32]POST & json_proto [20:43:32]process_json_proto [20:43:32]json parsed OK: [20:43:32]protocol is kg_v1.0 [20:43:32]action value=close_receipt [20:43:32]process_action close_receipt [20:43:32]cmd_close_receipt [20:43:32]MH_GetDate [20:43:32]Write to MH i2c: F0 00 00 49 01 39 [20:43:32]Write i2c OK [20:43:32]MH_I2C_Read... [20:43:32]Read from MH i2c: F0 [20:43:32]MH_I2C_Read... [20:43:32]Read from MH i2c: F0 09 00 [20:43:32]MH_I2C_Read... [20:43:32]Read from MH i2c: F0 09 00 49 01 00 F4 FE A7 66 64 A3 A7 66 55 [20:43:32]GetLastDocTimeStamp 1722285575 [20:43:32]current date 1722285812 [20:43:32]FM_GetShiftState [20:43:32]SAM_PROTO_GetShiftState [20:43:32]wFMCommunicate request_size=4 [20:43:32]MH_SAM_APDU [20:43:32]CAPDU: 80 13 01 00 [20:43:32]Write to MH i2c: E2 08 00 4A 01 80 13 01 00 00 00 00 00 C8 [20:43:32]Write i2c OK [20:43:32]MH_I2C_Read... [20:43:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:43:32]Read from MH i2c: E2 [20:43:32]MH_I2C_Read... [20:43:32]Read from MH i2c: E2 0E 00 [20:43:32]MH_I2C_Read... [20:43:32]Read from MH i2c: E2 0E 00 4A 01 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 64 [20:43:32]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [20:43:32]wFMCommunicate OK [20:43:32]SAM_PROTO_GetShiftState done [20:43:32]FM_GetShiftState done [20:43:32]opened in 1722211496 [20:43:32]opened+sec_in_day 1722297896 [20:43:32]quantity*price = 22500 [20:43:32]sum+1 = 22501 [20:43:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 225.00 НСП 1% : 1.99 НДС 12% : 23.89 Наличными: 225.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 149 29.07.2024 20:43 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41960 ФПД: 87420344360913 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T204332&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41960&fm=87420344360913&tin=02508201610067®Number=0000000000092626&sum=22500 0 [20:43:33]StoreToDocumentArchive [20:43:33]shift 427 fd 41960 [20:43:33]save to /storage/0427/doc_00041960 [20:43:33]save last doc name /storage/0427/doc_00041960 to /storage/kkm_last_doc_name [20:43:33]save OK [20:43:33]Clear old archive folders... [20:43:33]ProcessDocumentItem done err = 0, tmpTLVsize=296 [20:43:33]tlvbuf is 012AFBA0 [20:43:33]SAM_PROTO_ClearQueue [20:43:33]wFMCommunicate request_size=4 [20:43:33]MH_SAM_APDU [20:43:33]CAPDU: 80 09 00 00 [20:43:33]Write to MH i2c: E2 08 00 57 01 80 09 00 00 00 00 00 00 CA [20:43:33]Write i2c OK [20:43:33]MH_I2C_Read... [20:43:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:43:33]Read from MH i2c: E2 [20:43:33]MH_I2C_Read... [20:43:33]Read from MH i2c: E2 03 00 [20:43:33]MH_I2C_Read... [20:43:33]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [20:43:33]RAPDU: 90 00 [20:43:33]wFMCommunicate OK [20:43:33]SAM_PROTO_ClearQueue done [20:43:33]KKMCreateOFDPacket [20:43:33]OFDProtocolAddRootSTLVToBuf [20:43:33]FM_MakeSignedData [20:43:33]FM_MakeSignedData [20:43:33]SAM_PROTO_SignData [20:43:33]wFMCommunicate request_size=4 [20:43:33]MH_SAM_APDU [20:43:33]CAPDU: 80 0D 01 02 [20:43:33]Write to MH i2c: E2 08 00 58 01 80 0D 01 02 00 00 00 00 D2 [20:43:33]Write i2c OK [20:43:33]MH_I2C_Read... [20:43:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:43:33]Read from MH i2c: E2 [20:43:33]MH_I2C_Read... [20:43:33]Read from MH i2c: E2 03 00 [20:43:33]MH_I2C_Read... [20:43:33]Read from MH i2c: E2 03 00 58 01 00 90 00 CD [20:43:33]RAPDU: 90 00 [20:43:33]wFMCommunicate OK [20:43:33]wFMCommunicate request_size=255 [20:43:33]MH_SAM_APDU [20:43:33]CAPDU: 80 0D 02 02 FA 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 33 37 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B7 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 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 F4 FE A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [20:43:33]Write to MH i2c: E2 02 01 59 01 80 0D 02 02 FA 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 33 37 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B7 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 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 F4 FE A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 9A [20:43:33]Write i2c OK [20:43:33]MH_I2C_Read... [20:43:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:43:33]Read from MH i2c: E2 [20:43:33]MH_I2C_Read... [20:43:33]Read from MH i2c: E2 03 00 [20:43:33]MH_I2C_Read... [20:43:33]Read from MH i2c: E2 03 00 59 01 00 90 00 CE [20:43:33]RAPDU: 90 00 [20:43:33]wFMCommunicate OK [20:43:33]wFMCommunicate request_size=55 [20:43:33]MH_SAM_APDU [20:43:33]CAPDU: 80 0D 02 02 32 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 E8 A3 00 00 35 04 06 00 4F 82 22 92 5F D1 [20:43:33]Write to MH i2c: E2 3A 00 5A 01 80 0D 02 02 32 00 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 E8 A3 00 00 35 04 06 00 4F 82 22 92 5F D1 00 00 77 [20:43:33]Write i2c OK [20:43:33]MH_I2C_Read... [20:43:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:43:33]Read from MH i2c: E2 [20:43:33]MH_I2C_Read... [20:43:33]Read from MH i2c: E2 03 00 [20:43:33]MH_I2C_Read... [20:43:33]Read from MH i2c: E2 03 00 5A 01 00 90 00 CF [20:43:33]RAPDU: 90 00 [20:43:33]wFMCommunicate OK [20:43:33]wFMCommunicate request_size=4 [20:43:33]MH_SAM_APDU [20:43:33]CAPDU: 80 0D 03 02 [20:43:33]Write to MH i2c: E2 08 00 5B 01 80 0D 03 02 00 00 00 00 D7 [20:43:33]Write i2c OK [20:43:33]MH_I2C_Read... [20:43:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:43:33]Read from MH i2c: E2 [20:43:33]MH_I2C_Read... [20:43:33]Read from MH i2c: E2 0B 00 [20:43:33]MH_I2C_Read... [20:43:33]Read from MH i2c: E2 0B 00 5B 01 00 3E F8 76 52 34 59 3F D4 90 00 76 [20:43:33]RAPDU: 3E F8 76 52 34 59 3F D4 90 00 [20:43:33]wFMCommunicate OK [20:43:33]SAM_PROTO_SignData done [20:43:33]FM_MakeSignedData done [20:43:33]CreateOFDProtocolMessage [20:43:33]wFMCommunicate request_size=4 [20:43:33]MH_SAM_APDU [20:43:33]CAPDU: 80 11 00 00 [20:43:33]Write to MH i2c: E2 08 00 5C 01 80 11 00 00 00 00 00 00 D7 [20:43:33]Write i2c OK [20:43:33]MH_I2C_Read... [20:43:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:43:33]Read from MH i2c: E2 [20:43:33]MH_I2C_Read... [20:43:33]Read from MH i2c: E2 17 00 [20:43:33]MH_I2C_Read... [20:43:33]Read from MH i2c: E2 17 00 5C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 33 [20:43:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [20:43:33]wFMCommunicate OK [20:43:33]CreateOFDProtocolMessage done [20:43:33]OFDSenderStorePacket 41960 [20:43:33]StoreOFDPacket docnum=41960 [20:43:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 3C 01 00 00 19 61 34 01 C5 06 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 33 37 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B7 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 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 F4 FE A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 E8 A3 00 00 35 04 06 00 4F 82 22 92 5F D1 3E F8 76 52 34 59 3F D4 [20:43:33]CheckFolder [20:43:33]dirname=/storage/ofd_packets [20:43:33]CheckFolder done [20:43:33]ProducePacketName [20:43:33]name=ofd_packets/00041960 [20:43:33]NVStorageSaveData ofd_packets/00041960 [20:43:33]File name is /storage/ofd_packets/00041960 [20:43:33]Write 346 bytes [20:43:33]NVStorageSaveData done [20:43:33]OFDSenderStorePacket done [20:43:33]KKMCreateOFDPacket done [20:43:33]NVStorageSaveData kkm_last_timestamp [20:43:33]File name is /storage/kkm_last_timestamp [20:43:33]Write 4 bytes [20:43:33]NVStorageSaveData done [20:43:33]ExternCall_PrintAddStr [20:43:33]wPrintStart [20:43:33]Write to MH i2c: 01 00 00 5D 01 5E [20:43:33]Write i2c OK [20:43:33]MH_I2C_Read... [20:43:33]Read from MH i2c: 01 [20:43:33]MH_I2C_Read... [20:43:33]Read from MH i2c: 01 07 00 [20:43:33]MH_I2C_Read... [20:43:33]Read from MH i2c: 01 07 00 5D 01 00 00 00 00 00 FF 0F 73 [20:43:33]RasterBufferAndPrint [20:43:33]line Счет N : (3)183989 [20:43:33]line ИНН: 02508201610067 [20:43:33]line Контрольно-Кассовый Чек [20:43:33]line ПРОДАЖА [20:43:33]line Товар: 4670003190037 [20:43:33]line Антифриз SIBIRIA ANTIFREEZE ОЖ-40 зел 1л [20:43:33]line 1.000 * 225.00 [20:43:33]line = 225.00 [20:43:33]line НДС 12% НСП 1% [20:43:33]line > о реализуемом товаре [20:43:33]line ИТОГО: 225.00 [20:43:33]line НСП 1% : 1.99 [20:43:33]line НДС 12% : 23.89 [20:43:33]line Наличными: 225.00 [20:43:33]line Безнал.: 0.00 [20:43:33]line Место: АЗС № 97 "Партнер Нефть" [20:43:33]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [20:43:33]line СНО: Общий режим [20:43:33]line Чек 149 29.07.2024 20:43 [20:43:33]line Смена: 427 ФФД: 1.0 [20:43:33]line ЗНМ: 0300000053 [20:43:33]line РНМ: 0000000000092626 [20:43:33]line Версия ККМ: 001 [20:43:33]line ФМ: 0000000000874958 [20:43:33]line ФД: 41960 [20:43:33]line ФПД: 87420344360913 [20:43:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T204332&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41960&fm=87420344360913&tin=02508201610067®Number=0000000000092626&sum=22500 [20:43:34]OFD Sender: Processing packet 41960 [packets to send 57, broken 56] [20:43:34]ProducePacketName [20:43:34]name=ofd_packets/00041960 [20:43:34]OFD Sender: To server: pG, [20:43:34]CommunicateWithHost lk.salyk.kg:30040 [20:43:34]ConnectInit lk.salyk.kg [20:43:34]line 0 [20:43:34]written 0, free lines is 4095 [20:43:34]Write to MH i2c: 01 00 00 86 01 87 [20:43:34]Write i2c OK [20:43:34]MH_I2C_Read... [20:43:34]Read from MH i2c: 01 [20:43:34]MH_I2C_Read... [20:43:34]Read from MH i2c: 01 07 00 [20:43:34]MH_I2C_Read... [20:43:34]Read from MH i2c: 01 07 00 86 01 00 00 00 00 00 09 0D A4 [20:43:34]RasterBufferAndPrint [20:43:34]line [20:43:34]line [20:43:34]line [20:43:34]line [20:43:34]line [20:43:34]written 0, free lines is 3343 [20:43:34]MH_Cut [20:43:34]Write to MH i2c: D1 01 00 8D 01 01 60 [20:43:34]Write i2c OK [20:43:34]MH_I2C_Read... [20:43:34]Read from MH i2c: D1 [20:43:34]MH_I2C_Read... [20:43:34]Read from MH i2c: D1 01 00 [20:43:34]MH_I2C_Read... [20:43:34]Read from MH i2c: D1 01 00 8D 01 00 5F [20:43:34]Write to MH i2c: 01 00 00 8E 01 8F [20:43:34]Write i2c OK [20:43:34]MH_I2C_Read... [20:43:35]*** Cut start [20:43:35]*** Partial cut [20:43:35]*** CUTSNS_PIN = 1 [20:43:35]*** CUTSNS_PIN = 0 [20:43:35]*** Brake cut motor [20:43:35]Read from MH i2c: 01 [20:43:35]MH_I2C_Read... [20:43:35]*** Stop cut motor [20:43:35]*** Cut end [20:43:35]Read from MH i2c: 01 07 00 [20:43:35]MH_I2C_Read... [20:43:35]Read from MH i2c: 01 07 00 8E 01 00 00 00 00 00 FF 0F A4 [20:43:35]process_action close_receipt done [20:43:35]requested_data is exist [20:43:35]produce_requested_data [20:43:35]requested_item fm.sn is exist - process it [20:43:35]wFMCommunicate request_size=4 [20:43:35]MH_SAM_APDU [20:43:35]CAPDU: 80 11 00 00 [20:43:35]Write to MH i2c: E2 08 00 8F 01 80 11 00 00 00 00 00 00 0A [20:43:35]Write i2c OK [20:43:35]MH_I2C_Read... [20:43:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:43:36]Read from MH i2c: E2 [20:43:36]MH_I2C_Read... [20:43:36]Read from MH i2c: E2 17 00 [20:43:36]MH_I2C_Read... [20:43:36]Read from MH i2c: E2 17 00 8F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 66 [20:43:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [20:43:36]wFMCommunicate OK [20:43:36]requested_item fd.num is exist - process it [20:43:36]SAM_PROTO_GetFieldsCounters [20:43:36]wFMCommunicate request_size=4 [20:43:36]MH_SAM_APDU [20:43:36]CAPDU: 80 13 00 00 [20:43:36]Write to MH i2c: E2 08 00 90 01 80 13 00 00 00 00 00 00 0D [20:43:36]Write i2c OK [20:43:36]MH_I2C_Read... [20:43:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:43:36]Read from MH i2c: E2 [20:43:36]MH_I2C_Read... [20:43:36]Read from MH i2c: E2 62 00 [20:43:36]MH_I2C_Read... [20:43:36]Read from MH i2c: E2 62 00 90 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 E8 A3 00 00 0E 04 04 00 AB 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 2D [20:43:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 E8 A3 00 00 0E 04 04 00 AB 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 [20:43:36]wFMCommunicate OK [20:43:36]SAM_PROTO_GetFieldsCounters done [20:43:36]requested_item shift.num is exist - process it [20:43:36]requested_item shift.opened is exist - process it [20:43:36]req_shift_opened [20:43:36]FM_GetShiftState [20:43:36]SAM_PROTO_GetShiftState [20:43:36]wFMCommunicate request_size=4 [20:43:36]MH_SAM_APDU [20:43:36]CAPDU: 80 13 01 00 [20:43:36]Write to MH i2c: E2 08 00 91 01 80 13 01 00 00 00 00 00 0F [20:43:36]Write i2c OK [20:43:36]MH_I2C_Read... [20:43:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:43:36]Read from MH i2c: E2 [20:43:36]MH_I2C_Read... [20:43:36]Read from MH i2c: E2 0E 00 [20:43:36]MH_I2C_Read... [20:43:36]Read from MH i2c: E2 0E 00 91 01 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 AB [20:43:36]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [20:43:36]wFMCommunicate OK [20:43:36]SAM_PROTO_GetShiftState done [20:43:36]FM_GetShiftState done [20:43:36]req_shift_opened done [20:43:36]requested_item shift.open_date is exist - process it [20:43:36]req_shift_open_date [20:43:36]req_shift_open_date done [20:43:36]produce_requested_data done [20:43:36]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41960,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [20:43:36]process_action_free close_receipt [20:43:36]json_value_free [20:43:36]json_value_free done [20:43:36]process_json_proto returns [20:43:36]Send response to host [20:43:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41960,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [20:43:36]free response buf [20:43:36]execute_script done [20:43:36]execute_script returns [20:43:36]free content buf [20:43:36]Sock 11.Close socket [20:43:36]Sock 11.Thread stoped [20:43:39]ConnectInit Can't take IP for lk.salyk.kg [20:43:39]CommunicateWithHost connect error [20:43:39]CommunicateWithHost err = -1 [20:43:39]OFD Sender: Server communicate error [20:43:44]OFD Sender: Processing packet 41960 [packets to send 57, broken 56] [20:43:44]ProducePacketName [20:43:44]name=ofd_packets/00041960 [20:43:44]OFD Sender: To server: pG, [20:43:44]CommunicateWithHost lk.salyk.kg:30040 [20:43:44]ConnectInit lk.salyk.kg [20:43:49]Connected sock=10 [20:43: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 35 38 3C 01 00 00 19 61 34 01 C5 06 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 33 37 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B7 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 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 F4 FE A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 E8 A3 00 00 35 04 06 00 4F 82 22 92 5F D1 3E F8 76 52 34 59 3F D4 [20:43:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 4F 00 00 00 5D A2 47 00 EE 92 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 E8 A3 00 00 F4 03 04 00 19 AB A7 66 B6 04 01 00 00 26 F8 02 9C 28 DE A6 9B [20:43:52]CommunicateWithHost err = 0 [20:43:52]CheckOFDResponse [20:43:52]1017 (14) - 77093643461234 [20:43:52]1041 (16) - 0000000000874958 [20:43:52]1040 (4) - 41960 [20:43:52]1012 (4) - 29.07.2024 14:45 [20:43:52]1206 (1) - 0 [20:43:52]OFD Sender: Remove packet 41960 [20:43:52]ProducePacketName [20:43:52]name=ofd_packets/00041960 [20:43:52]NVStorageDeleteData [20:43:52]OFD Sender: No OFD packet to send [20:43:57]recv_with_timeout no data received [20:43:57]OFD Sender: No OFD packet to send [20:44:02]OFD Sender: No OFD packet to send [20:44:07]OFD Sender: No OFD packet to send [20:44:07]recv_with_timeout no data received [20:44:12]OFD Sender: No OFD packet to send [20:44:17]OFD Sender: No OFD packet to send [20:44:18]recv_with_timeout no data received [20:44:22]OFD Sender: No OFD packet to send [20:44:27]OFD Sender: No OFD packet to send [20:44:32]OFD Sender: No OFD packet to send [20:44:37]OFD Sender: No OFD packet to send [20:44:42]OFD Sender: No OFD packet to send [20:44:47]OFD Sender: No OFD packet to send [20:44:52]OFD Sender: No OFD packet to send [20:44:57]OFD Sender: No OFD packet to send [20:45:02]OFD Sender: No OFD packet to send [20:45:07]OFD Sender: No OFD packet to send [20:45:12]OFD Sender: No OFD packet to send [20:45:15]recv_with_timeout no data received [20:45:17]OFD Sender: No OFD packet to send [20:45:22]OFD Sender: No OFD packet to send [20:45:27]OFD Sender: No OFD packet to send [20:45:32]OFD Sender: No OFD packet to send [20:45:37]OFD Sender: No OFD packet to send [20:45:42]OFD Sender: No OFD packet to send [20:45:47]OFD Sender: No OFD packet to send [20:45:52]OFD Sender: No OFD packet to send [20:45:56]recv_with_timeout no data received [20:45:57]OFD Sender: No OFD packet to send [20:46:02]OFD Sender: No OFD packet to send [20:46:07]OFD Sender: No OFD packet to send [20:46:12]OFD Sender: No OFD packet to send [20:46:17]OFD Sender: No OFD packet to send [20:46:22]OFD Sender: No OFD packet to send [20:46:27]OFD Sender: No OFD packet to send [20:46:32]OFD Sender: No OFD packet to send [20:46:35]recv_with_timeout no data received [20:46:37]OFD Sender: No OFD packet to send [20:47:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 20 01 00 00 5F C8 18 01 B3 95 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 35 36 30 06 04 1A 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AD D0 BD D0 B5 D1 81 D0 B0 D0 B9 20 35 D0 BB 2E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 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 C3 FF A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 E9 A3 00 00 35 04 06 00 57 98 20 19 2D C9 A3 0A 65 70 44 51 ED AC [20:47:00]CheckFolder [20:47:00]dirname=/storage/ofd_packets [20:47:00]CheckFolder done [20:47:00]ProducePacketName [20:47:00]name=ofd_packets/00041961 [20:47:00]NVStorageSaveData ofd_packets/00041961 [20:47:00]File name is /storage/ofd_packets/00041961 [20:47:00]Write 318 bytes [20:47:00]NVStorageSaveData done [20:47:00]OFDSenderStorePacket done [20:47:00]KKMCreateOFDPacket done [20:47:00]NVStorageSaveData kkm_last_timestamp [20:47:00]File name is /storage/kkm_last_timestamp [20:47:00]Write 4 bytes [20:47:00]NVStorageSaveData done [20:47:00]ExternCall_PrintAddStr [20:47:00]wPrintStart [20:47:00]Write to MH i2c: 01 00 00 A6 01 A7 [20:47:00]Write i2c OK [20:47:00]MH_I2C_Read... [20:47:00]Read from MH i2c: 01 [20:47:00]MH_I2C_Read... [20:47:00]Read from MH i2c: 01 07 00 [20:47:00]MH_I2C_Read... [20:47:00]Read from MH i2c: 01 07 00 A6 01 00 00 00 00 00 FF 0F BC [20:47:00]RasterBufferAndPrint [20:47:00]line Счет N : (3)183990 [20:47:00]line ИНН: 02508201610067 [20:47:00]line Контрольно-Кассовый Чек [20:47:00]line ПРОДАЖА [20:47:00]line Товар: 4700003610560 [20:47:00]line Вода Энесай 5л. [20:47:00]line 1.000 * 60.00 [20:47:00]line = 60.00 [20:47:00]line НДС 12% НСП 1% [20:47:00]line > о реализуемом товаре [20:47:00]line ИТОГО: 60.00 [20:47:00]line НСП 1% : 0.53 [20:47:00]line НДС 12% : 6.37 [20:47:00]line Наличными: 60.00 [20:47:00]line Безнал.: 0.00 [20:47:00]line Место: АЗС № 97 "Партнер Нефть" [20:47:00]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [20:47:00]line СНО: Общий режим [20:47:00]line Чек 150 29.07.2024 20:46 [20:47:00]line Смена: 427 ФФД: 1.0 [20:47:00]line ЗНМ: 0300000053 [20:47:00]line РНМ: 0000000000092626 [20:47:00]line Версия ККМ: 001 [20:47:00]line ФМ: 0000000000874958 [20:47:00]line ФД: 41961 [20:47:00]line ФПД: 96310885166537 [20:47:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T204659&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41961&fm=96310885166537&tin=02508201610067®Number=0000000000092626&sum=6000 [20:47:01]line 0 [20:47:01]OFD Sender: Processing packet 41961 [packets to send 57, broken 56] [20:47:01]ProducePacketName [20:47:01]name=ofd_packets/00041961 [20:47:01]OFD Sender: To server: pG, [20:47:01]CommunicateWithHost lk.salyk.kg:30040 [20:47:01]ConnectInit lk.salyk.kg [20:47:01]written 0, free lines is 4095 [20:47:01]Write to MH i2c: 01 00 00 CE 01 CF [20:47:01]Write i2c OK [20:47:01]MH_I2C_Read... [20:47:01]Read from MH i2c: 01 [20:47:01]MH_I2C_Read... [20:47:01]Read from MH i2c: 01 07 00 [20:47:01]MH_I2C_Read... [20:47:01]Read from MH i2c: 01 07 00 CE 01 00 00 00 00 00 08 0D EB [20:47:01]RasterBufferAndPrint [20:47:01]line [20:47:01]line [20:47:01]line [20:47:01]line [20:47:01]line [20:47:01]written 0, free lines is 3342 [20:47:01]MH_Cut [20:47:01]Write to MH i2c: D1 01 00 D5 01 01 A8 [20:47:01]Write i2c OK [20:47:01]MH_I2C_Read... [20:47:01]Read from MH i2c: D1 [20:47:01]MH_I2C_Read... [20:47:01]Read from MH i2c: D1 01 00 [20:47:01]MH_I2C_Read... [20:47:01]Read from MH i2c: D1 01 00 D5 01 00 A7 [20:47:01]Write to MH i2c: 01 00 00 D6 01 D7 [20:47:01]Write i2c OK [20:47:01]MH_I2C_Read... [20:47:02]*** Cut start [20:47:02]*** Partial cut [20:47:02]*** CUTSNS_PIN = 1 [20:47:02]*** CUTSNS_PIN = 0 [20:47:02]*** Brake cut motor [20:47:02]Read from MH i2c: 01 [20:47:02]MH_I2C_Read... [20:47:02]*** Stop cut motor [20:47:02]*** Cut end [20:47:02]Read from MH i2c: 01 07 00 [20:47:02]MH_I2C_Read... [20:47:02]Read from MH i2c: 01 07 00 D6 01 00 00 00 00 00 FF 0F EC [20:47:02]process_action close_receipt done [20:47:02]requested_data is exist [20:47:02]produce_requested_data [20:47:02]requested_item fm.sn is exist - process it [20:47:02]wFMCommunicate request_size=4 [20:47:02]MH_SAM_APDU [20:47:02]CAPDU: 80 11 00 00 [20:47:02]Write to MH i2c: E2 08 00 D7 01 80 11 00 00 00 00 00 00 52 [20:47:02]Write i2c OK [20:47:02]MH_I2C_Read... [20:47:02]Read from MH i2c: E2 [20:47:02]MH_I2C_Read... [20:47:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:47:02]Read from MH i2c: E2 17 00 [20:47:02]MH_I2C_Read... [20:47:02]Read from MH i2c: E2 17 00 D7 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 AE [20:47:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [20:47:02]wFMCommunicate OK [20:47:02]requested_item fd.num is exist - process it [20:47:02]SAM_PROTO_GetFieldsCounters [20:47:02]wFMCommunicate request_size=4 [20:47:02]MH_SAM_APDU [20:47:02]CAPDU: 80 13 00 00 [20:47:02]Write to MH i2c: E2 08 00 D8 01 80 13 00 00 00 00 00 00 55 [20:47:02]Write i2c OK [20:47:02]MH_I2C_Read... [20:47:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:47:03]Read from MH i2c: E2 [20:47:03]MH_I2C_Read... [20:47:03]Read from MH i2c: E2 62 00 [20:47:03]MH_I2C_Read... [20:47:03]Read from MH i2c: E2 62 00 D8 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 E9 A3 00 00 0E 04 04 00 AB 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 79 [20:47: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 E9 A3 00 00 0E 04 04 00 AB 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 [20:47:03]wFMCommunicate OK [20:47:03]SAM_PROTO_GetFieldsCounters done [20:47:03]requested_item shift.num is exist - process it [20:47:03]requested_item shift.opened is exist - process it [20:47:03]req_shift_opened [20:47:03]FM_GetShiftState [20:47:03]SAM_PROTO_GetShiftState [20:47:03]wFMCommunicate request_size=4 [20:47:03]MH_SAM_APDU [20:47:03]CAPDU: 80 13 01 00 [20:47:03]Write to MH i2c: E2 08 00 D9 01 80 13 01 00 00 00 00 00 57 [20:47:03]Write i2c OK [20:47:03]MH_I2C_Read... [20:47:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:47:03]Read from MH i2c: E2 [20:47:03]MH_I2C_Read... [20:47:03]Read from MH i2c: E2 0E 00 [20:47:03]MH_I2C_Read... [20:47:03]Read from MH i2c: E2 0E 00 D9 01 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 F3 [20:47:03]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [20:47:03]wFMCommunicate OK [20:47:03]SAM_PROTO_GetShiftState done [20:47:03]FM_GetShiftState done [20:47:03]req_shift_opened done [20:47:03]requested_item shift.open_date is exist - process it [20:47:03]req_shift_open_date [20:47:03]req_shift_open_date done [20:47:03]produce_requested_data done [20:47:03]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41961,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [20:47:03]process_action_free close_receipt [20:47:03]json_value_free [20:47:03]json_value_free done [20:47:03]process_json_proto returns [20:47:03]Send response to host [20:47:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41961,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [20:47:03]free response buf [20:47:03]execute_script done [20:47:03]execute_script returns [20:47:03]free content buf [20:47:03]Sock 9.Close socket [20:47:03]Sock 9.Thread stoped [20:47:06]ConnectInit Can't take IP for lk.salyk.kg [20:47:06]CommunicateWithHost connect error [20:47:06]CommunicateWithHost err = -1 [20:47:06]OFD Sender: Server communicate error [20:47:06]recv_with_timeout no data received [20:47:11]OFD Sender: Processing packet 41961 [packets to send 57, broken 56] [20:47:11]ProducePacketName [20:47:11]name=ofd_packets/00041961 [20:47:11]OFD Sender: To server: pG, [20:47:11]CommunicateWithHost lk.salyk.kg:30040 [20:47:11]ConnectInit lk.salyk.kg [20:47:16]ConnectInit Can't take IP for lk.salyk.kg [20:47:16]CommunicateWithHost connect error [20:47:16]CommunicateWithHost err = -1 [20:47:16]OFD Sender: Server communicate error [20:47:21]OFD Sender: Processing packet 41961 [packets to send 57, broken 56] [20:47:21]ProducePacketName [20:47:21]name=ofd_packets/00041961 [20:47:21]OFD Sender: To server: pG, [20:47:21]CommunicateWithHost lk.salyk.kg:30040 [20:47:21]ConnectInit lk.salyk.kg [20:47:22]recv_with_timeout no data received [20:47:26]ConnectInit Can't take IP for lk.salyk.kg [20:47:26]CommunicateWithHost connect error [20:47:26]CommunicateWithHost err = -1 [20:47:26]OFD Sender: Server communicate error [20:47:27]accept exits with 10 [20:47:27]New connection [20:47:27]New thread 3067506020 created [20:47:27]Thread 3067362660 joined [20:47:27]Waiting for new connection... [20:47:27] Sock 10.Parse request [20:47:27]Sock 10.Check first char [20:47:27]Sock 10.First char is OK [20:47:27]request: POST /json_proto HTTP/1.0 [20:47:27]Method: POST [20:47:27]URL: /json_proto [20:47:27]Method is POST - this is cgi request [20:47:27]url: /json_proto [20:47:27]query_string will be loaded in cgi processing [20:47:27]execute_cgi json_proto POST (null) [20:47:27]execute_cgi path=json_proto method=POST [20:47:27]POST find Content-Length [20:47:27]Host: 172.17.43.132:8080 [20:47:27]Content-Length: 875 [20:47:27]Content-Type: application/json [20:47:27] [20:47:27]POST finish read [20:47:27]Found Content-Length = 875 [20:47:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183991", "tax_sys" : 0, "items" : [ { "code": "48741224", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Blue", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 195.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:47:27]execute_script... [20:47: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 : (3)183991", "tax_sys" : 0, "items" : [ { "code": "48741224", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Blue", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 195.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:47:27]POST & json_proto [20:47:27]process_json_proto [20:47:27]json parsed OK: [20:47:27]protocol is kg_v1.0 [20:47:27]action value=close_receipt [20:47:27]process_action close_receipt [20:47:27]cmd_close_receipt [20:47:27]MH_GetDate [20:47:27]Write to MH i2c: F0 00 00 DA 01 CA [20:47:27]Write i2c OK [20:47:27]MH_I2C_Read... [20:47:27]Read from MH i2c: F0 [20:47:27]MH_I2C_Read... [20:47:27]Read from MH i2c: F0 09 00 [20:47:27]MH_I2C_Read... [20:47:27]Read from MH i2c: F0 09 00 DA 01 00 DF FF A7 66 64 A3 A7 66 D2 [20:47:27]GetLastDocTimeStamp 1722286019 [20:47:27]current date 1722286047 [20:47:27]FM_GetShiftState [20:47:27]SAM_PROTO_GetShiftState [20:47:27]wFMCommunicate request_size=4 [20:47:27]MH_SAM_APDU [20:47:27]CAPDU: 80 13 01 00 [20:47:27]Write to MH i2c: E2 08 00 DB 01 80 13 01 00 00 00 00 00 59 [20:47:27]Write i2c OK [20:47:27]MH_I2C_Read... [20:47:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:47:27]Read from MH i2c: E2 [20:47:27]MH_I2C_Read... [20:47:27]Read from MH i2c: E2 0E 00 [20:47:27]MH_I2C_Read... [20:47:27]Read from MH i2c: E2 0E 00 DB 01 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 F5 [20:47:27]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [20:47:27]wFMCommunicate OK [20:47:27]SAM_PROTO_GetShiftState done [20:47:27]FM_GetShiftState done [20:47:27]opened in 1722211496 [20:47:27]opened+sec_in_day 1722297896 [20:47:27]quantity*price = 13500 [20:47:27]sum+1 = 13501 [20:47:27]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160204 Вода Легенда 1,5л 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 195.00 НСП 1% : 1.72 НДС 12% : 20.71 Наличными: 195.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 151 29.07.2024 20:47 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41962 ФПД: 203058791172802 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T204727&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41962&fm=203058791172802&tin=02508201610067®Number=0000000000092626&sum=19500 0 [20:47:28]StoreToDocumentArchive [20:47:28]shift 427 fd 41962 [20:47:28]save to /storage/0427/doc_00041962 [20:47:28]save last doc name /storage/0427/doc_00041962 to /storage/kkm_last_doc_name [20:47:28]save OK [20:47:28]Clear old archive folders... [20:47:28]ProcessDocumentItem done err = 0, tmpTLVsize=379 [20:47:28]tlvbuf is 01201DD0 [20:47:28]SAM_PROTO_ClearQueue [20:47:28]wFMCommunicate request_size=4 [20:47:28]MH_SAM_APDU [20:47:28]CAPDU: 80 09 00 00 [20:47:28]Write to MH i2c: E2 08 00 E8 01 80 09 00 00 00 00 00 00 5B [20:47:28]Write i2c OK [20:47:28]MH_I2C_Read... [20:47:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:47:28]Read from MH i2c: E2 [20:47:28]MH_I2C_Read... [20:47:28]Read from MH i2c: E2 03 00 [20:47:28]MH_I2C_Read... [20:47:28]Read from MH i2c: E2 03 00 E8 01 00 90 00 5D [20:47:28]RAPDU: 90 00 [20:47:28]wFMCommunicate OK [20:47:28]SAM_PROTO_ClearQueue done [20:47:28]KKMCreateOFDPacket [20:47:28]OFDProtocolAddRootSTLVToBuf [20:47:28]FM_MakeSignedData [20:47:28]FM_MakeSignedData [20:47:28]SAM_PROTO_SignData [20:47:28]wFMCommunicate request_size=4 [20:47:28]MH_SAM_APDU [20:47:28]CAPDU: 80 0D 01 02 [20:47:28]Write to MH i2c: E2 08 00 E9 01 80 0D 01 02 00 00 00 00 63 [20:47:28]Write i2c OK [20:47:28]MH_I2C_Read... [20:47:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:47:28]Read from MH i2c: E2 [20:47:28]MH_I2C_Read... [20:47:28]Read from MH i2c: E2 03 00 [20:47:28]MH_I2C_Read... [20:47:28]Read from MH i2c: E2 03 00 E9 01 00 90 00 5E [20:47:28]RAPDU: 90 00 [20:47:28]wFMCommunicate OK [20:47:28]wFMCommunicate request_size=255 [20:47:28]MH_SAM_APDU [20:47:28]CAPDU: 80 0D 02 02 FA 03 00 7B 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 00 00 00 00 [20:47:28]Write to MH i2c: E2 02 01 EA 01 80 0D 02 02 FA 00 03 00 7B 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 00 00 00 00 00 00 6E [20:47:28]Write i2c OK [20:47:28]MH_I2C_Read... [20:47:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:47:28]Read from MH i2c: E2 [20:47:28]MH_I2C_Read... [20:47:28]Read from MH i2c: E2 03 00 [20:47:28]MH_I2C_Read... [20:47:28]Read from MH i2c: E2 03 00 EA 01 00 90 00 5F [20:47:28]RAPDU: 90 00 [20:47:28]wFMCommunicate OK [20:47:28]wFMCommunicate request_size=138 [20:47:28]MH_SAM_APDU [20:47:28]CAPDU: 80 0D 02 02 85 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 08 00 00 00 00 07 04 06 00 2C 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 DF FF A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 EA A3 00 00 35 04 06 00 B8 AE 4F 1D CA C2 [20:47:28]Write to MH i2c: E2 8D 00 EB 01 80 0D 02 02 85 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 08 00 00 00 00 07 04 06 00 2C 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 DF FF A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 EA A3 00 00 35 04 06 00 B8 AE 4F 1D CA C2 00 00 56 [20:47:28]Write i2c OK [20:47:28]MH_I2C_Read... [20:47:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:47:28]Read from MH i2c: E2 [20:47:28]MH_I2C_Read... [20:47:28]Read from MH i2c: E2 03 00 [20:47:28]MH_I2C_Read... [20:47:28]Read from MH i2c: E2 03 00 EB 01 00 90 00 60 [20:47:28]RAPDU: 90 00 [20:47:28]wFMCommunicate OK [20:47:28]wFMCommunicate request_size=4 [20:47:28]MH_SAM_APDU [20:47:28]CAPDU: 80 0D 03 02 [20:47:28]Write to MH i2c: E2 08 00 EC 01 80 0D 03 02 00 00 00 00 68 [20:47:28]Write i2c OK [20:47:28]MH_I2C_Read... [20:47:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:47:28]Read from MH i2c: E2 [20:47:28]MH_I2C_Read... [20:47:28]Read from MH i2c: E2 0B 00 [20:47:28]MH_I2C_Read... [20:47:28]Read from MH i2c: E2 0B 00 EC 01 00 47 0D DF 3E 5F 66 A2 63 90 00 A4 [20:47:28]RAPDU: 47 0D DF 3E 5F 66 A2 63 90 00 [20:47:28]wFMCommunicate OK [20:47:28]SAM_PROTO_SignData done [20:47:28]FM_MakeSignedData done [20:47:28]CreateOFDProtocolMessage [20:47:28]wFMCommunicate request_size=4 [20:47:28]MH_SAM_APDU [20:47:28]CAPDU: 80 11 00 00 [20:47:28]Write to MH i2c: E2 08 00 ED 01 80 11 00 00 00 00 00 00 68 [20:47:28]Write i2c OK [20:47:28]MH_I2C_Read... [20:47:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:47:29]Read from MH i2c: E2 [20:47:29]MH_I2C_Read... [20:47:29]Read from MH i2c: E2 17 00 [20:47:29]MH_I2C_Read... [20:47:29]Read from MH i2c: E2 17 00 ED 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 C4 [20:47:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [20:47:29]wFMCommunicate OK [20:47:29]CreateOFDProtocolMessage done [20:47:29]OFDSenderStorePacket 41962 [20:47:29]StoreOFDPacket docnum=41962 [20:47:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 8F 01 00 00 07 56 87 01 7F CC 5A 03 01 00 03 00 7B 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 08 00 00 00 00 07 04 06 00 2C 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 DF FF A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 EA A3 00 00 35 04 06 00 B8 AE 4F 1D CA C2 47 0D DF 3E 5F 66 A2 63 [20:47:29]CheckFolder [20:47:29]dirname=/storage/ofd_packets [20:47:29]CheckFolder done [20:47:29]ProducePacketName [20:47:29]name=ofd_packets/00041962 [20:47:29]NVStorageSaveData ofd_packets/00041962 [20:47:29]File name is /storage/ofd_packets/00041962 [20:47:29]Write 429 bytes [20:47:29]NVStorageSaveData done [20:47:29]OFDSenderStorePacket done [20:47:29]KKMCreateOFDPacket done [20:47:29]NVStorageSaveData kkm_last_timestamp [20:47:29]File name is /storage/kkm_last_timestamp [20:47:29]Write 4 bytes [20:47:29]NVStorageSaveData done [20:47:29]ExternCall_PrintAddStr [20:47:29]wPrintStart [20:47:29]Write to MH i2c: 01 00 00 EE 01 EF [20:47:29]Write i2c OK [20:47:29]MH_I2C_Read... [20:47:29]Read from MH i2c: 01 [20:47:29]MH_I2C_Read... [20:47:29]Read from MH i2c: 01 07 00 [20:47:29]MH_I2C_Read... [20:47:29]Read from MH i2c: 01 07 00 EE 01 00 00 00 00 00 FF 0F 04 [20:47:29]RasterBufferAndPrint [20:47:29]line Счет N : (3)183991 [20:47:29]line ИНН: 02508201610067 [20:47:29]line Контрольно-Кассовый Чек [20:47:29]line ПРОДАЖА [20:47:29]line Товар: 48741224 [20:47:29]line Сигареты Winston Super Slims Blue [20:47:29]line 1.000 * 135.00 [20:47:29]line = 135.00 [20:47:29]line НДС 12% НСП 1% [20:47:29]line > о реализуемом товаре [20:47:29]line Товар: 4700000160204 [20:47:29]line Вода Легенда 1,5л [20:47:29]line 1.000 * 60.00 [20:47:29]line = 60.00 [20:47:29]line НДС 12% НСП 1% [20:47:29]line > о реализуемом товаре [20:47:29]line ИТОГО: 195.00 [20:47:29]line НСП 1% : 1.72 [20:47:29]line НДС 12% : 20.71 [20:47:29]line Наличными: 195.00 [20:47:29]line Безнал.: 0.00 [20:47:29]line Место: АЗС № 97 "Партнер Нефть" [20:47:29]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [20:47:29]line СНО: Общий режим [20:47:29]line Чек 151 29.07.2024 20:47 [20:47:29]line Смена: 427 ФФД: 1.0 [20:47:29]line ЗНМ: 0300000053 [20:47:29]line РНМ: 0000000000092626 [20:47:29]line Версия ККМ: 001 [20:47:29]line ФМ: 0000000000874958 [20:47:29]line ФД: 41962 [20:47:29]line ФПД: 203058791172802 [20:47:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T204727&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41962&fm=203058791172802&tin=02508201610067®Number=0000000000092626&sum=19500 [20:47:29]line 0 [20:47:29]OFD Sender: Processing packet 41961 [packets to send 58, broken 56] [20:47:29]ProducePacketName [20:47:29]name=ofd_packets/00041961 [20:47:29]OFD Sender: To server: pG, [20:47:29]CommunicateWithHost lk.salyk.kg:30040 [20:47:29]ConnectInit lk.salyk.kg [20:47:29]written 0, free lines is 4095 [20:47:29]Write to MH i2c: 01 00 00 1D 02 1F [20:47:29]Write i2c OK [20:47:29]MH_I2C_Read... [20:47:29]Read from MH i2c: 01 [20:47:29]MH_I2C_Read... [20:47:29]Read from MH i2c: 01 07 00 [20:47:29]MH_I2C_Read... [20:47:29]Read from MH i2c: 01 07 00 1D 02 00 00 00 00 00 A6 0C D8 [20:47:29]RasterBufferAndPrint [20:47:29]line [20:47:29]line [20:47:29]line [20:47:29]line [20:47:29]line [20:47:29]written 0, free lines is 3247 [20:47:29]MH_Cut [20:47:29]Write to MH i2c: D1 01 00 24 02 01 F8 [20:47:29]Write i2c OK [20:47:29]MH_I2C_Read... [20:47:29]Read from MH i2c: D1 [20:47:29]MH_I2C_Read... [20:47:29]Read from MH i2c: D1 01 00 [20:47:29]MH_I2C_Read... [20:47:29]Read from MH i2c: D1 01 00 24 02 00 F7 [20:47:29]Write to MH i2c: 01 00 00 25 02 27 [20:47:29]Write i2c OK [20:47:29]MH_I2C_Read... [20:47:30]*** Cut start [20:47:30]*** Partial cut [20:47:30]*** CUTSNS_PIN = 1 [20:47:30]*** CUTSNS_PIN = 0 [20:47:30]*** Brake cut motor [20:47:31]Read from MH i2c: 01 [20:47:31]MH_I2C_Read... [20:47:31]*** Stop cut motor [20:47:31]*** Cut end [20:47:31]Read from MH i2c: 01 07 00 [20:47:31]MH_I2C_Read... [20:47:31]Read from MH i2c: 01 07 00 25 02 00 00 00 00 00 FF 0F 3C [20:47:31]process_action close_receipt done [20:47:31]requested_data is exist [20:47:31]produce_requested_data [20:47:31]requested_item fm.sn is exist - process it [20:47:31]wFMCommunicate request_size=4 [20:47:31]MH_SAM_APDU [20:47:31]CAPDU: 80 11 00 00 [20:47:31]Write to MH i2c: E2 08 00 26 02 80 11 00 00 00 00 00 00 A2 [20:47:31]Write i2c OK [20:47:31]MH_I2C_Read... [20:47:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:47:31]Read from MH i2c: E2 [20:47:31]MH_I2C_Read... [20:47:31]Read from MH i2c: E2 17 00 [20:47:31]MH_I2C_Read... [20:47:31]Read from MH i2c: E2 17 00 26 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 FE [20:47:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [20:47:31]wFMCommunicate OK [20:47:31]requested_item fd.num is exist - process it [20:47:31]SAM_PROTO_GetFieldsCounters [20:47:31]wFMCommunicate request_size=4 [20:47:31]MH_SAM_APDU [20:47:31]CAPDU: 80 13 00 00 [20:47:31]Write to MH i2c: E2 08 00 27 02 80 13 00 00 00 00 00 00 A5 [20:47:31]Write i2c OK [20:47:31]MH_I2C_Read... [20:47:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:47:31]Read from MH i2c: E2 [20:47:31]MH_I2C_Read... [20:47:31]Read from MH i2c: E2 62 00 [20:47:31]MH_I2C_Read... [20:47:31]Read from MH i2c: E2 62 00 27 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 EA A3 00 00 0E 04 04 00 AB 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 CD [20:47: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 EA A3 00 00 0E 04 04 00 AB 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 [20:47:31]wFMCommunicate OK [20:47:31]SAM_PROTO_GetFieldsCounters done [20:47:31]requested_item shift.num is exist - process it [20:47:31]requested_item shift.opened is exist - process it [20:47:31]req_shift_opened [20:47:31]FM_GetShiftState [20:47:31]SAM_PROTO_GetShiftState [20:47:31]wFMCommunicate request_size=4 [20:47:31]MH_SAM_APDU [20:47:31]CAPDU: 80 13 01 00 [20:47:31]Write to MH i2c: E2 08 00 28 02 80 13 01 00 00 00 00 00 A7 [20:47:31]Write i2c OK [20:47:31]MH_I2C_Read... [20:47:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:47:31]Read from MH i2c: E2 [20:47:31]MH_I2C_Read... [20:47:31]Read from MH i2c: E2 0E 00 [20:47:31]MH_I2C_Read... [20:47:31]Read from MH i2c: E2 0E 00 28 02 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 43 [20:47:31]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [20:47:31]wFMCommunicate OK [20:47:31]SAM_PROTO_GetShiftState done [20:47:31]FM_GetShiftState done [20:47:31]req_shift_opened done [20:47:31]requested_item shift.open_date is exist - process it [20:47:31]req_shift_open_date [20:47:31]req_shift_open_date done [20:47:31]produce_requested_data done [20:47:31]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41962,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [20:47:31]process_action_free close_receipt [20:47:31]json_value_free [20:47:31]json_value_free done [20:47:31]process_json_proto returns [20:47:31]Send response to host [20:47:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41962,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [20:47:31]free response buf [20:47:31]execute_script done [20:47:31]execute_script returns [20:47:31]free content buf [20:47:31]Sock 10.Close socket [20:47:31]Sock 10.Thread stoped [20:47:34]ConnectInit Can't take IP for lk.salyk.kg [20:47:34]CommunicateWithHost connect error [20:47:34]CommunicateWithHost err = -1 [20:47:34]OFD Sender: Server communicate error [20:47:39]OFD Sender: Processing packet 41961 [packets to send 58, broken 56] [20:47:39]ProducePacketName [20:47:39]name=ofd_packets/00041961 [20:47:39]OFD Sender: To server: pG, [20:47:39]CommunicateWithHost lk.salyk.kg:30040 [20:47:39]ConnectInit lk.salyk.kg [20:47:44]ConnectInit Can't take IP for lk.salyk.kg [20:47:44]CommunicateWithHost connect error [20:47:44]CommunicateWithHost err = -1 [20:47:44]OFD Sender: Server communicate error [20:47:46]recv_with_timeout no data received [20:47:49]OFD Sender: Processing packet 41961 [packets to send 58, broken 56] [20:47:49]ProducePacketName [20:47:49]name=ofd_packets/00041961 [20:47:49]OFD Sender: To server: pG, [20:47:49]CommunicateWithHost lk.salyk.kg:30040 [20:47:49]ConnectInit lk.salyk.kg [20:47:54]ConnectInit Can't take IP for lk.salyk.kg [20:47:54]CommunicateWithHost connect error [20:47:54]CommunicateWithHost err = -1 [20:47:54]OFD Sender: Server communicate error [20:47:59]OFD Sender: Processing packet 41961 [packets to send 58, broken 56] [20:47:59]ProducePacketName [20:47:59]name=ofd_packets/00041961 [20:47:59]OFD Sender: To server: pG, [20:47:59]CommunicateWithHost lk.salyk.kg:30040 [20:47:59]ConnectInit lk.salyk.kg [20:48:04]ConnectInit Can't take IP for lk.salyk.kg [20:48:04]CommunicateWithHost connect error [20:48:04]CommunicateWithHost err = -1 [20:48:04]OFD Sender: Server communicate error [20:48:09]OFD Sender: Processing packet 41961 [packets to send 58, broken 56] [20:48:09]ProducePacketName [20:48:09]name=ofd_packets/00041961 [20:48:09]OFD Sender: To server: pG, [20:48:09]CommunicateWithHost lk.salyk.kg:30040 [20:48:09]ConnectInit lk.salyk.kg [20:48:14]ConnectInit Can't take IP for lk.salyk.kg [20:48:14]CommunicateWithHost connect error [20:48:14]CommunicateWithHost err = -1 [20:48:14]OFD Sender: Server communicate error [20:48:19]OFD Sender: Processing packet 41961 [packets to send 58, broken 56] [20:48:19]ProducePacketName [20:48:19]name=ofd_packets/00041961 [20:48:19]OFD Sender: To server: pG, [20:48:19]CommunicateWithHost lk.salyk.kg:30040 [20:48:19]ConnectInit lk.salyk.kg [20:48:25]Connected sock=8 [20:48: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 35 38 20 01 00 00 5F C8 18 01 B3 95 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 35 36 30 06 04 1A 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AD D0 BD D0 B5 D1 81 D0 B0 D0 B9 20 35 D0 BB 2E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 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 C3 FF A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 E9 A3 00 00 35 04 06 00 57 98 20 19 2D C9 A3 0A 65 70 44 51 ED AC [20:48: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 35 38 4F 00 00 00 B8 06 47 00 B1 C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 E9 A3 00 00 F4 03 04 00 2D AC A7 66 B6 04 01 00 00 06 AD 0B E8 26 DD 23 77 [20:48:27]CommunicateWithHost err = 0 [20:48:27]CheckOFDResponse [20:48:27]1017 (14) - 77093643461234 [20:48:27]1041 (16) - 0000000000874958 [20:48:27]1040 (4) - 41961 [20:48:27]1012 (4) - 29.07.2024 14:50 [20:48:27]1206 (1) - 0 [20:48:27]OFD Sender: Remove packet 41961 [20:48:27]ProducePacketName [20:48:27]name=ofd_packets/00041961 [20:48:27]NVStorageDeleteData [20:48:27]OFD Sender: Processing packet 41962 [packets to send 57, broken 56] [20:48:27]ProducePacketName [20:48:27]name=ofd_packets/00041962 [20:48:27]OFD Sender: To server: pG, [20:48:27]CommunicateWithHost lk.salyk.kg:30040 [20:48:27]ConnectInit lk.salyk.kg [20:48:30]recv_with_timeout no data received [20:48:33]Connected sock=8 [20: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 35 38 8F 01 00 00 07 56 87 01 7F CC 5A 03 01 00 03 00 7B 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 08 00 00 00 00 07 04 06 00 2C 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 DF FF A7 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 EA A3 00 00 35 04 06 00 B8 AE 4F 1D CA C2 47 0D DF 3E 5F 66 A2 63 [20:48: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 35 38 4F 00 00 00 BE 77 47 00 75 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 EA A3 00 00 F4 03 04 00 37 AC A7 66 B6 04 01 00 00 CE 6B 93 87 E7 88 FB C9 [20:48:36]CommunicateWithHost err = 0 [20:48:36]CheckOFDResponse [20:48:36]1017 (14) - 77093643461234 [20:48:36]1041 (16) - 0000000000874958 [20:48:36]1040 (4) - 41962 [20:48:36]1012 (4) - 29.07.2024 14:50 [20:48:36]1206 (1) - 0 [20:48:36]OFD Sender: Remove packet 41962 [20:48:36]ProducePacketName [20:48:36]name=ofd_packets/00041962 [20:48:36]NVStorageDeleteData [20:48:37]OFD Sender: No OFD packet to send [20:48:42]recv_with_timeout no data received [20:48:42]OFD Sender: No OFD packet to send [20:48:47]OFD Sender: No OFD packet to send [20:48:52]accept exits with 9 [20:48:52]New connection [20:48:52]New thread 3067362660 created [20:48:52]Thread 3067506020 joined [20:48:52]Waiting for new connection... [20:48:52] Sock 9.Parse request [20:48:52]Sock 9.Check first char [20:48:52]Sock 9.First char is OK [20:48:52]request: POST /json_proto HTTP/1.0 [20:48:52]Method: POST [20:48:52]URL: /json_proto [20:48:52]Method is POST - this is cgi request [20:48:52]url: /json_proto [20:48:52]query_string will be loaded in cgi processing [20:48:52]execute_cgi json_proto POST (null) [20:48:52]execute_cgi path=json_proto method=POST [20:48:52]POST find Content-Length [20:48:52]Host: 172.17.43.132:8080 [20:48:52]Content-Length: 661 [20:48:52]Content-Type: application/json [20:48:52] [20:48:52]POST finish read [20:48:52]Found Content-Length = 661 [20:48:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183992", "tax_sys" : 0, "items" : [ { "code": "6931280300549", "name": "\u0417\u0430\u0436\u0438\u0433\u0430\u043B\u043A\u0430 Cricket \u041F\u041D \u043F\u044C\u0435\u0437\u043E", "price" : 67.00, "quantity" : 1.000, "sum" : 67.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 67.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:48:52]execute_script... [20:48:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183992", "tax_sys" : 0, "items" : [ { "code": "6931280300549", "name": "\u0417\u0430\u0436\u0438\u0433\u0430\u043B\u043A\u0430 Cricket \u041F\u041D \u043F\u044C\u0435\u0437\u043E", "price" : 67.00, "quantity" : 1.000, "sum" : 67.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 67.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:48:52]POST & json_proto [20:48:52]process_json_proto [20:48:52]json parsed OK: [20:48:52]protocol is kg_v1.0 [20:48:52]action value=close_receipt [20:48:52]process_action close_receipt [20:48:52]cmd_close_receipt [20:48:52]MH_GetDate [20:48:52]Write to MH i2c: F0 00 00 29 02 1A [20:48:52]Write i2c OK [20:48:52]MH_I2C_Read... [20:48:52]Read from MH i2c: F0 [20:48:52]MH_I2C_Read... [20:48:52]Read from MH i2c: F0 09 00 [20:48:52]MH_I2C_Read... [20:48:52]Read from MH i2c: F0 09 00 29 02 00 34 00 A8 66 64 A3 A7 66 79 [20:48:52]GetLastDocTimeStamp 1722286047 [20:48:52]current date 1722286132 [20:48:52]FM_GetShiftState [20:48:52]SAM_PROTO_GetShiftState [20:48:52]wFMCommunicate request_size=4 [20:48:52]MH_SAM_APDU [20:48:52]CAPDU: 80 13 01 00 [20:48:52]Write to MH i2c: E2 08 00 2A 02 80 13 01 00 00 00 00 00 A9 [20:48:52]Write i2c OK [20:48:52]MH_I2C_Read... [20:48:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:48:52]Read from MH i2c: E2 [20:48:52]MH_I2C_Read... [20:48:52]Read from MH i2c: E2 0E 00 [20:48:52]MH_I2C_Read... [20:48:52]Read from MH i2c: E2 0E 00 2A 02 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 45 [20:48:52]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [20:48:52]wFMCommunicate OK [20:48:52]SAM_PROTO_GetShiftState done [20:48:52]FM_GetShiftState done [20:48:52]opened in 1722211496 [20:48:52]opened+sec_in_day 1722297896 [20:48:52]quantity*price = 6700 [20:48:52]sum+1 = 6701 [20:48:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 67.00 НСП 1% : 0.59 НДС 12% : 7.11 Наличными: 67.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 152 29.07.2024 20:48 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41963 ФПД: 219962580841322 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T204852&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41963&fm=219962580841322&tin=02508201610067®Number=0000000000092626&sum=6700 0 [20:48:53]StoreToDocumentArchive [20:48:53]shift 427 fd 41963 [20:48:53]save to /storage/0427/doc_00041963 [20:48:53]save last doc name /storage/0427/doc_00041963 to /storage/kkm_last_doc_name [20:48:53]save OK [20:48:53]Clear old archive folders... [20:48:53]ProcessDocumentItem done err = 0, tmpTLVsize=284 [20:48:53]tlvbuf is 011FCB10 [20:48:53]SAM_PROTO_ClearQueue [20:48:53]wFMCommunicate request_size=4 [20:48:53]MH_SAM_APDU [20:48:53]CAPDU: 80 09 00 00 [20:48:53]Write to MH i2c: E2 08 00 37 02 80 09 00 00 00 00 00 00 AB [20:48:53]Write i2c OK [20:48:53]MH_I2C_Read... [20:48:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:48:53]Read from MH i2c: E2 [20:48:53]MH_I2C_Read... [20:48:53]Read from MH i2c: E2 03 00 [20:48:53]MH_I2C_Read... [20:48:53]Read from MH i2c: E2 03 00 37 02 00 90 00 AD [20:48:53]RAPDU: 90 00 [20:48:53]wFMCommunicate OK [20:48:53]SAM_PROTO_ClearQueue done [20:48:53]KKMCreateOFDPacket [20:48:53]OFDProtocolAddRootSTLVToBuf [20:48:53]FM_MakeSignedData [20:48:53]FM_MakeSignedData [20:48:53]SAM_PROTO_SignData [20:48:53]wFMCommunicate request_size=4 [20:48:53]MH_SAM_APDU [20:48:53]CAPDU: 80 0D 01 02 [20:48:53]Write to MH i2c: E2 08 00 38 02 80 0D 01 02 00 00 00 00 B3 [20:48:53]Write i2c OK [20:48:53]MH_I2C_Read... [20:48:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:48:53]Read from MH i2c: E2 [20:48:53]MH_I2C_Read... [20:48:53]Read from MH i2c: E2 03 00 [20:48:53]MH_I2C_Read... [20:48:53]Read from MH i2c: E2 03 00 38 02 00 90 00 AE [20:48:53]RAPDU: 90 00 [20:48:53]wFMCommunicate OK [20:48:53]wFMCommunicate request_size=255 [20:48:53]MH_SAM_APDU [20:48:53]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 02 00 00 00 00 07 04 06 00 2C 1A 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 34 00 A8 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 [20:48:53]Write to MH i2c: E2 02 01 39 02 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 02 00 00 00 00 07 04 06 00 2C 1A 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 34 00 A8 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 00 00 5A [20:48:53]Write i2c OK [20:48:53]MH_I2C_Read... [20:48:53]recv_with_timeout no data received [20:48:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:48:53]Read from MH i2c: E2 [20:48:53]MH_I2C_Read... [20:48:53]Read from MH i2c: E2 03 00 [20:48:53]MH_I2C_Read... [20:48:53]Read from MH i2c: E2 03 00 39 02 00 90 00 AF [20:48:53]RAPDU: 90 00 [20:48:53]wFMCommunicate OK [20:48:53]wFMCommunicate request_size=43 [20:48:53]MH_SAM_APDU [20:48:53]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 EB A3 00 00 35 04 06 00 C8 0E 07 7E B3 6A [20:48:53]Write to MH i2c: E2 2E 00 3A 02 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 EB A3 00 00 35 04 06 00 C8 0E 07 7E B3 6A 00 00 AD [20:48:53]Write i2c OK [20:48:53]MH_I2C_Read... [20:48:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:48:53]Read from MH i2c: E2 [20:48:53]MH_I2C_Read... [20:48:53]Read from MH i2c: E2 03 00 [20:48:53]MH_I2C_Read... [20:48:53]Read from MH i2c: E2 03 00 3A 02 00 90 00 B0 [20:48:53]RAPDU: 90 00 [20:48:53]wFMCommunicate OK [20:48:53]wFMCommunicate request_size=4 [20:48:53]MH_SAM_APDU [20:48:53]CAPDU: 80 0D 03 02 [20:48:53]Write to MH i2c: E2 08 00 3B 02 80 0D 03 02 00 00 00 00 B8 [20:48:53]Write i2c OK [20:48:53]MH_I2C_Read... [20:48:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:48:53]Read from MH i2c: E2 [20:48:53]MH_I2C_Read... [20:48:53]Read from MH i2c: E2 0B 00 [20:48:53]MH_I2C_Read... [20:48:53]Read from MH i2c: E2 0B 00 3B 02 00 1E E3 3E 5A AE 42 44 75 90 00 FB [20:48:53]RAPDU: 1E E3 3E 5A AE 42 44 75 90 00 [20:48:53]wFMCommunicate OK [20:48:53]SAM_PROTO_SignData done [20:48:53]FM_MakeSignedData done [20:48:53]CreateOFDProtocolMessage [20:48:53]wFMCommunicate request_size=4 [20:48:53]MH_SAM_APDU [20:48:53]CAPDU: 80 11 00 00 [20:48:53]Write to MH i2c: E2 08 00 3C 02 80 11 00 00 00 00 00 00 B8 [20:48:53]Write i2c OK [20:48:53]MH_I2C_Read... [20:48:53]Read from MH i2c: E2 [20:48:53]MH_I2C_Read... [20:48:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:48:53]Read from MH i2c: E2 17 00 [20:48:53]MH_I2C_Read... [20:48:53]Read from MH i2c: E2 17 00 3C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 14 [20:48:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [20:48:53]wFMCommunicate OK [20:48:53]CreateOFDProtocolMessage done [20:48:53]OFDSenderStorePacket 41963 [20:48:53]StoreOFDPacket docnum=41963 [20:48:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 30 01 00 00 E3 E0 28 01 A7 18 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 02 00 00 00 00 07 04 06 00 2C 1A 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 34 00 A8 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 EB A3 00 00 35 04 06 00 C8 0E 07 7E B3 6A 1E E3 3E 5A AE 42 44 75 [20:48:53]CheckFolder [20:48:53]dirname=/storage/ofd_packets [20:48:53]CheckFolder done [20:48:53]ProducePacketName [20:48:53]name=ofd_packets/00041963 [20:48:53]NVStorageSaveData ofd_packets/00041963 [20:48:53]File name is /storage/ofd_packets/00041963 [20:48:53]Write 334 bytes [20:48:53]NVStorageSaveData done [20:48:53]OFDSenderStorePacket done [20:48:53]KKMCreateOFDPacket done [20:48:53]NVStorageSaveData kkm_last_timestamp [20:48:53]File name is /storage/kkm_last_timestamp [20:48:53]Write 4 bytes [20:48:53]NVStorageSaveData done [20:48:53]ExternCall_PrintAddStr [20:48:53]wPrintStart [20:48:53]Write to MH i2c: 01 00 00 3D 02 3F [20:48:53]Write i2c OK [20:48:53]MH_I2C_Read... [20:48:53]Read from MH i2c: 01 [20:48:53]MH_I2C_Read... [20:48:53]Read from MH i2c: 01 07 00 [20:48:53]MH_I2C_Read... [20:48:53]Read from MH i2c: 01 07 00 3D 02 00 00 00 00 00 FF 0F 54 [20:48:53]RasterBufferAndPrint [20:48:53]line Счет N : (3)183992 [20:48:53]line ИНН: 02508201610067 [20:48:53]line Контрольно-Кассовый Чек [20:48:53]line ПРОДАЖА [20:48:53]line Товар: 6931280300549 [20:48:53]line Зажигалка Cricket ПН пьезо [20:48:53]line 1.000 * 67.00 [20:48:53]line = 67.00 [20:48:53]line НДС 12% НСП 1% [20:48:53]line > о реализуемом товаре [20:48:53]line ИТОГО: 67.00 [20:48:53]line НСП 1% : 0.59 [20:48:53]line НДС 12% : 7.11 [20:48:53]line Наличными: 67.00 [20:48:53]line Безнал.: 0.00 [20:48:53]line Место: АЗС № 97 "Партнер Нефть" [20:49:48]OFD Sender: No OFD packet to send [20:49:50]recv_with_timeout no data received [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: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:56]recv_with_timeout no data received [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:34]OFD Sender: No OFD packet to send [20:51:39]OFD Sender: No OFD packet to send [20:51:44]OFD Sender: No OFD packet to send [20:51:49]OFD Sender: No OFD packet to send [20:51:54]OFD Sender: No OFD packet to send [20:51:59]OFD Sender: No OFD packet to send [20:52:04]OFD Sender: No OFD packet to send [20:52:09]OFD Sender: No OFD packet to send [20:52:14]OFD Sender: No OFD packet to send [20:52:19]OFD Sender: No OFD packet to send [20:52:24]OFD Sender: No OFD packet to send [20:52:29]OFD Sender: No OFD packet to send [20:52:34]OFD Sender: No OFD packet to send [20:52:39]OFD Sender: No OFD packet to send [20:52:44]OFD Sender: No OFD packet to send [20:52:45]recv_with_timeout no data received [20:52:49]OFD Sender: No OFD packet to send [20:52:54]OFD Sender: No OFD packet to send [20:52:59]OFD Sender: No OFD packet to send [20:53:04]OFD Sender: No OFD packet to send [20:53:09]OFD Sender: No OFD packet to send [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:24]recv_with_timeout no data received [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:48:53]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [20:48:53]line СНО: Общий режим [20:48:53]line Чек 152 29.07.2024 20:48 [20:48:53]line Смена: 427 ФФД: 1.0 [20:48:53]line ЗНМ: 0300000053 [20:48:53]line РНМ: 0000000000092626 [20:48:53]line Версия ККМ: 001 [20:48:53]line ФМ: 0000000000874958 [20:48:53]line ФД: 41963 [20:48:53]line ФПД: 219962580841322 [20:48:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T204852&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41963&fm=219962580841322&tin=02508201610067®Number=0000000000092626&sum=6700 [20:48:53]line 0 [20:48:53]written 0, free lines is 4095 [20:48:53]OFD Sender: Processing packet 41963 [packets to send 57, broken 56] [20:48:53]ProducePacketName [20:48:53]name=ofd_packets/00041963 [20:48:53]OFD Sender: To server: pG, [20:48:53]CommunicateWithHost lk.salyk.kg:30040 [20:48:53]ConnectInit lk.salyk.kg [20:48:54]Write to MH i2c: 01 00 00 65 02 67 [20:48:54]Write i2c OK [20:48:54]MH_I2C_Read... [20:48:54]Read from MH i2c: 01 [20:48:54]MH_I2C_Read... [20:48:54]Read from MH i2c: 01 07 00 [20:48:54]MH_I2C_Read... [20:48:54]Read from MH i2c: 01 07 00 65 02 00 00 00 00 00 15 0D 90 [20:48:54]RasterBufferAndPrint [20:48:54]line [20:48:54]line [20:48:54]line [20:48:54]line [20:48:54]line [20:48:54]written 0, free lines is 3359 [20:48:54]MH_Cut [20:48:54]Write to MH i2c: D1 01 00 6C 02 01 40 [20:48:54]Write i2c OK [20:48:54]MH_I2C_Read... [20:48:54]Read from MH i2c: D1 [20:48:54]MH_I2C_Read... [20:48:54]Read from MH i2c: D1 01 00 [20:48:54]MH_I2C_Read... [20:48:54]Read from MH i2c: D1 01 00 6C 02 00 3F [20:48:54]Write to MH i2c: 01 00 00 6D 02 6F [20:48:54]Write i2c OK [20:48:54]MH_I2C_Read... [20:48:54]*** Cut start [20:48:54]*** Partial cut [20:48:54]*** CUTSNS_PIN = 1 [20:48:54]*** CUTSNS_PIN = 0 [20:48:55]*** Brake cut motor [20:48:55]Read from MH i2c: 01 [20:48:55]MH_I2C_Read... [20:48:55]*** Stop cut motor [20:48:55]*** Cut end [20:48:55]Read from MH i2c: 01 07 00 [20:48:55]MH_I2C_Read... [20:48:55]Read from MH i2c: 01 07 00 6D 02 00 00 00 00 00 FF 0F 84 [20:48:55]process_action close_receipt done [20:48:55]requested_data is exist [20:48:55]produce_requested_data [20:48:55]requested_item fm.sn is exist - process it [20:48:55]wFMCommunicate request_size=4 [20:48:55]MH_SAM_APDU [20:48:55]CAPDU: 80 11 00 00 [20:48:55]Write to MH i2c: E2 08 00 6E 02 80 11 00 00 00 00 00 00 EA [20:48:55]Write i2c OK [20:48:55]MH_I2C_Read... [20:48:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:48:55]Read from MH i2c: E2 [20:48:55]MH_I2C_Read... [20:48:55]Read from MH i2c: E2 17 00 [20:48:55]MH_I2C_Read... [20:48:55]Read from MH i2c: E2 17 00 6E 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 46 [20:48:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [20:48:55]wFMCommunicate OK [20:48:55]requested_item fd.num is exist - process it [20:48:55]SAM_PROTO_GetFieldsCounters [20:48:55]wFMCommunicate request_size=4 [20:48:55]MH_SAM_APDU [20:48:55]CAPDU: 80 13 00 00 [20:48:55]Write to MH i2c: E2 08 00 6F 02 80 13 00 00 00 00 00 00 ED [20:48:55]Write i2c OK [20:48:55]MH_I2C_Read... [20:48:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:48:55]Read from MH i2c: E2 [20:48:55]MH_I2C_Read... [20:48:55]Read from MH i2c: E2 62 00 [20:48:55]MH_I2C_Read... [20:48:55]Read from MH i2c: E2 62 00 6F 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 EB A3 00 00 0E 04 04 00 AB 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 19 [20:48:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 EB A3 00 00 0E 04 04 00 AB 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 [20:48:55]wFMCommunicate OK [20:48:55]SAM_PROTO_GetFieldsCounters done [20:48:55]requested_item shift.num is exist - process it [20:48:55]requested_item shift.opened is exist - process it [20:48:55]req_shift_opened [20:48:55]FM_GetShiftState [20:48:55]SAM_PROTO_GetShiftState [20:48:55]wFMCommunicate request_size=4 [20:48:55]MH_SAM_APDU [20:48:55]CAPDU: 80 13 01 00 [20:48:55]Write to MH i2c: E2 08 00 70 02 80 13 01 00 00 00 00 00 EF [20:48:55]Write i2c OK [20:48:55]MH_I2C_Read... [20:48:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:48:55]Read from MH i2c: E2 [20:48:55]MH_I2C_Read... [20:48:55]Read from MH i2c: E2 0E 00 [20:48:55]MH_I2C_Read... [20:48:55]Read from MH i2c: E2 0E 00 70 02 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 8B [20:48:55]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [20:48:55]wFMCommunicate OK [20:48:55]SAM_PROTO_GetShiftState done [20:48:55]FM_GetShiftState done [20:48:55]req_shift_opened done [20:48:55]requested_item shift.open_date is exist - process it [20:48:55]req_shift_open_date [20:48:55]req_shift_open_date done [20:48:55]produce_requested_data done [20:48:55]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41963,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [20:48:55]process_action_free close_receipt [20:48:55]json_value_free [20:48:55]json_value_free done [20:48:55]process_json_proto returns [20:48:55]Send response to host [20:48:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41963,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [20:48:55]free response buf [20:48:55]execute_script done [20:48:55]execute_script returns [20:48:55]free content buf [20:48:55]Sock 9.Close socket [20:48:55]Sock 9.Thread stoped [20:49:00]Connected sock=8 [20:49: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 35 38 30 01 00 00 E3 E0 28 01 A7 18 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00[20:54:49]OFD Sender: No OFD packet to send [20:54:54]OFD Sender: No OFD packet to send [20:54:54]recv_with_timeout no data received [20:54:59]OFD Sender: No OFD packet to send [20:56:36]ConnectInit Can't connect to host [20:56:39]OFD Sender: No OFD packet to send [20:56:44]OFD Sender: No OFD packet to send [20:56:49]OFD Sender: No OFD packet to send [20:56:54]OFD Sender: No OFD packet to send [20:56:59]OFD Sender: No OFD packet to send [20:57:04]OFD Sender: No OFD packet to send [20:57:09]OFD Sender: No OFD packet to send [20:57:14]OFD Sender: No OFD packet to send [20:57:19]OFD Sender: No OFD packet to send [20:57:24]OFD Sender: No OFD packet to send [20:57:29]OFD Sender: No OFD packet to send [20:57:34]OFD Sender: No OFD packet to send [20:57:39]OFD Sender: No OFD packet to send [20:57:44]OFD Sender: No OFD packet to send [20:57:49]OFD Sender: No OFD packet to send [20:57:54]OFD Sender: No OFD packet to send [20:57:59]OFD Sender: No OFD packet to send [20:58:04]OFD Sender: No OFD packet to send [20:58:09]OFD Sender: No OFD packet to send [20:58:14]OFD Sender: No OFD packet to send [20:58:19]OFD Sender: No OFD packet to send [20:58:24]OFD Sender: No OFD packet to send [20:58:29]OFD Sender: No OFD packet to send [20:58:34]OFD Sender: No OFD packet to send [20:58:39]OFD Sender: No OFD packet to send [20:58:44]OFD Sender: No OFD packet to send [20:58:49]OFD Sender: No OFD packet to send [20:58:54]OFD Sender: No OFD packet to send [20:58:56]recv_with_timeout no data received [20:58:59]OFD Sender: No OFD packet to send [20:59:04]OFD Sender: No OFD packet to send [20:59:09]OFD Sender: No OFD packet to send [20:59:14]OFD Sender: No OFD packet to send [20:59:19]OFD Sender: No OFD packet to send [20:59:24]OFD Sender: No OFD packet to send [20:59:29]OFD Sender: No OFD packet to send [20:59:34]OFD Sender: No OFD packet to send [20:59:39]OFD Sender: No OFD packet to send [20:59:44]OFD Sender: No OFD packet to send [20:59:49]OFD Sender: No OFD packet to send [20:59:54]OFD Sender: No OFD packet to send [20:59:59]OFD Sender: No OFD packet to send [21:00:01]recv_with_timeout no data received [21:00:04]OFD Sender: No OFD packet to send [21:00:09]OFD Sender: No OFD packet to send [21:00:14]OFD Sender: No OFD packet to send [21:00:24]OFD Sender: No OFD packet to send [21:00:29]OFD Sender: No OFD packet to send [21:00:34]OFD Sender: No OFD packet to send [21:00:39]OFD Sender: No OFD packet to send [21:00:44]OFD Sender: No OFD packet to send [21:00:49]OFD Sender: No OFD packet to send [21:00:54]OFD Sender: No OFD packet to send [21:00:55]recv_with_timeout no data received [21:00:59]OFD Sender: No OFD packet to send [21:01:04]OFD Sender: No OFD packet to send [21:01:09]OFD Sender: No OFD packet to send [21:01:14]OFD Sender: No OFD packet to send [21:01:19]OFD Sender: No OFD packet to send [21:01:24]OFD Sender: No OFD packet to send [21:01:29]OFD Sender: No OFD packet to send [21:01:34]OFD Sender: No OFD packet to send [21:01:39]OFD Sender: No OFD packet to send [21:01:44]OFD Sender: No OFD packet to send [21:01:49]OFD Sender: No OFD packet to send [21:01:54]OFD Sender: No OFD packet to send [21:01:59]OFD Sender: No OFD packet to send [21:02:04]OFD Sender: No OFD packet to send [21:02:19]OFD Sender: No OFD packet to send [21:02:24]OFD Sender: No OFD packet to send [21:02:29]OFD Sender: No OFD packet to send [21:02:32]recv_with_timeout no data received [21:02:34]OFD Sender: No OFD packet to send [21:02:39]OFD Sender: No OFD packet to send [21:02:44]OFD Sender: No OFD packet to send [21:02:49]OFD Sender: No OFD packet to send [21:02:54]OFD Sender: No OFD packet to send [21:02:59]OFD Sender: No OFD packet to send [21:07:02]ConnectInit Can't connect to host [21:07:04]OFD Sender: No OFD packet to send [21:07:06]accept exits with 10 [21:07:06]New connection [21:07:06]New thread 3067506020 created [21:07:06]Thread 3067362660 joined [21:07:06]Waiting for new connection... [21:07:06] Sock 10.Parse request [21:07:06]Sock 10.Check first char [21:07:06]Sock 10.First char is OK [21:07:06]request: POST /json_proto HTTP/1.0 [21:07:06]Method: POST [21:07:06]URL: /json_proto [21:07:06]Method is POST - this is cgi request [21:07:06]url: /json_proto [21:07:06]query_string will be loaded in cgi processing [21:07:06]execute_cgi json_proto POST (null) [21:07:06]execute_cgi path=json_proto method=POST [21:07:06]POST find Content-Length [21:07:06]Host: 172.17.43.132:8080 [21:07:06]Content-Length: 688 [21:07:06]Content-Type: application/json [21:07:06] [21:07:06]POST finish read [21:07:06]Found Content-Length = 688 [21:07:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183993", "tax_sys" : 0, "items" : [ { "code": "4870209744564", "name": "\u0421\u0443\u0445\u0430\u0440\u0438\u043A\u0438 \u0424\u043B\u0438\u043D\u0442 \u0428\u0430\u0448\u043B\u044B\u043A 100 \u0433\u0440", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:07:06]execute_script... [21:07:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183993", "tax_sys" : 0, "items" : [ { "code": "4870209744564", "name": "\u0421\u0443\u0445\u0430\u0440\u0438\u043A\u0438 \u0424\u043B\u0438\u043D\u0442 \u0428\u0430\u0448\u043B\u044B\u043A 100 \u0433\u0440", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:07:06]POST & json_proto [21:07:06]process_json_proto [21:07:06]json parsed OK: [21:07:06]protocol is kg_v1.0 [21:07:06]action value=close_receipt [21:07:06]process_action close_receipt [21:07:06]cmd_close_receipt [21:07:06]MH_GetDate [21:07:06]Write to MH i2c: F0 00 00 71 02 62 [21:07:06]Write i2c OK [21:07:06]MH_I2C_Read... [21:07:06]Read from MH i2c: F0 [21:07:06]MH_I2C_Read... [21:07:06]Read from MH i2c: F0 09 00 [21:07:06]MH_I2C_Read... [21:07:06]Read from MH i2c: F0 09 00 71 02 00 7B 04 A8 66 64 A3 A7 66 0C [21:07:06]GetLastDocTimeStamp 1722286132 [21:07:06]current date 1722287227 [21:07:06]FM_GetShiftState [21:07:06]SAM_PROTO_GetShiftState [21:07:06]wFMCommunicate request_size=4 [21:07:06]MH_SAM_APDU [21:07:06]CAPDU: 80 13 01 00 [21:07:06]Write to MH i2c: E2 08 00 72 02 80 13 01 00 00 00 00 00 F1 [21:07:06]Write i2c OK [21:07:06]MH_I2C_Read... [21:07:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:07:06]Read from MH i2c: E2 [21:07:06]MH_I2C_Read... [21:07:06]Read from MH i2c: E2 0E 00 [21:07:06]MH_I2C_Read... [21:07:06]Read from MH i2c: E2 0E 00 72 02 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 8D [21:07:06]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [21:07:06]wFMCommunicate OK [21:07:06]SAM_PROTO_GetShiftState done [21:07:06]FM_GetShiftState done [21:07:06]opened in 1722211496 [21:07:06]opened+sec_in_day 1722297896 [21:07:06]quantity*price = 6000 [21:07:06]sum+1 = 6001 [21:07:06]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 154 29.07.2024 21:35 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41965 ФПД: 168522007882262 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T213541&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41965&fm=168522007882262&tin=02508201610067®Number=0000000000092626&sum=9500 0 [21:35:42]StoreToDocumentArchive [21:35:42]shift 427 fd 41965 [21:35:42]save to /storage/0427/doc_00041965 [21:35:42]save last doc name /storage/0427/doc_00041965 to /storage/kkm_last_doc_name [21:35:42]save OK [21:35:42]Clear old archive folders... [21:35:42]ProcessDocumentItem done err = 0, tmpTLVsize=299 [21:35:42]tlvbuf is 012A77D0 [21:35:42]SAM_PROTO_ClearQueue [21:35:42]wFMCommunicate request_size=4 [21:35:42]MH_SAM_APDU [21:35:42]CAPDU: 80 09 00 00 [21:35:42]Write to MH i2c: E2 08 00 C8 02 80 09 00 00 00 00 00 00 3C [21:35:42]Write i2c OK [21:35:42]MH_I2C_Read... [21:35:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:35:42]Read from MH i2c: E2 [21:35:42]MH_I2C_Read... [21:35:42]Read from MH i2c: E2 03 00 [21:35:42]MH_I2C_Read... [21:35:42]Read from MH i2c: E2 03 00 C8 02 00 90 00 3E [21:35:42]RAPDU: 90 00 [21:35:42]wFMCommunicate OK [21:35:42]SAM_PROTO_ClearQueue done [21:35:42]KKMCreateOFDPacket [21:35:42]OFDProtocolAddRootSTLVToBuf [21:35:42]FM_MakeSignedData [21:35:42]FM_MakeSignedData [21:35:42]SAM_PROTO_SignData [21:35:42]wFMCommunicate request_size=4 [21:35:42]MH_SAM_APDU [21:35:42]CAPDU: 80 0D 01 02 [21:35:42]Write to MH i2c: E2 08 00 C9 02 80 0D 01 02 00 00 00 00 44 [21:35:42]Write i2c OK [21:35:42]MH_I2C_Read... [21:35:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:35:42]Read from MH i2c: E2 [21:35:42]MH_I2C_Read... [21:35:42]Read from MH i2c: E2 03 00 [21:35:42]MH_I2C_Read... [21:35:42]Read from MH i2c: E2 03 00 C9 02 00 90 00 3F [21:35:42]RAPDU: 90 00 [21:35:42]wFMCommunicate OK [21:35:42]wFMCommunicate request_size=255 [21:35:42]MH_SAM_APDU [21:35:42]CAPDU: 80 0D 02 02 FA 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 37 30 06 04 39 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 2D 0B A8 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 [21:35:42]Write to MH i2c: E2 02 01 CA 02 80 0D 02 02 FA 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 37 30 06 04 39 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 2D 0B A8 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 00 00 77 [21:35:42]Write i2c OK [21:35:42]MH_I2C_Read... [21:35:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:35:42]Read from MH i2c: E2 [21:35:42]MH_I2C_Read... [21:35:42]Read from MH i2c: E2 03 00 [21:35:42]MH_I2C_Read... [21:35:42]Read from MH i2c: E2 03 00 CA 02 00 90 00 40 [21:35:42]RAPDU: 90 00 [21:35:42]wFMCommunicate OK [21:35:42]wFMCommunicate request_size=58 [21:35:42]MH_SAM_APDU [21:35:42]CAPDU: 80 0D 02 02 35 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 ED A3 00 00 35 04 06 00 99 45 16 6A AA 16 [21:35:42]Write to MH i2c: E2 3D 00 CB 02 80 0D 02 02 35 00 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 ED A3 00 00 35 04 06 00 99 45 16 6A AA 16 00 00 ED [21:35:42]Write i2c OK [21:35:42]MH_I2C_Read... [21:35:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:35:42]Read from MH i2c: E2 [21:35:42]MH_I2C_Read... [21:35:42]Read from MH i2c: E2 03 00 [21:35:42]MH_I2C_Read... [21:35:42]Read from MH i2c: E2 03 00 CB 02 00 90 00 41 [21:35:42]RAPDU: 90 00 [21:35:42]wFMCommunicate OK [21:35:42]wFMCommunicate request_size=4 [21:35:42]MH_SAM_APDU [21:35:42]CAPDU: 80 0D 03 02 [21:35:42]Write to MH i2c: E2 08 00 CC 02 80 0D 03 02 00 00 00 00 49 [21:35:42]Write i2c OK [21:35:42]MH_I2C_Read... [21:35:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:35:42]Read from MH i2c: E2 [21:35:42]MH_I2C_Read... [21:35:42]Read from MH i2c: E2 0B 00 [21:35:42]MH_I2C_Read... [21:35:42]Read from MH i2c: E2 0B 00 CC 02 00 E3 46 0A FF 2F 95 48 6B 90 00 F3 [21:35:42]RAPDU: E3 46 0A FF 2F 95 48 6B 90 00 [21:35:42]wFMCommunicate OK [21:35:42]SAM_PROTO_SignData done [21:35:42]FM_MakeSignedData done [21:35:42]CreateOFDProtocolMessage [21:35:42]wFMCommunicate request_size=4 [21:35:42]MH_SAM_APDU [21:35:42]CAPDU: 80 11 00 00 [21:35:42]Write to MH i2c: E2 08 00 CD 02 80 11 00 00 00 00 00 00 49 [21:35:42]Write i2c OK [21:35:42]MH_I2C_Read... [21:35:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:35:42]Read from MH i2c: E2 [21:35:42]MH_I2C_Read... [21:35:42]Read from MH i2c: E2 17 00 [21:35:42]MH_I2C_Read... [21:35:42]Read from MH i2c: E2 17 00 CD 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 A5 [21:35:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [21:35:42]wFMCommunicate OK [21:35:42]CreateOFDProtocolMessage done [21:35:42]OFDSenderStorePacket 41965 [21:35:42]StoreOFDPacket docnum=41965 [21:35:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 3F 01 00 00 65 CF 37 01 A3 40 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 37 30 06 04 39 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 2D 0B A8 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 ED A3 00 00 35 04 06 00 99 45 16 6A AA 16 E3 46 0A FF 2F 95 48 6B [21:35:42]CheckFolder [21:35:42]dirname=/storage/ofd_packets [21:35:42]CheckFolder done [21:35:42]ProducePacketName [21:35:42]name=ofd_packets/00041965 [21:35:42]NVStorageSaveData ofd_packets/00041965 [21:35:42]File name is /storage/ofd_packets/00041965 [21:35:42]Write 349 bytes [21:35:42]NVStorageSaveData done [21:35:42]OFDSenderStorePacket done [21:35:42]KKMCreateOFDPacket done [21:35:42]NVStorageSaveData kkm_last_timestamp [21:35:42]File name is /storage/kkm_last_timestamp [21:35:42]Write 4 bytes [21:35:42]NVStorageSaveData done [21:35:42]ExternCall_PrintAddStr [21:35:42]wPrintStart [21:35:42]Write to MH i2c: 01 00 00 CE 02 D0 [21:35:42]Write i2c OK [21:35:42]MH_I2C_Read... [21:35:42]Read from MH i2c: 01 [21:35:42]MH_I2C_Read... [21:35:42]Read from MH i2c: 01 07 00 [21:35:42]MH_I2C_Read... [21:35:42]Read from MH i2c: 01 07 00 CE 02 00 00 00 00 00 FF 0F E5 [21:35:42]RasterBufferAndPrint [21:35:42]line Счет N : (3)183994 [21:35:42]line ИНН: 02508201610067 [21:35:42]line Контрольно-Кассовый Чек [21:35:42]line ПРОДАЖА [21:35:42]line Товар: 4700003010070 [21:35:42]line Чай хол Let`s Go! чер персик ПЭТ 1,25л [21:35:42]line 1.000 * 95.00 [21:35:42]line = 95.00 [21:35:42]line НДС 12% НСП 1% [21:35:42]line > о реализуемом товаре [21:35:42]line ИТОГО: 95.00 [21:35:42]line НСП 1% : 0.84 [21:35:42]line НДС 12% : 10.09 [21:35:42]line Наличными: 95.00 [21:35:42]line Безнал.: 0.00 [21:35:42]line Место: АЗС № 97 "Партнер Нефть" [21:35:42]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [21:35:42]line СНО: Общий режим [21:35:42]line Чек 154 29.07.2024 21:35 [21:35:42]line Смена: 427 ФФД: 1.0 [21:35:42]line ЗНМ: 0300000053 [21:35:42]line РНМ: 0000000000092626 [21:35:42]line Версия ККМ: 001 [21:35:42]line ФМ: 0000000000874958 [21:35:42]line ФД: 41965 [21:35:42]line ФПД: 168522007882262 [21:35:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T213541&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41965&fm=168522007882262&tin=02508201610067®Number=0000000000092626&sum=9500 [21:35:43]line 0 [21:35:43]OFD Sender: Processing packet 41965 [packets to send 57, broken 56] [21:35:43]ProducePacketName [21:35:43]name=ofd_packets/00041965 [21:35:43]OFD Sender: To server: pG, [21:35:43]CommunicateWithHost lk.salyk.kg:30040 [21:35:43]ConnectInit lk.salyk.kg [21:35:43]written 0, free lines is 4095 [21:35:43]Write to MH i2c: 01 00 00 F7 02 F9 [21:35:43]Write i2c OK [21:35:43]MH_I2C_Read... [21:35:43]Read from MH i2c: 01 [21:35:43]MH_I2C_Read... [21:35:43]Read from MH i2c: 01 07 00 [21:35:43]MH_I2C_Read... [21:35:43]Read from MH i2c: 01 07 00 F7 02 00 00 00 00 00 07 0D 14 [21:35:43]RasterBufferAndPrint [21:35:43]line [21:35:43]line [21:35:43]line [21:35:43]line [21:35:43]line [21:35:43]written 0, free lines is 3341 [21:35:43]MH_Cut [21:35:43]Write to MH i2c: D1 01 00 FE 02 01 D2 [21:35:43]Write i2c OK [21:35:43]MH_I2C_Read... [21:35:43]Read from MH i2c: D1 [21:35:43]MH_I2C_Read... [21:35:43]Read from MH i2c: D1 01 00 [21:35:43]MH_I2C_Read... [21:35:43]Read from MH i2c: D1 01 00 FE 02 00 D1 [21:35:43]Write to MH i2c: 01 00 00 FF 02 01 [21:35:43]Write i2c OK [21:35:43]MH_I2C_Read... [21:35:44]*** Cut start [21:35:44]*** Partial cut [21:35:44]*** CUTSNS_PIN = 1 [21:35:44]*** CUTSNS_PIN = 0 [21:35:44]*** Brake cut motor [21:35:44]Read from MH i2c: 01 [21:35:44]MH_I2C_Read... [21:35:44]*** Stop cut motor [21:35:44]*** Cut end [21:35:44]Read from MH i2c: 01 07 00 [21:35:44]MH_I2C_Read... [21:35:44]Read from MH i2c: 01 07 00 FF 02 00 00 00 00 00 FF 0F 16 [21:35:44]process_action close_receipt done [21:35:44]requested_data is exist [21:35:44]produce_requested_data [21:35:44]requested_item fm.sn is exist - process it [21:35:44]wFMCommunicate request_size=4 [21:35:44]MH_SAM_APDU [21:35:44]CAPDU: 80 11 00 00 [21:35:44]Write to MH i2c: E2 08 00 00 03 80 11 00 00 00 00 00 00 7D [21:35:44]Write i2c OK [21:35:44]MH_I2C_Read... [21:35:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:35:44]Read from MH i2c: E2 [21:35:44]MH_I2C_Read... [21:35:44]Read from MH i2c: E2 17 00 [21:35:44]MH_I2C_Read... [21:35:44]Read from MH i2c: E2 17 00 00 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 D9 [21:35:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [21:35:44]wFMCommunicate OK [21:35:44]requested_item fd.num is exist - process it [21:35:44]SAM_PROTO_GetFieldsCounters [21:35:44]wFMCommunicate request_size=4 [21:35:44]MH_SAM_APDU [21:35:44]CAPDU: 80 13 00 00 [21:35:44]Write to MH i2c: E2 08 00 01 03 80 13 00 00 00 00 00 00 80 [21:35:44]Write i2c OK [21:35:44]MH_I2C_Read... [21:35:45]Connected sock=11 [21:35: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 35 38 3F 01 00 00 65 CF 37 01 A3 40 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 37 30 06 04 39 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 2D 0B A8 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 ED A3 00 00 35 04 06 00 99 45 16 6A AA 16 E3 46 0A FF 2F 95 48 6B [21:35:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:35:45]Read from MH i2c: E2 [21:35:45]MH_I2C_Read... [21:35:45]Read from MH i2c: E2 62 00 [21:35:45]MH_I2C_Read... [21:35:45]Read from MH i2c: E2 62 00 01 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 ED A3 00 00 0E 04 04 00 AB 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 B4 [21:35:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 ED A3 00 00 0E 04 04 00 AB 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 [21:35:45]wFMCommunicate OK [21:35:45]SAM_PROTO_GetFieldsCounters done [21:35:45]requested_item shift.num is exist - process it [21:35:45]requested_item shift.opened is exist - process it [21:35:45]req_shift_opened [21:35:45]FM_GetShiftState [21:35:45]SAM_PROTO_GetShiftState [21:35:45]wFMCommunicate request_size=4 [21:35:45]MH_SAM_APDU [21:35:45]CAPDU: 80 13 01 00 [21:35:45]Write to MH i2c: E2 08 00 02 03 80 13 01 00 00 00 00 00 82 [21:35:45]Write i2c OK [21:35:45]MH_I2C_Read... [21:35:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:35:45]Read from MH i2c: E2 [21:35:45]MH_I2C_Read... [21:35:45]Read from MH i2c: E2 0E 00 [21:35:45]MH_I2C_Read... [21:35:45]Read from MH i2c: E2 0E 00 02 03 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 1E [21:35:45]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [21:35:45]wFMCommunicate OK [21:35:45]SAM_PROTO_GetShiftState done [21:35:45]FM_GetShiftState done [21:35:45]req_shift_opened done [21:35:45]requested_item shift.open_date is exist - process it [21:35:45]req_shift_open_date [21:35:45]req_shift_open_date done [21:35:45]produce_requested_data done [21:35:45]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41965,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [21:35:45]process_action_free close_receipt [21:35:45]json_value_free [21:35:45]json_value_free done [21:35:45]process_json_proto returns [21:35:45]Send response to host [21:35:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41965,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [21:35:45]free response buf [21:35:45]execute_script done [21:35:45]execute_script returns [21:35:45]free content buf [21:35:45]Sock 8.Close socket [21:35:45]Sock 8.Thread stoped [21:35:50]recv_with_timeout no data received [21:35:50]CommunicateWithHost answer receiving error [21:35:50]CommunicateWithHost err = -3 [21:35:50]OFD Sender: Server communicate error [21:35:55]OFD Sender: Processing packet 41965 [packets to send 57, broken 56] [21:35:55]ProducePacketName [21:35:55]name=ofd_packets/00041965 [21:35:55]OFD Sender: To server: pG, [21:35:55]CommunicateWithHost lk.salyk.kg:30040 [21:35:55]ConnectInit lk.salyk.kg [21:36:00]recv_with_timeout no data received [21:36:14]Connected sock=9 [21:36: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 35 38 3F 01 00 00 65 CF 37 01 A3 40 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 37 30 06 04 39 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 2D 0B A8 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 ED A3 00 00 35 04 06 00 99 45 16 6A AA 16 E3 46 0A FF 2F 95 48 6B [21:36: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 35 38 4F 00 00 00 64 97 47 00 FB 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 35 38 10 04 04 00 ED A3 00 00 F4 03 04 00 62 B7 A7 66 B6 04 01 00 00 EF 5E A9 73 7D 7F CD CD [21:36:15]CommunicateWithHost err = 0 [21:36:15]CheckOFDResponse [21:36:15]1017 (14) - 77093643461234 [21:36:15]1041 (16) - 0000000000874958 [21:36:15]1040 (4) - 41965 [21:36:15]1012 (4) - 29.07.2024 15:38 [21:36:15]1206 (1) - 0 [21:36:15]OFD Sender: Remove packet 41965 [21:36:15]ProducePacketName [21:36:15]name=ofd_packets/00041965 [21:36:15]NVStorageDeleteData [21:36:16]OFD Sender: No OFD packet to send [21:36:19]recv_with_timeout no data received [21:36:21]OFD Sender: No OFD packet to send [21:36:26]OFD Sender: No OFD packet to send [21:36:31]OFD Sender: No OFD packet to send [21:36:36]OFD Sender: No OFD packet to send [21:36:41]OFD Sender: No OFD packet to send [21:36:46]OFD Sender: No OFD packet to send [21:36:51]OFD Sender: No OFD packet to send [21:36:56]OFD Sender: No OFD packet to send [21:37:01]OFD Sender: No OFD packet to send [21:37:06]OFD Sender: No OFD packet to send [21:37:11]OFD Sender: No OFD packet to send [21:37:16]OFD Sender: No OFD packet to send [21:37:21]OFD Sender: No OFD packet to send [21:37:26]OFD Sender: No OFD packet to send [21:37:31]OFD Sender: No OFD packet to send [21:37:36]OFD Sender: No OFD packet to send [21:37:41]OFD Sender: No OFD packet to send [21:37:46]OFD Sender: No OFD packet to send [21:37:51]OFD Sender: No OFD packet to send [21:37:56]OFD Sender: No OFD packet to send [21:38:01]OFD Sender: No OFD packet to send [21:38:06]OFD Sender: No OFD packet to send [21:38:11]OFD Sender: No OFD packet to send [21:38:16]OFD Sender: No OFD packet to send [21:38:21]OFD Sender: No OFD packet to send [21:38:26]OFD Sender: No OFD packet to send [21:38:31]OFD Sender: No OFD packet to send [21:38:36]OFD Sender: No OFD packet to send [21:38:41]OFD Sender: No OFD packet to send [21:38:46]OFD Sender: No OFD packet to send [21:38:51]OFD Sender: No OFD packet to send [21:38:56]OFD Sender: No OFD packet to send [21:39:01]OFD Sender: No OFD packet to send [21:39:06]OFD Sender: No OFD packet to send [21:39:07]recv_with_timeout no data received [21:39:11]OFD Sender: No OFD packet to send [21:39:16]OFD Sender: No OFD packet to send [21:39:21]OFD Sender: No OFD packet to send [21:39:26]OFD Sender: No OFD packet to send [21:39:31]recv_with_timeout no data received [21:39:31]OFD Sender: No OFD packet to send [21:39:36]OFD Sender: No OFD packet to send [21:39:41]OFD Sender: No OFD packet to send [21:39:46]OFD Sender: No OFD packet to send [21:39:48]recv_with_timeout no data received [21:39:51]OFD Sender: No OFD packet to send [21:39:56]OFD Sender: No OFD packet to send [21:40:01]OFD Sender: No OFD packet to send [21:40:06]OFD Sender: No OFD packet to send [21:40:11]OFD Sender: No OFD packet to send [21:40:16]OFD Sender: No OFD packet to send [21:40:16]recv_with_timeout no data received [21:40:21]OFD Sender: No OFD packet to send [21:40:36]OFD Sender: No OFD packet to send [21:40:41]OFD Sender: No OFD packet to send [21:40:46]OFD Sender: No OFD packet to send [21:40:51]OFD Sender: No OFD packet to send [21:40:56]OFD Sender: No OFD packet to send [21:40:56]recv_with_timeout no data received [21:41:01]OFD Sender: No OFD packet to send [21:41:06]OFD Sender: No OFD packet to send [21:41:11]OFD Sender: No OFD packet to send [21:41:16]OFD Sender: No OFD packet to send [21:41:21]OFD Sender: No OFD packet to send [21:41:26]OFD Sender: No OFD packet to send [21:41:31]OFD Sender: No OFD packet to send [21:41:36]OFD Sender: No OFD packet to send [21:41:41]OFD Sender: No OFD packet to send [21:41:46]OFD Sender: No OFD packet to send [21:41:51]OFD Sender: No OFD packet to send [21:41:56]OFD Sender: No OFD packet to send [21:42:01]OFD Sender: No OFD packet to send [21:42:06]OFD Sender: No OFD packet to send [21:42:11]OFD Sender: No OFD packet to send [21:42:16]OFD Sender: No OFD packet to send [21:42:21]OFD Sender: No OFD packet to send [21:42:26]OFD Sender: No OFD packet to send [21:42:31]OFD Sender: No OFD packet to send [21:42:36]OFD Sender: No OFD packet to send [21:42:41]OFD Sender: No OFD packet to send [21:42:46]OFD Sender: No OFD packet to send [21:42:51]OFD Sender: No OFD packet to send [21:42:56]OFD Sender: No OFD packet to send [21:43:01]OFD Sender: No OFD packet to send [21:43:06]OFD Sender: No OFD packet to send [21:43:11]OFD Sender: No OFD packet to send [21:44:46]ConnectInit Can't connect to host [21:44:46]OFD Sender: No OFD packet to send [21:44:51]OFD Sender: No OFD packet to send [21:44:56]OFD Sender: No OFD packet to send [21:45:01]OFD Sender: No OFD packet to send [21:45:06]OFD Sender: No OFD packet to send [21:45:07]recv_with_timeout no data received [21:45:11]OFD Sender: No OFD packet to send [21:45:16]OFD Sender: No OFD packet to send [21:45:21]OFD Sender: No OFD packet to send [21:45:26]OFD Sender: No OFD packet to send [21:45:31]OFD Sender: No OFD packet to send [21:45:36]OFD Sender: No OFD packet to send [21:45:41]OFD Sender: No OFD packet to send [21:45:46]OFD Sender: No OFD packet to send [21:45:51]OFD Sender: No OFD packet to send [21:45:56]OFD Sender: No OFD packet to send [21:46:01]OFD Sender: No OFD packet to send [21:46:06]OFD Sender: No OFD packet to send [21:46:11]OFD Sender: No OFD packet to send [21:46:16]OFD Sender: No OFD packet to send [21:46:21]OFD Sender: No OFD packet to send [21:46:26]OFD Sender: No OFD packet to send [21:46:31]OFD Sender: No OFD packet to send [21:46:36]OFD Sender: No OFD packet to send [21:46:41]OFD Sender: No OFD packet to send [21:46:46]OFD Sender: No OFD packet to send [21:46:51]OFD Sender: No OFD packet to send [21:46:56]OFD Sender: No OFD packet to send [21:47:01]OFD Sender: No OFD packet to send [21:47:06]OFD Sender: No OFD packet to send [21:47:11]OFD Sender: No OFD packet to send [21:47:16]OFD Sender: No OFD packet to send [21:47:21]OFD Sender: No OFD packet to send [21:47:26]OFD Sender: No OFD packet to send [21:47:31]OFD Sender: No OFD packet to send [21:47:36]OFD Sender: No OFD packet to send [21:47:41]OFD Sender: No OFD packet to send [21:47:45]recv_with_timeout no data received [21:47:46]OFD Sender: No OFD packet to send [21:47:51]OFD Sender: No OFD packet to send [21:47:56]OFD Sender: No OFD packet to send [21:48:01]OFD Sender: No OFD packet to send [21:48:06]OFD Sender: No OFD packet to send [21:48:10]recv_with_timeout no data received [21:48:11]OFD Sender: No OFD packet to send [21:48:16]OFD Sender: No OFD packet to send [21:48:21]OFD Sender: No OFD packet to send [21:48:26]OFD Sender: No OFD packet to send [21:48:31]OFD Sender: No OFD packet to send [21:48:36]OFD Sender: No OFD packet to send [21:48:41]OFD Sender: No OFD packet to send [21:48:46]OFD Sender: No OFD packet to send [21:48:51]OFD Sender: No OFD packet to send [21:48:56]OFD Sender: No OFD packet to send [21:49:01]OFD Sender: No OFD packet to send [21:49:06]OFD Sender: No OFD packet to send [21:49:11]OFD Sender: No OFD packet to send [21:49:16]OFD Sender: No OFD packet to send [21:49:21]OFD Sender: No OFD packet to send [21:49:26]OFD Sender: No OFD packet to send [21:49:31]OFD Sender: No OFD packet to send [21:49:36]OFD Sender: No OFD packet to send [21:49:41]OFD Sender: No OFD packet to send [21:49:46]OFD Sender: No OFD packet to send [21:49:51]OFD Sender: No OFD packet to send [21:49:56]OFD Sender: No OFD packet to send [21:50:01]OFD Sender: No OFD packet to send [21:50:06]OFD Sender: No OFD packet to send [21:50:11]OFD Sender: No OFD packet to send [21:50:16]OFD Sender: No OFD packet to send [21:50:21]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:30]recv_with_timeout no data received [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:28]accept exits with 10 [21:54:28]New connection [21:54:28]New thread 3067506020 created [21:54:28]Thread 3067362660 joined [21:54:28]Waiting for new connection... [21:54:28] Sock 10.Parse request [21:54:28]Sock 10.Check first char [21:54:28]Sock 10.First char is OK [21:54:28]request: POST /json_proto HTTP/1.0 [21:54:28]Method: POST [21:54:28]URL: /json_proto [21:54:28]Method is POST - this is cgi request [21:54:28]url: /json_proto [21:54:28]query_string will be loaded in cgi processing [21:54:28]execute_cgi json_proto POST (null) [21:54:28]execute_cgi path=json_proto method=POST [21:54:28]POST find Content-Length [21:54:28]Host: 172.17.43.132:8080 [21:54:28]Content-Length: 646 [21:54:28]Content-Type: application/json [21:54:28] [21:54:28]POST finish read [21:54:28]Found Content-Length = 646 [21:54:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183995", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:54:28]execute_script... [21: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 : (3)183995", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:54:28]POST & json_proto [21:54:28]process_json_proto [21:54:28]json parsed OK: [21:54:28]protocol is kg_v1.0 [21:54:28]action value=close_receipt [21:54:28]process_action close_receipt [21:54:28]cmd_close_receipt [21:54:28]MH_GetDate [21:54:28]Write to MH i2c: F0 00 00 03 03 F5 [21:54:28]Write i2c OK [21:54:28]MH_I2C_Read... [21:54:28]Read from MH i2c: F0 [21:54:28]MH_I2C_Read... [21:54:28]Read from MH i2c: F0 09 00 [21:54:28]MH_I2C_Read... [21:54:28]Read from MH i2c: F0 09 00 03 03 00 95 0F A8 66 64 A3 A7 66 C4 [21:54:28]GetLastDocTimeStamp 1722288941 [21:54:28]current date 1722290069 [21:54:28]FM_GetShiftState [21:54:28]SAM_PROTO_GetShiftState [21:54:28]wFMCommunicate request_size=4 [21:54:28]MH_SAM_APDU [21:54:28]CAPDU: 80 13 01 00 [21:54:28]Write to MH i2c: E2 08 00 04 03 80 13 01 00 00 00 00 00 84 [21:54:28]Write i2c OK [21:54:28]MH_I2C_Read... [21:54:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:54:28]Read from MH i2c: E2 [21:54:28]MH_I2C_Read... [21:54:28]Read from MH i2c: E2 0E 00 [21:54:28]MH_I2C_Read... [21:54:28]Read from MH i2c: E2 0E 00 04 03 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 20 [21:54:28]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [21:54:28]wFMCommunicate OK [21:54:28]SAM_PROTO_GetShiftState done [21:54:28]FM_GetShiftState done [21:54:28]opened in 1722211496 [21:54:28]opened+sec_in_day 1722297896 [21:54:28]quantity*price = 13000 [21:54:28]sum+1 = 13001 [21:54:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 155 29.07.2024 21:54 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41966 ФПД: 78574954222528 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T215429&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41966&fm=78574954222528&tin=02508201610067®Number=0000000000092626&sum=13000 0 [21:54:29]StoreToDocumentArchive [21:54:29]shift 427 fd 41966 [21:54:29]save to /storage/0427/doc_00041966 [21:54:29]save last doc name /storage/0427/doc_00041966 to /storage/kkm_last_doc_name [21:54:29]save OK [21:54:29]Clear old archive folders... [21:54:29]ProcessDocumentItem done err = 0, tmpTLVsize=282 [21:54:29]tlvbuf is 012B07F0 [21:54:29]SAM_PROTO_ClearQueue [21:54:29]wFMCommunicate request_size=4 [21:54:29]MH_SAM_APDU [21:54:29]CAPDU: 80 09 00 00 [21:54:29]Write to MH i2c: E2 08 00 11 03 80 09 00 00 00 00 00 00 86 [21:54:29]Write i2c OK [21:54:29]MH_I2C_Read... [21:54:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:54:30]Read from MH i2c: E2 [21:54:30]MH_I2C_Read... [21:54:30]Read from MH i2c: E2 03 00 [21:54:30]MH_I2C_Read... [21:54:30]Read from MH i2c: E2 03 00 11 03 00 90 00 88 [21:54:30]RAPDU: 90 00 [21:54:30]wFMCommunicate OK [21:54:30]SAM_PROTO_ClearQueue done [21:54:30]KKMCreateOFDPacket [21:54:30]OFDProtocolAddRootSTLVToBuf [21:54:30]FM_MakeSignedData [21:54:30]FM_MakeSignedData [21:54:30]SAM_PROTO_SignData [21:54:30]wFMCommunicate request_size=4 [21:54:30]MH_SAM_APDU [21:54:30]CAPDU: 80 0D 01 02 [21:54:30]Write to MH i2c: E2 08 00 12 03 80 0D 01 02 00 00 00 00 8E [21:54:30]Write i2c OK [21:54:30]MH_I2C_Read... [21:54:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:54:30]Read from MH i2c: E2 [21:54:30]MH_I2C_Read... [21:54:30]Read from MH i2c: E2 03 00 [21:54:30]MH_I2C_Read... [21:54:30]Read from MH i2c: E2 03 00 12 03 00 90 00 89 [21:54:30]RAPDU: 90 00 [21:54:30]wFMCommunicate OK [21:54:30]wFMCommunicate request_size=255 [21:54:30]MH_SAM_APDU [21:54:30]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 95 0F A8 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 [21:54:30]Write to MH i2c: E2 02 01 13 03 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 95 0F A8 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 00 00 96 [21:54:30]Write i2c OK [21:54:30]MH_I2C_Read... [21:54:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:54:30]Read from MH i2c: E2 [21:54:30]MH_I2C_Read... [21:54:30]Read from MH i2c: E2 03 00 [21:54:30]MH_I2C_Read... [21:54:30]Read from MH i2c: E2 03 00 13 03 00 90 00 8A [21:54:30]RAPDU: 90 00 [21:54:30]wFMCommunicate OK [21:54:30]wFMCommunicate request_size=41 [21:54:30]MH_SAM_APDU [21:54:30]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 EE A3 00 00 35 04 06 00 47 76 A8 3C 13 C0 [21:54:30]Write to MH i2c: E2 2C 00 14 03 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 EE A3 00 00 35 04 06 00 47 76 A8 3C 13 C0 00 00 6E [21:54:30]Write i2c OK [21:54:30]MH_I2C_Read... [21:54:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:54:30]Read from MH i2c: E2 [21:54:30]MH_I2C_Read... [21:54:30]Read from MH i2c: E2 03 00 [21:54:30]MH_I2C_Read... [21:54:30]Read from MH i2c: E2 03 00 14 03 00 90 00 8B [21:54:30]RAPDU: 90 00 [21:54:30]wFMCommunicate OK [21:54:30]wFMCommunicate request_size=4 [21:54:30]MH_SAM_APDU [21:54:30]CAPDU: 80 0D 03 02 [21:54:30]Write to MH i2c: E2 08 00 15 03 80 0D 03 02 00 00 00 00 93 [21:54:30]Write i2c OK [21:54:30]MH_I2C_Read... [21:54:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:54:30]Read from MH i2c: E2 [21:54:30]MH_I2C_Read... [21:54:30]Read from MH i2c: E2 0B 00 [21:54:30]MH_I2C_Read... [21:54:30]Read from MH i2c: E2 0B 00 15 03 00 4C 25 E3 BD 35 3D 38 6D 90 00 BC [21:54:30]RAPDU: 4C 25 E3 BD 35 3D 38 6D 90 00 [21:54:30]wFMCommunicate OK [21:54:30]SAM_PROTO_SignData done [21:54:30]FM_MakeSignedData done [21:54:30]CreateOFDProtocolMessage [21:54:30]wFMCommunicate request_size=4 [21:54:30]MH_SAM_APDU [21:54:30]CAPDU: 80 11 00 00 [21:54:30]Write to MH i2c: E2 08 00 16 03 80 11 00 00 00 00 00 00 93 [21:54:30]Write i2c OK [21:54:30]MH_I2C_Read... [21:54:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:54:30]Read from MH i2c: E2 [21:54:30]MH_I2C_Read... [21:54:30]Read from MH i2c: E2 17 00 [21:54:30]MH_I2C_Read... [21:54:30]Read from MH i2c: E2 17 00 16 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 EF [21:54:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [21:54:30]wFMCommunicate OK [21:54:30]CreateOFDProtocolMessage done [21:54:30]OFDSenderStorePacket 41966 [21:54:30]StoreOFDPacket docnum=41966 [21:54:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 2E 01 00 00 E8 39 26 01 7A A5 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 95 0F A8 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 EE A3 00 00 35 04 06 00 47 76 A8 3C 13 C0 4C 25 E3 BD 35 3D 38 6D [21:54:30]CheckFolder [21:54:30]dirname=/storage/ofd_packets [21:54:30]CheckFolder done [21:54:30]ProducePacketName [21:54:30]name=ofd_packets/00041966 [21:54:30]NVStorageSaveData ofd_packets/00041966 [21:54:30]File name is /storage/ofd_packets/00041966 [21:54:30]Write 332 bytes [21:54:30]NVStorageSaveData done [21:54:30]OFDSenderStorePacket done [21:54:30]KKMCreateOFDPacket done [21:54:30]NVStorageSaveData kkm_last_timestamp [21:54:30]File name is /storage/kkm_last_timestamp [21:54:30]Write 4 bytes [21:54:30]NVStorageSaveData done [21:54:30]ExternCall_PrintAddStr [21:54:30]wPrintStart [21:54:30]Write to MH i2c: 01 00 00 17 03 1A [21:54:30]Write i2c OK [21:54:30]MH_I2C_Read... [21:54:30]Read from MH i2c: 01 [21:54:30]MH_I2C_Read... [21:54:30]Read from MH i2c: 01 07 00 [21:54:30]MH_I2C_Read... [21:54:30]Read from MH i2c: 01 07 00 17 03 00 00 00 00 00 FF 0F 2F [21:54:30]RasterBufferAndPrint [21:54:30]line Счет N : (3)183995 [21:54:30]line ИНН: 02508201610067 [21:54:30]line Контрольно-Кассовый Чек [21:54:30]line ПРОДАЖА [21:54:30]line Товар: 2000036220012 [21:54:30]line Кофе Капучино XL(GABB TRADE) [21:54:30]line 1.000 * 130.00 [21:54:30]line = 130.00 [21:54:30]line НДС 12% НСП 1% [21:54:30]line > о реализуемом товаре [21:54:30]line ИТОГО: 130.00 [21:54:30]line НСП 1% : 1.15 [21:54:30]line НДС 12% : 13.80 [21:54:30]line Наличными: 130.00 [21:54:30]line Безнал.: 0.00 [21:54:30]line Место: АЗС № 97 "Партнер Нефть" [21:54:30]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [21:54:30]line СНО: Общий режим [21:54:30]line Чек 155 29.07.2024 21:54 [21:54:30]line Смена: 427 ФФД: 1.0 [21:54:30]line ЗНМ: 0300000053 [21:54:30]line РНМ: 0000000000092626 [21:54:30]line Версия ККМ: 001 [21:54:30]line ФМ: 0000000000874958 [21:54:30]line ФД: 41966 [21:54:30]line ФПД: 78574954222528 [21:54:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T215429&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41966&fm=78574954222528&tin=02508201610067®Number=0000000000092626&sum=13000 [21:54:30]line 0 [21:54:30]OFD Sender: Processing packet 41966 [packets to send 57, broken 56] [21:54:30]ProducePacketName [21:54:30]name=ofd_packets/00041966 [21:54:30]OFD Sender: To server: pG, [21:54:30]CommunicateWithHost lk.salyk.kg:30040 [21:54:30]ConnectInit lk.salyk.kg [21:54:30]written 0, free lines is 4095 [21:54:31]Write to MH i2c: 01 00 00 40 03 43 [21:54:31]Write i2c OK [21:54:31]MH_I2C_Read... [21:54:31]Read from MH i2c: 01 [21:54:31]MH_I2C_Read... [21:54:31]Read from MH i2c: 01 07 00 [21:54:31]MH_I2C_Read... [21:54:31]Read from MH i2c: 01 07 00 40 03 00 00 00 00 00 02 0D 59 [21:54:31]RasterBufferAndPrint [21:54:31]line [21:54:31]line [21:54:31]line [21:54:31]line [21:54:31]line [21:54:31]written 0, free lines is 3336 [21:54:31]MH_Cut [21:54:31]Write to MH i2c: D1 01 00 47 03 01 1C [21:54:31]Write i2c OK [21:54:31]MH_I2C_Read... [21:54:31]Read from MH i2c: D1 [21:54:31]MH_I2C_Read... [21:54:31]Read from MH i2c: D1 01 00 [21:54:31]MH_I2C_Read... [21:54:31]Read from MH i2c: D1 01 00 47 03 00 1B [21:54:31]Write to MH i2c: 01 00 00 48 03 4B [21:54:31]Write i2c OK [21:54:31]MH_I2C_Read... [21:54:31]*** Cut start [21:54:31]*** Partial cut [21:54:31]*** CUTSNS_PIN = 1 [21:54:32]*** CUTSNS_PIN = 0 [21:54:32]*** Brake cut motor [21:54:32]Read from MH i2c: 01 [21:54:32]MH_I2C_Read... [21:54:32]*** Stop cut motor [21:54:32]*** Cut end [21:54:32]Read from MH i2c: 01 07 00 [21:54:32]MH_I2C_Read... [21:54:32]Read from MH i2c: 01 07 00 48 03 00 00 00 00 00 FF 0F 60 [21:54:32]process_action close_receipt done [21:54:32]requested_data is exist [21:54:32]produce_requested_data [21:54:32]requested_item fm.sn is exist - process it [21:54:32]wFMCommunicate request_size=4 [21:54:32]MH_SAM_APDU [21:54:32]CAPDU: 80 11 00 00 [21:54:32]Write to MH i2c: E2 08 00 49 03 80 11 00 00 00 00 00 00 C6 [21:54:32]Write i2c OK [21:54:32]MH_I2C_Read... [21:54:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:54:32]Read from MH i2c: E2 [21:54:32]MH_I2C_Read... [21:54:32]Read from MH i2c: E2 17 00 [21:54:32]MH_I2C_Read... [21:54:32]Read from MH i2c: E2 17 00 49 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 22 [21:54:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [21:54:32]wFMCommunicate OK [21:54:32]requested_item fd.num is exist - process it [21:54:32]SAM_PROTO_GetFieldsCounters [21:54:32]wFMCommunicate request_size=4 [21:54:32]MH_SAM_APDU [21:54:32]CAPDU: 80 13 00 00 [21:54:32]Write to MH i2c: E2 08 00 4A 03 80 13 00 00 00 00 00 00 C9 [21:54:32]Write i2c OK [21:54:32]MH_I2C_Read... [21:54:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:54:32]Read from MH i2c: E2 [21:54:32]MH_I2C_Read... [21:54:32]Read from MH i2c: E2 62 00 [21:54:32]MH_I2C_Read... [21:54:32]Read from MH i2c: E2 62 00 4A 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 EE A3 00 00 0E 04 04 00 AB 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 01 [21: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 EE A3 00 00 0E 04 04 00 AB 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 [21:54:32]wFMCommunicate OK [21:54:32]SAM_PROTO_GetFieldsCounters done [21:54:32]requested_item shift.num is exist - process it [21:54:32]requested_item shift.opened is exist - process it [21:54:32]req_shift_opened [21:54:32]FM_GetShiftState [21:54:32]SAM_PROTO_GetShiftState [21:54:32]wFMCommunicate request_size=4 [21:54:32]MH_SAM_APDU [21:54:32]CAPDU: 80 13 01 00 [21:54:32]Write to MH i2c: E2 08 00 4B 03 80 13 01 00 00 00 00 00 CB [21:54:32]Write i2c OK [21:54:32]MH_I2C_Read... [21:54:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:54:32]Read from MH i2c: E2 [21:54:32]MH_I2C_Read... [21:54:32]Read from MH i2c: E2 0E 00 [21:54:32]MH_I2C_Read... [21:54:32]Read from MH i2c: E2 0E 00 4B 03 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 67 [21:54:32]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [21:54:32]wFMCommunicate OK [21:54:32]SAM_PROTO_GetShiftState done [21:54:32]FM_GetShiftState done [21:54:32]req_shift_opened done [21:54:32]requested_item shift.open_date is exist - process it [21:54:32]req_shift_open_date [21:54:32]req_shift_open_date done [21:54:32]produce_requested_data done [21:54:32]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41966,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [21:54:32]process_action_free close_receipt [21:54:32]json_value_free [21:54:32]json_value_free done [21:54:32]process_json_proto returns [21:54:32]Send response to host [21:54:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41966,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [21:54:32]free response buf [21:54:32]execute_script done [21:54:32]execute_script returns [21:54:32]free content buf [21:54:32]Sock 10.Close socket [21:54:32]Sock 10.Thread stoped [21:56:43]ConnectInit Can't connect to host [21:56:43]CommunicateWithHost connect error [21:56:43]CommunicateWithHost err = -1 [21:56:43]OFD Sender: Server communicate error [21:56:48]OFD Sender: Processing packet 41966 [packets to send 57, broken 56] [21:56:48]ProducePacketName [21:56:48]name=ofd_packets/00041966 [21:56:48]OFD Sender: To server: pG, [21:56:48]CommunicateWithHost lk.salyk.kg:30040 [21:56:48]ConnectInit lk.salyk.kg [21:56:53]ConnectInit Can't take IP for lk.salyk.kg [21:56:53]CommunicateWithHost connect error [21:56:53]CommunicateWithHost err = -1 [21:56:53]OFD Sender: Server communicate error [21:56:58]OFD Sender: Processing packet 41966 [packets to send 57, broken 56] [21:56:58]ProducePacketName [21:56:58]name=ofd_packets/00041966 [21:56:58]OFD Sender: To server: pG, [21:56:58]CommunicateWithHost lk.salyk.kg:30040 [21:56:58]ConnectInit lk.salyk.kg [21:57:03]recv_with_timeout no data received [21:57:03]ConnectInit Can't take IP for lk.salyk.kg [21:57:03]CommunicateWithHost connect error [21:57:03]CommunicateWithHost err = -1 [21:57:03]OFD Sender: Server communicate error [21:57:08]OFD Sender: Processing packet 41966 [packets to send 57, broken 56] [21:57:08]ProducePacketName [21:57:08]name=ofd_packets/00041966 [21:57:08]OFD Sender: To server: pG, [21:57:08]CommunicateWithHost lk.salyk.kg:30040 [21:57:08]ConnectInit lk.salyk.kg [21:57:09]Connected sock=10 [21:57:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 2E 01 00 00 E8 39 26 01 7A A5 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 95 0F A8 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 EE A3 00 00 35 04 06 00 47 76 A8 3C 13 C0 4C 25 E3 BD 35 3D 38 6D [21:57: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 35 38 4F 00 00 00 05 7D 47 00 68 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 35 38 10 04 04 00 EE A3 00 00 F4 03 04 00 49 BC A7 66 B6 04 01 00 00 D7 4A A6 F2 CE 4D 10 D5 [21:57:09]CommunicateWithHost err = 0 [21:57:09]CheckOFDResponse [21:57:09]1017 (14) - 77093643461234 [21:57:09]1041 (16) - 0000000000874958 [21:57:09]1040 (4) - 41966 [21:57:09]1012 (4) - 29.07.2024 15:59 [21:57:09]1206 (1) - 0 [21:57:09]OFD Sender: Remove packet 41966 [21:57:09]ProducePacketName [21:57:09]name=ofd_packets/00041966 [21:57:09]NVStorageDeleteData [21:57:10]OFD Sender: No OFD packet to send [21:57:15]OFD Sender: No OFD packet to send [21:57:20]OFD Sender: No OFD packet to send [21:57:25]OFD Sender: No OFD packet to send [21:57:30]OFD Sender: No OFD packet to send [21:57:35]OFD Sender: No OFD packet to send [21:57:40]OFD Sender: No OFD packet to send [21:57:45]OFD Sender: No OFD packet to send [21:57:50]OFD Sender: No OFD packet to send [21:57:55]OFD Sender: No OFD packet to send [21:58:00]OFD Sender: No OFD packet to send [21:58:05]OFD Sender: No OFD packet to send [21:58:10]OFD Sender: No OFD packet to send [21:58:15]OFD Sender: No OFD packet to send [21:58:20]OFD Sender: No OFD packet to send [21:58:25]OFD Sender: No OFD packet to send [21:58:30]OFD Sender: No OFD packet to send [21:58:35]OFD Sender: No OFD packet to send [21:58:40]OFD Sender: No OFD packet to send [21:58:55]OFD Sender: No OFD packet to send [21:59:00]OFD Sender: No OFD packet to send [21:59:05]OFD Sender: No OFD packet to send [21:59:10]OFD Sender: No OFD packet to send [21:59:15]OFD Sender: No OFD packet to send [21:59:20]OFD Sender: No OFD packet to send [21:59:25]OFD Sender: No OFD packet to send [21:59:30]OFD Sender: No OFD packet to send [21:59:35]OFD Sender: No OFD packet to send [21:59:37]recv_with_timeout no data received [21:59:40]OFD Sender: No OFD packet to send [21:59:45]OFD Sender: No OFD packet to send [21:59:50]OFD Sender: No OFD packet to send [21:59:55]OFD Sender: No OFD packet to send [22:00:00]OFD Sender: No OFD packet to send [22:00:01]recv_with_timeout no data received [22:00:05]OFD Sender: No OFD packet to send [22:00:10]OFD Sender: No OFD packet to send [22:00:15]OFD Sender: No OFD packet to send [22:00:16]recv_with_timeout no data received [22:00:20]OFD Sender: No OFD packet to send [22:00:25]OFD Sender: No OFD packet to send [22:00:30]OFD Sender: No OFD packet to send [22:00:35]OFD Sender: No OFD packet to send [22:00:40]OFD Sender: No OFD packet to send [22:00:45]OFD Sender: No OFD packet to send [22:00:50]OFD Sender: No OFD packet to send [22:00:55]OFD Sender: No OFD packet to send [22:01:00]OFD Sender: No OFD packet to send [22:01:05]OFD Sender: No OFD packet to send [22:01:10]OFD Sender: No OFD packet to send [22:01:15]OFD Sender: No OFD packet to send [22:01:20]OFD Sender: No OFD packet to send [22:01:21]recv_with_timeout no data received [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:44]recv_with_timeout no data received [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:52]recv_with_timeout no data received [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:23]recv_with_timeout no data received [22:06:25]OFD Sender: No OFD packet to send [22:06:30]OFD Sender: No OFD packet to send [22:06:35]OFD Sender: No OFD packet to send [22:06:40]OFD Sender: No OFD packet to send [22:06:45]OFD Sender: No OFD packet to send [22:06:50]OFD Sender: No OFD packet to send [22:06:55]OFD Sender: No OFD packet to send [22:07:00]OFD Sender: No OFD packet to send [22:07:05]OFD Sender: No OFD packet to send [22:07:10]OFD Sender: No OFD packet to send [22:07:15]OFD Sender: No OFD packet to send [22:07:20]OFD Sender: No OFD packet to send [22:07:25]OFD Sender: No OFD packet to send [22:07:30]OFD Sender: No OFD packet to send [22:07:35]OFD Sender: No OFD packet to send [22:07:40]OFD Sender: No OFD packet to send [22:07:45]OFD Sender: No OFD packet to send [22:07:51]OFD Sender: No OFD packet to send [22:07:56]OFD Sender: No OFD packet to send [22:08:01]OFD Sender: No OFD packet to send [22:08:02]recv_with_timeout no data received [22:08:06]OFD Sender: No OFD packet to send [22:08:11]OFD Sender: No OFD packet to send [22:08:16]OFD Sender: No OFD packet to send [22:08:21]OFD Sender: No OFD packet to send [22:08:26]OFD Sender: No OFD packet to send [22:08:31]OFD Sender: No OFD packet to send [22:08:36]OFD Sender: No OFD packet to send [22:08:41]OFD Sender: No OFD packet to send [22:08:46]OFD Sender: No OFD packet to send [22:08:51]OFD Sender: No OFD packet to send [22:08:56]OFD Sender: No OFD packet to send [22:09:01]OFD Sender: No OFD packet to send [22:09:06]OFD Sender: No OFD packet to send [22:09:11]OFD Sender: No OFD packet to send [22:09:16]OFD Sender: No OFD packet to send [22:09:21]OFD Sender: No OFD packet to send [22:09:26]OFD Sender: No OFD packet to send [22:09:31]OFD Sender: No OFD packet to send [22:09:36]OFD Sender: No OFD packet to send [22:09:41]OFD Sender: No OFD packet to send [22:09:46]OFD Sender: No OFD packet to send [22:09:51]OFD Sender: No OFD packet to send [22:09:56]OFD Sender: No OFD packet to send [22:10:01]OFD Sender: No OFD packet to send [22:10:06]OFD Sender: No OFD packet to send [22:10:11]OFD Sender: No OFD packet to send [22:10:16]OFD Sender: No OFD packet to send [22:10:21]OFD Sender: No OFD packet to send [22:10:26]OFD Sender: No OFD packet to send [22:10:31]OFD Sender: No OFD packet to send [22:10:36]OFD Sender: No OFD packet to send [22:10:37]recv_with_timeout no data received [22:10:41]OFD Sender: No OFD packet to send [22:10:46]OFD Sender: No OFD packet to send [22:10:50]recv_with_timeout no data received [22:10:51]OFD Sender: No OFD packet to send [22:10:56]OFD Sender: No OFD packet to send [22:11:01]OFD Sender: No OFD packet to send [22:11:06]OFD Sender: No OFD packet to send [22:11:11]OFD Sender: No OFD packet to send [22:11:16]OFD Sender: No OFD packet to send [22:11:21]OFD Sender: No OFD packet to send [22:11:26]OFD Sender: No OFD packet to send [22:11:31]OFD Sender: No OFD packet to send [22:11:36]OFD Sender: No OFD packet to send [22:11:41]OFD Sender: No OFD packet to send [22:11:46]OFD Sender: No OFD packet to send [22:11:51]OFD Sender: No OFD packet to send [22:11:56]OFD Sender: No OFD packet to send [22:12:01]OFD Sender: No OFD packet to send [22:12:06]OFD Sender: No OFD packet to send [22:12:11]OFD Sender: No OFD packet to send [22:12:16]OFD Sender: No OFD packet to send [22:12:21]OFD Sender: No OFD packet to send [22:12:26]OFD Sender: No OFD packet to send [22:12:31]OFD Sender: No OFD packet to send [22:12:36]OFD Sender: No OFD packet to send [22:12:41]OFD Sender: No OFD packet to send [22:12:46]OFD Sender: No OFD packet to send [22:12:51]OFD Sender: No OFD packet to send [22:12:56]OFD Sender: No OFD packet to send [22:13:01]OFD Sender: No OFD packet to send [22:13:06]OFD Sender: No OFD packet to send [22:13:11]OFD Sender: No OFD packet to send [22:13:16]OFD Sender: No OFD packet to send [22:13:21]OFD Sender: No OFD packet to send [22:13:26]OFD Sender: No OFD packet to send [22:13:31]OFD Sender: No OFD packet to send [22:13:36]OFD Sender: No OFD packet to send [22:13:41]OFD Sender: No OFD packet to send [22:13:46]OFD Sender: No OFD packet to send [22:13:51]OFD Sender: No OFD packet to send [22:13:56]OFD Sender: No OFD packet to send [22:14:01]OFD Sender: No OFD packet to send [22:14:06]OFD Sender: No OFD packet to send [22:14:11]OFD Sender: No OFD packet to send [22:14:16]OFD Sender: No OFD packet to send [22:14:21]OFD Sender: No OFD packet to send [22:14:26]OFD Sender: No OFD packet to send [22:14:31]OFD Sender: No OFD packet to send [22:14:36]OFD Sender: No OFD packet to send [22:14:41]OFD Sender: No OFD packet to send [22:14:46]OFD Sender: No OFD packet to send [22:14:51]OFD Sender: No OFD packet to send [22:14:56]OFD Sender: No OFD packet to send [22:15:01]OFD Sender: No OFD packet to send [22:15:06]OFD Sender: No OFD packet to send [22:15:11]OFD Sender: No OFD packet to send [22:15:16]OFD Sender: No OFD packet to send [22:15:21]OFD Sender: No OFD packet to send [22:15:26]OFD Sender: No OFD packet to send [22:15:31]recv_with_timeout no data received [22:15:31]OFD Sender: No OFD packet to send [22:15:36]OFD Sender: No OFD packet to send [22:15:41]OFD Sender: No OFD packet to send [22:15:46]OFD Sender: No OFD packet to send [22:15:51]OFD Sender: No OFD packet to send [22:15:56]OFD Sender: No OFD packet to send [22:16:01]OFD Sender: No OFD packet to send [22:16:06]OFD Sender: No OFD packet to send [22:16:10]accept exits with 9 [22:16:10]New connection [22:16:10]New thread 3067362660 created [22:16:10]Thread 3067506020 joined [22:16:10]Waiting for new connection... [22:16:10] Sock 9.Parse request [22:16:10]Sock 9.Check first char [22:16:10]Sock 9.First char is OK [22:16:10]request: POST /json_proto HTTP/1.0 [22:16:10]Method: POST [22:16:10]URL: /json_proto [22:16:10]Method is POST - this is cgi request [22:16:10]url: /json_proto [22:16:10]query_string will be loaded in cgi processing [22:16:10]execute_cgi json_proto POST (null) [22:16:10]execute_cgi path=json_proto method=POST [22:16:10]POST find Content-Length [22:16:10]Host: 172.17.43.132:8080 [22:16:10]Content-Length: 781 [22:16:10]Content-Type: application/json [22:16:10] [22:16:10]POST finish read [22:16:10]Found Content-Length = 781 [22:16:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183996", "tax_sys" : 0, "items" : [ { "code": "4650063118011", "name": "\u041C\u0430\u0441\u043B\u043E GPN Diesel Extra 10W-40 1\u043B", "price" : 420.00, "quantity" : 1.000, "sum" : 420.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" : 420.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:16:10]execute_script... [22:16:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183996", "tax_sys" : 0, "items" : [ { "code": "4650063118011", "name": "\u041C\u0430\u0441\u043B\u043E GPN Diesel Extra 10W-40 1\u043B", "price" : 420.00, "quantity" : 1.000, "sum" : 420.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" : 420.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:16:10]POST & json_proto [22:16:10]process_json_proto [22:16:10]json parsed OK: [22:16:10]protocol is kg_v1.0 [22:16:10]action value=close_receipt [22:16:10]process_action close_receipt [22:16:10]cmd_close_receipt [22:16:10]MH_GetDate [22:16:10]Write to MH i2c: F0 00 00 4C 03 3E [22:16:10]Write i2c OK [22:16:10]MH_I2C_Read... [22:16:10]Read from MH i2c: F0 [22:16:10]MH_I2C_Read... [22:16:10]Read from MH i2c: F0 09 00 [22:16:10]MH_I2C_Read... [22:16:10]Read from MH i2c: F0 09 00 4C 03 00 AB 14 A8 66 64 A3 A7 66 28 [22:16:10]GetLastDocTimeStamp 1722290069 [22:16:10]current date 1722291371 [22:16:10]FM_GetShiftState [22:16:10]SAM_PROTO_GetShiftState [22:16:10]wFMCommunicate request_size=4 [22:16:10]MH_SAM_APDU [22:16:10]CAPDU: 80 13 01 00 [22:16:10]Write to MH i2c: E2 08 00 4D 03 80 13 01 00 00 00 00 00 CD [22:16:10]Write i2c OK [22:16:10]MH_I2C_Read... [22:16:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:16:10]Read from MH i2c: E2 [22:16:10]MH_I2C_Read... [22:16:10]Read from MH i2c: E2 0E 00 [22:16:10]MH_I2C_Read... [22:16:10]Read from MH i2c: E2 0E 00 4D 03 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 69 [22:16:10]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [22:16:10]wFMCommunicate OK [22:16:10]SAM_PROTO_GetShiftState done [22:16:10]FM_GetShiftState done [22:16:10]opened in 1722211496 [22:16:10]opened+sec_in_day 1722297896 [22:16:10]quantity*price = 42000 [22:16:10]sum+1 = 42001 [22:16:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 420.00 НСП 1% : 3.72 НДС 12% : 44.60 Наличными: 0.00 Безнал.: 420.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 156 29.07.2024 22:16 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874958 ФД: 41967 ФПД: 28768119054867 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T221611&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41967&fm=28768119054867&tin=02508201610067®Number=0000000000092626&sum=42000 0 [22:16:12]StoreToDocumentArchive [22:16:12]shift 427 fd 41967 [22:16:12]save to /storage/0427/doc_00041967 [22:16:12]save last doc name /storage/0427/doc_00041967 to /storage/kkm_last_doc_name [22:16:12]save OK [22:16:12]Clear old archive folders... [22:16:12]ProcessDocumentItem done err = 0, tmpTLVsize=280 [22:16:12]tlvbuf is 01271810 [22:16:12]SAM_PROTO_ClearQueue [22:16:12]wFMCommunicate request_size=4 [22:16:12]MH_SAM_APDU [22:16:12]CAPDU: 80 09 00 00 [22:16:12]Write to MH i2c: E2 08 00 5A 03 80 09 00 00 00 00 00 00 CF [22:16:12]Write i2c OK [22:16:12]MH_I2C_Read... [22:16:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:16:12]Read from MH i2c: E2 [22:16:12]MH_I2C_Read... [22:16:12]Read from MH i2c: E2 03 00 [22:16:12]MH_I2C_Read... [22:16:12]Read from MH i2c: E2 03 00 5A 03 00 90 00 D1 [22:16:12]RAPDU: 90 00 [22:16:12]wFMCommunicate OK [22:16:12]SAM_PROTO_ClearQueue done [22:16:12]KKMCreateOFDPacket [22:16:12]OFDProtocolAddRootSTLVToBuf [22:16:12]FM_MakeSignedData [22:16:12]FM_MakeSignedData [22:16:12]SAM_PROTO_SignData [22:16:12]wFMCommunicate request_size=4 [22:16:12]MH_SAM_APDU [22:16:12]CAPDU: 80 0D 01 02 [22:16:12]Write to MH i2c: E2 08 00 5B 03 80 0D 01 02 00 00 00 00 D7 [22:16:12]Write i2c OK [22:16:12]MH_I2C_Read... [22:16:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:16:12]Read from MH i2c: E2 [22:16:12]MH_I2C_Read... [22:16:12]Read from MH i2c: E2 03 00 [22:16:12]MH_I2C_Read... [22:16:12]Read from MH i2c: E2 03 00 5B 03 00 90 00 D2 [22:16:12]RAPDU: 90 00 [22:16:12]wFMCommunicate OK [22:16:12]wFMCommunicate request_size=255 [22:16:12]MH_SAM_APDU [22:16:12]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 38 30 31 31 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 50 4E 20 44 69 65 73 65 6C 20 45 78 74 72 61 20 31 30 57 2D 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 A4 00 00 00 00 13 04 06 00 10 A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 A4 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 AB 14 A8 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 [22:16:12]Write to MH i2c: E2 02 01 5C 03 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 38 30 31 31 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 50 4E 20 44 69 65 73 65 6C 20 45 78 74 72 61 20 31 30 57 2D 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 A4 00 00 00 00 13 04 06 00 10 A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 A4 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 AB 14 A8 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 00 00 E5 [22:16:12]Write i2c OK [22:16:12]MH_I2C_Read... [22:16:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:16:12]Read from MH i2c: E2 [22:16:12]MH_I2C_Read... [22:16:12]Read from MH i2c: E2 03 00 [22:16:12]MH_I2C_Read... [22:16:12]Read from MH i2c: E2 03 00 5C 03 00 90 00 D3 [22:16:12]RAPDU: 90 00 [22:16:12]wFMCommunicate OK [22:16:12]wFMCommunicate request_size=39 [22:16:12]MH_SAM_APDU [22:16:12]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 EF A3 00 00 35 04 06 00 1A 2A 19 84 62 13 [22:16:12]Write to MH i2c: E2 2A 00 5D 03 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 EF A3 00 00 35 04 06 00 1A 2A 19 84 62 13 00 00 86 [22:16:12]Write i2c OK [22:16:12]MH_I2C_Read... [22:16:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:16:12]Read from MH i2c: E2 [22:16:12]MH_I2C_Read... [22:16:12]Read from MH i2c: E2 03 00 [22:16:12]MH_I2C_Read... [22:16:12]Read from MH i2c: E2 03 00 5D 03 00 90 00 D4 [22:16:12]RAPDU: 90 00 [22:16:12]wFMCommunicate OK [22:16:12]wFMCommunicate request_size=4 [22:16:12]MH_SAM_APDU [22:16:12]CAPDU: 80 0D 03 02 [22:16:12]Write to MH i2c: E2 08 00 5E 03 80 0D 03 02 00 00 00 00 DC [22:16:12]Write i2c OK [22:16:12]MH_I2C_Read... [22:16:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:16:12]Read from MH i2c: E2 [22:16:12]MH_I2C_Read... [22:16:12]Read from MH i2c: E2 0B 00 [22:16:12]MH_I2C_Read... [22:16:12]Read from MH i2c: E2 0B 00 5E 03 00 42 AF FE 07 A7 C4 14 F7 90 00 49 [22:16:12]RAPDU: 42 AF FE 07 A7 C4 14 F7 90 00 [22:16:12]wFMCommunicate OK [22:16:12]SAM_PROTO_SignData done [22:16:12]FM_MakeSignedData done [22:16:12]CreateOFDProtocolMessage [22:16:12]wFMCommunicate request_size=4 [22:16:12]MH_SAM_APDU [22:16:12]CAPDU: 80 11 00 00 [22:16:12]Write to MH i2c: E2 08 00 5F 03 80 11 00 00 00 00 00 00 DC [22:16:12]Write i2c OK [22:16:12]MH_I2C_Read... [22:16:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:16:12]Read from MH i2c: E2 [22:16:12]MH_I2C_Read... [22:16:12]Read from MH i2c: E2 17 00 [22:16:12]MH_I2C_Read... [22:16:12]Read from MH i2c: E2 17 00 5F 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 38 [22:16:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [22:16:12]wFMCommunicate OK [22:16:12]CreateOFDProtocolMessage done [22:16:12]OFDSenderStorePacket 41967 [22:16:12]StoreOFDPacket docnum=41967 [22:16:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 2C 01 00 00 61 CA 24 01 DA F7 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 38 30 31 31 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 50 4E 20 44 69 65 73 65 6C 20 45 78 74 72 61 20 31 30 57 2D 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 A4 00 00 00 00 13 04 06 00 10 A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 A4 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 AB 14 A8 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 EF A3 00 00 35 04 06 00 1A 2A 19 84 62 13 42 AF FE 07 A7 C4 14 F7 [22:16:12]CheckFolder [22:16:12]dirname=/storage/ofd_packets [22:16:12]CheckFolder done [22:16:12]ProducePacketName [22:16:12]name=ofd_packets/00041967 [22:16:12]NVStorageSaveData ofd_packets/00041967 [22:16:12]File name is /storage/ofd_packets/00041967 [22:16:12]Write 330 bytes [22:16:12]NVStorageSaveData done [22:16:12]OFDSenderStorePacket done [22:16:12]KKMCreateOFDPacket done [22:16:12]NVStorageSaveData kkm_last_timestamp [22:16:12]File name is /storage/kkm_last_timestamp [22:16:12]Write 4 bytes [22:16:12]NVStorageSaveData done [22:16:12]ExternCall_PrintAddStr [22:16:12]wPrintStart [22:16:12]Write to MH i2c: 01 00 00 60 03 63 [22:16:12]Write i2c OK [22:16:12]MH_I2C_Read... [22:16:12]Read from MH i2c: 01 [22:16:12]MH_I2C_Read... [22:16:12]Read from MH i2c: 01 07 00 [22:16:12]MH_I2C_Read... [22:16:12]Read from MH i2c: 01 07 00 60 03 00 00 00 00 00 FF 0F 78 [22:16:12]RasterBufferAndPrint [22:16:12]line Счет N : (3)183996 [22:16:12]line ИНН: 02508201610067 [22:16:12]line Контрольно-Кассовый Чек [22:16:12]line ПРОДАЖА [22:16:12]line Товар: 4650063118011 [22:16:12]line Масло GPN Diesel Extra 10W-40 1л [22:16:12]line 1.000 * 420.00 [22:16:12]line = 420.00 [22:16:12]line НДС 12% НСП 1% [22:16:12]line > о реализуемом товаре [22:16:12]line ИТОГО: 420.00 [22:16:12]line НСП 1% : 3.72 [22:16:12]line НДС 12% : 44.60 [22:16:12]line Наличными: 0.00 [22:16:12]line Безнал.: 420.00 [22:16:12]line Место: АЗС № 97 "Партнер Нефть" [22:16:12]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [22:16:12]line СНО: Общий режим [22:16:12]line Чек 156 29.07.2024 22:16 [22:16:12]line Смена: 427 ФФД: 1.0 [22:16:12]line ЗНМ: 0300000053 [22:16:12]line РНМ: 0000000000092626 [22:16:12]line Версия ККМ: 001 [22:16:12]line Платежная система: O! деньги [22:16:12]line ФМ: 0000000000874958 [22:16:12]line ФД: 41967 [22:16:12]line ФПД: 28768119054867 [22:16:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T221611&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41967&fm=28768119054867&tin=02508201610067®Number=0000000000092626&sum=42000 [22:16:12]line 0 [22:16:12]OFD Sender: Processing packet 41967 [packets to send 57, broken 56] [22:16:12]ProducePacketName [22:16:12]name=ofd_packets/00041967 [22:16:12]OFD Sender: To server: pG, [22:16:12]CommunicateWithHost lk.salyk.kg:30040 [22:16:12]ConnectInit lk.salyk.kg [22:16:12]written 0, free lines is 4095 [22:16:13]Connected sock=8 [22:16:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 2C 01 00 00 61 CA 24 01 DA F7 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 38 30 31 31 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 50 4E 20 44 69 65 73 65 6C 20 45 78 74 72 61 20 31 30 57 2D 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 A4 00 00 00 00 13 04 06 00 10 A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 A4 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 AB 14 A8 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 EF A3 00 00 35 04 06 00 1A 2A 19 84 62 13 42 AF FE 07 A7 C4 14 F7 [22:16:13]Write to MH i2c: 01 00 00 8B 03 8E [22:16:13]Write i2c OK [22:16:13]MH_I2C_Read... [22:16:13]Read from MH i2c: 01 [22:16:13]MH_I2C_Read... [22:16:13]Read from MH i2c: 01 07 00 [22:16:13]MH_I2C_Read... [22:16:13]Read from MH i2c: 01 07 00 8B 03 00 00 00 00 00 EE 0C 8F [22:16:13]RasterBufferAndPrint [22:16:13]line [22:16:13]line [22:16:13]line [22:16:13]line [22:16:13]line [22:16:13]written 0, free lines is 3317 [22:16:13]MH_Cut [22:16:13]Write to MH i2c: D1 01 00 92 03 01 67 [22:16:13]Write i2c OK [22:16:13]MH_I2C_Read... [22:16:13]Read from MH i2c: D1 [22:16:13]MH_I2C_Read... [22:16:13]Read from MH i2c: D1 01 00 [22:16:13]MH_I2C_Read... [22:16:13]Read from MH i2c: D1 01 00 92 03 00 66 [22:16:13]Write to MH i2c: 01 00 00 93 03 96 [22:16:13]Write i2c OK [22:16:13]MH_I2C_Read... [22:16: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 35 38 4F 00 00 00 64 46 47 00 7A BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 EF A3 00 00 F4 03 04 00 C1 C0 A7 66 B6 04 01 00 00 E2 76 12 98 D0 D6 C8 AD [22:16:13]CommunicateWithHost err = 0 [22:16:13]CheckOFDResponse [22:16:13]1017 (14) - 77093643461234 [22:16:13]1041 (16) - 0000000000874958 [22:16:13]1040 (4) - 41967 [22:16:13]1012 (4) - 29.07.2024 16:18 [22:16:13]1206 (1) - 0 [22:16:13]OFD Sender: Remove packet 41967 [22:16:13]ProducePacketName [22:16:13]name=ofd_packets/00041967 [22:16:13]NVStorageDeleteData [22:16:14]*** Cut start [22:16:14]*** Partial cut [22:16:14]*** CUTSNS_PIN = 1 [22:16:14]*** CUTSNS_PIN = 0 [22:16:14]OFD Sender: No OFD packet to send [22:16:14]*** Brake cut motor [22:16:14]Read from MH i2c: 01 [22:16:14]MH_I2C_Read... [22:16:14]*** Stop cut motor [22:16:14]*** Cut end [22:16:14]Read from MH i2c: 01 07 00 [22:16:14]MH_I2C_Read... [22:16:14]Read from MH i2c: 01 07 00 93 03 00 00 00 00 00 FF 0F AB [22:16:14]process_action close_receipt done [22:16:14]requested_data is exist [22:16:14]produce_requested_data [22:16:14]requested_item fm.sn is exist - process it [22:16:14]wFMCommunicate request_size=4 [22:16:14]MH_SAM_APDU [22:16:14]CAPDU: 80 11 00 00 [22:16:14]Write to MH i2c: E2 08 00 94 03 80 11 00 00 00 00 00 00 11 [22:16:14]Write i2c OK [22:16:14]MH_I2C_Read... [22:16:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:16:14]Read from MH i2c: E2 [22:16:14]MH_I2C_Read... [22:16:14]Read from MH i2c: E2 17 00 [22:16:14]MH_I2C_Read... [22:16:14]Read from MH i2c: E2 17 00 94 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 6D [22:16:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [22:16:14]wFMCommunicate OK [22:16:14]requested_item fd.num is exist - process it [22:16:14]SAM_PROTO_GetFieldsCounters [22:16:14]wFMCommunicate request_size=4 [22:16:14]MH_SAM_APDU [22:16:14]CAPDU: 80 13 00 00 [22:16:14]Write to MH i2c: E2 08 00 95 03 80 13 00 00 00 00 00 00 14 [22:16:14]Write i2c OK [22:16:14]MH_I2C_Read... [22:16:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:16:15]Read from MH i2c: E2 [22:16:15]MH_I2C_Read... [22:16:15]Read from MH i2c: E2 62 00 [22:16:15]MH_I2C_Read... [22:16:15]Read from MH i2c: E2 62 00 95 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 EF A3 00 00 0E 04 04 00 AB 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 50 [22:16:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 EF A3 00 00 0E 04 04 00 AB 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 [22:16:15]wFMCommunicate OK [22:16:15]SAM_PROTO_GetFieldsCounters done [22:16:15]requested_item shift.num is exist - process it [22:16:15]requested_item shift.opened is exist - process it [22:16:15]req_shift_opened [22:16:15]FM_GetShiftState [22:16:15]SAM_PROTO_GetShiftState [22:16:15]wFMCommunicate request_size=4 [22:16:15]MH_SAM_APDU [22:16:15]CAPDU: 80 13 01 00 [22:16:15]Write to MH i2c: E2 08 00 96 03 80 13 01 00 00 00 00 00 16 [22:16:15]Write i2c OK [22:16:15]MH_I2C_Read... [22:16:15]Read from MH i2c: E2 [22:16:15]MH_I2C_Read... [22:16:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:16:15]Read from MH i2c: E2 0E 00 [22:16:15]MH_I2C_Read... [22:16:15]Read from MH i2c: E2 0E 00 96 03 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 B2 [22:16:15]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [22:16:15]wFMCommunicate OK [22:16:15]SAM_PROTO_GetShiftState done [22:16:15]FM_GetShiftState done [22:16:15]req_shift_opened done [22:16:15]requested_item shift.open_date is exist - process it [22:16:15]req_shift_open_date [22:16:15]req_shift_open_date done [22:16:15]produce_requested_data done [22:16:15]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41967,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [22:16:15]process_action_free close_receipt [22:16:15]json_value_free [22:16:15]json_value_free done [22:16:15]process_json_proto returns [22:16:15]Send response to host [22:16:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41967,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [22:16:15]free response buf [22:16:15]execute_script done [22:16:15]execute_script returns [22:16:15]free content buf [22:16:15]Sock 9.Close socket [22:16:15]Sock 9.Thread stoped [22:16:19]OFD Sender: No OFD packet to send [22:16:24]OFD Sender: No OFD packet to send [22:16:28]recv_with_timeout no data received [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:00]recv_with_timeout no data received [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:24]OFD Sender: No OFD packet to send [22:18:29]OFD Sender: No OFD packet to send [22:18:34]OFD Sender: No OFD packet to send [22:18:39]OFD Sender: No OFD packet to send [22:18:44]OFD Sender: No OFD packet to send [22:18:49]OFD Sender: No OFD packet to send [22:18:54]OFD Sender: No OFD packet to send [22:18:59]OFD Sender: No OFD packet to send [22:19:04]OFD Sender: No OFD packet to send [22:19:09]OFD Sender: No OFD packet to send [22:19:14]OFD Sender: No OFD packet to send [22:19:19]OFD Sender: No OFD packet to send [22:19:24]OFD Sender: No OFD packet to send [22:19:29]OFD Sender: No OFD packet to send [22:19:33]recv_with_timeout no data received [22:19:34]OFD Sender: No OFD packet to send [22:19:39]OFD Sender: No OFD packet to send [22:19:44]OFD Sender: No OFD packet to send [22:19:49]OFD Sender: No OFD packet to send [22:19:54]OFD Sender: No OFD packet to send [22:19:59]OFD Sender: No OFD packet to send [22:20:04]OFD Sender: No OFD packet to send [22:20:09]OFD Sender: No OFD packet to send [22:20:14]OFD Sender: No OFD packet to send [22:20:19]OFD Sender: No OFD packet to send [22:20:24]OFD Sender: No OFD packet to send [22:20:29]OFD Sender: No OFD packet to send [22:20:32]recv_with_timeout no data received [22:20:34]OFD Sender: No OFD packet to send [22:20:39]OFD Sender: No OFD packet to send [22:20:44]OFD Sender: No OFD packet to send [22:20:49]OFD Sender: No OFD packet to send [22:20:54]OFD Sender: No OFD packet to send [22:20:59]OFD Sender: No OFD packet to send [22:21:04]OFD Sender: No OFD packet to send [22:21:09]OFD Sender: No OFD packet to send [22:21:14]OFD Sender: No OFD packet to send [22:21:19]OFD Sender: No OFD packet to send [22:21:24]OFD Sender: No OFD packet to send [22:21:29]OFD Sender: No OFD packet to send [22:21:34]OFD Sender: No OFD packet to send [22:21:37]recv_with_timeout no data received [22:21:39]OFD Sender: No OFD packet to send [22:21:44]OFD Sender: No OFD packet to send [22:21:49]OFD Sender: No OFD packet to send [22:21:54]OFD Sender: No OFD packet to send [22:21:59]OFD Sender: No OFD packet to send [22:22:04]OFD Sender: No OFD packet to send [22:22:09]OFD Sender: No OFD packet to send [22:22:14]OFD Sender: No OFD packet to send [22:22:19]OFD Sender: No OFD packet to send [22:22:24]OFD Sender: No OFD packet to send [22:22:29]OFD Sender: No OFD packet to send [22:22:34]OFD Sender: No OFD packet to send [22:22:39]OFD Sender: No OFD packet to send [22:22:44]OFD Sender: No OFD packet to send [22:22:49]OFD Sender: No OFD packet to send [22:22:54]OFD Sender: No OFD packet to send [22:22:59]OFD Sender: No OFD packet to send [22:23:04]OFD Sender: No OFD packet to send [22:23:09]recv_with_timeout no data received [22:23:09]OFD Sender: No OFD packet to send [22:23:14]OFD Sender: No OFD packet to send [22:23:19]OFD Sender: No OFD packet to send [22:23:24]OFD Sender: No OFD packet to send [22:23:28]accept exits with 10 [22:23:28]New connection [22:23:28]New thread 3067506020 created [22:23:28]Thread 3067362660 joined [22:23:28]Waiting for new connection... [22:23:28] Sock 10.Parse request [22:23:28]Sock 10.Check first char [22:23:28]Sock 10.First char is OK [22:23:28]request: POST /json_proto HTTP/1.0 [22:23:28]Method: POST [22:23:28]URL: /json_proto [22:23:28]Method is POST - this is cgi request [22:23:28]url: /json_proto [22:23:28]query_string will be loaded in cgi processing [22:23:28]execute_cgi json_proto POST (null) [22:23:28]execute_cgi path=json_proto method=POST [22:23:28]POST find Content-Length [22:23:28]Host: 172.17.43.132:8080 [22:23:28]Content-Length: 715 [22:23:28]Content-Type: application/json [22:23:28] [22:23:28]POST finish read [22:23:28]Found Content-Length = 715 [22:23:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183997", "tax_sys" : 0, "items" : [ { "code": "4700001060879", "name": "\u041D\u0430\u0441\u0442\u043E\u0439\u043A\u0430 \u0428\u043E\u043A\u043E\u043B\u0430\u0434 \u043D\u0430 \u043A\u043E\u043D\u044C\u044F\u043A\u0435 0,2\u043B", "price" : 200.00, "quantity" : 1.000, "sum" : 200.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:23:28]execute_script... [22:23:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183997", "tax_sys" : 0, "items" : [ { "code": "4700001060879", "name": "\u041D\u0430\u0441\u0442\u043E\u0439\u043A\u0430 \u0428\u043E\u043A\u043E\u043B\u0430\u0434 \u043D\u0430 \u043A\u043E\u043D\u044C\u044F\u043A\u0435 0,2\u043B", "price" : 200.00, "quantity" : 1.000, "sum" : 200.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:23:28]POST & json_proto [22:23:28]process_json_proto [22:23:28]json parsed OK: [22:23:28]protocol is kg_v1.0 [22:23:28]action value=close_receipt [22:23:28]process_action close_receipt [22:23:28]cmd_close_receipt [22:23:28]MH_GetDate [22:23:28]Write to MH i2c: F0 00 00 97 03 89 [22:23:28]Write i2c OK [22:23:28]MH_I2C_Read... [22:23:28]Read from MH i2c: F0 [22:23:28]MH_I2C_Read... [22:23:28]Read from MH i2c: F0 09 00 [22:23:28]MH_I2C_Read... [22:23:28]Read from MH i2c: F0 09 00 97 03 00 61 16 A8 66 64 A3 A7 66 2B [22:23:28]GetLastDocTimeStamp 1722291371 [22:23:28]current date 1722291809 [22:23:28]FM_GetShiftState [22:23:28]SAM_PROTO_GetShiftState [22:23:28]wFMCommunicate request_size=4 [22:23:28]MH_SAM_APDU [22:23:28]CAPDU: 80 13 01 00 [22:23:28]Write to MH i2c: E2 08 00 98 03 80 13 01 00 00 00 00 00 18 [22:23:28]Write i2c OK [22:23:28]MH_I2C_Read... [22:23:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:23:28]Read from MH i2c: E2 [22:23:28]MH_I2C_Read... [22:23:28]Read from MH i2c: E2 0E 00 [22:23:28]MH_I2C_Read... [22:23:28]Read from MH i2c: E2 0E 00 98 03 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 B4 [22:23:28]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [22:23:28]wFMCommunicate OK [22:23:28]SAM_PROTO_GetShiftState done [22:23:28]FM_GetShiftState done [22:23:28]opened in 1722211496 [22:23:28]opened+sec_in_day 1722297896 [22:23:28]quantity*price = 20000 [22:23:28]sum+1 = 20001 [22:23:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 157 29.07.2024 22:23 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41968 ФПД: 88920747854293 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T222329&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41968&fm=88920747854293&tin=02508201610067®Number=0000000000092626&sum=20000 0 [22:23:30]StoreToDocumentArchive [22:23:30]shift 427 fd 41968 [22:23:30]save to /storage/0427/doc_00041968 [22:23:30]save last doc name /storage/0427/doc_00041968 to /storage/kkm_last_doc_name [22:23:30]save OK [22:23:30]Clear old archive folders... [22:23:30]ProcessDocumentItem done err = 0, tmpTLVsize=299 [22:23:30]tlvbuf is 01295FA0 [22:23:30]SAM_PROTO_ClearQueue [22:23:30]wFMCommunicate request_size=4 [22:23:30]MH_SAM_APDU [22:23:30]CAPDU: 80 09 00 00 [22:23:30]Write to MH i2c: E2 08 00 A5 03 80 09 00 00 00 00 00 00 1A [22:23:30]Write i2c OK [22:23:30]MH_I2C_Read... [22:23:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:23:30]Read from MH i2c: E2 [22:23:30]MH_I2C_Read... [22:23:30]Read from MH i2c: E2 03 00 [22:23:30]MH_I2C_Read... [22:23:30]Read from MH i2c: E2 03 00 A5 03 00 90 00 1C [22:23:30]RAPDU: 90 00 [22:23:30]wFMCommunicate OK [22:23:30]SAM_PROTO_ClearQueue done [22:23:30]KKMCreateOFDPacket [22:23:30]OFDProtocolAddRootSTLVToBuf [22:23:30]FM_MakeSignedData [22:23:30]FM_MakeSignedData [22:23:30]SAM_PROTO_SignData [22:23:30]wFMCommunicate request_size=4 [22:23:30]MH_SAM_APDU [22:23:30]CAPDU: 80 0D 01 02 [22:23:30]Write to MH i2c: E2 08 00 A6 03 80 0D 01 02 00 00 00 00 22 [22:23:30]Write i2c OK [22:23:30]MH_I2C_Read... [22:23:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:23:30]Read from MH i2c: E2 [22:23:30]MH_I2C_Read... [22:23:30]Read from MH i2c: E2 03 00 [22:23:30]MH_I2C_Read... [22:23:30]Read from MH i2c: E2 03 00 A6 03 00 90 00 1D [22:23:30]RAPDU: 90 00 [22:23:30]wFMCommunicate OK [22:23:30]wFMCommunicate request_size=255 [22:23:30]MH_SAM_APDU [22:23:30]CAPDU: 80 0D 02 02 FA 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 38 37 39 06 04 39 00 D0 9D D0 B0 D1 81 D1 82 D0 BE D0 B9 D0 BA D0 B0 20 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 D0 BD D0 B0 20 D0 BA D0 BE D0 BD D1 8C D1 8F D0 BA D0 B5 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 4E 00 00 00 00 13 04 06 00 20 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 9D 00 00 00 F4 03 04 00 61 16 A8 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 [22:23:30]Write to MH i2c: E2 02 01 A7 03 80 0D 02 02 FA 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 38 37 39 06 04 39 00 D0 9D D0 B0 D1 81 D1 82 D0 BE D0 B9 D0 BA D0 B0 20 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 D0 BD D0 B0 20 D0 BA D0 BE D0 BD D1 8C D1 8F D0 BA D0 B5 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 4E 00 00 00 00 13 04 06 00 20 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 9D 00 00 00 F4 03 04 00 61 16 A8 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 00 00 51 [22:23:30]Write i2c OK [22:23:30]MH_I2C_Read... [22:23:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:23:30]Read from MH i2c: E2 [22:23:30]MH_I2C_Read... [22:23:30]Read from MH i2c: E2 03 00 [22:23:30]MH_I2C_Read... [22:23:30]Read from MH i2c: E2 03 00 A7 03 00 90 00 1E [22:23:30]RAPDU: 90 00 [22:23:30]wFMCommunicate OK [22:23:30]wFMCommunicate request_size=58 [22:23:30]MH_SAM_APDU [22:23:30]CAPDU: 80 0D 02 02 35 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 F0 A3 00 00 35 04 06 00 50 DF 79 96 C9 D5 [22:23:30]Write to MH i2c: E2 3D 00 A8 03 80 0D 02 02 35 00 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 F0 A3 00 00 35 04 06 00 50 DF 79 96 C9 D5 00 00 8C [22:23:30]Write i2c OK [22:23:30]MH_I2C_Read... [22:23:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:23:30]Read from MH i2c: E2 [22:23:30]MH_I2C_Read... [22:23:30]Read from MH i2c: E2 03 00 [22:23:30]MH_I2C_Read... [22:23:30]Read from MH i2c: E2 03 00 A8 03 00 90 00 1F [22:23:30]RAPDU: 90 00 [22:23:30]wFMCommunicate OK [22:23:30]wFMCommunicate request_size=4 [22:23:30]MH_SAM_APDU [22:23:30]CAPDU: 80 0D 03 02 [22:23:30]Write to MH i2c: E2 08 00 A9 03 80 0D 03 02 00 00 00 00 27 [22:23:30]Write i2c OK [22:23:30]MH_I2C_Read... [22:23:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:23:30]Read from MH i2c: E2 [22:23:30]MH_I2C_Read... [22:23:30]Read from MH i2c: E2 0B 00 [22:23:30]MH_I2C_Read... [22:23:30]Read from MH i2c: E2 0B 00 A9 03 00 0F 51 07 0A E5 7A F4 30 90 00 1C [22:23:30]RAPDU: 0F 51 07 0A E5 7A F4 30 90 00 [22:23:30]wFMCommunicate OK [22:23:30]SAM_PROTO_SignData done [22:23:30]FM_MakeSignedData done [22:23:30]CreateOFDProtocolMessage [22:23:30]wFMCommunicate request_size=4 [22:23:30]MH_SAM_APDU [22:23:30]CAPDU: 80 11 00 00 [22:23:30]Write to MH i2c: E2 08 00 AA 03 80 11 00 00 00 00 00 00 27 [22:23:30]Write i2c OK [22:23:30]MH_I2C_Read... [22:23:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:23:30]Read from MH i2c: E2 [22:23:30]MH_I2C_Read... [22:23:30]Read from MH i2c: E2 17 00 [22:23:30]MH_I2C_Read... [22:23:30]Read from MH i2c: E2 17 00 AA 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 83 [22:23:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [22:23:30]wFMCommunicate OK [22:23:30]CreateOFDProtocolMessage done [22:23:30]OFDSenderStorePacket 41968 [22:23:30]StoreOFDPacket docnum=41968 [22:23:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 3F 01 00 00 6D 64 37 01 04 0B 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 38 37 39 06 04 39 00 D0 9D D0 B0 D1 81 D1 82 D0 BE D0 B9 D0 BA D0 B0 20 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 D0 BD D0 B0 20 D0 BA D0 BE D0 BD D1 8C D1 8F D0 BA D0 B5 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 4E 00 00 00 00 13 04 06 00 20 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 9D 00 00 00 F4 03 04 00 61 16 A8 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 F0 A3 00 00 35 04 06 00 50 DF 79 96 C9 D5 0F 51 07 0A E5 7A F4 30 [22:23:30]CheckFolder [22:23:30]dirname=/storage/ofd_packets [22:23:30]CheckFolder done [22:23:30]ProducePacketName [22:23:30]name=ofd_packets/00041968 [22:23:30]NVStorageSaveData ofd_packets/00041968 [22:23:30]File name is /storage/ofd_packets/00041968 [22:23:30]Write 349 bytes [22:23:30]NVStorageSaveData done [22:23:30]OFDSenderStorePacket done [22:23:30]KKMCreateOFDPacket done [22:23:30]NVStorageSaveData kkm_last_timestamp [22:23:30]File name is /storage/kkm_last_timestamp [22:23:30]Write 4 bytes [22:23:30]NVStorageSaveData done [22:23:30]ExternCall_PrintAddStr [22:23:30]wPrintStart [22:23:30]Write to MH i2c: 01 00 00 AB 03 AE [22:23:30]Write i2c OK [22:23:30]MH_I2C_Read... [22:23:30]Read from MH i2c: 01 [22:23:30]MH_I2C_Read... [22:23:30]Read from MH i2c: 01 07 00 [22:23:30]MH_I2C_Read... [22:23:30]Read from MH i2c: 01 07 00 AB 03 00 00 00 00 00 FF 0F C3 [22:23:30]RasterBufferAndPrint [22:23:30]line Счет N : (3)183997 [22:23:30]line ИНН: 02508201610067 [22:23:30]line Контрольно-Кассовый Чек [22:23:30]line ПРОДАЖА [22:23:30]line Товар: 4700001060879 [22:23:30]line Настойка Шоколад на коньяке 0,2л [22:23:30]line 1.000 * 200.00 [22:23:30]line = 200.00 [22:23:30]line НДС 12% НСП 1% [22:23:30]line > о реализуемом товаре [22:23:30]line ИТОГО: 200.00 [22:23:30]line НСП 1% : 1.77 [22:23:30]line НДС 12% : 21.24 [22:23:30]line Наличными: 200.00 [22:23:30]line Безнал.: 0.00 [22:23:30]line Место: АЗС № 97 "Партнер Нефть" [22:23:30]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [22:23:30]line СНО: Общий режим [22:23:30]line Чек 157 29.07.2024 22:23 [22:23:30]line Смена: 427 ФФД: 1.0 [22:23:30]line ЗНМ: 0300000053 [22:23:30]line РНМ: 0000000000092626 [22:23:30]line Версия ККМ: 001 [22:23:30]line ФМ: 0000000000874958 [22:23:30]line ФД: 41968 [22:23:30]line ФПД: 88920747854293 [22:23:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T222329&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41968&fm=88920747854293&tin=02508201610067®Number=0000000000092626&sum=20000 [22:23:30]line 0 [22:23:30]OFD Sender: Processing packet 41968 [packets to send 57, broken 56] [22:23:30]ProducePacketName [22:23:30]name=ofd_packets/00041968 [22:23:30]OFD Sender: To server: pG, [22:23:30]CommunicateWithHost lk.salyk.kg:30040 [22:23:30]ConnectInit lk.salyk.kg [22:23:30]written 0, free lines is 4095 [22:23:31]Write to MH i2c: 01 00 00 D4 03 D7 [22:23:31]Write i2c OK [22:23:31]MH_I2C_Read... [22:23:31]Read from MH i2c: 01 [22:23:31]MH_I2C_Read... [22:23:31]Read from MH i2c: 01 07 00 [22:23:31]MH_I2C_Read... [22:23:31]Read from MH i2c: 01 07 00 D4 03 00 00 00 00 00 FD 0C E7 [22:23:31]RasterBufferAndPrint [22:23:31]line [22:23:31]line [22:23:31]line [22:23:31]line [22:23:31]line [22:23:31]written 0, free lines is 3334 [22:23:31]MH_Cut [22:23:31]Write to MH i2c: D1 01 00 DB 03 01 B0 [22:23:31]Write i2c OK [22:23:31]MH_I2C_Read... [22:23:31]Read from MH i2c: D1 [22:23:31]MH_I2C_Read... [22:23:31]Read from MH i2c: D1 01 00 [22:23:31]MH_I2C_Read... [22:23:31]Read from MH i2c: D1 01 00 DB 03 00 AF [22:23:31]Write to MH i2c: 01 00 00 DC 03 DF [22:23:31]Write i2c OK [22:23:31]MH_I2C_Read... [22:23:32]*** Cut start [22:23:32]*** Partial cut [22:23:32]*** CUTSNS_PIN = 1 [22:23:32]*** CUTSNS_PIN = 0 [22:23:32]*** Brake cut motor [22:23:32]Read from MH i2c: 01 [22:23:32]MH_I2C_Read... [22:23:32]*** Stop cut motor [22:23:32]*** Cut end [22:23:32]Read from MH i2c: 01 07 00 [22:23:32]MH_I2C_Read... [22:23:32]Read from MH i2c: 01 07 00 DC 03 00 00 00 00 00 FF 0F F4 [22:23:32]process_action close_receipt done [22:23:32]requested_data is exist [22:23:32]produce_requested_data [22:23:32]requested_item fm.sn is exist - process it [22:23:32]wFMCommunicate request_size=4 [22:23:32]MH_SAM_APDU [22:23:32]CAPDU: 80 11 00 00 [22:23:32]Write to MH i2c: E2 08 00 DD 03 80 11 00 00 00 00 00 00 5A [22:23:32]Write i2c OK [22:23:32]MH_I2C_Read... [22:23:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:23:32]Read from MH i2c: E2 [22:23:32]MH_I2C_Read... [22:23:32]Read from MH i2c: E2 17 00 [22:23:32]MH_I2C_Read... [22:23:32]Read from MH i2c: E2 17 00 DD 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 B6 [22:23:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [22:23:32]wFMCommunicate OK [22:23:32]requested_item fd.num is exist - process it [22:23:32]SAM_PROTO_GetFieldsCounters [22:23:32]wFMCommunicate request_size=4 [22:23:32]MH_SAM_APDU [22:23:32]CAPDU: 80 13 00 00 [22:23:32]Write to MH i2c: E2 08 00 DE 03 80 13 00 00 00 00 00 00 5D [22:23:32]Write i2c OK [22:23:32]MH_I2C_Read... [22:23:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:23:33]Read from MH i2c: E2 [22:23:33]MH_I2C_Read... [22:23:33]Read from MH i2c: E2 62 00 [22:23:33]MH_I2C_Read... [22:23:33]Read from MH i2c: E2 62 00 DE 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 F0 A3 00 00 0E 04 04 00 AB 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 9D [22:23: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 F0 A3 00 00 0E 04 04 00 AB 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 [22:23:33]wFMCommunicate OK [22:23:33]SAM_PROTO_GetFieldsCounters done [22:23:33]requested_item shift.num is exist - process it [22:23:33]requested_item shift.opened is exist - process it [22:23:33]req_shift_opened [22:23:33]FM_GetShiftState [22:23:33]SAM_PROTO_GetShiftState [22:23:33]wFMCommunicate request_size=4 [22:23:33]MH_SAM_APDU [22:23:33]CAPDU: 80 13 01 00 [22:23:33]Write to MH i2c: E2 08 00 DF 03 80 13 01 00 00 00 00 00 5F [22:23:33]Write i2c OK [22:23:33]MH_I2C_Read... [22:23:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:23:33]Read from MH i2c: E2 [22:23:33]MH_I2C_Read... [22:23:33]Read from MH i2c: E2 0E 00 [22:23:33]MH_I2C_Read... [22:23:33]Read from MH i2c: E2 0E 00 DF 03 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 FB [22:23:33]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [22:23:33]wFMCommunicate OK [22:23:33]SAM_PROTO_GetShiftState done [22:23:33]FM_GetShiftState done [22:23:33]req_shift_opened done [22:23:33]requested_item shift.open_date is exist - process it [22:23:33]req_shift_open_date [22:23:33]req_shift_open_date done [22:23:33]produce_requested_data done [22:23:33]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41968,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [22:23:33]process_action_free close_receipt [22:23:33]json_value_free [22:23:33]json_value_free done [22:23:33]process_json_proto returns [22:23:33]Send response to host [22:23:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41968,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [22:23:33]free response buf [22:23:33]execute_script done [22:23:33]execute_script returns [22:23:33]free content buf [22:23:33]Sock 10.Close socket [22:23:33]Sock 10.Thread stoped [22:23:34]Connected sock=8 [22:23: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 35 38 3F 01 00 00 6D 64 37 01 04 0B 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 38 37 39 06 04 39 00 D0 9D D0 B0 D1 81 D1 82 D0 BE D0 B9 D0 BA D0 B0 20 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 D0 BD D0 B0 20 D0 BA D0 BE D0 BD D1 8C D1 8F D0 BA D0 B5 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 4E 00 00 00 00 13 04 06 00 20 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 9D 00 00 00 F4 03 04 00 61 16 A8 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 F0 A3 00 00 35 04 06 00 50 DF 79 96 C9 D5 0F 51 07 0A E5 7A F4 30 [22:23:39]recv_with_timeout no data received [22:23:39]CommunicateWithHost answer receiving error [22:23:39]CommunicateWithHost err = -3 [22:25:48]ConnectInit Can't connect to host [22:25:49]ConnectInit Can't take IP for lk.salyk.kg [22:25:49]CommunicateWithHost connect error [22:25:49]CommunicateWithHost err = -1 [22:25:49]OFD Sender: Server communicate error [22:25:54]OFD Sender: Processing packet 41968 [packets to send 57, broken 56] [22:25:54]ProducePacketName [22:25:54]name=ofd_packets/00041968 [22:25:54]OFD Sender: To server: pG, [22:25:54]CommunicateWithHost lk.salyk.kg:30040 [22:25:54]ConnectInit lk.salyk.kg [22:25:59]ConnectInit Can't take IP for lk.salyk.kg [22:25:59]CommunicateWithHost connect error [22:25:59]CommunicateWithHost err = -1 [22:25:59]OFD Sender: Server communicate error [22:26:04]OFD Sender: Processing packet 41968 [packets to send 57, broken 56] [22:26:04]ProducePacketName [22:26:04]name=ofd_packets/00041968 [22:26:04]OFD Sender: To server: pG, [22:26:04]CommunicateWithHost lk.salyk.kg:30040 [22:26:04]ConnectInit lk.salyk.kg [22:26:09]ConnectInit Can't take IP for lk.salyk.kg [22:26:09]CommunicateWithHost connect error [22:26:09]CommunicateWithHost err = -1 [22:26:09]OFD Sender: Server communicate error [22:26:14]OFD Sender: Processing packet 41968 [packets to send 57, broken 56] [22:26:14]ProducePacketName [22:26:14]name=ofd_packets/00041968 [22:26:14]OFD Sender: To server: pG, [22:26:14]CommunicateWithHost lk.salyk.kg:30040 [22:26:14]ConnectInit lk.salyk.kg [22:26:19]ConnectInit Can't take IP for lk.salyk.kg [22:26:19]CommunicateWithHost connect error [22:26:19]CommunicateWithHost err = -1 [22:26:19]OFD Sender: Server communicate error [22:26:24]OFD Sender: Processing packet 41968 [packets to send 57, broken 56] [22:26:24]ProducePacketName [22:26:24]name=ofd_packets/00041968 [22:26:24]OFD Sender: To server: pG, [22:26:24]CommunicateWithHost lk.salyk.kg:30040 [22:26:24]ConnectInit lk.salyk.kg [22:26:29]ConnectInit Can't take IP for lk.salyk.kg [22:26:29]CommunicateWithHost connect error [22:26:29]CommunicateWithHost err = -1 [22:26:29]OFD Sender: Server communicate error [22:26:34]OFD Sender: Processing packet 41968 [packets to send 57, broken 56] [22:26:34]ProducePacketName [22:26:34]name=ofd_packets/00041968 [22:26:34]OFD Sender: To server: pG, [22:26:34]CommunicateWithHost lk.salyk.kg:30040 [22:26:34]ConnectInit lk.salyk.kg [22:26:40]Connected sock=8 [22:26: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 35 38 3F 01 00 00 6D 64 37 01 04 0B 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 38 37 39 06 04 39 00 D0 9D D0 B0 D1 81 D1 82 D0 BE D0 B9 D0 BA D0 B0 20 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 D0 BD D0 B0 20 D0 BA D0 BE D0 BD D1 8C D1 8F D0 BA D0 B5 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 4E 00 00 00 00 13 04 06 00 20 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 9D 00 00 00 F4 03 04 00 61 16 A8 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 F0 A3 00 00 35 04 06 00 50 DF 79 96 C9 D5 0F 51 07 0A E5 7A F4 30 [22:26:45]recv_with_timeout no data received [22:26:45]CommunicateWithHost answer receiving error [22:26:45]CommunicateWithHost err = -3 [22:26:45]OFD Sender: Server communicate error [22:26:50]OFD Sender: Processing packet 41968 [packets to send 57, broken 56] [22:26:50]ProducePacketName [22:26:50]name=ofd_packets/00041968 [22:26:50]OFD Sender: To server: pG, [22:26:50]CommunicateWithHost lk.salyk.kg:30040 [22:26:50]ConnectInit lk.salyk.kg [22:26:51]Connected sock=10 [22:26:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 3F 01 00 00 6D 64 37 01 04 0B 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 38 37 39 06 04 39 00 D0 9D D0 B0 D1 81 D1 82 D0 BE D0 B9 D0 BA D0 B0 20 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 D0 BD D0 B0 20 D0 BA D0 BE D0 BD D1 8C D1 8F D0 BA D0 B5 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 4E 00 00 00 00 13 04 06 00 20 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 9D 00 00 00 F4 03 04 00 61 16 A8 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 F0 A3 00 00 35 04 06 00 50 DF 79 96 C9 D5 0F 51 07 0A E5 7A F4 30 [22:26: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 35 38 4F 00 00 00 EE E1 47 00 3C 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 35 38 10 04 04 00 F0 A3 00 00 F4 03 04 00 3F C3 A7 66 B6 04 01 00 00 03 C0 4F F6 B4 DF AE 75 [22:26:52]CommunicateWithHost err = 0 [22:26:52]CheckOFDResponse [22:26:52]1017 (14) - 77093643461234 [22:26:52]1041 (16) - 0000000000874958 [22:26:52]1040 (4) - 41968 [22:26:52]1012 (4) - 29.07.2024 16:28 [22:26:52]1206 (1) - 0 [22:26:52]OFD Sender: Remove packet 41968 [22:26:52]ProducePacketName [22:26:52]name=ofd_packets/00041968 [22:26:52]NVStorageDeleteData [22:26:52]OFD Sender: No OFD packet to send [22:26:57]OFD Sender: No OFD packet to send [22:27:02]OFD Sender: No OFD packet to send [22:27:07]OFD Sender: No OFD packet to send [22:27:12]OFD Sender: No OFD packet to send [22:27:17]OFD Sender: No OFD packet to send [22:27:22]OFD Sender: No OFD packet to send [22:27:27]OFD Sender: No OFD packet to send [22:27:32]OFD Sender: No OFD packet to send [22:27:37]OFD Sender: No OFD packet to send [22:27:42]OFD Sender: No OFD packet to send [22:27:47]OFD Sender: No OFD packet to send [22:27:52]OFD Sender: No OFD packet to send [22:27:57]OFD Sender: No OFD packet to send [22:28:02]OFD Sender: No OFD packet to send [22:28:07]OFD Sender: No OFD packet to send [22:28:12]OFD Sender: No OFD packet to send [22:28:17]OFD Sender: No OFD packet to send [22:28:22]OFD Sender: No OFD packet to send [22:28:27]OFD Sender: No OFD packet to send [22:28:32]OFD Sender: No OFD packet to send [22:28:37]OFD Sender: No OFD packet to send [22:28:42]OFD Sender: No OFD packet to send [22:28:47]OFD Sender: No OFD packet to send [22:28:50]recv_with_timeout no data received [22:28:52]OFD Sender: No OFD packet to send [22:28:57]OFD Sender: No OFD packet to send [22:29:02]OFD Sender: No OFD packet to send [22:29:07]OFD Sender: No OFD packet to send [22:29:12]OFD Sender: No OFD packet to send [22:29:17]OFD Sender: No OFD packet to send [22:29:22]OFD Sender: No OFD packet to send [22:29:27]OFD Sender: No OFD packet to send [22:29:32]OFD Sender: No OFD packet to send [22:29:37]OFD Sender: No OFD packet to send [22:29:42]OFD Sender: No OFD packet to send [22:29:47]OFD Sender: No OFD packet to send [22:29:52]OFD Sender: No OFD packet to send [22:29:57]OFD Sender: No OFD packet to send [22:30:02]OFD Sender: No OFD packet to send [22:30:07]OFD Sender: No OFD packet to send [22:30:12]OFD Sender: No OFD packet to send [22:30:17]OFD Sender: No OFD packet to send [22:30:37]OFD Sender: No OFD packet to send [22:30:42]OFD Sender: No OFD packet to send [22:30:47]OFD Sender: No OFD packet to send [22:30:52]OFD Sender: No OFD packet to send [22:30:57]OFD Sender: No OFD packet to send [22:31:00]recv_with_timeout no data received [22:31:02]OFD Sender: No OFD packet to send [22:31:07]OFD Sender: No OFD packet to send [22:31:12]OFD Sender: No OFD packet to send [22:31:13]recv_with_timeout no data received [22:31:17]OFD Sender: No OFD packet to send [22:32:01]ConnectInit Can't connect to host [22:32:02]ConnectInit Can't take IP for lk.salyk.kg [22:32:02]CommunicateWithHost connect error [22:32:02]CommunicateWithHost err = -1 [22:32:02]OFD Sender: Server communicate error [22:32:07]OFD Sender: Processing packet 41969 [packets to send 57, broken 56] [22:32:07]ProducePacketName [22:32:07]name=ofd_packets/00041969 [22:32:07]OFD Sender: To server: pG, [22:32:07]CommunicateWithHost lk.salyk.kg:30040 [22:32:07]ConnectInit lk.salyk.kg [22:32:12]ConnectInit Can't take IP for lk.salyk.kg [22:32:12]CommunicateWithHost connect error [22:32:12]CommunicateWithHost err = -1 [22:32:12]OFD Sender: Server communicate error [22:32:18]OFD Sender: Processing packet 41969 [packets to send 57, broken 56] [22:32:18]ProducePacketName [22:32:18]name=ofd_packets/00041969 [22:32:18]OFD Sender: To server: pG, [22:32:18]CommunicateWithHost lk.salyk.kg:30040 [22:32:18]ConnectInit lk.salyk.kg [22:32:22]recv_with_timeout no data received [22:32:23]ConnectInit Can't take IP for lk.salyk.kg [22:32:23]CommunicateWithHost connect error [22:32:23]CommunicateWithHost err = -1 [22:32:23]OFD Sender: Server communicate error [22:32:28]OFD Sender: Processing packet 41969 [packets to send 57, broken 56] [22:32:28]ProducePacketName [22:32:28]name=ofd_packets/00041969 [22:32:28]OFD Sender: To server: pG, [22:32:28]CommunicateWithHost lk.salyk.kg:30040 [22:32:28]ConnectInit lk.salyk.kg [22:32:28]Connected sock=10 [22:32: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 35 38 BA 01 00 00 37 5F B2 01 3A 4E 5A 03 01 00 03 00 A6 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 34 38 33 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 3E 18 A8 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 F1 A3 00 00 35 04 06 00 A0 B0 41 D1 D4 5E A6 92 6F 71 5C BF 50 6C [22:32: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 35 38 4F 00 00 00 31 B6 47 00 CC 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 35 38 10 04 04 00 F1 A3 00 00 F4 03 04 00 90 C4 A7 66 B6 04 01 00 00 F4 44 A1 68 D9 7C 7E DC [22:32:28]CommunicateWithHost err = 0 [22:32:28]CheckOFDResponse [22:32:28]1017 (14) - 77093643461234 [22:32:28]1041 (16) - 0000000000874958 [22:32:28]1040 (4) - 41969 [22:32:28]1012 (4) - 29.07.2024 16:34 [22:32:28]1206 (1) - 0 [22:32:28]OFD Sender: Remove packet 41969 [22:32:28]ProducePacketName [22:32:28]name=ofd_packets/00041969 [22:32:28]NVStorageDeleteData [22:32:29]OFD Sender: No OFD packet to send [22:32:34]OFD Sender: No OFD packet to send [22:32:39]OFD Sender: No OFD packet to send [22:32:42]recv_with_timeout no data received [22:32:44]OFD Sender: No OFD packet to send [22:32:49]OFD Sender: No OFD packet to send [22:32:54]OFD Sender: No OFD packet to send [22:32:59]OFD Sender: No OFD packet to send [22:33:04]OFD Sender: No OFD packet to send [22:33:06]recv_with_timeout no data received [22:33:09]OFD Sender: No OFD packet to send [22:33:14]OFD Sender: No OFD packet to send [22:33:19]OFD Sender: No OFD packet to send [22:33:24]OFD Sender: No OFD packet to send [22:33:29]OFD Sender: No OFD packet to send [22:33:34]OFD Sender: No OFD packet to send [22:33:39]OFD Sender: No OFD packet to send [22:33:44]OFD Sender: No OFD packet to send [22:33:49]OFD Sender: No OFD packet to send [22:33:54]OFD Sender: No OFD packet to send [22:33:59]OFD Sender: No OFD packet to send [22:34:04]OFD Sender: No OFD packet to send [22:34:09]OFD Sender: No OFD packet to send [22:34:14]OFD Sender: No OFD packet to send [22:34:19]OFD Sender: No OFD packet to send [22:34:24]OFD Sender: No OFD packet to send [22:34:29]OFD Sender: No OFD packet to send [22:34:34]OFD Sender: No OFD packet to send [22:34:39]OFD Sender: No OFD packet to send [22:34:44]OFD Sender: No OFD packet to send [22:34:48]recv_with_timeout no data received [22:34:49]OFD Sender: No OFD packet to send [22:34:54]OFD Sender: No OFD packet to send [22:34:59]OFD Sender: No OFD packet to send [22:35:04]OFD Sender: No OFD packet to send [22:35:09]OFD Sender: No OFD packet to send [22:35:14]OFD Sender: No OFD packet to send [22:35:19]OFD Sender: No OFD packet to send [22:35:24]OFD Sender: No OFD packet to send [22:35:29]OFD Sender: No OFD packet to send [22:35:34]OFD Sender: No OFD packet to send [22:35:39]OFD Sender: No OFD packet to send [22:35:44]OFD Sender: No OFD packet to send [22:35:49]OFD Sender: No OFD packet to send [22:35:54]OFD Sender: No OFD packet to send [22:35:59]OFD Sender: No OFD packet to send [22:36:04]OFD Sender: No OFD packet to send [22:36:09]OFD Sender: No OFD packet to send [22:36:12]recv_with_timeout no data received [22:36:14]OFD Sender: No OFD packet to send [22:36:19]OFD Sender: No OFD packet to send [22:36:24]OFD Sender: No OFD packet to send [22:36:29]OFD Sender: No OFD packet to send [22:36:34]OFD Sender: No OFD packet to send [22:36:39]OFD Sender: No OFD packet to send [22:36:44]recv_with_timeout no data received [22:36:44]OFD Sender: No OFD packet to send [22:36:49]OFD Sender: No OFD packet to send [22:36:54]OFD Sender: No OFD packet to send [22:36:59]OFD Sender: No OFD packet to send [22:37:04]OFD Sender: No OFD packet to send [22:37:09]OFD Sender: No OFD packet to send [22:37:14]OFD Sender: No OFD packet to send [22:37:19]OFD Sender: No OFD packet to send [22:37:24]OFD Sender: No OFD packet to send [22:37:29]OFD Sender: No OFD packet to send [22:37:33]recv_with_timeout no data received [22:37:34]OFD Sender: No OFD packet to send [22:37:39]OFD Sender: No OFD packet to send [22:37:44]OFD Sender: No OFD packet to send [22:37:49]OFD Sender: No OFD packet to send [22:37:54]OFD Sender: No OFD packet to send [22:37:59]OFD Sender: No OFD packet to send [22:38:04]OFD Sender: No OFD packet to send [22:38:09]OFD Sender: No OFD packet to send [22:38:14]OFD Sender: No OFD packet to send [22:38:18]recv_with_timeout no data received [22:38:19]OFD Sender: No OFD packet to send [22:38:24]OFD Sender: No OFD packet to send [22:38:29]OFD Sender: No OFD packet to send [22:38:34]OFD Sender: No OFD packet to send [22:38:39]OFD Sender: No OFD packet to send [22:38:44]OFD Sender: No OFD packet to send [22:38:49]OFD Sender: No OFD packet to send [22:38:54]OFD Sender: No OFD packet to send [22:38:59]OFD Sender: No OFD packet to send [22:39:04]OFD Sender: No OFD packet to send [22:39:09]OFD Sender: No OFD packet to send [22:39:14]OFD Sender: No OFD packet to send [22:39:19]OFD Sender: No OFD packet to send [22:39:24]OFD Sender: No OFD packet to send [22:39:29]OFD Sender: No OFD packet to send [22:39:34]OFD Sender: No OFD packet to send [22:39:39]OFD Sender: No OFD packet to send [22:39:44]OFD Sender: No OFD packet to send [22:39:49]OFD Sender: No OFD packet to send [22:39:54]OFD Sender: No OFD packet to send [22:39:59]OFD Sender: No OFD packet to send [22:40:04]OFD Sender: No OFD packet to send [22:40:09]OFD Sender: No OFD packet to send [22:40:14]OFD Sender: No OFD packet to send [22:40:19]OFD Sender: No OFD packet to send [22:40:24]OFD Sender: No OFD packet to send [22:40:29]OFD Sender: No OFD packet to send [22:40:34]OFD Sender: No OFD packet to send [22:40:39]OFD Sender: No OFD packet to send [22:40:44]OFD Sender: No OFD packet to send [22:40:49]OFD Sender: No OFD packet to send [22:40:54]OFD Sender: No OFD packet to send [22:40:58]recv_with_timeout no data received [22:40:59]OFD Sender: No OFD packet to send [22:41:04]OFD Sender: No OFD packet to send [22:41:09]OFD Sender: No OFD packet to send [22:41:14]OFD Sender: No OFD packet to send [22:41:19]OFD Sender: No OFD packet to send [22:41:24]OFD Sender: No OFD packet to send [22:41:29]OFD Sender: No OFD packet to send [22:41:34]OFD Sender: No OFD packet to send [22:41:39]OFD Sender: No OFD packet to send [22:41:44]OFD Sender: No OFD packet to send [22:41:49]OFD Sender: No OFD packet to send [22:41:54]OFD Sender: No OFD packet to send [22:41:59]OFD Sender: No OFD packet to send [22:42:05]OFD Sender: No OFD packet to send [22:42:10]OFD Sender: No OFD packet to send [22:42:15]OFD Sender: No OFD packet to send [22:42:20]OFD Sender: No OFD packet to send [22:42:25]OFD Sender: No OFD packet to send [22:42:30]OFD Sender: No OFD packet to send [22:42:35]OFD Sender: No OFD packet to send [22:42:40]OFD Sender: No OFD packet to send [22:42:45]OFD Sender: No OFD packet to send [22:42:50]OFD Sender: No OFD packet to send [22:42:55]OFD Sender: No OFD packet to send [22:43:00]OFD Sender: No OFD packet to send [22:43:05]OFD Sender: No OFD packet to send [22:43:10]OFD Sender: No OFD packet to send [22:43:15]OFD Sender: No OFD packet to send [22:43:20]OFD Sender: No OFD packet to send [22:43:25]OFD Sender: No OFD packet to send [22:43:30]OFD Sender: No OFD packet to send [22:43:35]OFD Sender: No OFD packet to send [22:43:40]OFD Sender: No OFD packet to send [22:43:45]OFD Sender: No OFD packet to send [22:43:50]OFD Sender: No OFD packet to send [22:43:55]OFD Sender: No OFD packet to send [22:44:00]OFD Sender: No OFD packet to send [22:44:05]OFD Sender: No OFD packet to send [22:44:10]OFD Sender: No OFD packet to send [22:44:15]OFD Sender: No OFD packet to send [22:44:20]OFD Sender: No OFD packet to send [22:44:25]OFD Sender: No OFD packet to send [22:44:30]OFD Sender: No OFD packet to send [22:44:35]OFD Sender: No OFD packet to send [22:44:40]OFD Sender: No OFD packet to send [22:44:45]OFD Sender: No OFD packet to send [22:44:50]OFD Sender: No OFD packet to send [22:44:55]OFD Sender: No OFD packet to send [22:44:59]recv_with_timeout no data received [22:45:00]OFD Sender: No OFD packet to send [22:45:05]OFD Sender: No OFD packet to send [22:45:10]OFD Sender: No OFD packet to send [22:45:15]OFD Sender: No OFD packet to send [22:45:20]OFD Sender: No OFD packet to send [22:45:25]OFD Sender: No OFD packet to send [22:45:30]OFD Sender: No OFD packet to send [22:45:35]OFD Sender: No OFD packet to send [22:45:38]recv_with_timeout no data received [22:45:40]OFD Sender: No OFD packet to send [22:45:45]OFD Sender: No OFD packet to send [22:45:50]OFD Sender: No OFD packet to send [22:45:55]OFD Sender: No OFD packet to send [22:46:00]OFD Sender: No OFD packet to send [22:46:05]OFD Sender: No OFD packet to send [22:46:10]OFD Sender: No OFD packet to send [22:46:15]OFD Sender: No OFD packet to send [22:46:20]OFD Sender: No OFD packet to send [22:46:25]OFD Sender: No OFD packet to send [22:46:30]OFD Sender: No OFD packet to send [22:46:30]accept exits with 8 [22:46:30]New connection [22:46:30]New thread 3067506020 created [22:46:30]Thread 3067362660 joined [22:46:30]Waiting for new connection... [22:46:30] Sock 8.Parse request [22:46:30]Sock 8.Check first char [22:46:30]Sock 8.First char is OK [22:46:30]request: POST /json_proto HTTP/1.0 [22:46:30]Method: POST [22:46:30]URL: /json_proto [22:46:30]Method is POST - this is cgi request [22:46:30]url: /json_proto [22:46:30]query_string will be loaded in cgi processing [22:46:30]execute_cgi json_proto POST (null) [22:46:30]execute_cgi path=json_proto method=POST [22:46:30]POST find Content-Length [22:46:30]Host: 172.17.43.132:8080 [22:46:30]Content-Length: 623 [22:46:30]Content-Type: application/json [22:46:30] [22:46:30]POST finish read [22:46:30]Found Content-Length = 623 [22:46:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183999", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:46:30]execute_script... [22:46: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 : (3)183999", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:46:30]POST & json_proto [22:46:30]process_json_proto [22:46:30]json parsed OK: [22:46:30]protocol is kg_v1.0 [22:46:30]action value=close_receipt [22:46:30]process_action close_receipt [22:46:30]cmd_close_receipt [22:46:30]MH_GetDate [22:46:30]Write to MH i2c: F0 00 00 30 04 23 [22:46:30]Write i2c OK [22:46:30]MH_I2C_Read... [22:46:30]Read from MH i2c: F0 [22:46:30]MH_I2C_Read... [22:46:30]Read from MH i2c: F0 09 00 [22:46:30]MH_I2C_Read... [22:46:30]Read from MH i2c: F0 09 00 30 04 00 C7 1B A8 66 64 A3 A7 66 30 [22:46:30]GetLastDocTimeStamp 1722292286 [22:46:30]current date 1722293191 [22:46:30]FM_GetShiftState [22:46:30]SAM_PROTO_GetShiftState [22:46:30]wFMCommunicate request_size=4 [22:46:30]MH_SAM_APDU [22:46:30]CAPDU: 80 13 01 00 [22:46:30]Write to MH i2c: E2 08 00 31 04 80 13 01 00 00 00 00 00 B2 [22:46:30]Write i2c OK [22:46:30]MH_I2C_Read... [22:46:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:46:30]Read from MH i2c: E2 [22:46:30]MH_I2C_Read... [22:46:30]Read from MH i2c: E2 0E 00 [22:46:30]MH_I2C_Read... [22:46:30]Read from MH i2c: E2 0E 00 31 04 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 4E [22:46:30]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [22:46:30]wFMCommunicate OK [22:46:30]SAM_PROTO_GetShiftState done [22:46:30]FM_GetShiftState done [22:46:30]opened in 1722211496 [22:46:30]opened+sec_in_day 1722297896 [22:46:30]quantity*price = 14000 [22:46:30]sum+1 = 14001 [22:46:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 159 29.07.2024 22:46 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41970 ФПД: 74852763661076 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T224631&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41970&fm=74852763661076&tin=02508201610067®Number=0000000000092626&sum=14000 0 [22:46:31]StoreToDocumentArchive [22:46:31]shift 427 fd 41970 [22:46:31]save to /storage/0427/doc_00041970 [22:46:31]save last doc name /storage/0427/doc_00041970 to /storage/kkm_last_doc_name [22:46:31]save OK [22:46:31]Clear old archive folders... [22:46:31]ProcessDocumentItem done err = 0, tmpTLVsize=275 [22:46:31]tlvbuf is 012AFB60 [22:46:31]SAM_PROTO_ClearQueue [22:46:31]wFMCommunicate request_size=4 [22:46:31]MH_SAM_APDU [22:46:31]CAPDU: 80 09 00 00 [22:46:31]Write to MH i2c: E2 08 00 3E 04 80 09 00 00 00 00 00 00 B4 [22:46:31]Write i2c OK [22:46:31]MH_I2C_Read... [22:46:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:46:31]Read from MH i2c: E2 [22:46:31]MH_I2C_Read... [22:46:31]Read from MH i2c: E2 03 00 [22:46:31]MH_I2C_Read... [22:46:31]Read from MH i2c: E2 03 00 3E 04 00 90 00 B6 [22:46:31]RAPDU: 90 00 [22:46:31]wFMCommunicate OK [22:46:31]SAM_PROTO_ClearQueue done [22:46:31]KKMCreateOFDPacket [22:46:31]OFDProtocolAddRootSTLVToBuf [22:46:31]FM_MakeSignedData [22:46:31]FM_MakeSignedData [22:46:31]SAM_PROTO_SignData [22:46:31]wFMCommunicate request_size=4 [22:46:31]MH_SAM_APDU [22:46:31]CAPDU: 80 0D 01 02 [22:46:31]Write to MH i2c: E2 08 00 3F 04 80 0D 01 02 00 00 00 00 BC [22:46:31]Write i2c OK [22:46:31]MH_I2C_Read... [22:46:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:46:31]Read from MH i2c: E2 [22:46:31]MH_I2C_Read... [22:46:31]Read from MH i2c: E2 03 00 [22:46:31]MH_I2C_Read... [22:46:31]Read from MH i2c: E2 03 00 3F 04 00 90 00 B7 [22:46:31]RAPDU: 90 00 [22:46:31]wFMCommunicate OK [22:46:31]wFMCommunicate request_size=255 [22:46:31]MH_SAM_APDU [22:46:31]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 C7 1B A8 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 [22:46:31]Write to MH i2c: E2 02 01 40 04 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 C7 1B A8 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 00 00 87 [22:46:31]Write i2c OK [22:46:31]MH_I2C_Read... [22:46:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:46:32]Read from MH i2c: E2 [22:46:32]MH_I2C_Read... [22:46:32]Read from MH i2c: E2 03 00 [22:46:32]MH_I2C_Read... [22:46:32]Read from MH i2c: E2 03 00 40 04 00 90 00 B8 [22:46:32]RAPDU: 90 00 [22:46:32]wFMCommunicate OK [22:46:32]wFMCommunicate request_size=34 [22:46:32]MH_SAM_APDU [22:46:32]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 F2 A3 00 00 35 04 06 00 44 14 04 63 73 14 [22:46:32]Write to MH i2c: E2 25 00 41 04 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 F2 A3 00 00 35 04 06 00 44 14 04 63 73 14 00 00 64 [22:46:32]Write i2c OK [22:46:32]MH_I2C_Read... [22:46:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:46:32]Read from MH i2c: E2 [22:46:32]MH_I2C_Read... [22:46:32]Read from MH i2c: E2 03 00 [22:46:32]MH_I2C_Read... [22:46:32]Read from MH i2c: E2 03 00 41 04 00 90 00 B9 [22:46:32]RAPDU: 90 00 [22:46:32]wFMCommunicate OK [22:46:32]wFMCommunicate request_size=4 [22:46:32]MH_SAM_APDU [22:46:32]CAPDU: 80 0D 03 02 [22:46:32]Write to MH i2c: E2 08 00 42 04 80 0D 03 02 00 00 00 00 C1 [22:46:32]Write i2c OK [22:46:32]MH_I2C_Read... [22:46:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:46:32]Read from MH i2c: E2 [22:46:32]MH_I2C_Read... [22:46:32]Read from MH i2c: E2 0B 00 [22:46:32]MH_I2C_Read... [22:46:32]Read from MH i2c: E2 0B 00 42 04 00 3E 20 86 DA 83 7B 7B BE 90 00 B7 [22:46:32]RAPDU: 3E 20 86 DA 83 7B 7B BE 90 00 [22:46:32]wFMCommunicate OK [22:46:32]SAM_PROTO_SignData done [22:46:32]FM_MakeSignedData done [22:46:32]CreateOFDProtocolMessage [22:46:32]wFMCommunicate request_size=4 [22:46:32]MH_SAM_APDU [22:46:32]CAPDU: 80 11 00 00 [22:46:32]Write to MH i2c: E2 08 00 43 04 80 11 00 00 00 00 00 00 C1 [22:46:32]Write i2c OK [22:46:32]MH_I2C_Read... [22:46:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:46:32]Read from MH i2c: E2 [22:46:32]MH_I2C_Read... [22:46:32]Read from MH i2c: E2 17 00 [22:46:32]MH_I2C_Read... [22:46:32]Read from MH i2c: E2 17 00 43 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 1D [22:46:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [22:46:32]wFMCommunicate OK [22:46:32]CreateOFDProtocolMessage done [22:46:32]OFDSenderStorePacket 41970 [22:46:32]StoreOFDPacket docnum=41970 [22:46:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 27 01 00 00 C9 F6 1F 01 6E F3 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 C7 1B A8 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 F2 A3 00 00 35 04 06 00 44 14 04 63 73 14 3E 20 86 DA 83 7B 7B BE [22:46:32]CheckFolder [22:46:32]dirname=/storage/ofd_packets [22:46:32]CheckFolder done [22:46:32]ProducePacketName [22:46:32]name=ofd_packets/00041970 [22:46:32]NVStorageSaveData ofd_packets/00041970 [22:46:32]File name is /storage/ofd_packets/00041970 [22:46:32]Write 325 bytes [22:46:32]NVStorageSaveData done [22:46:32]OFDSenderStorePacket done [22:46:32]KKMCreateOFDPacket done [22:46:32]NVStorageSaveData kkm_last_timestamp [22:46:32]File name is /storage/kkm_last_timestamp [22:46:32]Write 4 bytes [22:46:32]NVStorageSaveData done [22:46:32]ExternCall_PrintAddStr [22:46:32]wPrintStart [22:46:32]Write to MH i2c: 01 00 00 44 04 48 [22:46:32]Write i2c OK [22:46:32]MH_I2C_Read... [22:46:32]Read from MH i2c: 01 [22:46:32]MH_I2C_Read... [22:46:32]Read from MH i2c: 01 07 00 [22:46:32]MH_I2C_Read... [22:46:32]Read from MH i2c: 01 07 00 44 04 00 00 00 00 00 FF 0F 5D [22:46:32]RasterBufferAndPrint [22:46:32]line Счет N : (3)183999 [22:46:32]line ИНН: 02508201610067 [22:46:32]line Контрольно-Кассовый Чек [22:46:32]line ПРОДАЖА [22:46:32]line Товар: 48743587 [22:46:32]line Сигареты Winston XStyle Silver [22:46:32]line 1.000 * 140.00 [22:46:32]line = 140.00 [22:46:32]line НДС 12% НСП 1% [22:46:32]line > о реализуемом товаре [22:46:32]line ИТОГО: 140.00 [22:46:32]line НСП 1% : 1.24 [22:46:32]line НДС 12% : 14.87 [22:46:32]line Наличными: 140.00 [22:46:32]line Безнал.: 0.00 [22:46:32]line Место: АЗС № 97 "Партнер Нефть" [22:46:32]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [22:46:32]line СНО: Общий режим [22:46:32]line Чек 159 29.07.2024 22:46 [22:46:32]line Смена: 427 ФФД: 1.0 [22:46:32]line ЗНМ: 0300000053 [22:46:32]line РНМ: 0000000000092626 [22:46:32]line Версия ККМ: 001 [22:46:32]line ФМ: 0000000000874958 [22:46:32]line ФД: 41970 [22:46:32]line ФПД: 74852763661076 [22:46:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T224631&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41970&fm=74852763661076&tin=02508201610067®Number=0000000000092626&sum=14000 [22:46:32]line 0 [22:46:32]OFD Sender: Processing packet 41970 [packets to send 57, broken 56] [22:46:32]ProducePacketName [22:46:32]name=ofd_packets/00041970 [22:46:32]OFD Sender: To server: pG, [22:46:32]CommunicateWithHost lk.salyk.kg:30040 [22:46:32]ConnectInit lk.salyk.kg [22:46:32]written 0, free lines is 4095 [22:46:33]Write to MH i2c: 01 00 00 6D 04 71 [22:46:33]Write i2c OK [22:46:33]MH_I2C_Read... [22:46:33]Read from MH i2c: 01 [22:46:33]MH_I2C_Read... [22:46:33]Read from MH i2c: 01 07 00 [22:46:33]MH_I2C_Read... [22:46:33]Read from MH i2c: 01 07 00 6D 04 00 00 00 00 00 02 0D 87 [22:46:33]RasterBufferAndPrint [22:46:33]line [22:46:33]line [22:46:33]line [22:46:33]line [22:46:33]line [22:46:33]written 0, free lines is 3336 [22:46:33]MH_Cut [22:46:33]Write to MH i2c: D1 01 00 74 04 01 4A [22:46:33]Write i2c OK [22:46:33]MH_I2C_Read... [22:46:33]Read from MH i2c: D1 [22:46:33]MH_I2C_Read... [22:46:33]Read from MH i2c: D1 01 00 [22:46:33]MH_I2C_Read... [22:46:33]Read from MH i2c: D1 01 00 74 04 00 49 [22:46:33]Write to MH i2c: 01 00 00 75 04 79 [22:46:33]Write i2c OK [22:46:33]MH_I2C_Read... [22:46:33]Connected sock=10 [22:46:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 27 01 00 00 C9 F6 1F 01 6E F3 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 C7 1B A8 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 F2 A3 00 00 35 04 06 00 44 14 04 63 73 14 3E 20 86 DA 83 7B 7B BE [22:46: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 35 38 4F 00 00 00 D5 08 47 00 27 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 35 38 10 04 04 00 F2 A3 00 00 F4 03 04 00 DD C7 A7 66 B6 04 01 00 00 29 A2 29 F9 43 90 07 68 [22:46:33]CommunicateWithHost err = 0 [22:46:33]CheckOFDResponse [22:46:33]1017 (14) - 77093643461234 [22:46:33]1041 (16) - 0000000000874958 [22:46:33]1040 (4) - 41970 [22:46:33]1012 (4) - 29.07.2024 16:48 [22:46:33]1206 (1) - 0 [22:46:33]OFD Sender: Remove packet 41970 [22:46:33]ProducePacketName [22:46:33]name=ofd_packets/00041970 [22:46:33]NVStorageDeleteData [22:46:33]*** Cut start [22:46:33]*** Partial cut [22:46:33]*** CUTSNS_PIN = 1 [22:46:33]*** CUTSNS_PIN = 0 [22:46:34]OFD Sender: No OFD packet to send [22:46:34]*** Brake cut motor [22:46:34]Read from MH i2c: 01 [22:46:34]MH_I2C_Read... [22:46:34]*** Stop cut motor [22:46:34]*** Cut end [22:46:34]Read from MH i2c: 01 07 00 [22:46:34]MH_I2C_Read... [22:46:34]Read from MH i2c: 01 07 00 75 04 00 00 00 00 00 FF 0F 8E [22:46:34]process_action close_receipt done [22:46:34]requested_data is exist [22:46:34]produce_requested_data [22:46:34]requested_item fm.sn is exist - process it [22:46:34]wFMCommunicate request_size=4 [22:46:34]MH_SAM_APDU [22:46:34]CAPDU: 80 11 00 00 [22:46:34]Write to MH i2c: E2 08 00 76 04 80 11 00 00 00 00 00 00 F4 [22:46:34]Write i2c OK [22:46:34]MH_I2C_Read... [22:46:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:46:34]Read from MH i2c: E2 [22:46:34]MH_I2C_Read... [22:46:34]Read from MH i2c: E2 17 00 [22:46:34]MH_I2C_Read... [22:46:34]Read from MH i2c: E2 17 00 76 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 50 [22:46:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [22:46:34]wFMCommunicate OK [22:46:34]requested_item fd.num is exist - process it [22:46:34]SAM_PROTO_GetFieldsCounters [22:46:34]wFMCommunicate request_size=4 [22:46:34]MH_SAM_APDU [22:46:34]CAPDU: 80 13 00 00 [22:46:34]Write to MH i2c: E2 08 00 77 04 80 13 00 00 00 00 00 00 F7 [22:46:34]Write i2c OK [22:46:34]MH_I2C_Read... [22:46:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:46:34]Read from MH i2c: E2 [22:46:34]MH_I2C_Read... [22:46:34]Read from MH i2c: E2 62 00 [22:46:34]MH_I2C_Read... [22:46:34]Read from MH i2c: E2 62 00 77 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 F2 A3 00 00 0E 04 04 00 AB 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 3F [22:46: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 F2 A3 00 00 0E 04 04 00 AB 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 [22:46:34]wFMCommunicate OK [22:46:34]SAM_PROTO_GetFieldsCounters done [22:46:34]requested_item shift.num is exist - process it [22:46:34]requested_item shift.opened is exist - process it [22:46:34]req_shift_opened [22:46:34]FM_GetShiftState [22:46:34]SAM_PROTO_GetShiftState [22:46:34]wFMCommunicate request_size=4 [22:46:34]MH_SAM_APDU [22:46:34]CAPDU: 80 13 01 00 [22:46:34]Write to MH i2c: E2 08 00 78 04 80 13 01 00 00 00 00 00 F9 [22:46:34]Write i2c OK [22:46:34]MH_I2C_Read... [22:46:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:46:34]Read from MH i2c: E2 [22:46:34]MH_I2C_Read... [22:46:34]Read from MH i2c: E2 0E 00 [22:46:34]MH_I2C_Read... [22:46:34]Read from MH i2c: E2 0E 00 78 04 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 95 [22:46:34]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [22:46:34]wFMCommunicate OK [22:46:34]SAM_PROTO_GetShiftState done [22:46:34]FM_GetShiftState done [22:46:34]req_shift_opened done [22:46:34]requested_item shift.open_date is exist - process it [22:46:34]req_shift_open_date [22:46:34]req_shift_open_date done [22:46:34]produce_requested_data done [22:46:34]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41970,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [22:46:34]process_action_free close_receipt [22:46:34]json_value_free [22:46:34]json_value_free done [22:46:34]process_json_proto returns [22:46:34]Send response to host [22:46:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41970,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [22:46:34]free response buf [22:46:34]execute_script done [22:46:34]execute_script returns [22:46:34]free content buf [22:46:34]Sock 8.Close socket [22:46:34]Sock 8.Thread stoped [22:46:39]OFD Sender: No OFD packet to send [22:46:44]OFD Sender: No OFD packet to send [22:46:49]OFD Sender: No OFD packet to send [22:46:54]OFD Sender: No OFD packet to send [22:46:59]OFD Sender: No OFD packet to send [22:47:04]OFD Sender: No OFD packet to send [22:47:09]OFD Sender: No OFD packet to send [22:47:14]OFD Sender: No OFD packet to send [22:47:19]OFD Sender: No OFD packet to send [22:47:24]OFD Sender: No OFD packet to send [22:47:29]OFD Sender: No OFD packet to send [22:47:34]OFD Sender: No OFD packet to send [22:47:39]OFD Sender: No OFD packet to send [22:47:44]OFD Sender: No OFD packet to send [22:47:49]OFD Sender: No OFD packet to send [22:47:54]OFD Sender: No OFD packet to send [22:47:59]OFD Sender: No OFD packet to send [22:48:04]OFD Sender: No OFD packet to send [22:48:09]OFD Sender: No OFD packet to send [22:48:14]OFD Sender: No OFD packet to send [22:48:19]OFD Sender: No OFD packet to send [22:48:24]OFD Sender: No OFD packet to send [22:48:29]OFD Sender: No OFD packet to send [22:48:34]OFD Sender: No OFD packet to send [22:48:39]OFD Sender: No OFD packet to send [22:48:44]OFD Sender: No OFD packet to send [22:48:49]OFD Sender: No OFD packet to send [22:48:54]OFD Sender: No OFD packet to send [22:48:59]OFD Sender: No OFD packet to send [22:49:04]OFD Sender: No OFD packet to send [22:49:09]OFD Sender: No OFD packet to send [22:49:14]OFD Sender: No OFD packet to send [22:49:19]OFD Sender: No OFD packet to send [22:49:24]OFD Sender: No OFD packet to send [22:49:29]OFD Sender: No OFD packet to send [22:49:34]OFD Sender: No OFD packet to send [22:49:39]OFD Sender: No OFD packet to send [22:49:44]OFD Sender: No OFD packet to send [22:49:49]OFD Sender: No OFD packet to send [22:49:54]OFD Sender: No OFD packet to send [22:49:59]OFD Sender: No OFD packet to send [22:50:04]OFD Sender: No OFD packet to send [22:50:09]OFD Sender: No OFD packet to send [22:50:14]OFD Sender: No OFD packet to send [22:50:19]OFD Sender: No OFD packet to send [22:50:24]OFD Sender: No OFD packet to send [22:50:29]OFD Sender: No OFD packet to send [22:50:34]OFD Sender: No OFD packet to send [22:50: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:56]accept exits with 9 [22:50:56]New connection [22:50:56]New thread 3067362660 created [22:50:56]Thread 3067506020 joined [22:50:56]Waiting for new connection... [22:50:56] Sock 9.Parse request [22:50:56]Sock 9.Check first char [22:50:56]Sock 9.First char is OK [22:50:56]request: POST /json_proto HTTP/1.0 [22:50:56]Method: POST [22:50:56]URL: /json_proto [22:50:56]Method is POST - this is cgi request [22:50:56]url: /json_proto [22:50:56]query_string will be loaded in cgi processing [22:50:56]execute_cgi json_proto POST (null) [22:50:56]execute_cgi path=json_proto method=POST [22:50:56]POST find Content-Length [22:50:56]Host: 172.17.43.132:8080 [22:50:56]Content-Length: 622 [22:50:56]Content-Type: application/json [22:50:56] [22:50:56]POST finish read [22:50:56]Found Content-Length = 622 [22:50:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184000", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:50:56]execute_script... [22:50:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184000", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:50:56]POST & json_proto [22:50:56]process_json_proto [22:50:56]json parsed OK: [22:50:56]protocol is kg_v1.0 [22:50:56]action value=close_receipt [22:50:56]process_action close_receipt [22:50:56]cmd_close_receipt [22:50:56]MH_GetDate [22:50:56]Write to MH i2c: F0 00 00 79 04 6C [22:50:56]Write i2c OK [22:50:56]MH_I2C_Read... [22:50:56]Read from MH i2c: F0 [22:50:56]MH_I2C_Read... [22:50:56]Read from MH i2c: F0 09 00 [22:50:56]MH_I2C_Read... [22:50:56]Read from MH i2c: F0 09 00 79 04 00 D1 1C A8 66 64 A3 A7 66 84 [22:50:56]GetLastDocTimeStamp 1722293191 [22:50:56]current date 1722293457 [22:50:56]FM_GetShiftState [22:50:56]SAM_PROTO_GetShiftState [22:50:56]wFMCommunicate request_size=4 [22:50:56]MH_SAM_APDU [22:50:56]CAPDU: 80 13 01 00 [22:50:56]Write to MH i2c: E2 08 00 7A 04 80 13 01 00 00 00 00 00 FB [22:50:56]Write i2c OK [22:50:56]MH_I2C_Read... [22:50:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:50:56]Read from MH i2c: E2 [22:50:56]MH_I2C_Read... [22:50:56]Read from MH i2c: E2 0E 00 [22:50:56]MH_I2C_Read... [22:50:56]Read from MH i2c: E2 0E 00 7A 04 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 97 [22:50:56]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [22:50:56]wFMCommunicate OK [22:50:56]SAM_PROTO_GetShiftState done [22:50:56]FM_GetShiftState done [22:50:56]opened in 1722211496 [22:50:56]opened+sec_in_day 1722297896 [22:50:56]quantity*price = 15100 [22:50:56]sum+1 = 15101 [22:50:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 151.00 НСП 1% : 1.34 НДС 12% : 16.03 Наличными: 151.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 160 29.07.2024 22:50 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41971 ФПД: 195025145675895 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T225057&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41971&fm=195025145675895&tin=02508201610067®Number=0000000000092626&sum=15100 0 [22:50:57]StoreToDocumentArchive [22:50:57]shift 427 fd 41971 [22:50:57]save to /storage/0427/doc_00041971 [22:50:57]save last doc name /storage/0427/doc_00041971 to /storage/kkm_last_doc_name [22:50:57]save OK [22:50:57]Clear old archive folders... [22:50:57]ProcessDocumentItem done err = 0, tmpTLVsize=274 [22:50:57]tlvbuf is 012A97F0 [22:50:57]SAM_PROTO_ClearQueue [22:50:57]wFMCommunicate request_size=4 [22:50:57]MH_SAM_APDU [22:50:57]CAPDU: 80 09 00 00 [22:50:57]Write to MH i2c: E2 08 00 87 04 80 09 00 00 00 00 00 00 FD [22:50:57]Write i2c OK [22:50:57]MH_I2C_Read... [22:50:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:50:58]Read from MH i2c: E2 [22:50:58]MH_I2C_Read... [22:50:58]Read from MH i2c: E2 03 00 [22:50:58]MH_I2C_Read... [22:50:58]Read from MH i2c: E2 03 00 87 04 00 90 00 FF [22:50:58]RAPDU: 90 00 [22:50:58]wFMCommunicate OK [22:50:58]SAM_PROTO_ClearQueue done [22:50:58]KKMCreateOFDPacket [22:50:58]OFDProtocolAddRootSTLVToBuf [22:50:58]FM_MakeSignedData [22:50:58]FM_MakeSignedData [22:50:58]SAM_PROTO_SignData [22:50:58]wFMCommunicate request_size=4 [22:50:58]MH_SAM_APDU [22:50:58]CAPDU: 80 0D 01 02 [22:50:58]Write to MH i2c: E2 08 00 88 04 80 0D 01 02 00 00 00 00 05 [22:50:58]Write i2c OK [22:50:58]MH_I2C_Read... [22:50:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:50:58]Read from MH i2c: E2 [22:50:58]MH_I2C_Read... [22:50:58]Read from MH i2c: E2 03 00 [22:50:58]MH_I2C_Read... [22:50:58]Read from MH i2c: E2 03 00 88 04 00 90 00 00 [22:50:58]RAPDU: 90 00 [22:50:58]wFMCommunicate OK [22:50:58]wFMCommunicate request_size=255 [22:50:58]MH_SAM_APDU [22:50:58]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 D1 1C A8 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 [22:50:58]Write to MH i2c: E2 02 01 89 04 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 D1 1C A8 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 00 00 15 [22:50:58]Write i2c OK [22:50:58]MH_I2C_Read... [22:50:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:50:58]Read from MH i2c: E2 [22:50:58]MH_I2C_Read... [22:50:58]Read from MH i2c: E2 03 00 [22:50:58]MH_I2C_Read... [22:50:58]Read from MH i2c: E2 03 00 89 04 00 90 00 01 [22:50:58]RAPDU: 90 00 [22:50:58]wFMCommunicate OK [22:50:58]wFMCommunicate request_size=33 [22:50:58]MH_SAM_APDU [22:50:58]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 39 35 38 10 04 04 00 F3 A3 00 00 35 04 06 00 B1 5F D4 87 C0 77 [22:50:58]Write to MH i2c: E2 24 00 8A 04 80 0D 02 02 1C 00 30 30 30 30 38 37 34 39 35 38 10 04 04 00 F3 A3 00 00 35 04 06 00 B1 5F D4 87 C0 77 00 00 D8 [22:50:58]Write i2c OK [22:50:58]MH_I2C_Read... [22:50:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:50:58]Read from MH i2c: E2 [22:50:58]MH_I2C_Read... [22:50:58]Read from MH i2c: E2 03 00 [22:50:58]MH_I2C_Read... [22:50:58]Read from MH i2c: E2 03 00 8A 04 00 90 00 02 [22:50:58]RAPDU: 90 00 [22:50:58]wFMCommunicate OK [22:50:58]wFMCommunicate request_size=4 [22:50:58]MH_SAM_APDU [22:50:58]CAPDU: 80 0D 03 02 [22:50:58]Write to MH i2c: E2 08 00 8B 04 80 0D 03 02 00 00 00 00 0A [22:50:58]Write i2c OK [22:50:58]MH_I2C_Read... [22:50:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:50:58]Read from MH i2c: E2 [22:50:58]MH_I2C_Read... [22:50:58]Read from MH i2c: E2 0B 00 [22:50:58]MH_I2C_Read... [22:50:58]Read from MH i2c: E2 0B 00 8B 04 00 66 8A B4 2D 43 A3 24 24 90 00 0A [22:50:58]RAPDU: 66 8A B4 2D 43 A3 24 24 90 00 [22:50:58]wFMCommunicate OK [22:50:58]SAM_PROTO_SignData done [22:50:58]FM_MakeSignedData done [22:50:58]CreateOFDProtocolMessage [22:50:58]wFMCommunicate request_size=4 [22:50:58]MH_SAM_APDU [22:50:58]CAPDU: 80 11 00 00 [22:50:58]Write to MH i2c: E2 08 00 8C 04 80 11 00 00 00 00 00 00 0A [22:50:58]Write i2c OK [22:50:58]MH_I2C_Read... [22:50:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:50:58]Read from MH i2c: E2 [22:50:58]MH_I2C_Read... [22:50:58]Read from MH i2c: E2 17 00 [22:50:58]MH_I2C_Read... [22:50:58]Read from MH i2c: E2 17 00 8C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 66 [22:50:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [22:50:58]wFMCommunicate OK [22:50:58]CreateOFDProtocolMessage done [22:50:58]OFDSenderStorePacket 41971 [22:50:58]StoreOFDPacket docnum=41971 [22:50:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 26 01 00 00 F3 01 1E 01 97 74 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 D1 1C A8 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 F3 A3 00 00 35 04 06 00 B1 5F D4 87 C0 77 66 8A B4 2D 43 A3 24 24 [22:50:58]CheckFolder [22:50:58]dirname=/storage/ofd_packets [22:50:58]CheckFolder done [22:50:58]ProducePacketName [22:50:58]name=ofd_packets/00041971 [22:50:58]NVStorageSaveData ofd_packets/00041971 [22:50:58]File name is /storage/ofd_packets/00041971 [22:50:58]Write 324 bytes [22:50:58]NVStorageSaveData done [22:50:58]OFDSenderStorePacket done [22:50:58]KKMCreateOFDPacket done [22:50:58]NVStorageSaveData kkm_last_timestamp [22:50:58]File name is /storage/kkm_last_timestamp [22:50:58]Write 4 bytes [22:50:58]NVStorageSaveData done [22:50:58]OFD Sender: Processing packet 41971 [packets to send 57, broken 56] [22:50:58]ProducePacketName [22:50:58]name=ofd_packets/00041971 [22:50:58]OFD Sender: To server: pG, [22:50:58]CommunicateWithHost lk.salyk.kg:30040 [22:50:58]ConnectInit lk.salyk.kg [22:50:58]ExternCall_PrintAddStr [22:50:58]wPrintStart [22:50:58]Write to MH i2c: 01 00 00 8D 04 91 [22:50:58]Write i2c OK [22:50:58]MH_I2C_Read... [22:50:58]Read from MH i2c: 01 [22:50:58]MH_I2C_Read... [22:50:58]Read from MH i2c: 01 07 00 [22:50:58]MH_I2C_Read... [22:50:58]Read from MH i2c: 01 07 00 8D 04 00 00 00 00 00 FF 0F A6 [22:50:58]RasterBufferAndPrint [22:50:58]line Счет N : (3)184000 [22:50:58]line ИНН: 02508201610067 [22:50:58]line Контрольно-Кассовый Чек [22:50:58]line ПРОДАЖА [22:50:58]line Товар: 48741958 [22:50:58]line Сигареты Parliament Aqua Blue [22:50:58]line 1.000 * 151.00 [22:50:58]line = 151.00 [22:50:58]line НДС 12% НСП 1% [22:50:58]line > о реализуемом товаре [22:50:58]line ИТОГО: 151.00 [22:50:58]line НСП 1% : 1.34 [22:50:58]line НДС 12% : 16.03 [22:50:58]line Наличными: 151.00 [22:50:58]line Безнал.: 0.00 [22:50:58]line Место: АЗС № 97 "Партнер Нефть" [22:50:58]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [22:50:58]line СНО: Общий режим [22:50:58]line Чек 160 29.07.2024 22:50 [22:50:58]line Смена: 427 ФФД: 1.0 [22:50:58]line ЗНМ: 0300000053 [22:50:58]line РНМ: 0000000000092626 [22:50:58]line Версия ККМ: 001 [22:50:58]line ФМ: 0000000000874958 [22:50:58]line ФД: 41971 [22:50:58]line ФПД: 195025145675895 [22:50:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T225057&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41971&fm=195025145675895&tin=02508201610067®Number=0000000000092626&sum=15100 [22:50:58]line 0 [22:50:58]written 0, free lines is 4095 [22:50:59]Write to MH i2c: 01 00 00 B6 04 BA [22:50:59]Write i2c OK [22:50:59]MH_I2C_Read... [22:50:59]Read from MH i2c: 01 [22:50:59]MH_I2C_Read... [22:50:59]Read from MH i2c: 01 07 00 [22:50:59]MH_I2C_Read... [22:50:59]Read from MH i2c: 01 07 00 B6 04 00 00 00 00 00 EE 0C BB [22:50:59]RasterBufferAndPrint [22:50:59]line [22:50:59]line [22:50:59]line [22:50:59]line [22:50:59]line [22:50:59]written 0, free lines is 3316 [22:50:59]MH_Cut [22:50:59]Write to MH i2c: D1 01 00 BD 04 01 93 [22:50:59]Write i2c OK [22:50:59]MH_I2C_Read... [22:50:59]Read from MH i2c: D1 [22:50:59]MH_I2C_Read... [22:50:59]Read from MH i2c: D1 01 00 [22:50:59]MH_I2C_Read... [22:50:59]Read from MH i2c: D1 01 00 BD 04 00 92 [22:50:59]Write to MH i2c: 01 00 00 BE 04 C2 [22:50:59]Write i2c OK [22:50:59]MH_I2C_Read... [22:50:59]*** Cut start [22:50:59]*** Partial cut [22:50:59]*** CUTSNS_PIN = 1 [22:51:00]*** CUTSNS_PIN = 0 [22:51:00]*** Brake cut motor [22:51:00]Read from MH i2c: 01 [22:51:00]MH_I2C_Read... [22:51:00]*** Stop cut motor [22:51:00]*** Cut end [22:51:00]Read from MH i2c: 01 07 00 [22:51:00]MH_I2C_Read... [22:51:00]Read from MH i2c: 01 07 00 BE 04 00 00 00 00 00 FF 0F D7 [22:51:00]process_action close_receipt done [22:51:00]requested_data is exist [22:51:00]produce_requested_data [22:51:00]requested_item fm.sn is exist - process it [22:51:00]wFMCommunicate request_size=4 [22:51:00]MH_SAM_APDU [22:51:00]CAPDU: 80 11 00 00 [22:51:00]Write to MH i2c: E2 08 00 BF 04 80 11 00 00 00 00 00 00 3D [22:51:00]Write i2c OK [22:51:00]MH_I2C_Read... [22:51:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:51:00]Read from MH i2c: E2 [22:51:00]MH_I2C_Read... [22:51:00]Read from MH i2c: E2 17 00 [22:51:00]MH_I2C_Read... [22:51:00]Read from MH i2c: E2 17 00 BF 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 99 [22:51:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [22:51:00]wFMCommunicate OK [22:51:00]requested_item fd.num is exist - process it [22:51:00]SAM_PROTO_GetFieldsCounters [22:51:00]wFMCommunicate request_size=4 [22:51:00]MH_SAM_APDU [22:51:00]CAPDU: 80 13 00 00 [22:51:00]Write to MH i2c: E2 08 00 C0 04 80 13 00 00 00 00 00 00 40 [22:51:00]Write i2c OK [22:51:00]MH_I2C_Read... [22:51:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:51:00]Read from MH i2c: E2 [22:51:00]MH_I2C_Read... [22:51:00]Read from MH i2c: E2 62 00 [22:51:00]MH_I2C_Read... [22:51:00]Read from MH i2c: E2 62 00 C0 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 F3 A3 00 00 0E 04 04 00 AB 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 8C [22:51: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 F3 A3 00 00 0E 04 04 00 AB 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 [22:51:00]wFMCommunicate OK [22:51:00]SAM_PROTO_GetFieldsCounters done [22:51:00]requested_item shift.num is exist - process it [22:51:00]requested_item shift.opened is exist - process it [22:51:00]req_shift_opened [22:51:00]FM_GetShiftState [22:51:00]SAM_PROTO_GetShiftState [22:51:00]wFMCommunicate request_size=4 [22:51:00]MH_SAM_APDU [22:51:00]CAPDU: 80 13 01 00 [22:51:00]Write to MH i2c: E2 08 00 C1 04 80 13 01 00 00 00 00 00 42 [22:51:00]Write i2c OK [22:51:00]MH_I2C_Read... [22:51:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:51:00]Read from MH i2c: E2 [22:51:00]MH_I2C_Read... [22:51:00]Read from MH i2c: E2 0E 00 [22:51:00]MH_I2C_Read... [22:51:00]Read from MH i2c: E2 0E 00 C1 04 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 DE [22:51:00]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [22:51:00]wFMCommunicate OK [22:51:00]SAM_PROTO_GetShiftState done [22:51:00]FM_GetShiftState done [22:51:00]req_shift_opened done [22:51:00]requested_item shift.open_date is exist - process it [22:51:00]req_shift_open_date [22:51:00]req_shift_open_date done [22:51:00]produce_requested_data done [22:51:00]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41971,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [22:51:00]process_action_free close_receipt [22:51:00]json_value_free [22:51:00]json_value_free done [22:51:00]process_json_proto returns [22:51:00]Send response to host [22:51:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41971,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [22:51:00]free response buf [22:51:00]execute_script done [22:51:00]execute_script returns [22:51:00]free content buf [22:51:00]Sock 9.Close socket [22:51:00]Sock 9.Thread stoped [22:51:04]Connected sock=12 [22:51: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 35 38 26 01 00 00 F3 01 1E 01 97 74 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 D1 1C A8 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 F3 A3 00 00 35 04 06 00 B1 5F D4 87 C0 77 66 8A B4 2D 43 A3 24 24 [22:51:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 4F 00 00 00 3B 9E 47 00 2A 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 35 38 10 04 04 00 F3 A3 00 00 F4 03 04 00 EC C8 A7 66 B6 04 01 00 00 BF 18 0F 45 97 25 D8 33 [22:51:05]CommunicateWithHost err = 0 [22:51:05]CheckOFDResponse [22:52:52]ConnectInit Can't connect to host [22:52:52]OFD Sender: Processing packet 41972 [packets to send 57, broken 56] [22:52:52]ProducePacketName [22:52:52]name=ofd_packets/00041972 [22:52:52]OFD Sender: To server: pG, [22:52:52]CommunicateWithHost lk.salyk.kg:30040 [22:52:52]ConnectInit lk.salyk.kg [22:52:57]ConnectInit Can't take IP for lk.salyk.kg [22:52:57]CommunicateWithHost connect error [22:52:57]CommunicateWithHost err = -1 [22:52:57]OFD Sender: Server communicate error [22:53:02]OFD Sender: Processing packet 41972 [packets to send 57, broken 56] [22:53:02]ProducePacketName [22:53:02]name=ofd_packets/00041972 [22:53:02]OFD Sender: To server: pG, [22:53:02]CommunicateWithHost lk.salyk.kg:30040 [22:53:02]ConnectInit lk.salyk.kg [22:53:07]ConnectInit Can't take IP for lk.salyk.kg [22:53:07]CommunicateWithHost connect error [22:53:07]CommunicateWithHost err = -1 [22:53:07]OFD Sender: Server communicate error [22:53:12]OFD Sender: Processing packet 41972 [packets to send 57, broken 56] [22:53:12]ProducePacketName [22:53:12]name=ofd_packets/00041972 [22:53:12]OFD Sender: To server: pG, [22:53:12]CommunicateWithHost lk.salyk.kg:30040 [22:53:12]ConnectInit lk.salyk.kg [22:53:17]ConnectInit Can't take IP for lk.salyk.kg [22:53:17]CommunicateWithHost connect error [22:53:17]CommunicateWithHost err = -1 [22:53:17]OFD Sender: Server communicate error [22:53:22]OFD Sender: Processing packet 41972 [packets to send 57, broken 56] [22:53:22]ProducePacketName [22:53:22]name=ofd_packets/00041972 [22:53:22]OFD Sender: To server: pG, [22:53:22]CommunicateWithHost lk.salyk.kg:30040 [22:53:22]ConnectInit lk.salyk.kg [22:53:27]recv_with_timeout no data received [22:53:27]ConnectInit Can't take IP for lk.salyk.kg [22:53:27]CommunicateWithHost connect error [22:53:27]CommunicateWithHost err = -1 [22:53:27]OFD Sender: Server communicate error [22:54:21]ConnectInit Can't connect to host [22:54:22]OFD Sender: Processing packet 41972 [packets to send 57, broken 56] [22:54:22]ProducePacketName [22:54:22]name=ofd_packets/00041972 [22:54:22]OFD Sender: To server: pG, [22:54:22]CommunicateWithHost lk.salyk.kg:30040 [22:54:22]ConnectInit lk.salyk.kg [22:54:27]ConnectInit Can't take IP for lk.salyk.kg [22:54:27]CommunicateWithHost connect error [22:54:27]CommunicateWithHost err = -1 [22:54:27]OFD Sender: Server communicate error [22:54:32]OFD Sender: Processing packet 41972 [packets to send 57, broken 56] [22:54:32]ProducePacketName [22:54:32]name=ofd_packets/00041972 [22:54:32]OFD Sender: To server: pG, [22:54:32]CommunicateWithHost lk.salyk.kg:30040 [22:54:32]ConnectInit lk.salyk.kg [22:54:33]Connected sock=9 [22:54: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 35 38 32 01 00 00 8A 84 2A 01 CF C7 5A 03 01 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 F3 1C A8 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 F4 A3 00 00 35 04 06 00 F5 A9 0F 8A 55 1A F7 8B 28 6A 0A 22 D8 51 [22:54: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 35 38 4F 00 00 00 B5 3D 47 00 AC DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 F4 A3 00 00 F4 03 04 00 BD C9 A7 66 B6 04 01 00 00 4C 0D 44 EC 4C 39 C7 27 [22:54:33]CommunicateWithHost err = 0 [22:54:33]CheckOFDResponse [22:54:33]1017 (14) - 77093643461234 [22:54:33]1041 (16) - 0000000000874958 [22:54:33]1040 (4) - 41972 [22:54:33]1012 (4) - 29.07.2024 16:56 [22:54:33]1206 (1) - 0 [22:54:33]OFD Sender: Remove packet 41972 [22:54:33]ProducePacketName [22:54:33]name=ofd_packets/00041972 [22:54:33]NVStorageDeleteData [22:54:34]OFD Sender: No OFD packet to send [22:54:39]OFD Sender: No OFD packet to send [22:54:40]recv_with_timeout no data received [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]recv_with_timeout no data received [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:50]recv_with_timeout no data received [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:25]accept exits with 8 [23:00:25]New connection [23:00:25]New thread 3067362660 created [23:00:25]Thread 3067506020 joined [23:00:25]Waiting for new connection... [23:00:25] Sock 8.Parse request [23:00:25]Sock 8.Check first char [23:00:25]Sock 8.First char is OK [23:00:25]request: POST /json_proto HTTP/1.0 [23:00:25]Method: POST [23:00:25]URL: /json_proto [23:00:25]Method is POST - this is cgi request [23:00:25]url: /json_proto [23:00:25]query_string will be loaded in cgi processing [23:00:25]execute_cgi json_proto POST (null) [23:00:25]execute_cgi path=json_proto method=POST [23:00:25]POST find Content-Length [23:00:25]Host: 172.17.43.132:8080 [23:00:25]Content-Length: 903 [23:00:25]Content-Type: application/json [23:00:25] [23:00:25]POST finish read [23:00:25]Found Content-Length = 903 [23:00:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184002", "tax_sys" : 0, "items" : [ { "code": "4860019001339", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,33\u043B \u0441\u0442", "price" : 103.00, "quantity" : 1.000, "sum" : 103.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160051", "name": "\u0412\u043E\u0434\u0430 \u042B\u0441\u0441\u044B\u043A \u0410\u0442\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 153.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:00:25]execute_script... [23:00:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184002", "tax_sys" : 0, "items" : [ { "code": "4860019001339", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,33\u043B \u0441\u0442", "price" : 103.00, "quantity" : 1.000, "sum" : 103.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160051", "name": "\u0412\u043E\u0434\u0430 \u042B\u0441\u0441\u044B\u043A \u0410\u0442\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 153.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:00:25]POST & json_proto [23:00:25]process_json_proto [23:00:25]json parsed OK: [23:00:25]protocol is kg_v1.0 [23:00:25]action value=close_receipt [23:00:25]process_action close_receipt [23:00:25]cmd_close_receipt [23:00:25]MH_GetDate [23:00:25]Write to MH i2c: F0 00 00 0A 05 FE [23:00:25]Write i2c OK [23:00:25]MH_I2C_Read... [23:00:25]Read from MH i2c: F0 [23:00:25]MH_I2C_Read... [23:00:25]Read from MH i2c: F0 09 00 [23:00:25]MH_I2C_Read... [23:00:25]Read from MH i2c: F0 09 00 0A 05 00 0A 1F A8 66 64 A3 A7 66 52 [23:00:25]GetLastDocTimeStamp 1722293491 [23:00:25]current date 1722294026 [23:00:25]FM_GetShiftState [23:00:25]SAM_PROTO_GetShiftState [23:00:25]wFMCommunicate request_size=4 [23:00:25]MH_SAM_APDU [23:00:25]CAPDU: 80 13 01 00 [23:00:25]Write to MH i2c: E2 08 00 0B 05 80 13 01 00 00 00 00 00 8D [23:00:25]Write i2c OK [23:00:25]MH_I2C_Read... [23:00:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:00:26]Read from MH i2c: E2 [23:00:26]MH_I2C_Read... [23:00:26]Read from MH i2c: E2 0E 00 [23:00:26]MH_I2C_Read... [23:00:26]Read from MH i2c: E2 0E 00 0B 05 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 29 [23:00:26]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [23:00:26]wFMCommunicate OK [23:00:26]SAM_PROTO_GetShiftState done [23:00:26]FM_GetShiftState done [23:00:26]opened in 1722211496 [23:00:26]opened+sec_in_day 1722297896 [23:00:26]quantity*price = 10300 [23:00:26]sum+1 = 10301 [23:00:26]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160051 Вода Ыссык Ата 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 153.00 НСП 1% : 1.35 НДС 12% : 16.25 Наличными: 153.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 162 29.07.2024 23:00 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41973 ФПД: 31537563084421 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T230026&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41973&fm=31537563084421&tin=02508201610067®Number=0000000000092626&sum=15300 0 [23:00:27]StoreToDocumentArchive [23:00:27]shift 427 fd 41973 [23:00:27]save to /storage/0427/doc_00041973 [23:00:27]save last doc name /storage/0427/doc_00041973 to /storage/kkm_last_doc_name [23:00:27]save OK [23:00:27]Clear old archive folders... [23:00:27]ProcessDocumentItem done err = 0, tmpTLVsize=379 [23:00:27]tlvbuf is 012A4AB0 [23:00:27]SAM_PROTO_ClearQueue [23:00:27]wFMCommunicate request_size=4 [23:00:27]MH_SAM_APDU [23:00:27]CAPDU: 80 09 00 00 [23:00:27]Write to MH i2c: E2 08 00 18 05 80 09 00 00 00 00 00 00 8F [23:00:27]Write i2c OK [23:00:27]MH_I2C_Read... [23:00:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:00:27]Read from MH i2c: E2 [23:00:27]MH_I2C_Read... [23:00:27]Read from MH i2c: E2 03 00 [23:00:27]MH_I2C_Read... [23:00:27]Read from MH i2c: E2 03 00 18 05 00 90 00 91 [23:00:27]RAPDU: 90 00 [23:00:27]wFMCommunicate OK [23:00:27]SAM_PROTO_ClearQueue done [23:00:27]KKMCreateOFDPacket [23:00:27]OFDProtocolAddRootSTLVToBuf [23:00:27]FM_MakeSignedData [23:00:27]FM_MakeSignedData [23:00:27]SAM_PROTO_SignData [23:00:27]wFMCommunicate request_size=4 [23:00:27]MH_SAM_APDU [23:00:27]CAPDU: 80 0D 01 02 [23:00:27]Write to MH i2c: E2 08 00 19 05 80 0D 01 02 00 00 00 00 97 [23:00:27]Write i2c OK [23:00:27]MH_I2C_Read... [23:00:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:00:27]Read from MH i2c: E2 [23:00:27]MH_I2C_Read... [23:00:27]Read from MH i2c: E2 03 00 [23:00:27]MH_I2C_Read... [23:00:27]Read from MH i2c: E2 03 00 19 05 00 90 00 92 [23:00:27]RAPDU: 90 00 [23:00:27]wFMCommunicate OK [23:00:27]wFMCommunicate request_size=255 [23:00:27]MH_SAM_APDU [23:00:27]CAPDU: 80 0D 02 02 FA 03 00 7B 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 33 39 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 33 33 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 3C 28 00 00 00 00 13 04 06 00 3C 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 3B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 87 00 00 00 00 [23:00:27]Write to MH i2c: E2 02 01 1A 05 80 0D 02 02 FA 00 03 00 7B 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 33 39 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 33 33 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 3C 28 00 00 00 00 13 04 06 00 3C 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 3B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 87 00 00 00 00 00 00 9A [23:00:27]Write i2c OK [23:00:27]MH_I2C_Read... [23:00:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:00:27]Read from MH i2c: E2 [23:00:27]MH_I2C_Read... [23:00:27]Read from MH i2c: E2 03 00 [23:00:27]MH_I2C_Read... [23:00:27]Read from MH i2c: E2 03 00 1A 05 00 90 00 93 [23:00:27]RAPDU: 90 00 [23:00:27]wFMCommunicate OK [23:00:27]wFMCommunicate request_size=138 [23:00:27]MH_SAM_APDU [23:00:27]CAPDU: 80 0D 02 02 85 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 06 00 00 00 00 07 04 06 00 C4 3B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 0A 1F A8 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 F5 A3 00 00 35 04 06 00 1C AE E9 3E A6 85 [23:00:27]Write to MH i2c: E2 8D 00 1B 05 80 0D 02 02 85 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 06 00 00 00 00 07 04 06 00 C4 3B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 0A 1F A8 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 F5 A3 00 00 35 04 06 00 1C AE E9 3E A6 85 00 00 71 [23:00:27]Write i2c OK [23:00:27]MH_I2C_Read... [23:00:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:00:27]Read from MH i2c: E2 [23:00:27]MH_I2C_Read... [23:00:27]Read from MH i2c: E2 03 00 [23:00:27]MH_I2C_Read... [23:00:27]Read from MH i2c: E2 03 00 1B 05 00 90 00 94 [23:00:27]RAPDU: 90 00 [23:00:27]wFMCommunicate OK [23:00:27]wFMCommunicate request_size=4 [23:00:27]MH_SAM_APDU [23:00:27]CAPDU: 80 0D 03 02 [23:00:27]Write to MH i2c: E2 08 00 1C 05 80 0D 03 02 00 00 00 00 9C [23:00:27]Write i2c OK [23:00:27]MH_I2C_Read... [23:00:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:00:27]Read from MH i2c: E2 [23:00:27]MH_I2C_Read... [23:00:27]Read from MH i2c: E2 0B 00 [23:00:27]MH_I2C_Read... [23:00:27]Read from MH i2c: E2 0B 00 1C 05 00 07 69 F0 A7 CA EB 93 12 90 00 FE [23:00:27]RAPDU: 07 69 F0 A7 CA EB 93 12 90 00 [23:00:27]wFMCommunicate OK [23:00:27]SAM_PROTO_SignData done [23:00:27]FM_MakeSignedData done [23:00:27]CreateOFDProtocolMessage [23:00:27]wFMCommunicate request_size=4 [23:00:27]MH_SAM_APDU [23:00:27]CAPDU: 80 11 00 00 [23:00:27]Write to MH i2c: E2 08 00 1D 05 80 11 00 00 00 00 00 00 9C [23:00:27]Write i2c OK [23:00:27]MH_I2C_Read... [23:00:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:00:27]Read from MH i2c: E2 [23:00:27]MH_I2C_Read... [23:00:27]Read from MH i2c: E2 17 00 [23:00:27]MH_I2C_Read... [23:00:27]Read from MH i2c: E2 17 00 1D 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 F8 [23:00:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [23:00:27]wFMCommunicate OK [23:00:27]CreateOFDProtocolMessage done [23:00:27]OFDSenderStorePacket 41973 [23:00:27]StoreOFDPacket docnum=41973 [23:00:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 8F 01 00 00 43 B4 87 01 F0 1F 5A 03 01 00 03 00 7B 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 33 39 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 33 33 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 3C 28 00 00 00 00 13 04 06 00 3C 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 3B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 87 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 06 00 00 00 00 07 04 06 00 C4 3B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 0A 1F A8 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 F5 A3 00 00 35 04 06 00 1C AE E9 3E A6 85 07 69 F0 A7 CA EB 93 12 [23:00:27]CheckFolder [23:00:27]dirname=/storage/ofd_packets [23:00:27]CheckFolder done [23:00:27]ProducePacketName [23:00:27]name=ofd_packets/00041973 [23:00:27]NVStorageSaveData ofd_packets/00041973 [23:00:27]File name is /storage/ofd_packets/00041973 [23:00:27]Write 429 bytes [23:00:27]NVStorageSaveData done [23:00:27]OFDSenderStorePacket done [23:00:27]KKMCreateOFDPacket done [23:00:27]NVStorageSaveData kkm_last_timestamp [23:00:27]File name is /storage/kkm_last_timestamp [23:00:27]Write 4 bytes [23:00:27]NVStorageSaveData done [23:00:27]ExternCall_PrintAddStr [23:00:27]wPrintStart [23:00:27]Write to MH i2c: 01 00 00 1E 05 23 [23:00:27]Write i2c OK [23:00:27]MH_I2C_Read... [23:00:27]Read from MH i2c: 01 [23:00:27]MH_I2C_Read... [23:00:27]Read from MH i2c: 01 07 00 [23:00:27]MH_I2C_Read... [23:00:27]Read from MH i2c: 01 07 00 1E 05 00 00 00 00 00 FF 0F 38 [23:00:27]RasterBufferAndPrint [23:00:27]line Счет N : (3)184002 [23:00:27]line ИНН: 02508201610067 [23:00:27]line Контрольно-Кассовый Чек [23:00:27]line ПРОДАЖА [23:00:27]line Товар: 4860019001339 [23:00:28]line Вода Боржоми 0,33л ст [23:00:28]line 1.000 * 103.00 [23:00:28]line = 103.00 [23:00:28]line НДС 12% НСП 1% [23:00:28]line > о реализуемом товаре [23:00:28]line Товар: 4700000160051 [23:00:28]line Вода Ыссык Ата 1л [23:00:28]line 1.000 * 50.00 [23:00:28]line = 50.00 [23:00:28]line НДС 12% НСП 1% [23:00:28]line > о реализуемом товаре [23:00:28]line ИТОГО: 153.00 [23:00:28]line НСП 1% : 1.35 [23:00:28]line НДС 12% : 16.25 [23:00:28]line Наличными: 153.00 [23:00:28]line Безнал.: 0.00 [23:00:28]line Место: АЗС № 97 "Партнер Нефть" [23:00:28]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [23:00:28]line СНО: Общий режим [23:00:28]line Чек 162 29.07.2024 23:00 [23:00:28]line Смена: 427 ФФД: 1.0 [23:00:28]line ЗНМ: 0300000053 [23:00:28]line РНМ: 0000000000092626 [23:00:28]line Версия ККМ: 001 [23:00:28]line ФМ: 0000000000874958 [23:00:28]line ФД: 41973 [23:00:28]line ФПД: 31537563084421 [23:00:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T230026&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41973&fm=31537563084421&tin=02508201610067®Number=0000000000092626&sum=15300 [23:00:28]line 0 [23:00:28]OFD Sender: Processing packet 41973 [packets to send 57, broken 56] [23:00:28]ProducePacketName [23:00:28]name=ofd_packets/00041973 [23:00:28]OFD Sender: To server: pG, [23:00:28]CommunicateWithHost lk.salyk.kg:30040 [23:00:28]ConnectInit lk.salyk.kg [23:00:28]written 0, free lines is 4095 [23:00:28]Write to MH i2c: 01 00 00 4C 05 51 [23:00:28]Write i2c OK [23:00:28]MH_I2C_Read... [23:00:28]Read from MH i2c: 01 [23:00:28]MH_I2C_Read... [23:00:28]Read from MH i2c: 01 07 00 [23:00:28]MH_I2C_Read... [23:00:28]Read from MH i2c: 01 07 00 4C 05 00 00 00 00 00 C3 0C 27 [23:00:28]RasterBufferAndPrint [23:00:28]line [23:00:28]line [23:00:28]line [23:00:28]line [23:00:28]line [23:00:28]written 0, free lines is 3273 [23:00:28]MH_Cut [23:00:28]Write to MH i2c: D1 01 00 53 05 01 2A [23:00:28]Write i2c OK [23:00:28]MH_I2C_Read... [23:00:28]Read from MH i2c: D1 [23:00:28]MH_I2C_Read... [23:00:28]Read from MH i2c: D1 01 00 [23:00:28]MH_I2C_Read... [23:00:28]Read from MH i2c: D1 01 00 53 05 00 29 [23:00:28]Write to MH i2c: 01 00 00 54 05 59 [23:00:28]Write i2c OK [23:00:28]MH_I2C_Read... [23:00:28]Connected sock=9 [23:00: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 35 38 8F 01 00 00 43 B4 87 01 F0 1F 5A 03 01 00 03 00 7B 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 33 39 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 33 33 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 3C 28 00 00 00 00 13 04 06 00 3C 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 3B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 87 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 06 00 00 00 00 07 04 06 00 C4 3B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 0A 1F A8 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 F5 A3 00 00 35 04 06 00 1C AE E9 3E A6 85 07 69 F0 A7 CA EB 93 12 [23:00: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 35 38 4F 00 00 00 AD 75 47 00 81 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 35 38 10 04 04 00 F5 A3 00 00 F4 03 04 00 20 CB A7 66 B6 04 01 00 00 3C 67 46 4D EF C3 6C 53 [23:00:29]CommunicateWithHost err = 0 [23:00:29]CheckOFDResponse [23:00:29]1017 (14) - 77093643461234 [23:00:29]1041 (16) - 0000000000874958 [23:00:29]1040 (4) - 41973 [23:00:29]1012 (4) - 29.07.2024 17:02 [23:00:29]1206 (1) - 0 [23:00:29]OFD Sender: Remove packet 41973 [23:00:29]ProducePacketName [23:00:29]name=ofd_packets/00041973 [23:00:29]NVStorageDeleteData [23:00:29]*** Cut start [23:00:29]*** Partial cut [23:00:29]*** CUTSNS_PIN = 1 [23:00:29]*** CUTSNS_PIN = 0 [23:00:29]OFD Sender: No OFD packet to send [23:00:29]*** Brake cut motor [23:00:30]Read from MH i2c: 01 [23:00:30]MH_I2C_Read... [23:00:30]*** Stop cut motor [23:00:30]*** Cut end [23:00:30]Read from MH i2c: 01 07 00 [23:00:30]MH_I2C_Read... [23:00:30]Read from MH i2c: 01 07 00 54 05 00 00 00 00 00 FF 0F 6E [23:00:30]process_action close_receipt done [23:00:30]requested_data is exist [23:00:30]produce_requested_data [23:00:30]requested_item fm.sn is exist - process it [23:00:30]wFMCommunicate request_size=4 [23:00:30]MH_SAM_APDU [23:00:30]CAPDU: 80 11 00 00 [23:00:30]Write to MH i2c: E2 08 00 55 05 80 11 00 00 00 00 00 00 D4 [23:00:30]Write i2c OK [23:00:30]MH_I2C_Read... [23:00:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:00:30]Read from MH i2c: E2 [23:00:30]MH_I2C_Read... [23:00:30]Read from MH i2c: E2 17 00 [23:00:30]MH_I2C_Read... [23:00:30]Read from MH i2c: E2 17 00 55 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 30 [23:00:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [23:00:30]wFMCommunicate OK [23:00:30]requested_item fd.num is exist - process it [23:00:30]SAM_PROTO_GetFieldsCounters [23:00:30]wFMCommunicate request_size=4 [23:00:30]MH_SAM_APDU [23:00:30]CAPDU: 80 13 00 00 [23:00:30]Write to MH i2c: E2 08 00 56 05 80 13 00 00 00 00 00 00 D7 [23:00:30]Write i2c OK [23:00:30]MH_I2C_Read... [23:00:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:00:30]Read from MH i2c: E2 [23:00:30]MH_I2C_Read... [23:00:30]Read from MH i2c: E2 62 00 [23:00:30]MH_I2C_Read... [23:00:30]Read from MH i2c: E2 62 00 56 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 F5 A3 00 00 0E 04 04 00 AB 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 2B [23:00: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 F5 A3 00 00 0E 04 04 00 AB 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 [23:00:30]wFMCommunicate OK [23:00:30]SAM_PROTO_GetFieldsCounters done [23:00:30]requested_item shift.num is exist - process it [23:00:30]requested_item shift.opened is exist - process it [23:00:30]req_shift_opened [23:00:30]FM_GetShiftState [23:00:30]SAM_PROTO_GetShiftState [23:00:30]wFMCommunicate request_size=4 [23:00:30]MH_SAM_APDU [23:00:30]CAPDU: 80 13 01 00 [23:00:30]Write to MH i2c: E2 08 00 57 05 80 13 01 00 00 00 00 00 D9 [23:00:30]Write i2c OK [23:00:30]MH_I2C_Read... [23:00:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:00:30]Read from MH i2c: E2 [23:00:30]MH_I2C_Read... [23:00:30]Read from MH i2c: E2 0E 00 [23:00:30]MH_I2C_Read... [23:00:30]Read from MH i2c: E2 0E 00 57 05 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 75 [23:00:30]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [23:00:30]wFMCommunicate OK [23:00:30]SAM_PROTO_GetShiftState done [23:00:30]FM_GetShiftState done [23:00:30]req_shift_opened done [23:00:30]requested_item shift.open_date is exist - process it [23:00:30]req_shift_open_date [23:00:30]req_shift_open_date done [23:00:30]produce_requested_data done [23:00:30]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41973,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [23:00:30]process_action_free close_receipt [23:00:30]json_value_free [23:00:30]json_value_free done [23:00:30]process_json_proto returns [23:00:30]Send response to host [23:00:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41973,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [23:00:30]free response buf [23:00:30]execute_script done [23:00:30]execute_script returns [23:00:30]free content buf [23:00:30]Sock 8.Close socket [23:00:30]Sock 8.Thread stoped [23:00:34]OFD Sender: No OFD packet to send [23:00:39]OFD Sender: No OFD packet to send [23:00:39]accept exits with 10 [23:00:39]New connection [23:00:39]New thread 3067506020 created [23:00:39]Thread 3067362660 joined [23:00:39]Waiting for new connection... [23:00:39] Sock 10.Parse request [23:00:39]Sock 10.Check first char [23:00:39]Sock 10.First char is OK [23:00:39]request: POST /json_proto HTTP/1.0 [23:00:39]Method: POST [23:00:39]URL: /json_proto [23:00:39]Method is POST - this is cgi request [23:00:39]url: /json_proto [23:00:39]query_string will be loaded in cgi processing [23:00:39]execute_cgi json_proto POST (null) [23:00:39]execute_cgi path=json_proto method=POST [23:00:39]POST find Content-Length [23:00:39]Host: 172.17.43.132:8080 [23:00:39]Content-Length: 685 [23:00:39]Content-Type: application/json [23:00:39] [23:00:39]POST finish read [23:00:39]Found Content-Length = 685 [23:00:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184003", "tax_sys" : 0, "items" : [ { "code": "4700003010476", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u044F\u0431\u043B\u043E\u043A\u043E \u041F\u042D\u0422 1\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:00:39]execute_script... [23:00:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184003", "tax_sys" : 0, "items" : [ { "code": "4700003010476", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u044F\u0431\u043B\u043E\u043A\u043E \u041F\u042D\u0422 1\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:00:39]POST & json_proto [23:00:39]process_json_proto [23:00:39]json parsed OK: [23:00:39]protocol is kg_v1.0 [23:00:39]action value=close_receipt [23:00:39]process_action close_receipt [23:00:39]cmd_close_receipt [23:00:39]MH_GetDate [23:00:39]Write to MH i2c: F0 00 00 58 05 4C [23:00:39]Write i2c OK [23:00:39]MH_I2C_Read... [23:00:39]Read from MH i2c: F0 [23:00:39]MH_I2C_Read... [23:00:39]Read from MH i2c: F0 09 00 [23:00:39]MH_I2C_Read... [23:00:39]Read from MH i2c: F0 09 00 58 05 00 18 1F A8 66 64 A3 A7 66 AE [23:00:39]GetLastDocTimeStamp 1722294026 [23:00:39]current date 1722294040 [23:00:39]FM_GetShiftState [23:00:39]SAM_PROTO_GetShiftState [23:00:39]wFMCommunicate request_size=4 [23:00:39]MH_SAM_APDU [23:00:39]CAPDU: 80 13 01 00 [23:00:39]Write to MH i2c: E2 08 00 59 05 80 13 01 00 00 00 00 00 DB [23:00:39]Write i2c OK [23:00:39]MH_I2C_Read... [23:00:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:00:39]Read from MH i2c: E2 [23:00:39]MH_I2C_Read... [23:00:39]Read from MH i2c: E2 0E 00 [23:00:39]MH_I2C_Read... [23:00:39]Read from MH i2c: E2 0E 00 59 05 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 77 [23:00:39]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [23:00:39]wFMCommunicate OK [23:00:39]SAM_PROTO_GetShiftState done [23:00:39]FM_GetShiftState done [23:00:39]opened in 1722211496 [23:00:39]opened+sec_in_day 1722297896 [23:00:39]quantity*price = 8000 [23:00:39]sum+1 = 8001 [23:00:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 80.00 НСП 1% : 0.71 НДС 12% : 8.50 Наличными: 80.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 163 29.07.2024 23:00 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41974 ФПД: 242382738192701 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T230040&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41974&fm=242382738192701&tin=02508201610067®Number=0000000000092626&sum=8000 0 [23:00:41]StoreToDocumentArchive [23:00:41]shift 427 fd 41974 [23:00:41]save to /storage/0427/doc_00041974 [23:00:41]save last doc name /storage/0427/doc_00041974 to /storage/kkm_last_doc_name [23:00:41]save OK [23:00:41]Clear old archive folders... [23:00:41]ProcessDocumentItem done err = 0, tmpTLVsize=296 [23:00:41]tlvbuf is 0120C390 [23:00:41]SAM_PROTO_ClearQueue [23:00:41]wFMCommunicate request_size=4 [23:00:41]MH_SAM_APDU [23:00:41]CAPDU: 80 09 00 00 [23:00:41]Write to MH i2c: E2 08 00 66 05 80 09 00 00 00 00 00 00 DD [23:00:41]Write i2c OK [23:00:41]MH_I2C_Read... [23:00:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:00:41]Read from MH i2c: E2 [23:00:41]MH_I2C_Read... [23:00:41]Read from MH i2c: E2 03 00 [23:00:41]MH_I2C_Read... [23:00:41]Read from MH i2c: E2 03 00 66 05 00 90 00 DF [23:00:41]RAPDU: 90 00 [23:00:41]wFMCommunicate OK [23:00:41]SAM_PROTO_ClearQueue done [23:00:41]KKMCreateOFDPacket [23:00:41]OFDProtocolAddRootSTLVToBuf [23:00:41]FM_MakeSignedData [23:00:41]FM_MakeSignedData [23:00:41]SAM_PROTO_SignData [23:00:41]wFMCommunicate request_size=4 [23:00:41]MH_SAM_APDU [23:00:41]CAPDU: 80 0D 01 02 [23:00:41]Write to MH i2c: E2 08 00 67 05 80 0D 01 02 00 00 00 00 E5 [23:00:41]Write i2c OK [23:00:41]MH_I2C_Read... [23:00:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:00:41]Read from MH i2c: E2 [23:00:41]MH_I2C_Read... [23:00:41]Read from MH i2c: E2 03 00 [23:00:41]MH_I2C_Read... [23:00:41]Read from MH i2c: E2 03 00 67 05 00 90 00 E0 [23:00:41]RAPDU: 90 00 [23:00:41]wFMCommunicate OK [23:00:41]wFMCommunicate request_size=255 [23:00:41]MH_SAM_APDU [23:00:41]CAPDU: 80 0D 02 02 FA 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 34 37 36 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 18 1F A8 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [23:00:41]Write to MH i2c: E2 02 01 68 05 80 0D 02 02 FA 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 34 37 36 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 18 1F A8 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 38 [23:00:41]Write i2c OK [23:00:41]MH_I2C_Read... [23:00:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:00:41]Read from MH i2c: E2 [23:00:41]MH_I2C_Read... [23:00:41]Read from MH i2c: E2 03 00 [23:00:41]MH_I2C_Read... [23:00:41]Read from MH i2c: E2 03 00 68 05 00 90 00 E1 [23:00:41]RAPDU: 90 00 [23:00:41]wFMCommunicate OK [23:00:41]wFMCommunicate request_size=55 [23:00:41]MH_SAM_APDU [23:00:41]CAPDU: 80 0D 02 02 32 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 F6 A3 00 00 35 04 06 00 DC 72 21 02 79 3D [23:00:41]Write to MH i2c: E2 3A 00 69 05 80 0D 02 02 32 00 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 F6 A3 00 00 35 04 06 00 DC 72 21 02 79 3D 00 00 0A [23:00:41]Write i2c OK [23:00:41]MH_I2C_Read... [23:00:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:00:41]Read from MH i2c: E2 [23:00:41]MH_I2C_Read... [23:00:41]Read from MH i2c: E2 03 00 [23:00:41]MH_I2C_Read... [23:00:41]Read from MH i2c: E2 03 00 69 05 00 90 00 E2 [23:00:41]RAPDU: 90 00 [23:00:41]wFMCommunicate OK [23:00:41]wFMCommunicate request_size=4 [23:00:41]MH_SAM_APDU [23:00:41]CAPDU: 80 0D 03 02 [23:00:41]Write to MH i2c: E2 08 00 6A 05 80 0D 03 02 00 00 00 00 EA [23:00:41]Write i2c OK [23:00:41]MH_I2C_Read... [23:00:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:00:41]Read from MH i2c: E2 [23:00:41]MH_I2C_Read... [23:00:41]Read from MH i2c: E2 0B 00 [23:00:41]MH_I2C_Read... [23:00:41]Read from MH i2c: E2 0B 00 6A 05 00 74 48 20 84 3B 29 85 6C 90 00 A0 [23:00:41]RAPDU: 74 48 20 84 3B 29 85 6C 90 00 [23:00:41]wFMCommunicate OK [23:00:41]SAM_PROTO_SignData done [23:00:41]FM_MakeSignedData done [23:00:41]CreateOFDProtocolMessage [23:00:41]wFMCommunicate request_size=4 [23:00:41]MH_SAM_APDU [23:00:41]CAPDU: 80 11 00 00 [23:00:41]Write to MH i2c: E2 08 00 6B 05 80 11 00 00 00 00 00 00 EA [23:00:41]Write i2c OK [23:00:41]MH_I2C_Read... [23:00:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:00:41]Read from MH i2c: E2 [23:00:41]MH_I2C_Read... [23:00:41]Read from MH i2c: E2 17 00 [23:00:41]MH_I2C_Read... [23:00:41]Read from MH i2c: E2 17 00 6B 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 46 [23:00:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [23:00:41]wFMCommunicate OK [23:00:41]CreateOFDProtocolMessage done [23:00:41]OFDSenderStorePacket 41974 [23:00:41]StoreOFDPacket docnum=41974 [23:00:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 3C 01 00 00 81 E4 34 01 E3 37 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 34 37 36 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 18 1F A8 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 F6 A3 00 00 35 04 06 00 DC 72 21 02 79 3D 74 48 20 84 3B 29 85 6C [23:00:41]CheckFolder [23:00:41]dirname=/storage/ofd_packets [23:00:41]CheckFolder done [23:00:41]ProducePacketName [23:00:41]name=ofd_packets/00041974 [23:00:41]NVStorageSaveData ofd_packets/00041974 [23:00:41]File name is /storage/ofd_packets/00041974 [23:00:41]Write 346 bytes [23:00:41]NVStorageSaveData done [23:00:41]OFDSenderStorePacket done [23:00:41]KKMCreateOFDPacket done [23:00:41]NVStorageSaveData kkm_last_timestamp [23:00:41]File name is /storage/kkm_last_timestamp [23:00:41]Write 4 bytes [23:00:41]NVStorageSaveData done [23:00:41]ExternCall_PrintAddStr [23:00:41]wPrintStart [23:00:41]Write to MH i2c: 01 00 00 6C 05 71 [23:00:41]Write i2c OK [23:00:41]MH_I2C_Read... [23:00:41]Read from MH i2c: 01 [23:00:41]MH_I2C_Read... [23:00:41]Read from MH i2c: 01 07 00 [23:00:41]MH_I2C_Read... [23:00:41]Read from MH i2c: 01 07 00 6C 05 00 00 00 00 00 FF 0F 86 [23:00:41]RasterBufferAndPrint [23:00:41]line Счет N : (3)184003 [23:00:41]line ИНН: 02508201610067 [23:00:41]line Контрольно-Кассовый Чек [23:00:41]line ПРОДАЖА [23:00:41]line Товар: 4700003010476 [23:00:41]line Напиток Let`s Go! с/с яблоко ПЭТ 1л [23:00:41]line 1.000 * 80.00 [23:00:41]line = 80.00 [23:00:41]line НДС 12% НСП 1% [23:00:41]line > о реализуемом товаре [23:00:41]line ИТОГО: 80.00 [23:00:41]line НСП 1% : 0.71 [23:00:41]line НДС 12% : 8.50 [23:00:41]line Наличными: 80.00 [23:00:41]line Безнал.: 0.00 [23:00:41]line Место: АЗС № 97 "Партнер Нефть" [23:00:41]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [23:00:41]line СНО: Общий режим [23:00:41]line Чек 163 29.07.2024 23:00 [23:00:41]line Смена: 427 ФФД: 1.0 [23:00:41]line ЗНМ: 0300000053 [23:00:41]line РНМ: 0000000000092626 [23:00:41]line Версия ККМ: 001 [23:00:41]line ФМ: 0000000000874958 [23:00:41]line ФД: 41974 [23:00:41]line ФПД: 242382738192701 [23:00:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T230040&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41974&fm=242382738192701&tin=02508201610067®Number=0000000000092626&sum=8000 [23:00:41]line 0 [23:00:41]written 0, free lines is 4095 [23:00:41]OFD Sender: Processing packet 41974 [packets to send 57, broken 56] [23:00:41]ProducePacketName [23:00:41]name=ofd_packets/00041974 [23:00:41]OFD Sender: To server: pG, [23:00:41]CommunicateWithHost lk.salyk.kg:30040 [23:00:41]ConnectInit lk.salyk.kg [23:00:42]Write to MH i2c: 01 00 00 95 05 9A [23:00:42]Write i2c OK [23:00:42]MH_I2C_Read... [23:00:42]Read from MH i2c: 01 [23:00:42]MH_I2C_Read... [23:00:42]Read from MH i2c: 01 07 00 [23:00:42]MH_I2C_Read... [23:00:42]Read from MH i2c: 01 07 00 95 05 00 00 00 00 00 00 0D AE [23:00:42]RasterBufferAndPrint [23:00:42]line [23:00:42]line [23:00:42]line [23:00:42]line [23:00:42]line [23:00:42]written 0, free lines is 3337 [23:00:42]MH_Cut [23:00:42]Write to MH i2c: D1 01 00 9C 05 01 73 [23:00:42]Write i2c OK [23:00:42]MH_I2C_Read... [23:00:42]Read from MH i2c: D1 [23:00:42]MH_I2C_Read... [23:00:42]Read from MH i2c: D1 01 00 [23:00:42]MH_I2C_Read... [23:00:42]Read from MH i2c: D1 01 00 9C 05 00 72 [23:00:42]Write to MH i2c: 01 00 00 9D 05 A2 [23:00:42]Write i2c OK [23:00:42]MH_I2C_Read... [23:00:42]*** Cut start [23:00:42]*** Partial cut [23:00:42]*** CUTSNS_PIN = 1 [23:00:42]*** CUTSNS_PIN = 0 [23:00:43]*** Brake cut motor [23:00:43]Read from MH i2c: 01 [23:00:43]MH_I2C_Read... [23:00:43]*** Stop cut motor [23:00:43]*** Cut end [23:00:43]Read from MH i2c: 01 07 00 [23:00:43]MH_I2C_Read... [23:00:43]Read from MH i2c: 01 07 00 9D 05 00 00 00 00 00 FF 0F B7 [23:00:43]process_action close_receipt done [23:00:43]requested_data is exist [23:00:43]produce_requested_data [23:00:43]requested_item fm.sn is exist - process it [23:00:43]wFMCommunicate request_size=4 [23:00:43]MH_SAM_APDU [23:00:43]CAPDU: 80 11 00 00 [23:00:43]Write to MH i2c: E2 08 00 9E 05 80 11 00 00 00 00 00 00 1D [23:00:43]Write i2c OK [23:00:43]MH_I2C_Read... [23:00:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:00:43]Read from MH i2c: E2 [23:00:43]MH_I2C_Read... [23:00:43]Read from MH i2c: E2 17 00 [23:00:43]MH_I2C_Read... [23:00:43]Read from MH i2c: E2 17 00 9E 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 79 [23:00:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [23:00:43]wFMCommunicate OK [23:00:43]requested_item fd.num is exist - process it [23:00:43]SAM_PROTO_GetFieldsCounters [23:00:43]wFMCommunicate request_size=4 [23:00:43]MH_SAM_APDU [23:00:43]CAPDU: 80 13 00 00 [23:00:43]Write to MH i2c: E2 08 00 9F 05 80 13 00 00 00 00 00 00 20 [23:00:43]Write i2c OK [23:00:43]MH_I2C_Read... [23:00:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:00:43]Read from MH i2c: E2 [23:00:43]MH_I2C_Read... [23:00:43]Read from MH i2c: E2 62 00 [23:00:43]MH_I2C_Read... [23:00:43]Read from MH i2c: E2 62 00 9F 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 F6 A3 00 00 0E 04 04 00 AB 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 78 [23:00:43]RAPDU: 5D 00 B9 04 01 00 [23:02:42]ConnectInit Can't connect to host [23:02:46]OFD Sender: No OFD packet to send [23:02:51]OFD Sender: No OFD packet to send [23:02:56]OFD Sender: No OFD packet to send [23:03:00]recv_with_timeout no data received [23:03:01]OFD Sender: No OFD packet to send [23:03:06]OFD Sender: No OFD packet to send [23:03:11]OFD Sender: No OFD packet to send [23:03:16]OFD Sender: No OFD packet to send [23:03:21]OFD Sender: No OFD packet to send [23:03:26]OFD Sender: No OFD packet to send [23:03:31]OFD Sender: No OFD packet to send [23:03:36]OFD Sender: No OFD packet to send [23:03:41]OFD Sender: No OFD packet to send [23:03:51]OFD Sender: No OFD packet to send [23:03:56]OFD Sender: No OFD packet to send [23:04:01]OFD Sender: No OFD packet to send [23:04:02]recv_with_timeout no data received [23:04:06]OFD Sender: No OFD packet to send [23:04:11]OFD Sender: No OFD packet to send [23:04:16]OFD Sender: No OFD packet to send [23:04:21]OFD Sender: No OFD packet to send [23:04:26]OFD Sender: No OFD packet to send [23:04:31]OFD Sender: No OFD packet to send [23:04:36]OFD Sender: No OFD packet to send [23:04:41]OFD Sender: No OFD packet to send [23:04:46]OFD Sender: No OFD packet to send [23:04:51]OFD Sender: No OFD packet to send [23:04:56]OFD Sender: No OFD packet to send [23:05:01]OFD Sender: No OFD packet to send [23:05:05]accept exits with 8 [23:05:05]New connection [23:05:05]New thread 3067362660 created [23:05:05]Thread 3067506020 joined [23:05:05]Waiting for new connection... [23:05:05] Sock 8.Parse request [23:05:05]Sock 8.Check first char [23:05:05]Sock 8.First char is OK [23:05:05]request: POST /json_proto HTTP/1.0 [23:05:05]Method: POST [23:05:05]URL: /json_proto [23:05:05]Method is POST - this is cgi request [23:05:05]url: /json_proto [23:05:05]query_string will be loaded in cgi processing [23:05:05]execute_cgi json_proto POST (null) [23:05:05]execute_cgi path=json_proto method=POST [23:05:05]POST find Content-Length [23:05:05]Host: 172.17.43.132:8080 [23:05:05]Content-Length: 914 [23:05:05]Content-Type: application/json [23:05:05] [23:05:05]POST finish read [23:05:05]Found Content-Length = 914 [23:05:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184004", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 255.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:05:05]execute_script... [23:05:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184004", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 255.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:05:05]POST & json_proto [23:05:05]process_json_proto [23:05:05]json parsed OK: [23:05:05]protocol is kg_v1.0 [23:05:05]action value=close_receipt [23:05:05]process_action close_receipt [23:05:05]cmd_close_receipt [23:05:05]MH_GetDate [23:05:05]Write to MH i2c: F0 00 00 A1 05 95 [23:05:05]Write i2c OK [23:05:05]MH_I2C_Read... [23:05:05]Read from MH i2c: F0 [23:05:05]MH_I2C_Read... [23:05:05]Read from MH i2c: F0 09 00 [23:05:05]MH_I2C_Read... [23:05:05]Read from MH i2c: F0 09 00 A1 05 00 22 20 A8 66 64 A3 A7 66 02 [23:05:05]GetLastDocTimeStamp 1722294040 [23:05:05]current date 1722294306 [23:05:05]FM_GetShiftState [23:05:05]SAM_PROTO_GetShiftState [23:05:05]wFMCommunicate request_size=4 [23:05:05]MH_SAM_APDU [23:05:05]CAPDU: 80 13 01 00 [23:05:05]Write to MH i2c: E2 08 00 A2 05 80 13 01 00 00 00 00 00 24 [23:05:05]Write i2c OK [23:05:05]MH_I2C_Read... [23:05:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:05:05]Read from MH i2c: E2 [23:05:05]MH_I2C_Read... [23:05:05]Read from MH i2c: E2 0E 00 [23:05:05]MH_I2C_Read... [23:05:05]Read from MH i2c: E2 0E 00 A2 05 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 C0 [23:05:05]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [23:05:05]wFMCommunicate OK [23:05:05]SAM_PROTO_GetShiftState done [23:05:05]FM_GetShiftState done [23:05:05]opened in 1722211496 [23:05:05]opened+sec_in_day 1722297896 [23:05:05]quantity*price = 12500 [23:05:05]sum+1 = 12501 [23:05:05]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 255.00 НСП 1% : 2.26 НДС 12% : 27.07 Наличными: 255.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 164 29.07.2024 23:05 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41975 ФПД: 268617975051999 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T230506&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41975&fm=268617975051999&tin=02508201610067®Number=0000000000092626&sum=25500 0 [23:05:07]StoreToDocumentArchive [23:05:07]shift 427 fd 41975 [23:05:07]save to /storage/0427/doc_00041975 [23:05:07]save last doc name /storage/0427/doc_00041975 to /storage/kkm_last_doc_name [23:05:07]save OK [23:05:07]Clear old archive folders... [23:05:07]ProcessDocumentItem done err = 0, tmpTLVsize=396 [23:05:07]tlvbuf is 012A46D0 [23:05:07]SAM_PROTO_ClearQueue [23:05:07]wFMCommunicate request_size=4 [23:05:07]MH_SAM_APDU [23:05:07]CAPDU: 80 09 00 00 [23:05:07]Write to MH i2c: E2 08 00 AF 05 80 09 00 00 00 00 00 00 26 [23:05:07]Write i2c OK [23:05:07]MH_I2C_Read... [23:05:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:05:07]Read from MH i2c: E2 [23:05:07]MH_I2C_Read... [23:05:07]Read from MH i2c: E2 03 00 [23:05:07]MH_I2C_Read... [23:05:07]Read from MH i2c: E2 03 00 AF 05 00 90 00 28 [23:05:07]RAPDU: 90 00 [23:05:07]wFMCommunicate OK [23:05:07]SAM_PROTO_ClearQueue done [23:05:07]KKMCreateOFDPacket [23:05:07]OFDProtocolAddRootSTLVToBuf [23:05:07]FM_MakeSignedData [23:05:07]FM_MakeSignedData [23:05:07]SAM_PROTO_SignData [23:05:07]wFMCommunicate request_size=4 [23:05:07]MH_SAM_APDU [23:05:07]CAPDU: 80 0D 01 02 [23:05:07]Write to MH i2c: E2 08 00 B0 05 80 0D 01 02 00 00 00 00 2E [23:05:07]Write i2c OK [23:05:07]MH_I2C_Read... [23:05:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:05:07]Read from MH i2c: E2 [23:05:07]MH_I2C_Read... [23:05:07]Read from MH i2c: E2 03 00 [23:05:07]MH_I2C_Read... [23:05:07]Read from MH i2c: E2 03 00 B0 05 00 90 00 29 [23:05:07]RAPDU: 90 00 [23:05:07]wFMCommunicate OK [23:05:07]wFMCommunicate request_size=255 [23:05:07]MH_SAM_APDU [23:05:07]CAPDU: 80 0D 02 02 FA 03 00 8C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 63 00 00 00 00 EB 03 26 00 EF [23:05:07]Write to MH i2c: E2 02 01 B1 05 80 0D 02 02 FA 00 03 00 8C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 63 00 00 00 00 EB 03 26 00 EF 00 00 41 [23:05:07]Write i2c OK [23:05:07]MH_I2C_Read... [23:05:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:05:07]Read from MH i2c: E2 [23:05:07]MH_I2C_Read... [23:05:07]Read from MH i2c: E2 03 00 [23:05:07]MH_I2C_Read... [23:05:07]Read from MH i2c: E2 03 00 B1 05 00 90 00 2A [23:05:07]RAPDU: 90 00 [23:05:07]wFMCommunicate OK [23:05:07]wFMCommunicate request_size=155 [23:05:07]MH_SAM_APDU [23:05:07]CAPDU: 80 0D 02 02 96 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 0A 00 00 00 00 07 04 06 00 9C 63 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 22 20 A8 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 F7 A3 00 00 35 04 06 00 F4 4E 7E FB B6 DF [23:05:07]Write to MH i2c: E2 9E 00 B2 05 80 0D 02 02 96 00 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 0A 00 00 00 00 07 04 06 00 9C 63 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 22 20 A8 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 F7 A3 00 00 35 04 06 00 F4 4E 7E FB B6 DF 00 00 A8 [23:05:07]Write i2c OK [23:05:07]MH_I2C_Read... [23:05:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:05:07]Read from MH i2c: E2 [23:05:07]MH_I2C_Read... [23:05:07]Read from MH i2c: E2 03 00 [23:05:07]MH_I2C_Read... [23:05:07]Read from MH i2c: E2 03 00 B2 05 00 90 00 2B [23:05:07]RAPDU: 90 00 [23:05:07]wFMCommunicate OK [23:05:07]wFMCommunicate request_size=4 [23:05:07]MH_SAM_APDU [23:05:07]CAPDU: 80 0D 03 02 [23:05:07]Write to MH i2c: E2 08 00 B3 05 80 0D 03 02 00 00 00 00 33 [23:05:07]Write i2c OK [23:05:07]MH_I2C_Read... [23:05:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:05:07]Read from MH i2c: E2 [23:05:07]MH_I2C_Read... [23:05:07]Read from MH i2c: E2 0B 00 [23:05:07]MH_I2C_Read... [23:05:07]Read from MH i2c: E2 0B 00 B3 05 00 80 F5 E5 A4 54 74 24 6F 90 00 8D [23:05:07]RAPDU: 80 F5 E5 A4 54 74 24 6F 90 00 [23:05:07]wFMCommunicate OK [23:05:07]SAM_PROTO_SignData done [23:05:07]FM_MakeSignedData done [23:05:07]CreateOFDProtocolMessage [23:05:07]wFMCommunicate request_size=4 [23:05:07]MH_SAM_APDU [23:05:07]CAPDU: 80 11 00 00 [23:05:07]Write to MH i2c: E2 08 00 B4 05 80 11 00 00 00 00 00 00 33 [23:05:07]Write i2c OK [23:05:07]MH_I2C_Read... [23:05:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:05:07]Read from MH i2c: E2 [23:05:07]MH_I2C_Read... [23:05:07]Read from MH i2c: E2 17 00 [23:05:07]MH_I2C_Read... [23:05:07]Read from MH i2c: E2 17 00 B4 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 8F [23:05:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [23:05:07]wFMCommunicate OK [23:05:07]CreateOFDProtocolMessage done [23:05:07]OFDSenderStorePacket 41975 [23:05:07]StoreOFDPacket docnum=41975 [23:05:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 A0 01 00 00 C8 98 98 01 59 A0 5A 03 01 00 03 00 8C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 0A 00 00 00 00 07 04 06 00 9C 63 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 22 20 A8 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 F7 A3 00 00 35 04 06 00 F4 4E 7E FB B6 DF 80 F5 E5 A4 54 74 24 6F [23:05:07]CheckFolder [23:05:07]dirname=/storage/ofd_packets [23:05:07]CheckFolder done [23:05:07]ProducePacketName [23:05:07]name=ofd_packets/00041975 [23:05:07]NVStorageSaveData ofd_packets/00041975 [23:05:07]File name is /storage/ofd_packets/00041975 [23:05:07]Write 446 bytes [23:05:07]NVStorageSaveData done [23:05:07]OFDSenderStorePacket done [23:05:07]KKMCreateOFDPacket done [23:05:07]NVStorageSaveData kkm_last_timestamp [23:05:07]File name is /storage/kkm_last_timestamp [23:05:07]Write 4 bytes [23:05:07]NVStorageSaveData done [23:05:07]ExternCall_PrintAddStr [23:05:07]wPrintStart [23:05:07]Write to MH i2c: 01 00 00 B5 05 BA [23:05:07]Write i2c OK [23:05:07]MH_I2C_Read... [23:05:07]Read from MH i2c: 01 [23:05:07]MH_I2C_Read... [23:05:07]Read from MH i2c: 01 07 00 [23:05:07]MH_I2C_Read... [23:05:07]Read from MH i2c: 01 07 00 B5 05 00 00 00 00 00 FF 0F CF [23:05:07]RasterBufferAndPrint [23:05:07]line Счет N : (3)184004 [23:05:07]line ИНН: 02508201610067 [23:05:08]line Контрольно-Кассовый Чек [23:05:08]line ПРОДАЖА [23:05:08]line Товар: 2000036190018 [23:05:08]line Кофе Американо XL(GABB TRADE) [23:05:08]line 1.000 * 125.00 [23:05:08]line = 125.00 [23:05:08]line НДС 12% НСП 1% [23:05:08]line > о реализуемом товаре [23:05:08]line Товар: 2000036220012 [23:05:08]line Кофе Капучино XL(GABB TRADE) [23:05:08]line 1.000 * 130.00 [23:05:08]line = 130.00 [23:05:08]line НДС 12% НСП 1% [23:05:08]line > о реализуемом товаре [23:05:08]line ИТОГО: 255.00 [23:05:08]line НСП 1% : 2.26 [23:05:08]line НДС 12% : 27.07 [23:05:08]line Наличными: 255.00 [23:05:08]line Безнал.: 0.00 [23:05:08]line Место: АЗС № 97 "Партнер Нефть" [23:05:08]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [23:05:08]line СНО: Общий режим [23:05:08]line Чек 164 29.07.2024 23:05 [23:05:08]line Смена: 427 ФФД: 1.0 [23:05:08]line ЗНМ: 0300000053 [23:05:08]line РНМ: 0000000000092626 [23:05:08]line Версия ККМ: 001 [23:05:08]line ФМ: 0000000000874958 [23:05:08]line ФД: 41975 [23:05:08]line ФПД: 268617975051999 [23:05:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T230506&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41975&fm=268617975051999&tin=02508201610067®Number=0000000000092626&sum=25500 [23:05:08]line 0 [23:05:08]OFD Sender: Processing packet 41975 [packets to send 57, broken 56] [23:05:08]ProducePacketName [23:05:08]name=ofd_packets/00041975 [23:05:08]OFD Sender: To server: pG, [23:05:08]CommunicateWithHost lk.salyk.kg:30040 [23:05:08]ConnectInit lk.salyk.kg [23:05:08]written 0, free lines is 4095 [23:05:08]Write to MH i2c: 01 00 00 E5 05 EA [23:05:08]Write i2c OK [23:05:08]MH_I2C_Read... [23:05:08]Read from MH i2c: 01 [23:05:08]MH_I2C_Read... [23:05:08]Read from MH i2c: 01 07 00 [23:05:08]MH_I2C_Read... [23:05:08]Read from MH i2c: 01 07 00 E5 05 00 00 00 00 00 AF 0C AC [23:05:08]RasterBufferAndPrint [23:05:08]line [23:05:08]line [23:05:08]line [23:05:08]line [23:05:08]line [23:05:08]written 0, free lines is 3253 [23:05:08]MH_Cut [23:05:08]Write to MH i2c: D1 01 00 EC 05 01 C3 [23:05:08]Write i2c OK [23:05:08]MH_I2C_Read... [23:05:08]Read from MH i2c: D1 [23:05:08]MH_I2C_Read... [23:05:08]Read from MH i2c: D1 01 00 [23:05:08]MH_I2C_Read... [23:05:08]Read from MH i2c: D1 01 00 EC 05 00 C2 [23:05:08]Write to MH i2c: 01 00 00 ED 05 F2 [23:05:08]Write i2c OK [23:05:08]MH_I2C_Read... [23:05:09]*** Cut start [23:05:09]*** Partial cut [23:05:09]*** CUTSNS_PIN = 1 [23:05:09]*** CUTSNS_PIN = 0 [23:05:09]*** Brake cut motor [23:05:10]Read from MH i2c: 01 [23:05:10]MH_I2C_Read... [23:05:10]*** Stop cut motor [23:05:10]*** Cut end [23:05:10]Read from MH i2c: 01 07 00 [23:05:10]MH_I2C_Read... [23:05:10]Read from MH i2c: 01 07 00 ED 05 00 00 00 00 00 FF 0F 07 [23:05:10]process_action close_receipt done [23:05:10]requested_data is exist [23:05:10]produce_requested_data [23:05:10]requested_item fm.sn is exist - process it [23:05:10]wFMCommunicate request_size=4 [23:05:10]MH_SAM_APDU [23:05:10]CAPDU: 80 11 00 00 [23:05:10]Write to MH i2c: E2 08 00 EE 05 80 11 00 00 00 00 00 00 6D [23:05:10]Write i2c OK [23:05:10]MH_I2C_Read... [23:05:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:05:10]Read from MH i2c: E2 [23:05:10]MH_I2C_Read... [23:05:10]Read from MH i2c: E2 17 00 [23:05:10]MH_I2C_Read... [23:05:10]Read from MH i2c: E2 17 00 EE 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 C9 [23:05:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [23:05:10]wFMCommunicate OK [23:05:10]requested_item fd.num is exist - process it [23:05:10]SAM_PROTO_GetFieldsCounters [23:05:10]wFMCommunicate request_size=4 [23:05:10]MH_SAM_APDU [23:05:10]CAPDU: 80 13 00 00 [23:05:10]Write to MH i2c: E2 08 00 EF 05 80 13 00 00 00 00 00 00 70 [23:05:10]Write i2c OK [23:05:10]MH_I2C_Read... [23:05:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:05:10]Read from MH i2c: E2 [23:05:10]MH_I2C_Read... [23:05:10]Read from MH i2c: E2 62 00 [23:05:10]MH_I2C_Read... [23:05:10]Read from MH i2c: E2 62 00 EF 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 F7 A3 00 00 0E 04 04 00 AB 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 CC [23:05: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 F7 A3 00 00 0E 04 04 00 AB 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 [23:05:10]wFMCommunicate OK [23:05:10]SAM_PROTO_GetFieldsCounters done [23:05:10]requested_item shift.num is exist - process it [23:05:10]requested_item shift.opened is exist - process it [23:05:10]req_shift_opened [23:05:10]FM_GetShiftState [23:05:10]SAM_PROTO_GetShiftState [23:05:10]wFMCommunicate request_size=4 [23:05:10]MH_SAM_APDU [23:05:10]CAPDU: 80 13 01 00 [23:05:10]Write to MH i2c: E2 08 00 F0 05 80 13 01 00 00 00 00 00 72 [23:05:10]Write i2c OK [23:05:10]MH_I2C_Read... [23:05:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:05:10]Read from MH i2c: E2 [23:05:10]MH_I2C_Read... [23:05:10]Read from MH i2c: E2 0E 00 [23:05:10]MH_I2C_Read... [23:05:10]Read from MH i2c: E2 0E 00 F0 05 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 0E [23:05:10]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [23:05:10]wFMCommunicate OK [23:05:10]SAM_PROTO_GetShiftState done [23:05:10]FM_GetShiftState done [23:05:10]req_shift_opened done [23:05:10]requested_item shift.open_date is exist - process it [23:05:10]req_shift_open_date [23:05:10]req_shift_open_date done [23:05:10]produce_requested_data done [23:05:10]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41975,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [23:05:10]process_action_free close_receipt [23:05:10]json_value_free [23:05:10]json_value_free done [23:05:10]process_json_proto returns [23:05:10]Send response to host [23:05:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41975,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [23:05:10]free response buf [23:05:10]execute_script done [23:05:10]execute_script returns [23:05:10]free content buf [23:05:10]Sock 8.Close socket [23:05:10]Sock 8.Thread stoped [23:05:13]ConnectInit Can't take IP for lk.salyk.kg [23:05:13]CommunicateWithHost connect error [23:05:13]CommunicateWithHost err = -1 [23:05:13]OFD Sender: Server communicate error [23:05:18]OFD Sender: Processing packet 41975 [packets to send 57, broken 56] [23:05:18]ProducePacketName [23:05:18]name=ofd_packets/00041975 [23:05:18]OFD Sender: To server: pG, [23:05:18]CommunicateWithHost lk.salyk.kg:30040 [23:05:18]ConnectInit lk.salyk.kg [23:05:23]ConnectInit Can't take IP for lk.salyk.kg [23:05:23]CommunicateWithHost connect error [23:05:23]CommunicateWithHost err = -1 [23:05:23]OFD Sender: Server communicate error [23:05:28]OFD Sender: Processing packet 41975 [packets to send 57, broken 56] [23:05:28]ProducePacketName [23:05:28]name=ofd_packets/00041975 [23:05:28]OFD Sender: To server: pG, [23:05:28]CommunicateWithHost lk.salyk.kg:30040 [23:05:28]ConnectInit lk.salyk.kg [23:05:35]recv_with_timeout no data received [23:06:01]Connected sock=9 [23:06:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 A0 01 00 00 C8 98 98 01 59 A0 5A 03 01 00 03 00 8C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 0A 00 00 00 00 07 04 06 00 9C 63 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 22 20 A8 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 F7 A3 00 00 35 04 06 00 F4 4E 7E FB B6 DF 80 F5 E5 A4 54 74 24 6F [23:06: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 35 38 4F 00 00 00 6C 8D 47 00 32 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 35 38 10 04 04 00 F7 A3 00 00 F4 03 04 00 6F CC A7 66 B6 04 01 00 00 78 96 65 B0 69 5E 03 9C [23:06:03]CommunicateWithHost err = 0 [23:06:03]CheckOFDResponse [23:06:03]1017 (14) - 77093643461234 [23:06:03]1041 (16) - 0000000000874958 [23:06:03]1040 (4) - 41975 [23:06:03]1012 (4) - 29.07.2024 17:07 [23:06:03]1206 (1) - 0 [23:06:03]OFD Sender: Remove packet 41975 [23:06:03]ProducePacketName [23:06:03]name=ofd_packets/00041975 [23:06:03]NVStorageDeleteData [23:06:04]OFD Sender: No OFD packet to send [23:06:09]OFD Sender: No OFD packet to send [23:06:14]OFD Sender: No OFD packet to send [23:06:19]OFD Sender: No OFD packet to send [23:06:24]OFD Sender: No OFD packet to send [23:06:29]OFD Sender: No OFD packet to send [23:06:34]OFD Sender: No OFD packet to send [23:06:39]OFD Sender: No OFD packet to send [23:06:44]OFD Sender: No OFD packet to send [23:06:49]OFD Sender: No OFD packet to send [23:06:54]OFD Sender: No OFD packet to send [23:06:59]OFD Sender: No OFD packet to send [23:07:04]OFD Sender: No OFD packet to send [23:07:09]OFD Sender: No OFD packet to send [23:07:14]OFD Sender: No OFD packet to send [23:07:19]OFD Sender: No OFD packet to send [23:07:24]OFD Sender: No OFD packet to send [23:07:29]OFD Sender: No OFD packet to send [23:07:34]OFD Sender: No OFD packet to send [23:07:39]OFD Sender: No OFD packet to send [23:07:44]OFD Sender: No OFD packet to send [23:07:49]OFD Sender: No OFD packet to send [23:07:49]recv_with_timeout no data received [23:07:54]OFD Sender: No OFD packet to send [23:07:59]OFD Sender: No OFD packet to send [23:08:04]OFD Sender: No OFD packet to send [23:08:09]OFD Sender: No OFD packet to send [23:08:14]OFD Sender: No OFD packet to send [23:08:19]OFD Sender: No OFD packet to send [23:08:24]OFD Sender: No OFD packet to send [23:08:29]OFD Sender: No OFD packet to send [23:08:34]OFD Sender: No OFD packet to send [23:08:39]OFD Sender: No OFD packet to send [23:08:44]OFD Sender: No OFD packet to send [23:08:49]OFD Sender: No OFD packet to send [23:08:54]OFD Sender: No OFD packet to send [23:08:59]OFD Sender: No OFD packet to send [23:09:04]OFD Sender: No OFD packet to send [23:09:09]OFD Sender: No OFD packet to send [23:09:29]OFD Sender: No OFD packet to send [23:09:34]OFD Sender: No OFD packet to send [23:09:39]OFD Sender: No OFD packet to send [23:09:44]OFD Sender: No OFD packet to send [23:09:49]OFD Sender: No OFD packet to send [23:09:54]OFD Sender: No OFD packet to send [23:09:59]OFD Sender: No OFD packet to send [23:10:04]recv_with_timeout no data received [23:10:04]OFD Sender: No OFD packet to send [23:10:09]OFD Sender: No OFD packet to send [23:10:14]OFD Sender: No OFD packet to send [23:10:19]OFD Sender: No OFD packet to send [23:10:24]OFD Sender: No OFD packet to send [23:10:29]OFD Sender: No OFD packet to send [23:10:34]OFD Sender: No OFD packet to send [23:10:39]OFD Sender: No OFD packet to send [23:10:44]OFD Sender: No OFD packet to send [23:10:49]OFD Sender: No OFD packet to send [23:10:54]OFD Sender: No OFD packet to send [23:10:59]OFD Sender: No OFD packet to send [23:11:04]OFD Sender: No OFD packet to send [23:11:09]OFD Sender: No OFD packet to send [23:11:14]OFD Sender: No OFD packet to send [23:11:19]OFD Sender: No OFD packet to send [23:11:24]OFD Sender: No OFD packet to send [23:11:29]OFD Sender: No OFD packet to send [23:11:34]OFD Sender: No OFD packet to send [23:11:39]OFD Sender: No OFD packet to send [23:11:44]OFD Sender: No OFD packet to send [23:11:49]OFD Sender: No OFD packet to send [23:11:54]OFD Sender: No OFD packet to send [23:11:59]OFD Sender: No OFD packet to send [23:12:04]OFD Sender: No OFD packet to send [23:12:08]recv_with_timeout no data received [23:12:09]OFD Sender: No OFD packet to send [23:12:47]ConnectInit Can't connect to host [23:12:49]OFD Sender: No OFD packet to send [23:12:54]OFD Sender: No OFD packet to send [23:12:59]OFD Sender: No OFD packet to send [23:13:04]OFD Sender: No OFD packet to send [23:13:09]OFD Sender: No OFD packet to send [23:13:14]OFD Sender: No OFD packet to send [23:13:19]OFD Sender: No OFD packet to send [23:13:24]OFD Sender: No OFD packet to send [23:13:26]recv_with_timeout no data received [23:13:29]OFD Sender: No OFD packet to send [23:13:34]OFD Sender: No OFD packet to send [23:13:39]OFD Sender: No OFD packet to send [23:13:44]OFD Sender: No OFD packet to send [23:13:49]OFD Sender: No OFD packet to send [23:13:54]OFD Sender: No OFD packet to send [23:13:59]OFD Sender: No OFD packet to send [23:14:04]OFD Sender: No OFD packet to send [23:14:09]OFD Sender: No OFD packet to send [23:14:14]OFD Sender: No OFD packet to send [23:14:19]OFD Sender: No OFD packet to send [23:14:24]OFD Sender: No OFD packet to send [23:14:29]OFD Sender: No OFD packet to send [23:14:34]OFD Sender: No OFD packet to send [23:14:39]OFD Sender: No OFD packet to send [23:14:44]OFD Sender: No OFD packet to send [23:14:49]OFD Sender: No OFD packet to send [23:14:54]OFD Sender: No OFD packet to send [23:14:59]OFD Sender: No OFD packet to send [23:15:04]OFD Sender: No OFD packet to send [23:15:09]OFD Sender: No OFD packet to send [23:15:14]OFD Sender: No OFD packet to send [23:15:18]recv_with_timeout no data received [23:15:19]OFD Sender: No OFD packet to send [23:15:24]OFD Sender: No OFD packet to send [23:15:29]OFD Sender: No OFD packet to send [23:15:34]OFD Sender: No OFD packet to send [23:15:39]OFD Sender: No OFD packet to send [23:15:44]OFD Sender: No OFD packet to send [23:15:49]OFD Sender: No OFD packet to send [23:15:54]OFD Sender: No OFD packet to send [23:15:59]OFD Sender: No OFD packet to send [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:25]OFD Sender: No OFD packet to send [23:17:30]OFD Sender: No OFD packet to send [23:17:35]OFD Sender: No OFD packet to send [23:17:40]OFD Sender: No OFD packet to send [23:17:45]OFD Sender: No OFD packet to send [23:17:50]OFD Sender: No OFD packet to send [23:17:55]OFD Sender: No OFD packet to send [23:18:00]OFD Sender: No OFD packet to send [23:18:05]OFD Sender: No OFD packet to send [23:18:10]OFD Sender: No OFD packet to send [23:18:15]OFD Sender: No OFD packet to send [23:18:20]OFD Sender: No OFD packet to send [23:18:25]OFD Sender: No OFD packet to send [23:18:30]OFD Sender: No OFD packet to send [23:18:35]OFD Sender: No OFD packet to send [23:18:40]OFD Sender: No OFD packet to send [23:18:45]OFD Sender: No OFD packet to send [23:18:50]OFD Sender: No OFD packet to send [23:18:55]OFD Sender: No OFD packet to send [23:19:00]OFD Sender: No OFD packet to send [23:19:05]OFD Sender: No OFD packet to send [23:19:10]OFD Sender: No OFD packet to send [23:19:15]OFD Sender: No OFD packet to send [23:19:20]OFD Sender: No OFD packet to send [23:19:25]OFD Sender: No OFD packet to send [23:19:30]OFD Sender: No OFD packet to send [23:19:35]OFD Sender: No OFD packet to send [23:19:40]OFD Sender: No OFD packet to send [23:19:45]OFD Sender: No OFD packet to send [23:19:50]OFD Sender: No OFD packet to send [23:19:55]OFD Sender: No OFD packet to send [23:20:00]OFD Sender: No OFD packet to send [23:20:05]OFD Sender: No OFD packet to send [23:20:10]OFD Sender: No OFD packet to send [23:20:15]OFD Sender: No OFD packet to send [23:20:20]OFD Sender: No OFD packet to send [23:20:25]OFD Sender: No OFD packet to send [23:20:30]OFD Sender: No OFD packet to send [23:20:31]recv_with_timeout no data received [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:20]recv_with_timeout no data received [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:46]accept exits with 10 [23:21:46]New connection [23:21:47]New thread 3067506020 created [23:21:47]Thread 3067362660 joined [23:21:47]Waiting for new connection... [23:21:47] Sock 10.Parse request [23:21:47]Sock 10.Check first char [23:21:47]Sock 10.First char is OK [23:21:47]request: POST /json_proto HTTP/1.0 [23:21:47]Method: POST [23:21:47]URL: /json_proto [23:21:47]Method is POST - this is cgi request [23:21:47]url: /json_proto [23:21:47]query_string will be loaded in cgi processing [23:21:47]execute_cgi json_proto POST (null) [23:21:47]execute_cgi path=json_proto method=POST [23:21:47]POST find Content-Length [23:21:47]Host: 172.17.43.132:8080 [23:21:47]Content-Length: 968 [23:21:47]Content-Type: application/json [23:21:47] [23:21:47]POST finish read [23:21:47]Found Content-Length = 968 [23:21:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184005", "tax_sys" : 0, "items" : [ { "code": "4700000480364", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u044D\u043A\u0437\u043E\u0442\u0438\u043A 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:21:47]execute_script... [23:21: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 : (3)184005", "tax_sys" : 0, "items" : [ { "code": "4700000480364", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u044D\u043A\u0437\u043E\u0442\u0438\u043A 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:21:47]POST & json_proto [23:21:47]process_json_proto [23:21:47]json parsed OK: [23:21:47]protocol is kg_v1.0 [23:21:47]action value=close_receipt [23:21:47]process_action close_receipt [23:21:47]cmd_close_receipt [23:21:47]MH_GetDate [23:21:47]Write to MH i2c: F0 00 00 F1 05 E5 [23:21:47]Write i2c OK [23:21:47]MH_I2C_Read... [23:21:47]Read from MH i2c: F0 [23:21:47]MH_I2C_Read... [23:21:47]Read from MH i2c: F0 09 00 [23:21:47]MH_I2C_Read... [23:21:47]Read from MH i2c: F0 09 00 F1 05 00 0B 24 A8 66 64 A3 A7 66 3F [23:21:47]GetLastDocTimeStamp 1722294306 [23:21:47]current date 1722295307 [23:21:47]FM_GetShiftState [23:21:47]SAM_PROTO_GetShiftState [23:21:47]wFMCommunicate request_size=4 [23:21:47]MH_SAM_APDU [23:21:47]CAPDU: 80 13 01 00 [23:21:47]Write to MH i2c: E2 08 00 F2 05 80 13 01 00 00 00 00 00 74 [23:21:47]Write i2c OK [23:21:47]MH_I2C_Read... [23:21:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:21:47]Read from MH i2c: E2 [23:21:47]MH_I2C_Read... [23:21:47]Read from MH i2c: E2 0E 00 [23:21:47]MH_I2C_Read... [23:21:47]Read from MH i2c: E2 0E 00 F2 05 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 10 [23:21:47]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [23:21:47]wFMCommunicate OK [23:21:47]SAM_PROTO_GetShiftState done [23:21:47]FM_GetShiftState done [23:21:47]opened in 1722211496 [23:21:47]opened+sec_in_day 1722297896 [23:21:47]quantity*price = 9500 [23:21:47]sum+1 = 9501 [23:21:47]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000480050 Напиток Nitro Energy эн green ж/б 0,45л 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 190.00 НСП 1% : 1.68 НДС 12% : 20.18 Наличными: 190.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 165 29.07.2024 23:21 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41976 ФПД: 8256882701594 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T232147&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41976&fm=8256882701594&tin=02508201610067®Number=0000000000092626&sum=19000 0 [23:21:48]StoreToDocumentArchive [23:21:48]shift 427 fd 41976 [23:21:48]save to /storage/0427/doc_00041976 [23:21:48]save last doc name /storage/0427/doc_00041976 to /storage/kkm_last_doc_name [23:21:48]save OK [23:21:48]Clear old archive folders... [23:21:48]ProcessDocumentItem done err = 0, tmpTLVsize=422 [23:21:48]tlvbuf is 012A4230 [23:21:48]SAM_PROTO_ClearQueue [23:21:48]wFMCommunicate request_size=4 [23:21:48]MH_SAM_APDU [23:21:48]CAPDU: 80 09 00 00 [23:21:48]Write to MH i2c: E2 08 00 FF 05 80 09 00 00 00 00 00 00 76 [23:21:48]Write i2c OK [23:21:48]MH_I2C_Read... [23:21:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:21:48]Read from MH i2c: E2 [23:21:48]MH_I2C_Read... [23:21:48]Read from MH i2c: E2 03 00 [23:21:48]MH_I2C_Read... [23:21:48]Read from MH i2c: E2 03 00 FF 05 00 90 00 78 [23:21:48]RAPDU: 90 00 [23:21:48]wFMCommunicate OK [23:21:48]SAM_PROTO_ClearQueue done [23:21:48]KKMCreateOFDPacket [23:21:48]OFDProtocolAddRootSTLVToBuf [23:21:48]FM_MakeSignedData [23:21:48]FM_MakeSignedData [23:21:48]SAM_PROTO_SignData [23:21:48]wFMCommunicate request_size=4 [23:21:48]MH_SAM_APDU [23:21:48]CAPDU: 80 0D 01 02 [23:21:48]Write to MH i2c: E2 08 00 00 06 80 0D 01 02 00 00 00 00 7F [23:21:48]Write i2c OK [23:21:48]MH_I2C_Read... [23:21:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:21:48]Read from MH i2c: E2 [23:21:48]MH_I2C_Read... [23:21:48]Read from MH i2c: E2 03 00 [23:21:48]MH_I2C_Read... [23:21:48]Read from MH i2c: E2 03 00 00 06 00 90 00 7A [23:21:48]RAPDU: 90 00 [23:21:48]wFMCommunicate OK [23:21:48]wFMCommunicate request_size=255 [23:21:48]MH_SAM_APDU [23:21:48]CAPDU: 80 0D 02 02 FA 03 00 A6 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 [23:21:48]Write to MH i2c: E2 02 01 01 06 80 0D 02 02 FA 00 03 00 A6 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 00 00 9B [23:21:48]Write i2c OK [23:21:48]MH_I2C_Read... [23:21:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:21:48]Read from MH i2c: E2 [23:21:48]MH_I2C_Read... [23:21:48]Read from MH i2c: E2 03 00 [23:21:48]MH_I2C_Read... [23:21:48]Read from MH i2c: E2 03 00 01 06 00 90 00 7B [23:21:48]RAPDU: 90 00 [23:21:48]wFMCommunicate OK [23:21:48]wFMCommunicate request_size=181 [23:21:48]MH_SAM_APDU [23:21:48]CAPDU: 80 0D 02 02 B0 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 0B 24 A8 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 F8 A3 00 00 35 04 06 00 07 82 74 8F 75 1A [23:21:48]Write to MH i2c: E2 B8 00 02 06 80 0D 02 02 B0 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 0B 24 A8 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 F8 A3 00 00 35 04 06 00 07 82 74 8F 75 1A 00 00 C4 [23:21:48]Write i2c OK [23:21:48]MH_I2C_Read... [23:21:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:21:48]Read from MH i2c: E2 [23:21:48]MH_I2C_Read... [23:21:48]Read from MH i2c: E2 03 00 [23:21:48]MH_I2C_Read... [23:21:48]Read from MH i2c: E2 03 00 02 06 00 90 00 7C [23:21:48]RAPDU: 90 00 [23:21:48]wFMCommunicate OK [23:21:48]wFMCommunicate request_size=4 [23:21:48]MH_SAM_APDU [23:21:48]CAPDU: 80 0D 03 02 [23:21:48]Write to MH i2c: E2 08 00 03 06 80 0D 03 02 00 00 00 00 84 [23:21:48]Write i2c OK [23:21:48]MH_I2C_Read... [23:21:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:21:48]Read from MH i2c: E2 [23:21:48]MH_I2C_Read... [23:21:48]Read from MH i2c: E2 0B 00 [23:21:48]MH_I2C_Read... [23:21:48]Read from MH i2c: E2 0B 00 03 06 00 73 83 1F EC D2 02 C4 A0 90 00 BE [23:21:48]RAPDU: 73 83 1F EC D2 02 C4 A0 90 00 [23:21:48]wFMCommunicate OK [23:21:48]SAM_PROTO_SignData done [23:21:48]FM_MakeSignedData done [23:21:48]CreateOFDProtocolMessage [23:21:48]wFMCommunicate request_size=4 [23:21:48]MH_SAM_APDU [23:21:48]CAPDU: 80 11 00 00 [23:21:48]Write to MH i2c: E2 08 00 04 06 80 11 00 00 00 00 00 00 84 [23:21:48]Write i2c OK [23:21:48]MH_I2C_Read... [23:21:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:21:48]Read from MH i2c: E2 [23:21:48]MH_I2C_Read... [23:21:48]Read from MH i2c: E2 17 00 [23:21:48]MH_I2C_Read... [23:21:48]Read from MH i2c: E2 17 00 04 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 E0 [23:21:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [23:21:48]wFMCommunicate OK [23:21:48]CreateOFDProtocolMessage done [23:21:48]OFDSenderStorePacket 41976 [23:21:48]StoreOFDPacket docnum=41976 [23:21:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 BA 01 00 00 2F 03 B2 01 2B D1 5A 03 01 00 03 00 A6 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 0B 24 A8 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 F8 A3 00 00 35 04 06 00 07 82 74 8F 75 1A 73 83 1F EC D2 02 C4 A0 [23:21:48]CheckFolder [23:21:48]dirname=/storage/ofd_packets [23:21:48]CheckFolder done [23:21:48]ProducePacketName [23:21:48]name=ofd_packets/00041976 [23:21:48]NVStorageSaveData ofd_packets/00041976 [23:21:48]File name is /storage/ofd_packets/00041976 [23:21:48]Write 472 bytes [23:21:48]NVStorageSaveData done [23:21:48]OFDSenderStorePacket done [23:21:48]KKMCreateOFDPacket done [23:21:48]NVStorageSaveData kkm_last_timestamp [23:21:48]File name is /storage/kkm_last_timestamp [23:21:48]Write 4 bytes [23:21:48]NVStorageSaveData done [23:21:48]ExternCall_PrintAddStr [23:21:48]wPrintStart [23:21:48]Write to MH i2c: 01 00 00 05 06 0B [23:21:48]Write i2c OK [23:21:48]MH_I2C_Read... [23:21:48]Read from MH i2c: 01 [23:21:48]MH_I2C_Read... [23:21:48]Read from MH i2c: 01 07 00 [23:21:48]MH_I2C_Read... [23:21:48]Read from MH i2c: 01 07 00 05 06 00 00 00 00 00 FF 0F 20 [23:21:48]RasterBufferAndPrint [23:21:48]line Счет N : (3)184005 [23:21:48]line ИНН: 02508201610067 [23:21:49]line Контрольно-Кассовый Чек [23:21:49]line ПРОДАЖА [23:21:49]line Товар: 4700000480364 [23:21:49]line Напиток энерг Nitro экзотик 0.45 ж/б [23:21:49]line 1.000 * 95.00 [23:21:49]line = 95.00 [23:21:49]line НДС 12% НСП 1% [23:21:49]line > о реализуемом товаре [23:21:49]line Товар: 4700000480050 [23:21:49]line Напиток Nitro Energy эн green ж/б 0,45л [23:21:49]line 1.000 * 95.00 [23:21:49]line = 95.00 [23:21:49]line НДС 12% НСП 1% [23:21:49]line > о реализуемом товаре [23:21:49]line ИТОГО: 190.00 [23:21:49]line НСП 1% : 1.68 [23:21:49]line НДС 12% : 20.18 [23:21:49]line Наличными: 190.00 [23:21:49]line Безнал.: 0.00 [23:21:49]line Место: АЗС № 97 "Партнер Нефть" [23:21:49]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [23:21:49]line СНО: Общий режим [23:21:49]line Чек 165 29.07.2024 23:21 [23:21:49]line Смена: 427 ФФД: 1.0 [23:21:49]line ЗНМ: 0300000053 [23:21:49]line РНМ: 0000000000092626 [23:21:49]line Версия ККМ: 001 [23:21:49]line ФМ: 0000000000874958 [23:21:49]line ФД: 41976 [23:21:49]line ФПД: 8256882701594 [23:21:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T232147&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41976&fm=8256882701594&tin=02508201610067®Number=0000000000092626&sum=19000 [23:21:49]line 0 [23:21:49]OFD Sender: Processing packet 41976 [packets to send 57, broken 56] [23:21:49]ProducePacketName [23:21:49]name=ofd_packets/00041976 [23:21:49]OFD Sender: To server: pG, [23:21:49]CommunicateWithHost lk.salyk.kg:30040 [23:21:49]ConnectInit lk.salyk.kg [23:21:49]written 0, free lines is 4095 [23:21:49]Write to MH i2c: 01 00 00 35 06 3B [23:21:49]Write i2c OK [23:21:49]MH_I2C_Read... [23:21:49]Read from MH i2c: 01 [23:21:49]MH_I2C_Read... [23:21:49]Read from MH i2c: 01 07 00 [23:21:49]MH_I2C_Read... [23:21:49]Read from MH i2c: 01 07 00 35 06 00 00 00 00 00 A2 0C F0 [23:21:49]RasterBufferAndPrint [23:21:49]line [23:21:49]line [23:21:49]line [23:21:49]line [23:21:49]line [23:21:49]written 0, free lines is 3240 [23:21:49]MH_Cut [23:21:49]Write to MH i2c: D1 01 00 3C 06 01 14 [23:21:49]Write i2c OK [23:21:49]MH_I2C_Read... [23:21:49]Read from MH i2c: D1 [23:21:49]MH_I2C_Read... [23:21:49]Read from MH i2c: D1 01 00 [23:21:49]MH_I2C_Read... [23:21:49]Read from MH i2c: D1 01 00 3C 06 00 13 [23:21:49]Write to MH i2c: 01 00 00 3D 06 43 [23:21:49]Write i2c OK [23:21:49]MH_I2C_Read... [23:21:50]*** Cut start [23:21:50]*** Partial cut [23:21:50]*** CUTSNS_PIN = 1 [23:21:50]*** CUTSNS_PIN = 0 [23:21:50]*** Brake cut motor [23:21:51]Read from MH i2c: 01 [23:21:51]MH_I2C_Read... [23:21:51]*** Stop cut motor [23:21:51]*** Cut end [23:21:51]Read from MH i2c: 01 07 00 [23:21:51]MH_I2C_Read... [23:21:51]Read from MH i2c: 01 07 00 3D 06 00 00 00 00 00 FF 0F 58 [23:21:51]process_action close_receipt done [23:21:51]requested_data is exist [23:21:51]produce_requested_data [23:21:51]requested_item fm.sn is exist - process it [23:21:51]wFMCommunicate request_size=4 [23:21:51]MH_SAM_APDU [23:21:51]CAPDU: 80 11 00 00 [23:21:51]Write to MH i2c: E2 08 00 3E 06 80 11 00 00 00 00 00 00 BE [23:21:51]Write i2c OK [23:21:51]MH_I2C_Read... [23:21:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:21:51]Read from MH i2c: E2 [23:21:51]MH_I2C_Read... [23:21:51]Read from MH i2c: E2 17 00 [23:21:51]MH_I2C_Read... [23:21:51]Read from MH i2c: E2 17 00 3E 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 1A [23:21:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [23:21:51]wFMCommunicate OK [23:21:51]requested_item fd.num is exist - process it [23:21:51]SAM_PROTO_GetFieldsCounters [23:21:51]wFMCommunicate request_size=4 [23:21:51]MH_SAM_APDU [23:21:51]CAPDU: 80 13 00 00 [23:21:51]Write to MH i2c: E2 08 00 3F 06 80 13 00 00 00 00 00 00 C1 [23:21:51]Write i2c OK [23:21:51]MH_I2C_Read... [23:21:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:21:51]Read from MH i2c: E2 [23:21:51]MH_I2C_Read... [23:21:51]Read from MH i2c: E2 62 00 [23:21:51]MH_I2C_Read... [23:21:51]Read from MH i2c: E2 62 00 3F 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 F8 A3 00 00 0E 04 04 00 AB 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 21 [23:21: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 F8 A3 00 00 0E 04 04 00 AB 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 [23:21:51]wFMCommunicate OK [23:21:51]SAM_PROTO_GetFieldsCounters done [23:21:51]requested_item shift.num is exist - process it [23:21:51]requested_item shift.opened is exist - process it [23:21:51]req_shift_opened [23:21:51]FM_GetShiftState [23:21:51]SAM_PROTO_GetShiftState [23:21:51]wFMCommunicate request_size=4 [23:21:51]MH_SAM_APDU [23:21:51]CAPDU: 80 13 01 00 [23:21:51]Write to MH i2c: E2 08 00 40 06 80 13 01 00 00 00 00 00 C3 [23:21:51]Write i2c OK [23:21:51]MH_I2C_Read... [23:21:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:21:51]Read from MH i2c: E2 [23:21:51]MH_I2C_Read... [23:21:51]Read from MH i2c: E2 0E 00 [23:21:51]MH_I2C_Read... [23:21:51]Read from MH i2c: E2 0E 00 40 06 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 5F [23:21:51]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [23:21:51]wFMCommunicate OK [23:21:51]SAM_PROTO_GetShiftState done [23:21:51]FM_GetShiftState done [23:21:51]req_shift_opened done [23:21:51]requested_item shift.open_date is exist - process it [23:21:51]req_shift_open_date [23:21:51]req_shift_open_date done [23:21:51]produce_requested_data done [23:21:51]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41976,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [23:21:51]process_action_free close_receipt [23:21:51]json_value_free [23:21:51]json_value_free done [23:21:51]process_json_proto returns [23:21:51]Send response to host [23:21:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41976,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [23:21:51]free response buf [23:21:51]execute_script done [23:21:51]execute_script returns [23:21:51]free content buf [23:21:51]Sock 10.Close socket [23:21:51]Sock 10.Thread stoped [23:21:51]Connected sock=11 [23:21: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 35 38 BA 01 00 00 2F 03 B2 01 2B D1 5A 03 01 00 03 00 A6 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 0B 24 A8 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 F8 A3 00 00 35 04 06 00 07 82 74 8F 75 1A 73 83 1F EC D2 02 C4 A0 [23:21:57]recv_with_timeout no data received [23:21:57]CommunicateWithHost answer receiving error [23:21:57]CommunicateWithHost err = -3 [23:21:57]OFD Sender: Server communicate error [23:22:02]OFD Sender: Processing packet 41976 [packets to send 57, broken 56] [23:22:02]ProducePacketName [23:22:02]name=ofd_packets/00041976 [23:22:02]OFD Sender: To server: pG, [23:22:02]CommunicateWithHost lk.salyk.kg:30040 [23:22:02]ConnectInit lk.salyk.kg [23:22:07]ConnectInit Can't take IP for lk.salyk.kg [23:22:07]CommunicateWithHost connect error [23:22:07]CommunicateWithHost err = -1 [23:22:07]OFD Sender: Server communicate error [23:22:12]OFD Sender: Processing packet 41976 [packets to send 57, broken 56] [23:22:12]ProducePacketName [23:22:12]name=ofd_packets/00041976 [23:22:12]OFD Sender: To server: pG, [23:22:12]CommunicateWithHost lk.salyk.kg:30040 [23:22:12]ConnectInit lk.salyk.kg [23:22:12]recv_with_timeout no data received [23:22:25]Connected sock=10 [23:22: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 35 38 BA 01 00 00 2F 03 B2 01 2B D1 5A 03 01 00 03 00 A6 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 0B 24 A8 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 F8 A3 00 00 35 04 06 00 07 82 74 8F 75 1A 73 83 1F EC D2 02 C4 A0 [23:22:30]recv_with_timeout no data received [23:22:30]CommunicateWithHost answer receiving error [23:22:30]CommunicateWithHost err = -3 [23:22:30]OFD Sender: Server communicate error [23:22:35]OFD Sender: Processing packet 41976 [packets to send 57, broken 56] [23:22:35]ProducePacketName [23:22:35]name=ofd_packets/00041976 [23:22:35]OFD Sender: To server: pG, [23:22:35]CommunicateWithHost lk.salyk.kg:30040 [23:22:35]ConnectInit lk.salyk.kg [23:22:40]ConnectInit Can't take IP for lk.salyk.kg [23:22:40]CommunicateWithHost connect error [23:22:40]CommunicateWithHost err = -1 [23:22:40]OFD Sender: Server communicate error [23:22:45]recv_with_timeout no data received [23:22:46]OFD Sender: Processing packet 41976 [packets to send 57, broken 56] [23:22:46]ProducePacketName [23:22:46]name=ofd_packets/00041976 [23:22:46]OFD Sender: To server: pG, [23:22:46]CommunicateWithHost lk.salyk.kg:30040 [23:22:46]ConnectInit lk.salyk.kg [23:22:51]Connected sock=8 [23:22:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 BA 01 00 00 2F 03 B2 01 2B D1 5A 03 01 00 03 00 A6 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 0B 24 A8 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 F8 A3 00 00 35 04 06 00 07 82 74 8F 75 1A 73 83 1F EC D2 02 C4 A0 [23:22:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 4F 00 00 00 90 E2 47 00 D4 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 35 38 10 04 04 00 F8 A3 00 00 F4 03 04 00 5F D0 A7 66 B6 04 01 00 00 13 15 F7 39 26 80 5D 10 [23:22:54]CommunicateWithHost err = 0 [23:22:54]CheckOFDResponse [23:22:54]1017 (14) - 77093643461234 [23:22:54]1041 (16) - 0000000000874958 [23:22:54]1040 (4) - 41976 [23:22:54]1012 (4) - 29.07.2024 17:24 [23:22:54]1206 (1) - 0 [23:22:54]OFD Sender: Remove packet 41976 [23:22:54]ProducePacketName [23:22:54]name=ofd_packets/00041976 [23:22:54]NVStorageDeleteData [23:22:55]OFD Sender: No OFD packet to send [23:22:58]recv_with_timeout no data received [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:17]recv_with_timeout no data received [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:52]recv_with_timeout no data received [23:25:55]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:26:58]recv_with_timeout no data received [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: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:25]recv_with_timeout no data received [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:43]recv_with_timeout no data received [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:29:59]recv_with_timeout no data received [23:30:00]OFD Sender: No OFD packet to send [23:30:05]OFD Sender: No OFD packet to send [23:30:10]OFD Sender: No OFD packet to send [23:30:15]OFD Sender: No OFD packet to send [23:30:20]OFD Sender: No OFD packet to send [23:30:25]OFD Sender: No OFD packet to send [23:30:30]OFD Sender: No OFD packet to send [23:30:35]OFD Sender: No OFD packet to send [23:30:40]OFD Sender: No OFD packet to send [23:30:45]OFD Sender: No OFD packet to send [23:30:50]OFD Sender: No OFD packet to send [23:30:55]OFD Sender: No OFD packet to send [23:31:00]OFD Sender: No OFD packet to send [23:31:05]OFD Sender: No OFD packet to send [23:31:10]OFD Sender: No OFD packet to send [23:31:15]OFD Sender: No OFD packet to send [23:31:20]OFD Sender: No OFD packet to send [23:31:25]OFD Sender: No OFD packet to send [23:31:30]OFD Sender: No OFD packet to send [23:31:35]OFD Sender: No OFD packet to send [23:31:40]OFD Sender: No OFD packet to send [23:31:45]OFD Sender: No OFD packet to send [23:31:50]OFD Sender: No OFD packet to send [23:31:55]OFD Sender: No OFD packet to send [23:32:00]OFD Sender: No OFD packet to send [23:32:05]OFD Sender: No OFD packet to send [23:32:10]OFD Sender: No OFD packet to send [23:32:15]OFD Sender: No OFD packet to send [23:32:20]OFD Sender: No OFD packet to send [23:32:25]OFD Sender: No OFD packet to send [23:32:30]OFD Sender: No OFD packet to send [23:32:35]OFD Sender: No OFD packet to send [23:32:36]recv_with_timeout no data received [23:32:40]OFD Sender: No OFD packet to send [23:32:45]OFD Sender: No OFD packet to send [23:32:50]OFD Sender: No OFD packet to send [23:32:55]OFD Sender: No OFD packet to send [23:33:00]OFD Sender: No OFD packet to send [23:33:05]OFD Sender: No OFD packet to send [23:33:10]OFD Sender: No OFD packet to send [23:33:15]OFD Sender: No OFD packet to send [23:33:20]OFD Sender: No OFD packet to send [23:33:25]OFD Sender: No OFD packet to send [23:33:30]OFD Sender: No OFD packet to send [23:33:35]OFD Sender: No OFD packet to send [23:33:40]OFD Sender: No OFD packet to send [23:33:45]OFD Sender: No OFD packet to send [23:33:50]OFD Sender: No OFD packet to send [23:33:55]OFD Sender: No OFD packet to send [23:34:00]OFD Sender: No OFD packet to send [23:34:05]OFD Sender: No OFD packet to send [23:34:10]OFD Sender: No OFD packet to send [23:34:15]OFD Sender: No OFD packet to send [23:34:20]OFD Sender: No OFD packet to send [23:34:25]OFD Sender: No OFD packet to send [23:34:30]OFD Sender: No OFD packet to send [23:34:35]OFD Sender: No OFD packet to send [23:34:40]OFD Sender: No OFD packet to send [23:34:45]OFD Sender: No OFD packet to send [23:34:50]OFD Sender: No OFD packet to send [23:34:55]OFD Sender: No OFD packet to send [23:35:00]OFD Sender: No OFD packet to send [23:35:05]OFD Sender: No OFD packet to send [23:35:10]OFD Sender: No OFD packet to send [23:35:15]OFD Sender: No OFD packet to send [23:35:20]OFD Sender: No OFD packet to send [23:35:25]OFD Sender: No OFD packet to send [23:35:30]OFD Sender: No OFD packet to send [23:35:35]OFD Sender: No OFD packet to send [23:35:40]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:56]OFD Sender: No OFD packet to send [23:36:01]OFD Sender: No OFD packet to send [23:36:06]OFD Sender: No OFD packet to send [23:36:06]accept exits with 9 [23:36:06]New connection [23:36:06]New thread 3067362660 created [23:36:06]Thread 3067506020 joined [23:36:06]Waiting for new connection... [23:36:06] Sock 9.Parse request [23:36:06]Sock 9.Check first char [23:36:06]Sock 9.First char is OK [23:36:06]request: POST /json_proto HTTP/1.0 [23:36:06]Method: POST [23:36:06]URL: /json_proto [23:36:06]Method is POST - this is cgi request [23:36:06]url: /json_proto [23:36:06]query_string will be loaded in cgi processing [23:36:06]execute_cgi json_proto POST (null) [23:36:06]execute_cgi path=json_proto method=POST [23:36:06]POST find Content-Length [23:36:06]Host: 172.17.43.132:8080 [23:36:06]Content-Length: 695 [23:36:06]Content-Type: application/json [23:36:06] [23:36:06]POST finish read [23:36:06]Found Content-Length = 695 [23:36:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184006", "tax_sys" : 0, "items" : [ { "code": "4700000160013", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u0438\u043D\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043B\u044C\u043D\u044B\u0439", "price" : 15.00, "quantity" : 2.000, "sum" : 30.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 30.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:36:06]execute_script... [23:36:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184006", "tax_sys" : 0, "items" : [ { "code": "4700000160013", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u0438\u043D\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043B\u044C\u043D\u044B\u0439", "price" : 15.00, "quantity" : 2.000, "sum" : 30.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 30.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:36:06]POST & json_proto [23:36:06]process_json_proto [23:36:06]json parsed OK: [23:36:06]protocol is kg_v1.0 [23:36:06]action value=close_receipt [23:36:06]process_action close_receipt [23:36:06]cmd_close_receipt [23:36:06]MH_GetDate [23:36:06]Write to MH i2c: F0 00 00 41 06 36 [23:36:06]Write i2c OK [23:36:06]MH_I2C_Read... [23:36:06]Read from MH i2c: F0 [23:36:06]MH_I2C_Read... [23:36:06]Read from MH i2c: F0 09 00 [23:36:06]MH_I2C_Read... [23:36:06]Read from MH i2c: F0 09 00 41 06 00 67 27 A8 66 64 A3 A7 66 EF [23:36:06]GetLastDocTimeStamp 1722295307 [23:36:06]current date 1722296167 [23:36:06]FM_GetShiftState [23:36:06]SAM_PROTO_GetShiftState [23:36:06]wFMCommunicate request_size=4 [23:36:06]MH_SAM_APDU [23:36:06]CAPDU: 80 13 01 00 [23:36:06]Write to MH i2c: E2 08 00 42 06 80 13 01 00 00 00 00 00 C5 [23:36:06]Write i2c OK [23:36:06]MH_I2C_Read... [23:36:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:36:06]Read from MH i2c: E2 [23:36:06]MH_I2C_Read... [23:36:06]Read from MH i2c: E2 0E 00 [23:36:06]MH_I2C_Read... [23:36:06]Read from MH i2c: E2 0E 00 42 06 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 61 [23:36:06]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [23:36:06]wFMCommunicate OK [23:36:06]SAM_PROTO_GetShiftState done [23:36:06]FM_GetShiftState done [23:36:06]opened in 1722211496 [23:36:06]opened+sec_in_day 1722297896 [23:36:06]quantity*price = 3000 [23:36:06]sum+1 = 3001 [23:36:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 30.00 НСП 1% : 0.26 НДС 12% : 3.19 Наличными: 30.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 166 29.07.2024 23:36 Смена: 427 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41977 ФПД: 64964097984 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T233607&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41977&fm=64964097984&tin=02508201610067®Number=0000000000092626&sum=3000 0 [23:36:07]StoreToDocumentArchive [23:36:07]shift 427 fd 41977 [23:36:07]save to /storage/0427/doc_00041977 [23:36:07]save last doc name /storage/0427/doc_00041977 to /storage/kkm_last_doc_name [23:36:07]save OK [23:36:07]Clear old archive folders... [23:36:07]ProcessDocumentItem done err = 0, tmpTLVsize=290 [23:36:07]tlvbuf is 012807E0 [23:36:07]SAM_PROTO_ClearQueue [23:36:07]wFMCommunicate request_size=4 [23:36:07]MH_SAM_APDU [23:36:07]CAPDU: 80 09 00 00 [23:36:07]Write to MH i2c: E2 08 00 4F 06 80 09 00 00 00 00 00 00 C7 [23:36:07]Write i2c OK [23:36:07]MH_I2C_Read... [23:36:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:36:07]Read from MH i2c: E2 [23:36:07]MH_I2C_Read... [23:36:07]Read from MH i2c: E2 03 00 [23:36:07]MH_I2C_Read... [23:36:07]Read from MH i2c: E2 03 00 4F 06 00 90 00 C9 [23:36:07]RAPDU: 90 00 [23:36:07]wFMCommunicate OK [23:36:07]SAM_PROTO_ClearQueue done [23:36:07]KKMCreateOFDPacket [23:36:07]OFDProtocolAddRootSTLVToBuf [23:36:07]FM_MakeSignedData [23:36:07]FM_MakeSignedData [23:36:07]SAM_PROTO_SignData [23:36:07]wFMCommunicate request_size=4 [23:36:07]MH_SAM_APDU [23:36:07]CAPDU: 80 0D 01 02 [23:36:07]Write to MH i2c: E2 08 00 50 06 80 0D 01 02 00 00 00 00 CF [23:36:07]Write i2c OK [23:36:07]MH_I2C_Read... [23:36:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:36:07]Read from MH i2c: E2 [23:36:07]MH_I2C_Read... [23:36:07]Read from MH i2c: E2 03 00 [23:36:07]MH_I2C_Read... [23:36:07]Read from MH i2c: E2 03 00 50 06 00 90 00 CA [23:36:07]RAPDU: 90 00 [23:36:07]wFMCommunicate OK [23:36:07]wFMCommunicate request_size=255 [23:36:07]MH_SAM_APDU [23:36:07]CAPDU: 80 0D 02 02 FA 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 31 33 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 0B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 01 00 00 00 00 07 04 06 00 B8 0B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 67 27 A8 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 [23:36:07]Write to MH i2c: E2 02 01 51 06 80 0D 02 02 FA 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 31 33 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 0B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 01 00 00 00 00 07 04 06 00 B8 0B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 67 27 A8 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 BB [23:36:07]Write i2c OK [23:36:07]MH_I2C_Read... [23:36:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:36:08]Read from MH i2c: E2 [23:36:08]MH_I2C_Read... [23:36:08]Read from MH i2c: E2 03 00 [23:36:08]MH_I2C_Read... [23:36:08]Read from MH i2c: E2 03 00 51 06 00 90 00 CB [23:36:08]RAPDU: 90 00 [23:36:08]wFMCommunicate OK [23:36:08]wFMCommunicate request_size=49 [23:36:08]MH_SAM_APDU [23:36:08]CAPDU: 80 0D 02 02 2C 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 F9 A3 00 00 35 04 06 00 00 0F 20 29 77 C0 [23:36:08]Write to MH i2c: E2 34 00 52 06 80 0D 02 02 2C 00 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 F9 A3 00 00 35 04 06 00 00 0F 20 29 77 C0 00 00 33 [23:36:08]Write i2c OK [23:36:08]MH_I2C_Read... [23:36:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:36:08]Read from MH i2c: E2 [23:36:08]MH_I2C_Read... [23:36:08]Read from MH i2c: E2 03 00 [23:36:08]MH_I2C_Read... [23:36:08]Read from MH i2c: E2 03 00 52 06 00 90 00 CC [23:36:08]RAPDU: 90 00 [23:36:08]wFMCommunicate OK [23:36:08]wFMCommunicate request_size=4 [23:36:08]MH_SAM_APDU [23:36:08]CAPDU: 80 0D 03 02 [23:36:08]Write to MH i2c: E2 08 00 53 06 80 0D 03 02 00 00 00 00 D4 [23:36:08]Write i2c OK [23:36:08]MH_I2C_Read... [23:36:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:36:08]Read from MH i2c: E2 [23:36:08]MH_I2C_Read... [23:36:08]Read from MH i2c: E2 0B 00 [23:36:08]MH_I2C_Read... [23:36:08]Read from MH i2c: E2 0B 00 53 06 00 B2 A8 7C 6D C5 F3 7D 5A 90 00 A7 [23:36:08]RAPDU: B2 A8 7C 6D C5 F3 7D 5A 90 00 [23:36:08]wFMCommunicate OK [23:36:08]SAM_PROTO_SignData done [23:36:08]FM_MakeSignedData done [23:36:08]CreateOFDProtocolMessage [23:36:08]wFMCommunicate request_size=4 [23:36:08]MH_SAM_APDU [23:36:08]CAPDU: 80 11 00 00 [23:36:08]Write to MH i2c: E2 08 00 54 06 80 11 00 00 00 00 00 00 D4 [23:36:08]Write i2c OK [23:36:08]MH_I2C_Read... [23:36:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:36:08]Read from MH i2c: E2 [23:36:08]MH_I2C_Read... [23:36:08]Read from MH i2c: E2 17 00 [23:36:08]MH_I2C_Read... [23:36:08]Read from MH i2c: E2 17 00 54 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 30 [23:36:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [23:36:08]wFMCommunicate OK [23:36:08]CreateOFDProtocolMessage done [23:36:08]OFDSenderStorePacket 41977 [23:36:08]StoreOFDPacket docnum=41977 [23:36:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 36 01 00 00 A4 A1 2E 01 C8 43 5A 03 01 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 31 33 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 0B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 01 00 00 00 00 07 04 06 00 B8 0B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 67 27 A8 66 0E 04 04 00 AB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 F9 A3 00 00 35 04 06 00 00 0F 20 29 77 C0 B2 A8 7C 6D C5 F3 7D 5A [23:36:08]CheckFolder [23:36:08]dirname=/storage/ofd_packets [23:36:08]CheckFolder done [23:36:08]ProducePacketName [23:36:08]name=ofd_packets/00041977 [23:36:08]NVStorageSaveData ofd_packets/00041977 [23:36:08]File name is /storage/ofd_packets/00041977 [23:36:08]Write 340 bytes [23:36:08]NVStorageSaveData done [23:36:08]OFDSenderStorePacket done [23:36:08]KKMCreateOFDPacket done [23:36:08]NVStorageSaveData kkm_last_timestamp [23:36:08]File name is /storage/kkm_last_timestamp [23:36:08]Write 4 bytes [23:36:08]NVStorageSaveData done [23:36:08]ExternCall_PrintAddStr [23:36:08]wPrintStart [23:36:08]Write to MH i2c: 01 00 00 55 06 5B [23:36:08]Write i2c OK [23:36:08]MH_I2C_Read... [23:36:08]Read from MH i2c: 01 [23:36:08]MH_I2C_Read... [23:36:08]Read from MH i2c: 01 07 00 [23:36:08]MH_I2C_Read... [23:36:08]Read from MH i2c: 01 07 00 55 06 00 00 00 00 00 FF 0F 70 [23:36:08]RasterBufferAndPrint [23:36:08]line Счет N : (3)184006 [23:36:08]line ИНН: 02508201610067 [23:36:08]line Контрольно-Кассовый Чек [23:36:08]line ПРОДАЖА [23:36:08]line Товар: 4700000160013 [23:36:08]line Снек Курут индивидуальный [23:36:08]line 2.000 * 15.00 [23:36:08]line = 30.00 [23:36:08]line НДС 12% НСП 1% [23:36:08]line > о реализуемом товаре [23:36:08]line ИТОГО: 30.00 [23:36:08]line НСП 1% : 0.26 [23:36:08]line НДС 12% : 3.19 [23:36:08]line Наличными: 30.00 [23:36:08]line Безнал.: 0.00 [23:36:08]line Место: АЗС № 97 "Партнер Нефть" [23:36:08]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [23:36:08]line СНО: Общий режим [23:36:08]line Чек 166 29.07.2024 23:36 [23:36:08]line Смена: 427 ФФД: 1.0 [23:36:08]line ЗНМ: 0300000053 [23:36:08]line РНМ: 0000000000092626 [23:36:08]line Версия ККМ: 001 [23:36:08]line ФМ: 0000000000874958 [23:36:08]line ФД: 41977 [23:36:08]line ФПД: 64964097984 [23:36:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T233607&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41977&fm=64964097984&tin=02508201610067®Number=0000000000092626&sum=3000 [23:36:08]line 0 [23:36:08]OFD Sender: Processing packet 41977 [packets to send 57, broken 56] [23:36:08]ProducePacketName [23:36:08]name=ofd_packets/00041977 [23:36:08]OFD Sender: To server: pG, [23:36:08]CommunicateWithHost lk.salyk.kg:30040 [23:36:08]ConnectInit lk.salyk.kg [23:36:08]written 0, free lines is 4095 [23:36:09]Write to MH i2c: 01 00 00 7D 06 83 [23:36:09]Write i2c OK [23:36:09]MH_I2C_Read... [23:36:09]Read from MH i2c: 01 [23:36:09]MH_I2C_Read... [23:36:09]Read from MH i2c: 01 07 00 [23:36:09]MH_I2C_Read... [23:36:09]Read from MH i2c: 01 07 00 7D 06 00 00 00 00 00 0F 0D A6 [23:36:09]RasterBufferAndPrint [23:36:09]line [23:36:09]line [23:36:09]line [23:36:09]line [23:36:09]line [23:36:09]written 0, free lines is 3349 [23:36:09]MH_Cut [23:36:09]Write to MH i2c: D1 01 00 84 06 01 5C [23:36:09]Write i2c OK [23:36:09]MH_I2C_Read... [23:36:09]Read from MH i2c: D1 [23:36:09]MH_I2C_Read... [23:36:09]Read from MH i2c: D1 01 00 [23:36:09]MH_I2C_Read... [23:36:09]Read from MH i2c: D1 01 00 84 06 00 5B [23:36:09]Write to MH i2c: 01 00 00 85 06 8B [23:36:09]Write i2c OK [23:36:09]MH_I2C_Read... [23:36:09]*** Cut start [23:36:09]*** Partial cut [23:36:09]*** CUTSNS_PIN = 1 [23:36:09]*** CUTSNS_PIN = 0 [23:36:10]*** Brake cut motor [23:36:10]Read from MH i2c: 01 [23:36:10]MH_I2C_Read... [23:36:10]*** Stop cut motor [23:36:10]*** Cut end [23:36:10]Read from MH i2c: 01 07 00 [23:36:10]MH_I2C_Read... [23:36:10]Read from MH i2c: 01 07 00 85 06 00 00 00 00 00 FF 0F A0 [23:36:10]process_action close_receipt done [23:36:10]requested_data is exist [23:36:10]produce_requested_data [23:36:10]requested_item fm.sn is exist - process it [23:36:10]wFMCommunicate request_size=4 [23:36:10]MH_SAM_APDU [23:36:10]CAPDU: 80 11 00 00 [23:36:10]Write to MH i2c: E2 08 00 86 06 80 11 00 00 00 00 00 00 06 [23:36:10]Write i2c OK [23:36:10]MH_I2C_Read... [23:36:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:36:10]Read from MH i2c: E2 [23:36:10]MH_I2C_Read... [23:36:10]Read from MH i2c: E2 17 00 [23:36:10]MH_I2C_Read... [23:36:10]Read from MH i2c: E2 17 00 86 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 62 [23:36:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [23:36:10]wFMCommunicate OK [23:36:10]requested_item fd.num is exist - process it [23:36:10]SAM_PROTO_GetFieldsCounters [23:36:10]wFMCommunicate request_size=4 [23:36:10]MH_SAM_APDU [23:36:10]CAPDU: 80 13 00 00 [23:36:10]Write to MH i2c: E2 08 00 87 06 80 13 00 00 00 00 00 00 09 [23:36:10]Write i2c OK [23:36:10]MH_I2C_Read... [23:36:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:36:10]Read from MH i2c: E2 [23:36:10]MH_I2C_Read... [23:36:10]Read from MH i2c: E2 62 00 [23:36:10]MH_I2C_Read... [23:36:10]Read from MH i2c: E2 62 00 87 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 F9 A3 00 00 0E 04 04 00 AB 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 6D [23:36: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 F9 A3 00 00 0E 04 04 00 AB 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 [23:36:10]wFMCommunicate OK [23:36:10]SAM_PROTO_GetFieldsCounters done [23:36:10]requested_item shift.num is exist - process it [23:36:10]requested_item shift.opened is exist - process it [23:36:10]req_shift_opened [23:36:10]FM_GetShiftState [23:36:10]SAM_PROTO_GetShiftState [23:36:10]wFMCommunicate request_size=4 [23:36:10]MH_SAM_APDU [23:36:10]CAPDU: 80 13 01 00 [23:36:10]Write to MH i2c: E2 08 00 88 06 80 13 01 00 00 00 00 00 0B [23:36:10]Write i2c OK [23:36:10]MH_I2C_Read... [23:36:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:36:10]Read from MH i2c: E2 [23:36:10]MH_I2C_Read... [23:36:10]Read from MH i2c: E2 0E 00 [23:36:10]MH_I2C_Read... [23:36:10]Read from MH i2c: E2 0E 00 88 06 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 A7 [23:36:10]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [23:36:10]wFMCommunicate OK [23:36:10]SAM_PROTO_GetShiftState done [23:36:10]FM_GetShiftState done [23:36:10]req_shift_opened done [23:36:10]requested_item shift.open_date is exist - process it [23:36:10]req_shift_open_date [23:36:10]req_shift_open_date done [23:36:10]produce_requested_data done [23:36:10]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41977,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [23:36:10]process_action_free close_receipt [23:36:10]json_value_free [23:36:10]json_value_free done [23:36:10]process_json_proto returns [23:36:10]Send response to host [23:36:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41977,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [23:36:10]free response buf [23:36:10]execute_script done [23:36:10]execute_script returns [23:36:10]free content buf [23:36:10]Sock 9.Close socket [23:36:10]Sock 9.Thread stoped [23:36:13]ConnectInit Can't take IP for lk.salyk.kg [23:36:13]CommunicateWithHost connect error [23:36:13]CommunicateWithHost err = -1 [23:36:13]OFD Sender: Server communicate error [23:36:16]recv_with_timeout no data received [23:36:18]OFD Sender: Processing packet 41977 [packets to send 57, broken 56] [23:36:18]ProducePacketName [23:36:18]name=ofd_packets/00041977 [23:36:18]OFD Sender: To server: pG, [23:36:18]CommunicateWithHost lk.salyk.kg:30040 [23:36:18]ConnectInit lk.salyk.kg [23:36:23]ConnectInit Can't take IP for lk.salyk.kg [23:36:23]CommunicateWithHost connect error [23:36:23]CommunicateWithHost err = -1 [23:36:23]OFD Sender: Server communicate error [23:36:28]OFD Sender: Processing packet 41977 [packets to send 57, broken 56] [23:36:28]ProducePacketName [23:36:28]name=ofd_packets/00041977 [23:36:28]OFD Sender: To server: pG, [23:36:28]CommunicateWithHost lk.salyk.kg:30040 [23:36:28]ConnectInit lk.salyk.kg [23:36:33]ConnectInit Can't take IP for lk.salyk.kg [23:36:33]CommunicateWithHost connect error [23:36:33]CommunicateWithHost err = -1 [23:36:33]OFD Sender: Server communicate error [23:36:38]recv_with_timeout no data received [23:36:38]OFD Sender: Processing packet 41977 [packets to send 57, broken 56] [23:36:38]ProducePacketName [23:36:38]name=ofd_packets/00041977 [23:36:38]OFD Sender: To server: pG, [23:36:38]CommunicateWithHost lk.salyk.kg:30040 [23:37:16]Write i2c OK [23:37:16]MH_I2C_Read... [23:37:16]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [23:37:16]Read from MH i2c: E2 [23:37:16]MH_I2C_Read... [23:37:16]Read from MH i2c: E2 03 00 [23:37:16]MH_I2C_Read... [23:37:16]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [23:37:16]RAPDU: 90 00 [23:37:16]wFMCommunicate OK [23:37:16]wFMCommunicate request_size=4 [23:37:16]MH_SAM_APDU [23:37:16]CAPDU: 80 11 00 00 [23:37:16]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [23:37:16]Write i2c OK [23:37:16]MH_I2C_Read... [23:37:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:37:16]Read from MH i2c: E2 [23:37:16]MH_I2C_Read... [23:37:16]Read from MH i2c: E2 17 00 [23:37:16]MH_I2C_Read... [23:37:16]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 35 38 90 00 E0 [23:37:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [23:37:16]wFMCommunicate OK [23:37:16]Detected FM SN is 0000000000874958 [23:37:16]Stored FM SN is 0000000000874958 [23:37:16]wFMCommunicate request_size=9 [23:37:16]MH_SAM_APDU [23:37:16]CAPDU: 80 16 00 00 04 FB 29 00 00 [23:37:16]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 FB 29 00 00 00 00 B6 [23:37:16]Write i2c OK [23:37:16]MH_I2C_Read... [23:37:16]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [23:37:16]Read from MH i2c: E2 [23:37:16]MH_I2C_Read... [23:37:16]Read from MH i2c: E2 03 00 [23:37:16]MH_I2C_Read... [23:37:16]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [23:37:16]RAPDU: 90 00 [23:37:16]wFMCommunicate OK [23:37:16]FM PIN OK [23:37:16]wFMCommunicate request_size=8 [23:37:16]MH_SAM_APDU [23:37:16]CAPDU: 80 14 04 00 03 02 00 01 [23:37:16]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [23:37:16]Write i2c OK [23:37:16]MH_I2C_Read... [23:37:16]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [23:37:16]Read from MH i2c: E2 [23:37:16]MH_I2C_Read... [23:37:16]Read from MH i2c: E2 03 00 [23:37:16]MH_I2C_Read... [23:37:16]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [23:37:16]RAPDU: 90 00 [23:37:16]wFMCommunicate OK [23:37:16]wFMCommunicate request_size=13 [23:37:16]MH_SAM_APDU [23:37:16]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [23:37:16]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 [23:37:16]Write i2c OK [23:37:16]MH_I2C_Read... [23:37:16]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [23:37:16]Read from MH i2c: E2 [23:37:16]MH_I2C_Read... [23:37:16]Read from MH i2c: E2 03 00 [23:37:16]MH_I2C_Read... [23:37:16]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [23:37:16]RAPDU: 90 00 [23:37:16]wFMCommunicate OK [23:37:16]wFMCommunicate request_size=4 [23:37:16]MH_SAM_APDU [23:37:16]CAPDU: 80 11 00 00 [23:37:16]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [23:37:16]Write i2c OK [23:37:16]MH_I2C_Read... [23:37:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:37:16]Read from MH i2c: E2 [23:37:16]MH_I2C_Read... [23:37:16]Read from MH i2c: E2 17 00 [23:37:16]MH_I2C_Read... [23:37:16]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 35 38 90 00 E4 [23:37:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [23:37:16]wFMCommunicate OK [23:37:16]DocumentArchiveInit [23:37:16]Start Httpd... [23:37:16]Httpd thread 3067514212 created [23:37:16]Write to MH i2c: 01 00 00 0F 00 0F [23:37:16]Write i2c OK [23:37:16]MH_I2C_Read... [23:37:16]Read from MH i2c: 01 [23:37:16]MH_I2C_Read... [23:37:16]Read from MH i2c: 01 07 00 [23:37:16]MH_I2C_Read... [23:37:16]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [23:37:16]MH Int Process started [23:37:16]Allocated Socket 8 [23:37:16]Bind OK [23:37:16]Listen OK [23:37:16]httpd running on port 8080 [23:37:16]Waiting for new connection... [23:37:16]OFD Sender: No OFD packet to send [23:37:18]accept exits with 9 [23:37:18]New connection [23:37:18]New thread 3067227492 created [23:37:18]Waiting for new connection... [23:37:18] Sock 9.Parse request [23:37:18]Sock 9.Check first char [23:37:18]Sock 9.First char is OK [23:37:18]request: POST /json_proto HTTP/1.0 [23:37:18]Method: POST [23:37:18]URL: /json_proto [23:37:18]Method is POST - this is cgi request [23:37:18]url: /json_proto [23:37:18]query_string will be loaded in cgi processing [23:37:18]execute_cgi json_proto POST (null) [23:37:18]execute_cgi path=json_proto method=POST [23:37:18]POST find Content-Length [23:37:18]Host: 172.17.43.132:8080 [23:37:18]Content-Length: 215 [23:37:18]Content-Type: application/json [23:37:18] [23:37:18]POST finish read [23:37:18]Found Content-Length = 215 [23:37:18]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:37:18]execute_script... [23:37:18]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:37:18]POST & json_proto [23:37:18]process_json_proto [23:37:18]json parsed OK: [23:37:18]protocol is kg_v1.0 [23:37:18]action value=get_value [23:37:18]process_action get_value [23:37:18]cmd_get_value [23:37:18]process_action get_value done [23:37:18]requested_data is exist [23:37:18]produce_requested_data [23:37:18]requested_item kkm.sn is exist - process it [23:37:18]requested_item kkm.ver is exist - process it [23:37:18]requested_item fm.sn is exist - process it [23:37:18]wFMCommunicate request_size=4 [23:37:18]MH_SAM_APDU [23:37:18]CAPDU: 80 11 00 00 [23:37:18]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [23:37:18]Write i2c OK [23:37:18]MH_I2C_Read... [23:37:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:37:18]Read from MH i2c: E2 [23:37:18]MH_I2C_Read... [23:37:18]Read from MH i2c: E2 17 00 [23:37:18]MH_I2C_Read... [23:37:18]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 35 38 90 00 E6 [23:37:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [23:37:18]wFMCommunicate OK [23:37:18]requested_item fd.num is exist - process it [23:37:18]SAM_PROTO_GetFieldsCounters [23:37:18]wFMCommunicate request_size=4 [23:37:18]MH_SAM_APDU [23:37:18]CAPDU: 80 13 00 00 [23:37:18]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [23:37:18]Write i2c OK [23:37:18]MH_I2C_Read... [23:37:18]Read from MH i2c: E2 [23:37:18]MH_I2C_Read... [23:37:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:37:18]Read from MH i2c: E2 62 00 [23:37:18]MH_I2C_Read... [23:37:18]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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 F9 A3 00 00 0E 04 04 00 AB 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 F1 [23:37: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 F9 A3 00 00 0E 04 04 00 AB 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 [23:37:18]wFMCommunicate OK [23:37:18]SAM_PROTO_GetFieldsCounters done [23:37:18]requested_item shift.num is exist - process it [23:37:18]requested_item shift.opened is exist - process it [23:37:18]req_shift_opened [23:37:18]FM_GetShiftState [23:37:18]SAM_PROTO_GetShiftState [23:37:18]wFMCommunicate request_size=4 [23:37:18]MH_SAM_APDU [23:37:18]CAPDU: 80 13 01 00 [23:37:18]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [23:37:18]Write i2c OK [23:37:18]MH_I2C_Read... [23:37:18]Read from MH i2c: E2 [23:37:18]MH_I2C_Read... [23:37:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:37:18]Read from MH i2c: E2 0E 00 [23:37:18]MH_I2C_Read... [23:37:18]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 2B [23:37:18]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [23:37:18]wFMCommunicate OK [23:37:18]SAM_PROTO_GetShiftState done [23:37:18]FM_GetShiftState done [23:37:18]req_shift_opened done [23:37:18]requested_item shift.open_date is exist - process it [23:37:18]req_shift_open_date [23:37:18]req_shift_open_date done [23:37:18]produce_requested_data done [23:37:18]produce_requested_data return {"kkm.sn":"0300000053","kkm.ver":"001","fm.sn":"0000000000874958","fd.num":41977,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [23:37:18]process_action_free get_value [23:37:18]json_value_free [23:37:18]json_value_free done [23:37:18]process_json_proto returns [23:37:18]Send response to host [23:37:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000053","kkm.ver":"001","fm.sn":"0000000000874958","fd.num":41977,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [23:37:18]free response buf [23:37:18]execute_script done [23:37:18]execute_script returns [23:37:18]free content buf [23:37:18]Sock 9.Close socket [23:37:18]Sock 9.Thread stoped [23:37:18]accept exits with 7 [23:37:18]New connection [23:37:18]New thread 3067084132 created [23:37:18]Thread 3067227492 joined [23:37:18]Waiting for new connection... [23:37:18] Sock 7.Parse request [23:37:18]Sock 7.Check first char [23:37:18]Sock 7.First char is OK [23:37:18]request: POST /json_proto HTTP/1.0 [23:37:18]Method: POST [23:37:18]URL: /json_proto [23:37:18]Method is POST - this is cgi request [23:37:18]url: /json_proto [23:37:18]query_string will be loaded in cgi processing [23:37:18]execute_cgi json_proto POST (null) [23:37:18]execute_cgi path=json_proto method=POST [23:37:18]POST find Content-Length [23:37:18]Host: 172.17.43.132:8080 [23:37:18]Content-Length: 331 [23:37:18]Content-Type: application/json [23:37:18] [23:37:18]POST finish read [23:37:18]Found Content-Length = 331 [23:37:18]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:37:18]execute_script... [23:37:18]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:37:18]POST & json_proto [23:37:18]process_json_proto [23:37:18]json parsed OK: [23:37:18]protocol is kg_v1.0 [23:37:18]action value=get_value [23:37:18]process_action get_value [23:37:18]cmd_get_value [23:37:18]process_action get_value done [23:37:18]requested_data is exist [23:37:18]produce_requested_data [23:37:18]requested_item fm.sale.total is exist - process it [23:37:18]SAM_PROTO_GetFMData [23:37:18]wFMCommunicate request_size=4 [23:37:18]MH_SAM_APDU [23:37:18]CAPDU: 80 13 03 00 [23:37:18]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [23:37:18]Write i2c OK [23:37:18]MH_I2C_Read... [23:37:19]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:37:19]Read from MH i2c: E2 [23:37:19]MH_I2C_Read... [23:37:19]Read from MH i2c: E2 FD 00 [23:37:19]MH_I2C_Read... [23:37:19]Read from MH i2c: E2 FD 00 13 00 00 C1 04 85 04 BD 04 6E 04 04 00 A3 A0 00 00 69 04 A0 00 6F 04 04 00 09 A0 00 00 B1 04 04 00 85 EA 40 37 70 04 04 00 B0 12 E8 31 72 04 04 00 D5 D7 58 05 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 4D 05 DE 05 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 20 17 7D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 9A 00 00 00 B1 04 03 00 54 D5 4E 70 04 03 00 58 C9 42 72 04 03 00 FC 0B 0C 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 13 5F 08 EF 03 09 00 F6 03 90 00 3B [23:37:19]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 A3 A0 00 00 69 04 A0 00 6F 04 04 00 09 A0 00 00 B1 04 04 00 85 EA 40 37 70 04 04 00 B0 12 E8 31 72 04 04 00 D5 D7 58 05 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 4D 05 DE 05 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 20 17 7D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 9A 00 00 00 B1 04 03 00 54 D5 4E 70 04 03 00 58 C9 42 72 04 03 00 FC 0B 0C 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 13 5F 08 EF 03 09 00 F6 03 90 00 [23:37:19]wFMCommunicate OK [23:37:19]wFMCommunicate request_size=4 [23:37:19]MH_SAM_APDU [23:37:19]CAPDU: 80 17 00 00 [23:37:19]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [23:37:19]Write i2c OK [23:37:19]MH_I2C_Read... [23:37:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:37:19]Read from MH i2c: E2 [23:37:19]MH_I2C_Read... [23:37:19]Read from MH i2c: E2 FD 00 [23:37:19]MH_I2C_Read... [23:37:19]Read from MH i2c: E2 FD 00 14 00 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 F4 [23:37:19]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 [23:37:19]wFMCommunicate OK [23:37:19]wFMCommunicate request_size=4 [23:37:19]MH_SAM_APDU [23:37:19]CAPDU: 80 17 00 00 [23:37:19]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [23:37:19]Write i2c OK [23:37:19]MH_I2C_Read... [23:37:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:37:19]Read from MH i2c: E2 [23:37:19]MH_I2C_Read... [23:37:19]Read from MH i2c: E2 FD 00 [23:37:19]MH_I2C_Read... [23:37:19]Read from MH i2c: E2 FD 00 15 00 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 35 [23:37:19]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [23:37:19]wFMCommunicate OK [23:37:19]wFMCommunicate request_size=4 [23:37:19]MH_SAM_APDU [23:37:19]CAPDU: 80 17 00 00 [23:37:19]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [23:37:19]Write i2c OK [23:37:19]MH_I2C_Read... [23:37:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:37:20]Read from MH i2c: E2 [23:37:20]MH_I2C_Read... [23:37:20]Read from MH i2c: E2 FD 00 [23:37:20]MH_I2C_Read... [23:37:20]Read from MH i2c: E2 FD 00 16 00 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 1B [23:37:20]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [23:37:20]wFMCommunicate OK [23:37:20]wFMCommunicate request_size=4 [23:37:20]MH_SAM_APDU [23:37:20]CAPDU: 80 17 00 00 [23:37:20]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [23:37:20]Write i2c OK [23:37:20]MH_I2C_Read... [23:37:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [23:37:20]Read from MH i2c: E2 [23:37:20]MH_I2C_Read... [23:37:20]Read from MH i2c: E2 DE 00 [23:37:20]MH_I2C_Read... [23:37:20]Read from MH i2c: E2 DE 00 17 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 76 [23:37:20]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:37:20]wFMCommunicate OK [23:37:20]SAM_PROTO_GetFMData done [23:37:20]requested_item fm.sale_refund.total is exist - process it [23:37:20]requested_item fm.buy.total is exist - process it [23:37:20]requested_item shift.sale.total is exist - process it [23:37:20]SAM_PROTO_GetShiftData [23:37:20]wFMCommunicate request_size=4 [23:37:20]MH_SAM_APDU [23:37:20]CAPDU: 80 13 02 00 [23:37:20]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [23:37:20]Write i2c OK [23:37:20]MH_I2C_Read... [23:37:20]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:37:20]Read from MH i2c: E2 [23:37:20]MH_I2C_Read... [23:37:20]Read from MH i2c: E2 FD 00 [23:37:20]MH_I2C_Read... [23:37:20]Read from MH i2c: E2 FD 00 18 00 00 B6 04 AA 04 B2 04 6E 04 04 00 A6 00 00 00 69 04 9B 00 6F 04 04 00 A5 00 00 00 B1 04 03 00 C4 CF 2A 70 04 03 00 B0 6B 25 72 04 03 00 14 64 05 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 CD 8B 04 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 EF 60 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 D4 AD 70 04 02 00 D4 AD 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 76 12 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 90 00 86 [23:37:20]RAPDU: B6 04 AA 04 B2 04 6E 04 04 00 A6 00 00 00 69 04 9B 00 6F 04 04 00 A5 00 00 00 B1 04 03 00 C4 CF 2A 70 04 03 00 B0 6B 25 72 04 03 00 14 64 05 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 CD 8B 04 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 EF 60 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 D4 AD 70 04 02 00 D4 AD 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 76 12 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 90 00 [23:37:20]wFMCommunicate OK [23:37:20]wFMCommunicate request_size=4 [23:37:20]MH_SAM_APDU [23:37:20]CAPDU: 80 17 00 00 [23:37:20]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [23:37:20]Write i2c OK [23:37:20]MH_I2C_Read... [23:37:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:37:21]Read from MH i2c: E2 [23:37:21]MH_I2C_Read... [23:37:21]Read from MH i2c: E2 FD 00 [23:37:21]MH_I2C_Read... [23:37:21]Read from MH i2c: E2 FD 00 19 00 00 F6 03 01 00 01 F7 03 02 00 89 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 37 [23:37:21]RAPDU: F6 03 01 00 01 F7 03 02 00 89 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [23:37:21]wFMCommunicate OK [23:37:21]wFMCommunicate request_size=4 [23:37:21]MH_SAM_APDU [23:37:21]CAPDU: 80 17 00 00 [23:37:21]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [23:37:21]Write i2c OK [23:37:21]MH_I2C_Read... [23:37:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:37:21]Read from MH i2c: E2 [23:37:21]MH_I2C_Read... [23:37:21]Read from MH i2c: E2 FD 00 [23:37:21]MH_I2C_Read... [23:37:21]Read from MH i2c: E2 FD 00 1A 00 00 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 5A [23:37:21]RAPDU: 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:37:21]wFMCommunicate OK [23:37:21]wFMCommunicate request_size=4 [23:37:21]MH_SAM_APDU [23:37:21]CAPDU: 80 17 00 00 [23:37:21]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [23:37:21]Write i2c OK [23:37:21]MH_I2C_Read... [23:37:21]OFD Sender: No OFD packet to send [23:37:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:37:21]Read from MH i2c: E2 [23:37:21]MH_I2C_Read... [23:37:21]Read from MH i2c: E2 FD 00 [23:37:21]MH_I2C_Read... [23:37:21]Read from MH i2c: E2 FD 00 1B 00 00 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 90 00 0A [23:37:21]RAPDU: 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 90 00 [23:37:21]wFMCommunicate OK [23:37:21]wFMCommunicate request_size=4 [23:37:21]MH_SAM_APDU [23:37:21]CAPDU: 80 17 00 00 [23:37:21]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [23:37:21]Write i2c OK [23:37:21]MH_I2C_Read... [23:37:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 208! [23:37:22]Read from MH i2c: E2 [23:37:22]MH_I2C_Read... [23:37:22]Read from MH i2c: E2 D3 00 [23:37:22]MH_I2C_Read... [23:37:22]Read from MH i2c: E2 D3 00 1C 00 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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 89 [23:37:22]RAPDU: 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:37:22]wFMCommunicate OK [23:37:22]SAM_PROTO_GetShiftData done [23:37:22]requested_item shift.sale.total_cash is exist - process it [23:37:22]requested_item shift.sale_refund.total is exist - process it [23:37:22]requested_item shift.sale_refund.total_cash is exist - process it [23:37:22]requested_item shift.buy.total is exist - process it [23:37:22]requested_item shift.buy.total_cash is exist - process it [23:37:22]produce_requested_data done [23:37:22]produce_requested_data return {"fm.sale.total":9270012.21,"fm.sale_refund.total":51664.20,"fm.buy.total":0.00,"shift.sale.total":28057.00,"shift.sale.total_cash":24524.00,"shift.sale_refund.total":445.00,"shift.sale_refund.total_cash":445.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:37:22]process_action_free get_value [23:37:22]json_value_free [23:37:22]json_value_free done [23:37:22]process_json_proto returns [23:37:22]Send response to host [23:37:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":9270012.21,"fm.sale_refund.total":51664.20,"fm.buy.total":0.00,"shift.sale.total":28057.00,"shift.sale.total_cash":24524.00,"shift.sale_refund.total":445.00,"shift.sale_refund.total_cash":445.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:37:22]free response buf [23:37:22]execute_script done [23:37:22]execute_script returns [23:37:22]free content buf [23:37:22]Sock 7.Close socket [23:37:22]Sock 7.Thread stoped [23:37:26]OFD Sender: No OFD packet to send [23:37:27]recv_with_timeout no data received [23:37:31]OFD Sender: No OFD packet to send [23:37:36]OFD Sender: No OFD packet to send [23:37:41]OFD Sender: No OFD packet to send [23:37:42]recv_with_timeout no data received [23:37:46]OFD Sender: No OFD packet to send [23:37:51]OFD Sender: No OFD packet to send [23:37:52]recv_with_timeout no data received [23:37:56]accept exits with 9 [23:37:56]New connection [23:37:56]New thread 3067227492 created [23:37:56]Thread 3067084132 joined [23:37:56]Waiting for new connection... [23:37:56] Sock 9.Parse request [23:37:56]Sock 9.Check first char [23:37:56]Sock 9.First char is OK [23:37:56]request: POST /json_proto HTTP/1.0 [23:37:56]Method: POST [23:37:56]URL: /json_proto [23:37:56]Method is POST - this is cgi request [23:37:56]url: /json_proto [23:37:56]query_string will be loaded in cgi processing [23:37:56]execute_cgi json_proto POST (null) [23:37:56]execute_cgi path=json_proto method=POST [23:37:56]POST find Content-Length [23:37:56]Host: 172.17.43.132:8080 [23:37:56]Content-Length: 215 [23:37:56]Content-Type: application/json [23:37:56] [23:37:56]POST finish read [23:37:56]Found Content-Length = 215 [23:37:56]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:37:56]execute_script... [23:37:56]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:37:56]POST & json_proto [23:37:56]process_json_proto [23:37:56]json parsed OK: [23:37:56]protocol is kg_v1.0 [23:37:56]action value=get_value [23:37:56]process_action get_value [23:37:56]cmd_get_value [23:37:56]process_action get_value done [23:37:56]requested_data is exist [23:37:56]produce_requested_data [23:37:56]requested_item kkm.sn is exist - process it [23:37:56]requested_item kkm.ver is exist - process it [23:37:56]requested_item fm.sn is exist - process it [23:37:56]wFMCommunicate request_size=4 [23:37:56]MH_SAM_APDU [23:37:56]CAPDU: 80 11 00 00 [23:37:56]Write to MH i2c: E2 08 00 1D 00 80 11 00 00 00 00 00 00 97 [23:37:56]Write i2c OK [23:37:56]MH_I2C_Read... [23:37:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:37:56]Read from MH i2c: E2 [23:37:56]MH_I2C_Read... [23:37:56]Read from MH i2c: E2 17 00 [23:37:56]MH_I2C_Read... [23:37:56]Read from MH i2c: E2 17 00 1D 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 F3 [23:37:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [23:37:56]wFMCommunicate OK [23:37:56]requested_item fd.num is exist - process it [23:37:56]SAM_PROTO_GetFieldsCounters [23:37:56]wFMCommunicate request_size=4 [23:37:56]MH_SAM_APDU [23:37:56]CAPDU: 80 13 00 00 [23:37:56]Write to MH i2c: E2 08 00 1E 00 80 13 00 00 00 00 00 00 9A [23:37:56]Write i2c OK [23:37:56]MH_I2C_Read... [23:37:56]Read from MH i2c: E2 [23:37:56]MH_I2C_Read... [23:37:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:37:56]Read from MH i2c: E2 62 00 [23:37:56]MH_I2C_Read... [23:37:56]Read from MH i2c: E2 62 00 1E 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 F9 A3 00 00 0E 04 04 00 AB 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 FE [23:37: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 F9 A3 00 00 0E 04 04 00 AB 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 [23:37:56]wFMCommunicate OK [23:37:56]SAM_PROTO_GetFieldsCounters done [23:37:56]requested_item shift.num is exist - process it [23:37:56]requested_item shift.opened is exist - process it [23:37:56]req_shift_opened [23:37:56]FM_GetShiftState [23:37:56]SAM_PROTO_GetShiftState [23:37:56]wFMCommunicate request_size=4 [23:37:56]MH_SAM_APDU [23:37:56]CAPDU: 80 13 01 00 [23:37:56]Write to MH i2c: E2 08 00 1F 00 80 13 01 00 00 00 00 00 9C [23:37:56]Write i2c OK [23:37:56]MH_I2C_Read... [23:37:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:37:56]Read from MH i2c: E2 [23:37:56]MH_I2C_Read... [23:37:56]Read from MH i2c: E2 0E 00 [23:37:56]MH_I2C_Read... [23:37:56]Read from MH i2c: E2 0E 00 1F 00 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 38 [23:37:56]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [23:37:56]wFMCommunicate OK [23:37:56]SAM_PROTO_GetShiftState done [23:37:56]FM_GetShiftState done [23:37:56]req_shift_opened done [23:37:56]requested_item shift.open_date is exist - process it [23:37:56]req_shift_open_date [23:37:56]req_shift_open_date done [23:37:56]produce_requested_data done [23:37:56]produce_requested_data return {"kkm.sn":"0300000053","kkm.ver":"001","fm.sn":"0000000000874958","fd.num":41977,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [23:37:56]process_action_free get_value [23:37:56]json_value_free [23:37:56]json_value_free done [23:37:56]process_json_proto returns [23:37:56]Send response to host [23:37:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000053","kkm.ver":"001","fm.sn":"0000000000874958","fd.num":41977,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [23:37:56]free response buf [23:37:56]execute_script done [23:37:56]execute_script returns [23:37:56]free content buf [23:37:56]Sock 9.Close socket [23:37:56]Sock 9.Thread stoped [23:37:56]accept exits with 7 [23:37:56]New connection [23:37:56]New thread 3067084132 created [23:37:56]Thread 3067227492 joined [23:37:56]Waiting for new connection... [23:37:56] Sock 7.Parse request [23:37:56]Sock 7.Check first char [23:37:56]Sock 7.First char is OK [23:37:56]request: POST /json_proto HTTP/1.0 [23:37:56]Method: POST [23:37:56]URL: /json_proto [23:37:56]Method is POST - this is cgi request [23:37:56]url: /json_proto [23:37:56]query_string will be loaded in cgi processing [23:37:56]execute_cgi json_proto POST (null) [23:37:56]execute_cgi path=json_proto method=POST [23:37:56]POST find Content-Length [23:37:56]Host: 172.17.43.132:8080 [23:37:56]Content-Length: 331 [23:37:56]Content-Type: application/json [23:37:56] [23:37:56]POST finish read [23:37:56]Found Content-Length = 331 [23:37:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:37:56]execute_script... [23:37:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:37:56]POST & json_proto [23:37:56]process_json_proto [23:37:56]json parsed OK: [23:37:56]protocol is kg_v1.0 [23:37:56]action value=get_value [23:37:56]process_action get_value [23:37:56]cmd_get_value [23:37:56]process_action get_value done [23:37:56]requested_data is exist [23:37:56]produce_requested_data [23:37:56]requested_item fm.sale.total is exist - process it [23:37:56]SAM_PROTO_GetFMData [23:37:56]wFMCommunicate request_size=4 [23:37:56]MH_SAM_APDU [23:37:56]CAPDU: 80 13 03 00 [23:37:56]Write to MH i2c: E2 08 00 20 00 80 13 03 00 00 00 00 00 9F [23:37:56]Write i2c OK [23:37:56]MH_I2C_Read... [23:37:56]OFD Sender: No OFD packet to send [23:37:56]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:37:56]Read from MH i2c: E2 [23:37:56]MH_I2C_Read... [23:37:56]Read from MH i2c: E2 FD 00 [23:37:56]MH_I2C_Read... [23:37:56]Read from MH i2c: E2 FD 00 20 00 00 C1 04 85 04 BD 04 6E 04 04 00 A3 A0 00 00 69 04 A0 00 6F 04 04 00 09 A0 00 00 B1 04 04 00 85 EA 40 37 70 04 04 00 B0 12 E8 31 72 04 04 00 D5 D7 58 05 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 4D 05 DE 05 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 20 17 7D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 9A 00 00 00 B1 04 03 00 54 D5 4E 70 04 03 00 58 C9 42 72 04 03 00 FC 0B 0C 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 13 5F 08 EF 03 09 00 F6 03 90 00 48 [23:37:56]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 A3 A0 00 00 69 04 A0 00 6F 04 04 00 09 A0 00 00 B1 04 04 00 85 EA 40 37 70 04 04 00 B0 12 E8 31 72 04 04 00 D5 D7 58 05 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 4D 05 DE 05 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 20 17 7D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 9A 00 00 00 B1 04 03 00 54 D5 4E 70 04 03 00 58 C9 42 72 04 03 00 FC 0B 0C 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 13 5F 08 EF 03 09 00 F6 03 90 00 [23:37:57]wFMCommunicate OK [23:37:57]wFMCommunicate request_size=4 [23:37:57]MH_SAM_APDU [23:37:57]CAPDU: 80 17 00 00 [23:37:57]Write to MH i2c: E2 08 00 21 00 80 17 00 00 00 00 00 00 A1 [23:37:57]Write i2c OK [23:37:57]MH_I2C_Read... [23:37:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:37:57]Read from MH i2c: E2 [23:37:57]MH_I2C_Read... [23:37:57]Read from MH i2c: E2 FD 00 [23:37:57]MH_I2C_Read... [23:37:57]Read from MH i2c: E2 FD 00 21 00 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 01 [23:37:57]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 [23:37:57]wFMCommunicate OK [23:37:57]wFMCommunicate request_size=4 [23:37:57]MH_SAM_APDU [23:37:57]CAPDU: 80 17 00 00 [23:37:57]Write to MH i2c: E2 08 00 22 00 80 17 00 00 00 00 00 00 A2 [23:37:57]Write i2c OK [23:37:57]MH_I2C_Read... [23:37:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:37:57]Read from MH i2c: E2 [23:37:57]MH_I2C_Read... [23:37:57]Read from MH i2c: E2 FD 00 [23:37:57]MH_I2C_Read... [23:37:57]Read from MH i2c: E2 FD 00 22 00 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 42 [23:37:57]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [23:37:57]wFMCommunicate OK [23:37:57]wFMCommunicate request_size=4 [23:37:57]MH_SAM_APDU [23:37:57]CAPDU: 80 17 00 00 [23:37:57]Write to MH i2c: E2 08 00 23 00 80 17 00 00 00 00 00 00 A3 [23:37:57]Write i2c OK [23:37:57]MH_I2C_Read... [23:37:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:37:57]Read from MH i2c: E2 [23:37:57]MH_I2C_Read... [23:37:57]Read from MH i2c: E2 FD 00 [23:37:57]MH_I2C_Read... [23:37:57]Read from MH i2c: E2 FD 00 23 00 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 28 [23:37:57]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [23:37:57]wFMCommunicate OK [23:37:57]wFMCommunicate request_size=4 [23:37:57]MH_SAM_APDU [23:37:57]CAPDU: 80 17 00 00 [23:37:57]Write to MH i2c: E2 08 00 24 00 80 17 00 00 00 00 00 00 A4 [23:37:57]Write i2c OK [23:37:57]MH_I2C_Read... [23:37:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [23:37:58]Read from MH i2c: E2 [23:37:58]MH_I2C_Read... [23:37:58]Read from MH i2c: E2 DE 00 [23:37:58]MH_I2C_Read... [23:37:58]Read from MH i2c: E2 DE 00 24 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 83 [23:37:58]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:37:58]wFMCommunicate OK [23:37:58]SAM_PROTO_GetFMData done [23:37:58]requested_item fm.sale_refund.total is exist - process it [23:37:58]requested_item fm.buy.total is exist - process it [23:37:58]requested_item shift.sale.total is exist - process it [23:37:58]SAM_PROTO_GetShiftData [23:37:58]wFMCommunicate request_size=4 [23:37:58]MH_SAM_APDU [23:37:58]CAPDU: 80 13 02 00 [23:37:58]Write to MH i2c: E2 08 00 25 00 80 13 02 00 00 00 00 00 A3 [23:37:58]Write i2c OK [23:37:58]MH_I2C_Read... [23:37:58]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:37:58]Read from MH i2c: E2 [23:37:58]MH_I2C_Read... [23:37:58]Read from MH i2c: E2 FD 00 [23:37:58]MH_I2C_Read... [23:37:58]Read from MH i2c: E2 FD 00 25 00 00 B6 04 AA 04 B2 04 6E 04 04 00 A6 00 00 00 69 04 9B 00 6F 04 04 00 A5 00 00 00 B1 04 03 00 C4 CF 2A 70 04 03 00 B0 6B 25 72 04 03 00 14 64 05 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 CD 8B 04 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 EF 60 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 D4 AD 70 04 02 00 D4 AD 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 76 12 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 90 00 93 [23:37:58]RAPDU: B6 04 AA 04 B2 04 6E 04 04 00 A6 00 00 00 69 04 9B 00 6F 04 04 00 A5 00 00 00 B1 04 03 00 C4 CF 2A 70 04 03 00 B0 6B 25 72 04 03 00 14 64 05 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 CD 8B 04 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 EF 60 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 D4 AD 70 04 02 00 D4 AD 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 76 12 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 90 00 [23:37:58]wFMCommunicate OK [23:37:58]wFMCommunicate request_size=4 [23:37:58]MH_SAM_APDU [23:37:58]CAPDU: 80 17 00 00 [23:37:58]Write to MH i2c: E2 08 00 26 00 80 17 00 00 00 00 00 00 A6 [23:37:58]Write i2c OK [23:37:58]MH_I2C_Read... [23:37:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:37:58]Read from MH i2c: E2 [23:37:58]MH_I2C_Read... [23:37:58]Read from MH i2c: E2 FD 00 [23:37:58]MH_I2C_Read... [23:37:58]Read from MH i2c: E2 FD 00 26 00 00 F6 03 01 00 01 F7 03 02 00 89 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 44 [23:37:58]RAPDU: F6 03 01 00 01 F7 03 02 00 89 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [23:37:59]wFMCommunicate OK [23:37:59]wFMCommunicate request_size=4 [23:37:59]MH_SAM_APDU [23:37:59]CAPDU: 80 17 00 00 [23:37:59]Write to MH i2c: E2 08 00 27 00 80 17 00 00 00 00 00 00 A7 [23:37:59]Write i2c OK [23:37:59]MH_I2C_Read... [23:37:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:37:59]Read from MH i2c: E2 [23:37:59]MH_I2C_Read... [23:37:59]Read from MH i2c: E2 FD 00 [23:37:59]MH_I2C_Read... [23:37:59]Read from MH i2c: E2 FD 00 27 00 00 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 67 [23:37:59]RAPDU: 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:37:59]wFMCommunicate OK [23:37:59]wFMCommunicate request_size=4 [23:37:59]MH_SAM_APDU [23:37:59]CAPDU: 80 17 00 00 [23:37:59]Write to MH i2c: E2 08 00 28 00 80 17 00 00 00 00 00 00 A8 [23:37:59]Write i2c OK [23:37:59]MH_I2C_Read... [23:37:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:37:59]Read from MH i2c: E2 [23:37:59]MH_I2C_Read... [23:37:59]Read from MH i2c: E2 FD 00 [23:37:59]MH_I2C_Read... [23:37:59]Read from MH i2c: E2 FD 00 28 00 00 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 90 00 17 [23:37:59]RAPDU: 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 90 00 [23:37:59]wFMCommunicate OK [23:37:59]wFMCommunicate request_size=4 [23:37:59]MH_SAM_APDU [23:37:59]CAPDU: 80 17 00 00 [23:37:59]Write to MH i2c: E2 08 00 29 00 80 17 00 00 00 00 00 00 A9 [23:37:59]Write i2c OK [23:37:59]MH_I2C_Read... [23:37:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 208! [23:37:59]Read from MH i2c: E2 [23:37:59]MH_I2C_Read... [23:37:59]Read from MH i2c: E2 D3 00 [23:37:59]MH_I2C_Read... [23:37:59]Read from MH i2c: E2 D3 00 29 00 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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 96 [23:37:59]RAPDU: 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:37:59]wFMCommunicate OK [23:37:59]SAM_PROTO_GetShiftData done [23:37:59]requested_item shift.sale.total_cash is exist - process it [23:37:59]requested_item shift.sale_refund.total is exist - process it [23:37:59]requested_item shift.sale_refund.total_cash is exist - process it [23:37:59]requested_item shift.buy.total is exist - process it [23:37:59]requested_item shift.buy.total_cash is exist - process it [23:37:59]produce_requested_data done [23:37:59]produce_requested_data return {"fm.sale.total":9270012.21,"fm.sale_refund.total":51664.20,"fm.buy.total":0.00,"shift.sale.total":28057.00,"shift.sale.total_cash":24524.00,"shift.sale_refund.total":445.00,"shift.sale_refund.total_cash":445.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:37:59]process_action_free get_value [23:37:59]json_value_free [23:37:59]json_value_free done [23:37:59]process_json_proto returns [23:37:59]Send response to host [23:37:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":9270012.21,"fm.sale_refund.total":51664.20,"fm.buy.total":0.00,"shift.sale.total":28057.00,"shift.sale.total_cash":24524.00,"shift.sale_refund.total":445.00,"shift.sale_refund.total_cash":445.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:37:59]free response buf [23:37:59]execute_script done [23:37:59]execute_script returns [23:37:59]free content buf [23:37:59]Sock 7.Close socket [23:37:59]Sock 7.Thread stoped [23:38:01]OFD Sender: No OFD packet to send [23:38:05]recv_with_timeout no data received [23:38:06]OFD Sender: No OFD packet to send [23:38:11]OFD Sender: No OFD packet to send [23:38:16]OFD Sender: No OFD packet to send [23:38:17]recv_with_timeout no data received [23:38:21]OFD Sender: No OFD packet to send [23:38:26]OFD Sender: No OFD packet to send [23:38:31]OFD Sender: No OFD packet to send [23:38:36]OFD Sender: No OFD packet to send [23:38:41]OFD Sender: No OFD packet to send [23:38:46]OFD Sender: No OFD packet to send [23:38:51]OFD Sender: No OFD packet to send [23:38:56]OFD Sender: No OFD packet to send [23:39:01]OFD Sender: No OFD packet to send [23:39:06]OFD Sender: No OFD packet to send [23:39:11]OFD Sender: No OFD packet to send [23:39:16]OFD Sender: No OFD packet to send [23:39:20]recv_with_timeout no data received [23:39:21]OFD Sender: No OFD packet to send [23:39:26]OFD Sender: No OFD packet to send [23:39:31]OFD Sender: No OFD packet to send [23:39:36]OFD Sender: No OFD packet to send [23:39:41]OFD Sender: No OFD packet to send [23:39:43]recv_with_timeout no data received [23:39:46]OFD Sender: No OFD packet to send [23:39:51]OFD Sender: No OFD packet to send [23:39:56]OFD Sender: No OFD packet to send [23:40:01]OFD Sender: No OFD packet to send [23:40:06]OFD Sender: No OFD packet to send [23:40:11]OFD Sender: No OFD packet to send [23:40:16]OFD Sender: No OFD packet to send [23:40:21]OFD Sender: No OFD packet to send [23:40:26]OFD Sender: No OFD packet to send [23:40:31]recv_with_timeout no data received [23:40:31]OFD Sender: No OFD packet to send [23:40:36]OFD Sender: No OFD packet to send [23:40:41]OFD Sender: No OFD packet to send [23:40:46]OFD Sender: No OFD packet to send [23:40:51]OFD Sender: No OFD packet to send [23:40:56]OFD Sender: No OFD packet to send [23:41:01]OFD Sender: No OFD packet to send [23:41:06]OFD Sender: No OFD packet to send [23:41:11]OFD Sender: No OFD packet to send [23:41:16]OFD Sender: No OFD packet to send [23:41:21]OFD Sender: No OFD packet to send [23:41:26]OFD Sender: No OFD packet to send [23:41:31]OFD Sender: No OFD packet to send [23:41:36]OFD Sender: No OFD packet to send [23:41:41]OFD Sender: No OFD packet to send [23:41:46]OFD Sender: No OFD packet to send [23:41:51]OFD Sender: No OFD packet to send [23:41:56]OFD Sender: No OFD packet to send [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]/dev/ttyS4 opened [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 81 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 26 [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 5400000000572581 (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: 34181+1722262372=1722296553 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0xff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33540624 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 81 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 27 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 60 00 FF FF 7F [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 E9 28 A8 66 64 A3 A7 66 32 [23:42:33]Current date/time: 29.07.2024 23:42 [23:42:33]FM_Init [23:42:33]wFMConnect [23:42:33]MH_SAM_On [23:42:33]Write to MH i2c: E0 00 00 08 00 E7 [23:42:33]Write i2c OK [23:42:33]MH_I2C_Read... [23:42:33]*** iso7816_init finished! [23:42:33]*** atr: [23:42:33]*** 0F 3B D5 18 FF 81 91 FE [23:42:33]*** 1F C3 80 73 C8 21 10 0A [23:42:33]*** 00 00 00 00 00 00 00 00 [23:42:33]*** 00 00 00 00 00 00 00 00 [23:42:33]*** 00 00 00 00 00 00 00 00 [23:42:33]*** 00 00 00 00 00 00 00 00 [23:42:33]*** 00 00 00 00 00 00 00 00 [23:42:33]*** 00 00 00 00 00 00 00 00 [23:42:33]Read from MH i2c: E0 [23:42:33]MH_I2C_Read... [23:42:33]Read from MH i2c: E0 10 00 [23:42:33]MH_I2C_Read... [23:42:33]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 [23:42:33]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [23:42:33]wFMCommunicate request_size=10 [23:42:33]MH_SAM_APDU [23:42:33]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [23:42:33]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [23:42:33]Write i2c OK [23:42:33]MH_I2C_Read... [23:42:33]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [23:42:33]Read from MH i2c: E2 [23:42:33]MH_I2C_Read... [23:42:33]Read from MH i2c: E2 03 00 [23:42:33]MH_I2C_Read... [23:42:33]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [23:42:33]RAPDU: 90 00 [23:42:33]wFMCommunicate OK [23:42:33]wFMCommunicate request_size=4 [23:42:33]MH_SAM_APDU [23:42:33]CAPDU: 80 11 00 00 [23:42:33]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [23:42:33]Write i2c OK [23:42:33]MH_I2C_Read... [23:42:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:42:33]Read from MH i2c: E2 [23:42:33]MH_I2C_Read... [23:42:33]Read from MH i2c: E2 17 00 [23:42:33]MH_I2C_Read... [23:42:33]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 35 38 90 00 E0 [23:42:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [23:42:33]wFMCommunicate OK [23:42:33]Detected FM SN is 0000000000874958 [23:42:33]Stored FM SN is 0000000000874958 [23:42:33]wFMCommunicate request_size=9 [23:42:33]MH_SAM_APDU [23:42:33]CAPDU: 80 16 00 00 04 FB 29 00 00 [23:42:33]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 FB 29 00 00 00 00 B6 [23:42:33]Write i2c OK [23:42:33]MH_I2C_Read... [23:42:33]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [23:42:33]Read from MH i2c: E2 [23:42:33]MH_I2C_Read... [23:42:33]Read from MH i2c: E2 03 00 [23:42:33]MH_I2C_Read... [23:42:33]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [23:42:33]RAPDU: 90 00 [23:42:33]wFMCommunicate OK [23:42:33]FM PIN OK [23:42:33]wFMCommunicate request_size=8 [23:42:33]MH_SAM_APDU [23:42:33]CAPDU: 80 14 04 00 03 02 00 01 [23:42:33]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [23:42:33]Write i2c OK [23:42:33]MH_I2C_Read... [23:42:33]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [23:42:33]Read from MH i2c: E2 [23:42:33]MH_I2C_Read... [23:42:33]Read from MH i2c: E2 03 00 [23:42:33]MH_I2C_Read... [23:42:33]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [23:42:33]RAPDU: 90 00 [23:42:33]wFMCommunicate OK [23:42:33]wFMCommunicate request_size=13 [23:42:33]MH_SAM_APDU [23:42:33]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [23:42:33]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 [23:42:33]Write i2c OK [23:42:33]MH_I2C_Read... [23:42:33]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [23:42:33]Read from MH i2c: E2 [23:42:33]MH_I2C_Read... [23:42:33]Read from MH i2c: E2 03 00 [23:42:33]MH_I2C_Read... [23:42:33]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [23:42:33]RAPDU: 90 00 [23:42:33]wFMCommunicate OK [23:42:33]wFMCommunicate request_size=4 [23:42:33]MH_SAM_APDU [23:42:33]CAPDU: 80 11 00 00 [23:42:33]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [23:42:33]Write i2c OK [23:42:33]MH_I2C_Read... [23:42:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:42:33]Read from MH i2c: E2 [23:42:33]MH_I2C_Read... [23:42:33]Read from MH i2c: E2 17 00 [23:42:33]MH_I2C_Read... [23:42:33]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 35 38 90 00 E4 [23:42:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [23:42:33]wFMCommunicate OK [23:42:33]DocumentArchiveInit [23:42:33]Start Httpd... [23:42:33]Httpd thread 3067874660 created [23:42:33]Write to MH i2c: 01 00 00 0F 00 0F [23:42:33]Write i2c OK [23:42:33]MH_I2C_Read... [23:42:33]Read from MH i2c: 01 [23:42:33]MH_I2C_Read... [23:42:33]Read from MH i2c: 01 07 00 [23:42:33]MH_I2C_Read... [23:42:33]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [23:42:33]MH Int Process started [23:42:33]Allocated Socket 6 [23:42:33]Bind OK [23:42:33]Listen OK [23:42:33]httpd running on port 8080 [23:42:33]Waiting for new connection... [23:42:33]OFD Sender: No OFD packet to send [23:42:36]accept exits with 8 [23:42:36]New connection [23:42:36]New thread 3067587940 created [23:42:36]Waiting for new connection... [23:42:36] Sock 8.Parse request [23:42:36]Sock 8.Check first char [23:42:36]Sock 8.First char is OK [23:42:36]request: POST /json_proto HTTP/1.0 [23:42:36]Method: POST [23:42:36]URL: /json_proto [23:42:36]Method is POST - this is cgi request [23:42:36]url: /json_proto [23:42:36]query_string will be loaded in cgi processing [23:42:36]execute_cgi json_proto POST (null) [23:42:36]execute_cgi path=json_proto method=POST [23:42:36]POST find Content-Length [23:42:36]Host: 172.17.43.132:8080 [23:42:36]Content-Length: 215 [23:42:36]Content-Type: application/json [23:42:36] [23:42:36]POST finish read [23:42:36]Found Content-Length = 215 [23:42:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:42:36]execute_script... [23:42:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:42:36]POST & json_proto [23:42:36]process_json_proto [23:42:36]json parsed OK: [23:42:36]protocol is kg_v1.0 [23:42:36]action value=get_value [23:42:36]process_action get_value [23:42:36]cmd_get_value [23:42:36]process_action get_value done [23:42:36]requested_data is exist [23:42:36]produce_requested_data [23:42:36]requested_item kkm.sn is exist - process it [23:42:36]requested_item kkm.ver is exist - process it [23:42:36]requested_item fm.sn is exist - process it [23:42:36]wFMCommunicate request_size=4 [23:42:36]MH_SAM_APDU [23:42:36]CAPDU: 80 11 00 00 [23:42:36]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [23:42:36]Write i2c OK [23:42:36]MH_I2C_Read... [23:42:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:42:36]Read from MH i2c: E2 [23:42:36]MH_I2C_Read... [23:42:36]Read from MH i2c: E2 17 00 [23:42:36]MH_I2C_Read... [23:42:36]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 35 38 90 00 E6 [23:42:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [23:42:36]wFMCommunicate OK [23:42:36]requested_item fd.num is exist - process it [23:42:36]SAM_PROTO_GetFieldsCounters [23:42:36]wFMCommunicate request_size=4 [23:42:36]MH_SAM_APDU [23:42:36]CAPDU: 80 13 00 00 [23:42:36]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [23:42:36]Write i2c OK [23:42:36]MH_I2C_Read... [23:42:36]Read from MH i2c: E2 [23:42:36]MH_I2C_Read... [23:42:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:42:36]Read from MH i2c: E2 62 00 [23:42:36]MH_I2C_Read... [23:42:36]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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 F9 A3 00 00 0E 04 04 00 AB 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 F1 [23:42: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 F9 A3 00 00 0E 04 04 00 AB 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 [23:42:36]wFMCommunicate OK [23:42:36]SAM_PROTO_GetFieldsCounters done [23:42:36]requested_item shift.num is exist - process it [23:42:36]requested_item shift.opened is exist - process it [23:42:36]req_shift_opened [23:42:36]FM_GetShiftState [23:42:36]SAM_PROTO_GetShiftState [23:42:36]wFMCommunicate request_size=4 [23:42:36]MH_SAM_APDU [23:42:36]CAPDU: 80 13 01 00 [23:42:36]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [23:42:36]Write i2c OK [23:42:36]MH_I2C_Read... [23:42:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:42:36]Read from MH i2c: E2 [23:42:36]MH_I2C_Read... [23:42:36]Read from MH i2c: E2 0E 00 [23:42:36]MH_I2C_Read... [23:42:36]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 2B [23:42:36]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [23:42:36]wFMCommunicate OK [23:42:36]SAM_PROTO_GetShiftState done [23:42:36]FM_GetShiftState done [23:42:36]req_shift_opened done [23:42:36]requested_item shift.open_date is exist - process it [23:42:36]req_shift_open_date [23:42:36]req_shift_open_date done [23:42:36]produce_requested_data done [23:42:36]produce_requested_data return {"kkm.sn":"0300000053","kkm.ver":"001","fm.sn":"0000000000874958","fd.num":41977,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [23:42:36]process_action_free get_value [23:42:36]json_value_free [23:42:36]json_value_free done [23:42:36]process_json_proto returns [23:42:36]Send response to host [23:42:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000053","kkm.ver":"001","fm.sn":"0000000000874958","fd.num":41977,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [23:42:36]free response buf [23:42:36]execute_script done [23:42:36]execute_script returns [23:42:36]free content buf [23:42:36]Sock 8.Close socket [23:42:36]Sock 8.Thread stoped [23:42:36]accept exits with 7 [23:42:36]New connection [23:42:36]New thread 3067444580 created [23:42:36]Thread 3067587940 joined [23:42:36]Waiting for new connection... [23:42:36] Sock 7.Parse request [23:42:36]Sock 7.Check first char [23:42:36]Sock 7.First char is OK [23:42:36]request: POST /json_proto HTTP/1.0 [23:42:36]Method: POST [23:42:36]URL: /json_proto [23:42:36]Method is POST - this is cgi request [23:42:36]url: /json_proto [23:42:36]query_string will be loaded in cgi processing [23:42:36]execute_cgi json_proto POST (null) [23:42:36]execute_cgi path=json_proto method=POST [23:44:27]ConnectInit Can't connect to host [23:44:28]OFD Sender: No OFD packet to send [23:44:33]OFD Sender: No OFD packet to send [23:44:38]OFD Sender: No OFD packet to send [23:44:43]OFD Sender: No OFD packet to send [23:44:48]OFD Sender: No OFD packet to send [23:44:53]OFD Sender: No OFD packet to send [23:44:58]OFD Sender: No OFD packet to send [23:45:03]OFD Sender: No OFD packet to send [23:45:08]OFD Sender: No OFD packet to send [23:45:13]OFD Sender: No OFD packet to send [23:45:18]OFD Sender: No OFD packet to send [23:45:23]OFD Sender: No OFD packet to send [23:45:28]OFD Sender: No OFD packet to send [23:45:33]OFD Sender: No OFD packet to send [23:45:38]OFD Sender: No OFD packet to send [23:45:43]OFD Sender: No OFD packet to send [23:45:48]OFD Sender: No OFD packet to send [23:45:53]OFD Sender: No OFD packet to send [23:45:58]OFD Sender: No OFD packet to send [23:46:03]OFD Sender: No OFD packet to send [23:46:08]OFD Sender: No OFD packet to send [23:46:13]OFD Sender: No OFD packet to send [23:46:18]OFD Sender: No OFD packet to send [23:46:23]OFD Sender: No OFD packet to send [23:46:28]OFD Sender: No OFD packet to send [23:46:33]OFD Sender: No OFD packet to send [23:46:38]OFD Sender: No OFD packet to send [23:46:43]OFD Sender: No OFD packet to send [23:46:48]OFD Sender: No OFD packet to send [23:46:53]OFD Sender: No OFD packet to send [23:46:58]OFD Sender: No OFD packet to send [23:47:03]OFD Sender: No OFD packet to send [23:47:08]OFD Sender: No OFD packet to send [23:47:13]OFD Sender: No OFD packet to send [23:47:15]recv_with_timeout no data received [23:47:18]OFD Sender: No OFD packet to send [23:47:23]OFD Sender: No OFD packet to send [23:47:28]OFD Sender: No OFD packet to send [23:47:33]OFD Sender: No OFD packet to send [23:47:38]OFD Sender: No OFD packet to send [23:47:43]OFD Sender: No OFD packet to send [23:47:46]accept exits with 8 [23:47:46]New connection [23:47:46]New thread 3067587940 created [23:47:46]Thread 3067444580 joined [23:47:46]Waiting for new connection... [23:47:46] Sock 8.Parse request [23:47:46]Sock 8.Check first char [23:47:46]Sock 8.First char is OK [23:47:46]request: POST /json_proto HTTP/1.0 [23:47:46]Method: POST [23:47:46]URL: /json_proto [23:47:46]Method is POST - this is cgi request [23:47:46]url: /json_proto [23:47:46]query_string will be loaded in cgi processing [23:47:46]execute_cgi json_proto POST (null) [23:47:46]execute_cgi path=json_proto method=POST [23:47:46]POST find Content-Length [23:47:46]Host: 172.17.43.132:8080 [23:47:46]Content-Length: 215 [23:47:46]Content-Type: application/json [23:47:46] [23:47:46]POST finish read [23:47:46]Found Content-Length = 215 [23:47: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:47:46]execute_script... [23:47: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:47:46]POST & json_proto [23:47:46]process_json_proto [23:47:46]json parsed OK: [23:47:46]protocol is kg_v1.0 [23:47:46]action value=get_value [23:47:46]process_action get_value [23:47:46]cmd_get_value [23:47:46]process_action get_value done [23:47:46]requested_data is exist [23:47:46]produce_requested_data [23:47:46]requested_item kkm.sn is exist - process it [23:47:46]requested_item kkm.ver is exist - process it [23:47:46]requested_item fm.sn is exist - process it [23:47:46]wFMCommunicate request_size=4 [23:47:46]MH_SAM_APDU [23:47:46]CAPDU: 80 11 00 00 [23:47:46]Write to MH i2c: E2 08 00 1D 00 80 11 00 00 00 00 00 00 97 [23:47:46]Write i2c OK [23:47:46]MH_I2C_Read... [23:47:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:47:46]Read from MH i2c: E2 [23:47:46]MH_I2C_Read... [23:47:46]Read from MH i2c: E2 17 00 [23:47:46]MH_I2C_Read... [23:47:46]Read from MH i2c: E2 17 00 1D 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 F3 [23:47:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [23:47:46]wFMCommunicate OK [23:47:46]requested_item fd.num is exist - process it [23:47:46]SAM_PROTO_GetFieldsCounters [23:47:46]wFMCommunicate request_size=4 [23:47:46]MH_SAM_APDU [23:47:46]CAPDU: 80 13 00 00 [23:47:46]Write to MH i2c: E2 08 00 1E 00 80 13 00 00 00 00 00 00 9A [23:47:46]Write i2c OK [23:47:46]MH_I2C_Read... [23:47:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:47:46]Read from MH i2c: E2 [23:47:46]MH_I2C_Read... [23:47:46]Read from MH i2c: E2 62 00 [23:47:46]MH_I2C_Read... [23:47:46]Read from MH i2c: E2 62 00 1E 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 F9 A3 00 00 0E 04 04 00 AB 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 FE [23:47: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 F9 A3 00 00 0E 04 04 00 AB 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 [23:47:46]wFMCommunicate OK [23:47:46]SAM_PROTO_GetFieldsCounters done [23:47:46]requested_item shift.num is exist - process it [23:47:46]requested_item shift.opened is exist - process it [23:47:46]req_shift_opened [23:47:46]FM_GetShiftState [23:47:46]SAM_PROTO_GetShiftState [23:47:46]wFMCommunicate request_size=4 [23:47:46]MH_SAM_APDU [23:47:46]CAPDU: 80 13 01 00 [23:47:46]Write to MH i2c: E2 08 00 1F 00 80 13 01 00 00 00 00 00 9C [23:47:46]Write i2c OK [23:47:46]MH_I2C_Read... [23:47:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:47:46]Read from MH i2c: E2 [23:47:46]MH_I2C_Read... [23:47:46]Read from MH i2c: E2 0E 00 [23:47:46]MH_I2C_Read... [23:47:46]Read from MH i2c: E2 0E 00 1F 00 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 38 [23:47:46]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [23:47:46]wFMCommunicate OK [23:47:46]SAM_PROTO_GetShiftState done [23:47:46]FM_GetShiftState done [23:47:46]req_shift_opened done [23:47:46]requested_item shift.open_date is exist - process it [23:47:46]req_shift_open_date [23:47:46]req_shift_open_date done [23:47:46]produce_requested_data done [23:47:46]produce_requested_data return {"kkm.sn":"0300000053","kkm.ver":"001","fm.sn":"0000000000874958","fd.num":41977,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [23:47:46]process_action_free get_value [23:47:46]json_value_free [23:47:46]json_value_free done [23:47:46]process_json_proto returns [23:47:46]Send response to host [23:47:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000053","kkm.ver":"001","fm.sn":"0000000000874958","fd.num":41977,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [23:47:46]free response buf [23:47:46]execute_script done [23:47:46]execute_script returns [23:47:46]free content buf [23:47:46]Sock 8.Close socket [23:47:46]Sock 8.Thread stoped [23:47:46]accept exits with 10 [23:47:46]New connection [23:47:46]New thread 3067444580 created [23:47:46]Thread 3067587940 joined [23:47:46]Waiting for new connection... [23:47:46] Sock 10.Parse request [23:47:46]Sock 10.Check first char [23:47:46]Sock 10.First char is OK [23:47:46]request: POST /json_proto HTTP/1.0 [23:47:46]Method: POST [23:47:46]URL: /json_proto [23:47:46]Method is POST - this is cgi request [23:47:46]url: /json_proto [23:47:46]query_string will be loaded in cgi processing [23:47:46]execute_cgi json_proto POST (null) [23:47:46]execute_cgi path=json_proto method=POST [23:47:46]POST find Content-Length [23:47:46]Host: 172.17.43.132:8080 [23:47:46]Content-Length: 331 [23:47:46]Content-Type: application/json [23:47:46] [23:47:46]POST finish read [23:47:46]Found Content-Length = 331 [23:47:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:47:46]execute_script... [23:47:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:47:46]POST & json_proto [23:47:46]process_json_proto [23:47:46]json parsed OK: [23:47:46]protocol is kg_v1.0 [23:47:46]action value=get_value [23:47:46]process_action get_value [23:47:46]cmd_get_value [23:47:46]process_action get_value done [23:47:46]requested_data is exist [23:47:46]produce_requested_data [23:47:46]requested_item fm.sale.total is exist - process it [23:47:46]SAM_PROTO_GetFMData [23:47:46]wFMCommunicate request_size=4 [23:47:46]MH_SAM_APDU [23:47:46]CAPDU: 80 13 03 00 [23:47:46]Write to MH i2c: E2 08 00 20 00 80 13 03 00 00 00 00 00 9F [23:47:46]Write i2c OK [23:47:46]MH_I2C_Read... [23:47:47]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:47:47]Read from MH i2c: E2 [23:47:47]MH_I2C_Read... [23:47:47]Read from MH i2c: E2 FD 00 [23:47:47]MH_I2C_Read... [23:47:47]Read from MH i2c: E2 FD 00 20 00 00 C1 04 85 04 BD 04 6E 04 04 00 A3 A0 00 00 69 04 A0 00 6F 04 04 00 09 A0 00 00 B1 04 04 00 85 EA 40 37 70 04 04 00 B0 12 E8 31 72 04 04 00 D5 D7 58 05 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 4D 05 DE 05 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 20 17 7D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 9A 00 00 00 B1 04 03 00 54 D5 4E 70 04 03 00 58 C9 42 72 04 03 00 FC 0B 0C 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 13 5F 08 EF 03 09 00 F6 03 90 00 48 [23:47:47]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 A3 A0 00 00 69 04 A0 00 6F 04 04 00 09 A0 00 00 B1 04 04 00 85 EA 40 37 70 04 04 00 B0 12 E8 31 72 04 04 00 D5 D7 58 05 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 4D 05 DE 05 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 20 17 7D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 9A 00 00 00 B1 04 03 00 54 D5 4E 70 04 03 00 58 C9 42 72 04 03 00 FC 0B 0C 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 13 5F 08 EF 03 09 00 F6 03 90 00 [23:47:47]wFMCommunicate OK [23:47:47]wFMCommunicate request_size=4 [23:47:47]MH_SAM_APDU [23:47:47]CAPDU: 80 17 00 00 [23:47:47]Write to MH i2c: E2 08 00 21 00 80 17 00 00 00 00 00 00 A1 [23:47:47]Write i2c OK [23:47:47]MH_I2C_Read... [23:47:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:47:47]Read from MH i2c: E2 [23:47:47]MH_I2C_Read... [23:47:47]Read from MH i2c: E2 FD 00 [23:47:47]MH_I2C_Read... [23:47:47]Read from MH i2c: E2 FD 00 21 00 00 01 00 00 F7 03 00 00 [23:47:48]Read from MH i2c: E2 [23:47:48]MH_I2C_Read... [23:47:48]Read from MH i2c: E2 FD 00 [23:47:48]MH_I2C_Read... [23:47:48]Read from MH i2c: E2 FD 00 26 00 00 F6 03 01 00 01 F7 03 02 00 89 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 44 [23:47:49]RAPDU: F6 03 01 00 01 F7 03 02 00 89 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [23:47:49]wFMCommunicate OK [23:47:49]wFMCommunicate request_size=4 [23:47:49]MH_SAM_APDU [23:47:49]CAPDU: 80 17 00 00 [23:47:49]Write to MH i2c: E2 08 00 27 00 80 17 00 00 00 00 00 00 A7 [23:47:49]Write i2c OK [23:47:49]MH_I2C_Read... [23:47:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:47:49]Read from MH i2c: E2 [23:47:49]MH_I2C_Read... [23:47:49]Read from MH i2c: E2 FD 00 [23:47:49]MH_I2C_Read... [23:47:49]Read from MH i2c: E2 FD 00 27 00 00 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 67 [23:47:49]RAPDU: 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:47:49]wFMCommunicate OK [23:47:49]wFMCommunicate request_size=4 [23:47:49]MH_SAM_APDU [23:47:49]CAPDU: 80 17 00 00 [23:47:49]Write to MH i2c: E2 08 00 28 00 80 17 00 00 00 00 00 00 A8 [23:47:49]Write i2c OK [23:47:49]MH_I2C_Read... [23:47:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:47:49]Read from MH i2c: E2 [23:47:49]MH_I2C_Read... [23:47:49]Read from MH i2c: E2 FD 00 [23:47:49]MH_I2C_Read... [23:47:49]Read from MH i2c: E2 FD 00 28 00 00 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 90 00 17 [23:47:49]RAPDU: 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 90 00 [23:47:49]wFMCommunicate OK [23:47:49]wFMCommunicate request_size=4 [23:47:49]MH_SAM_APDU [23:47:49]CAPDU: 80 17 00 00 [23:47:49]Write to MH i2c: E2 08 00 29 00 80 17 00 00 00 00 00 00 A9 [23:47:49]Write i2c OK [23:47:49]MH_I2C_Read... [23:47:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 208! [23:47:49]Read from MH i2c: E2 [23:47:49]MH_I2C_Read... [23:47:49]Read from MH i2c: E2 D3 00 [23:47:49]MH_I2C_Read... [23:47:49]Read from MH i2c: E2 D3 00 29 00 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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 96 [23:47:49]RAPDU: 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:47:49]wFMCommunicate OK [23:47:49]SAM_PROTO_GetShiftData done [23:47:49]requested_item shift.sale.total_cash is exist - process it [23:47:49]requested_item shift.sale_refund.total is exist - process it [23:47:49]requested_item shift.sale_refund.total_cash is exist - process it [23:47:49]requested_item shift.buy.total is exist - process it [23:47:49]requested_item shift.buy.total_cash is exist - process it [23:47:49]produce_requested_data done [23:47:49]produce_requested_data return {"fm.sale.total":9270012.21,"fm.sale_refund.total":51664.20,"fm.buy.total":0.00,"shift.sale.total":28057.00,"shift.sale.total_cash":24524.00,"shift.sale_refund.total":445.00,"shift.sale_refund.total_cash":445.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:47:49]process_action_free get_value [23:47:49]json_value_free [23:47:49]json_value_free done [23:47:49]process_json_proto returns [23:47:49]Send response to host [23:47:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":9270012.21,"fm.sale_refund.total":51664.20,"fm.buy.total":0.00,"shift.sale.total":28057.00,"shift.sale.total_cash":24524.00,"shift.sale_refund.total":445.00,"shift.sale_refund.total_cash":445.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:47:49]free response buf [23:47:49]execute_script done [23:47:49]execute_script returns [23:47:49]free content buf [23:47:49]Sock 10.Close socket [23:47:49]Sock 10.Thread stoped [23:47:49]accept exits with 8 [23:47:49]New connection [23:47:49]New thread 3067587940 created [23:47:50]Thread 3067444580 joined [23:47:50]Waiting for new connection... [23:47:50] Sock 8.Parse request [23:47:50]Sock 8.Check first char [23:47:50]Sock 8.First char is OK [23:47:50]request: POST /json_proto HTTP/1.0 [23:47:50]Method: POST [23:47:50]URL: /json_proto [23:47:50]Method is POST - this is cgi request [23:47:50]url: /json_proto [23:47:50]query_string will be loaded in cgi processing [23:47:50]execute_cgi json_proto POST (null) [23:47:50]execute_cgi path=json_proto method=POST [23:47:50]POST find Content-Length [23:47:50]Host: 172.17.43.132:8080 [23:47:50]Content-Length: 331 [23:47:50]Content-Type: application/json [23:47:50] [23:47:50]POST finish read [23:47:50]Found Content-Length = 331 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 A0 [23:47:54]RAPDU: 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:47:54]wFMCommunicate OK [23:47:54]SAM_PROTO_GetShiftData done [23:47:54]requested_item shift.sale.total_cash is exist - process it [23:47:54]requested_item shift.sale_refund.total is exist - process it [23:47:54]requested_item shift.sale_refund.total_cash is exist - process it [23:47:54]requested_item shift.buy.total is exist - process it [23:47:54]requested_item shift.buy.total_cash is exist - process it [23:47:54]produce_requested_data done [23:47:54]produce_requested_data return {"fm.sale.total":9270012.21,"fm.sale_refund.total":51664.20,"fm.buy.total":0.00,"shift.sale.total":28057.00,"shift.sale.total_cash":24524.00,"shift.sale_refund.total":445.00,"shift.sale_refund.total_cash":445.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:47:54]process_action_free get_value [23:47:54]json_value_free [23:47:54]json_value_free done [23:47:54]process_json_proto returns [23:47:54]Send response to host [23:47:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":9270012.21,"fm.sale_refund.total":51664.20,"fm.buy.total":0.00,"shift.sale.total":28057.00,"shift.sale.total_cash":24524.00,"shift.sale_refund.total":445.00,"shift.sale_refund.total_cash":445.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:47:54]free response buf [23:47:54]execute_script done [23:47:54]execute_script returns [23:47:54]free content buf [23:47:54]Sock 8.Close socket [23:47:54]Sock 8.Thread stoped [23:47:54]accept exits with 10 [23:47:54]New connection [23:47:54]New thread 3067444580 created [23:47:54]Thread 3067587940 joined [23:47:54]Waiting for new connection... [23:47:54] Sock 10.Parse request [23:47:54]Sock 10.Check first char [23:47:54]Sock 10.First char is OK [23:47:54]request: POST /json_proto HTTP/1.0 [23:47:54]Method: POST [23:47:54]URL: /json_proto [23:47:54]Method is POST - this is cgi request [23:47:54]url: /json_proto [23:47:54]query_string will be loaded in cgi processing [23:47:54]execute_cgi json_proto POST (null) [23:47:54]execute_cgi path=json_proto method=POST [23:47:54]POST find Content-Length [23:47:54]Host: 172.17.43.132:8080 [23:47:54]Content-Length: 275 [23:47:54]Content-Type: application/json [23:47:54] [23:47:54]POST finish read [23:47:54]Found Content-Length = 275 [23:47:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0410\u0445\u043C\u0430\u0434\u0430\u043B\u0438\u0435\u0432\u0430 \u041C. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:47:54]execute_script... [23:47:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0410\u0445\u043C\u0430\u0434\u0430\u043B\u0438\u0435\u0432\u0430 \u041C. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:47:54]POST & json_proto [23:47:54]process_json_proto [23:47:54]json parsed OK: [23:47:54]protocol is kg_v1.0 [23:47:54]action value=x_report [23:47:54]process_action x_report [23:47:54]cmd_x_report [23:47:54]MH_GetDate [23:47:54]Write to MH i2c: F0 00 00 34 00 23 [23:47:54]Write i2c OK [23:47:54]MH_I2C_Read... [23:47:54]Read from MH i2c: F0 [23:47:54]MH_I2C_Read... [23:47:54]Read from MH i2c: F0 09 00 [23:47:54]MH_I2C_Read... [23:47:54]Read from MH i2c: F0 09 00 34 00 00 2B 2A A8 66 64 A3 A7 66 A3 [23:47:54]GetLastDocTimeStamp 1722296167 [23:47:54]current date 1722296875 [23:47:54]FM_GetShiftState [23:47:54]SAM_PROTO_GetShiftState [23:47:54]wFMCommunicate request_size=4 [23:47:54]MH_SAM_APDU [23:47:54]CAPDU: 80 13 01 00 [23:47:54]Write to MH i2c: E2 08 00 35 00 80 13 01 00 00 00 00 00 B2 [23:47:54]Write i2c OK [23:47:54]MH_I2C_Read... [23:47:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:47:54]Read from MH i2c: E2 [23:47:54]MH_I2C_Read... [23:47:54]Read from MH i2c: E2 0E 00 [23:47:54]MH_I2C_Read... [23:47:54]Read from MH i2c: E2 0E 00 35 00 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 4E [23:47:54]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [23:47:54]wFMCommunicate OK [23:47:54]SAM_PROTO_GetShiftState done [23:47:54]FM_GetShiftState done [23:47:54]KKMCreateXReportDocument [23:47:54]Load OK [23:47:54]Malloc new data [23:47:54]MH_GetDate [23:47:54]Write to MH i2c: F0 00 00 36 00 25 [23:47:54]Write i2c OK [23:47:54]MH_I2C_Read... [23:47:54]Read from MH i2c: F0 [23:47:54]MH_I2C_Read... [23:47:54]Read from MH i2c: F0 09 00 [23:47:54]MH_I2C_Read... [23:47:54]Read from MH i2c: F0 09 00 36 00 00 2B 2A A8 66 64 A3 A7 66 A5 [23:47:54]Malloc new data [23:47:54]Malloc new data [23:47:54]wFMCommunicate request_size=4 [23:47:54]MH_SAM_APDU [23:47:54]CAPDU: 80 11 00 00 [23:47:54]Write to MH i2c: E2 08 00 37 00 80 11 00 00 00 00 00 00 B1 [23:47:54]Write i2c OK [23:47:54]MH_I2C_Read... [23:47:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:47:54]Read from MH i2c: E2 [23:47:54]MH_I2C_Read... [23:47:54]Read from MH i2c: E2 17 00 [23:47:54]MH_I2C_Read... [23:47:54]Read from MH i2c: E2 17 00 37 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 0D [23:47:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [23:47:54]wFMCommunicate OK [23:47:54]SAM_PROTO_GetFieldsCounters [23:47:54]wFMCommunicate request_size=4 [23:47:54]MH_SAM_APDU [23:47:54]CAPDU: 80 13 00 00 [23:47:54]Write to MH i2c: E2 08 00 38 00 80 13 00 00 00 00 00 00 B4 [23:47:54]Write i2c OK [23:47:54]MH_I2C_Read... [23:47:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:47:54]Read from MH i2c: E2 [23:47:54]MH_I2C_Read... [23:47:54]Read from MH i2c: E2 62 00 [23:47:54]MH_I2C_Read... [23:47:54]Read from MH i2c: E2 62 00 38 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 F9 A3 00 00 0E 04 04 00 AB 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 18 [23:47: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 F9 A3 00 00 0E 04 04 00 AB 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 [23:47:54]wFMCommunicate OK [23:47:54]SAM_PROTO_GetFieldsCounters done [23:47:54]Malloc new data [23:47:54]Malloc new data [23:47:54]Malloc new data [23:47:54]KKMCreateXReportDocument OK [23:47:54]KKMSetXReportData OK [23:47:54]KKMPrepareXReportFMData [23:47:54]SAM_PROTO_GetShiftData [23:47:54]wFMCommunicate request_size=4 [23:47:54]MH_SAM_APDU [23:47:54]CAPDU: 80 13 02 00 [23:47:54]Write to MH i2c: E2 08 00 39 00 80 13 02 00 00 00 00 00 B7 [23:47:54]Write i2c OK [23:47:54]MH_I2C_Read... [23:47:55]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:47:55]Read from MH i2c: E2 [23:47:55]MH_I2C_Read... [23:47:55]Read from MH i2c: E2 FD 00 [23:47:55]MH_I2C_Read... [23:47:55]Read from MH i2c: E2 FD 00 39 00 00 B6 04 AA 04 B2 04 6E 04 04 00 A6 00 00 00 69 04 9B 00 6F 04 04 00 A5 00 00 00 B1 04 03 00 C4 CF 2A 70 04 03 00 B0 6B 25 72 04 03 00 14 64 05 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 CD 8B 04 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 EF 60 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 D4 AD 70 04 02 00 D4 AD 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 76 12 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 90 00 A7 [23:47:55]RAPDU: B6 04 AA 04 B2 04 6E 04 04 00 A6 00 00 00 69 04 9B 00 6F 04 04 00 A5 00 00 00 B1 04 03 00 C4 CF 2A 70 04 03 00 B0 6B 25 72 04 03 00 14 64 05 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 CD 8B 04 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 EF 60 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 D4 AD 70 04 02 00 D4 AD 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 76 12 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 90 00 [23:47:55]wFMCommunicate OK [23:47:55]wFMCommunicate request_size=4 [23:47:55]MH_SAM_APDU [23:47:55]CAPDU: 80 17 00 00 [23:47:55]Write to MH i2c: E2 08 00 3A 00 80 17 00 00 00 00 00 00 BA [23:47:55]Write i2c OK 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 8D [23:47:51]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:47:52]wFMCommunicate OK [23:47:52]SAM_PROTO_GetFMData done [23:47:52]requested_item fm.sale_refund.total is exist - process it [23:47:52]requested_item fm.buy.total is exist - process it [23:47:52]requested_item shift.sale.total is exist - process it [23:47:52]SAM_PROTO_GetShiftData [23:47:52]wFMCommunicate request_size=4 [23:47:52]MH_SAM_APDU [23:47:52]CAPDU: 80 13 02 00 [23:47:52]Write to MH i2c: E2 08 00 2F 00 80 13 02 00 00 00 00 00 AD [23:47:52]Write i2c OK [23:47:52]MH_I2C_Read... [23:47:52]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:47:52]Read from MH i2c: E2 [23:47:52]MH_I2C_Read... [23:47:52]Read from MH i2c: E2 FD 00 [23:47:52]MH_I2C_Read... [23:47:52]Read from MH i2c: E2 FD 00 2F 00 00 B6 04 AA 04 B2 04 6E 04 04 00 A6 00 00 00 69 04 9B 00 6F 04 04 00 A5 00 00 00 B1 04 03 00 C4 CF 2A 70 04 03 00 B0 6B 25 72 04 03 00 14 64 05 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 CD 8B 04 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 EF 60 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 D4 AD 70 04 02 00 D4 AD 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 76 12 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 90 00 9D [23:47:52]RAPDU: B6 04 AA 04 B2 04 6E 04 04 00 A6 00 00 00 69 04 9B 00 6F 04 04 00 A5 00 00 00 B1 04 03 00 C4 CF 2A 70 04 03 00 B0 6B 25 72 04 03 00 14 64 05 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 CD 8B 04 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 EF 60 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 D4 AD 70 04 02 00 D4 AD 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 76 12 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 90 00 [23:47:52]wFMCommunicate OK [23:47:52]wFMCommunicate request_size=4 [23:47:52]MH_SAM_APDU [23:47:52]CAPDU: 80 17 00 00 [23:47:52]Write to MH i2c: E2 08 00 30 00 80 17 00 00 00 00 00 00 B0 [23:47:52]Write i2c OK [23:47:52]MH_I2C_Read... [23:47:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:47:52]Read from MH i2c: E2 [23:47:52]MH_I2C_Read... [23:47:52]Read from MH i2c: E2 FD 00 [23:47:52]MH_I2C_Read... [23:47:52]Read from MH i2c: E2 FD 00 30 00 00 F6 03 01 00 01 F7 03 02 00 89 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 4E [23:47:52]RAPDU: F6 03 01 00 01 F7 03 02 00 89 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [23:47:53]wFMCommunicate OK [23:47:53]wFMCommunicate request_size=4 [23:47:53]MH_SAM_APDU [23:47:53]CAPDU: 80 17 00 00 [23:47:53]Write to MH i2c: E2 08 00 31 00 80 17 00 00 00 00 00 00 B1 [23:47:53]Write i2c OK [23:47:53]MH_I2C_Read... [23:47:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:47:53]Read from MH i2c: E2 [23:47:53]MH_I2C_Read... [23:47:53]Read from MH i2c: E2 FD 00 [23:47:53]MH_I2C_Read... [23:47:53]Read from MH i2c: E2 FD 00 31 00 00 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 71 [23:47:53]RAPDU: 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:47:53]wFMCommunicate OK [23:47:53]wFMCommunicate request_size=4 [23:47:53]MH_SAM_APDU [23:47:53]CAPDU: 80 17 00 00 [23:47:53]Write to MH i2c: E2 08 00 32 00 80 17 00 00 00 00 00 00 B2 [23:47:53]Write i2c OK [23:47:53]MH_I2C_Read... [23:47:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:47:53]Read from MH i2c: E2 [23:47:53]MH_I2C_Read... [23:47:53]Read from MH i2c: E2 FD 00 [23:47:53]MH_I2C_Read... [23:47:53]Read from MH i2c: E2 FD 00 32 00 00 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 90 00 21 [23:47:53]RAPDU: 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 90 00 [23:47:53]wFMCommunicate OK [23:47:53]wFMCommunicate request_size=4 [23:47:53]MH_SAM_APDU [23:47:53]CAPDU: 80 17 00 00 [23:47:53]Write to MH i2c: E2 08 00 33 00 80 17 00 00 00 00 00 00 B3 [23:47:53]Write i2c OK [23:47:53]MH_I2C_Read... [23:47:53]OFD Sender: No OFD packet to send [23:47:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 208! [23:47:54]Read from MH i2c: E2 [23:47:54]MH_I2C_Read... [23:47:54]Read from MH i2c: E2 D3 00 [23:47:54]MH_I2C_Read... [23:47:54]Read from MH i2c: E2 D3 00 33 00 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 [23:47:55]MH_I2C_Read... [23:47:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:47:55]Read from MH i2c: E2 [23:47:55]MH_I2C_Read... [23:47:55]Read from MH i2c: E2 FD 00 [23:47:55]MH_I2C_Read... [23:47:55]Read from MH i2c: E2 FD 00 3A 00 00 F6 03 01 00 01 F7 03 02 00 89 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 58 [23:47:55]RAPDU: F6 03 01 00 01 F7 03 02 00 89 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [23:47:55]wFMCommunicate OK [23:47:55]wFMCommunicate request_size=4 [23:47:55]MH_SAM_APDU [23:47:55]CAPDU: 80 17 00 00 [23:47:55]Write to MH i2c: E2 08 00 3B 00 80 17 00 00 00 00 00 00 BB [23:47:55]Write i2c OK [23:47:55]MH_I2C_Read... [23:47:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:47:56]Read from MH i2c: E2 [23:47:56]MH_I2C_Read... [23:47:56]Read from MH i2c: E2 FD 00 [23:47:56]MH_I2C_Read... [23:47:56]Read from MH i2c: E2 FD 00 3B 00 00 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 7B [23:47:56]RAPDU: 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:47:56]wFMCommunicate OK [23:47:56]wFMCommunicate request_size=4 [23:47:56]MH_SAM_APDU [23:47:56]CAPDU: 80 17 00 00 [23:47:56]Write to MH i2c: E2 08 00 3C 00 80 17 00 00 00 00 00 00 BC [23:47:56]Write i2c OK [23:47:56]MH_I2C_Read... [23:47:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:47:56]Read from MH i2c: E2 [23:47:56]MH_I2C_Read... [23:47:56]Read from MH i2c: E2 FD 00 [23:47:56]MH_I2C_Read... [23:47:56]Read from MH i2c: E2 FD 00 3C 00 00 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 90 00 2B [23:47:56]RAPDU: 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 90 00 [23:47:56]wFMCommunicate OK [23:47:56]wFMCommunicate request_size=4 [23:47:56]MH_SAM_APDU [23:47:56]CAPDU: 80 17 00 00 [23:47:56]Write to MH i2c: E2 08 00 3D 00 80 17 00 00 00 00 00 00 BD [23:47:56]Write i2c OK [23:47:56]MH_I2C_Read... [23:47:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 208! [23:47:57]Read from MH i2c: E2 [23:47:57]MH_I2C_Read... [23:47:57]Read from MH i2c: E2 D3 00 [23:47:57]MH_I2C_Read... [23:47:57]Read from MH i2c: E2 D3 00 3D 00 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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 AA [23:47:57]RAPDU: 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:47:57]wFMCommunicate OK [23:47:57]SAM_PROTO_GetShiftData done [23:47:57]1194 (1202) - счетчики итогов смены [23:47:57] 1134 (4) - 166 - количество чеков со всеми признаками расчетов [23:47:57] 1129 (155) - счетчики операций «приход» [23:47:57] 1135 (4) - 165 - количество чеков по признаку расчетов [23:47:57] 1201 (3) - 28057.00 - общая итоговая сумма в чеках [23:47:57] 1136 (3) - 24524.00 - итоговая сумма в чеках наличными [23:47:57] 1138 (3) - 3533.00 - итоговая сумма в чеках безналичными [23:47:57] 1024 (122) - суммы налогов [23:47:57] 1006 (9) - суммы НДС [23:47:57] 1010 (1) - 0% - код ставки НДС [23:47:57] 1011 (0) - 0.00 - сумма НДС по ставке [23:47:57] 1006 (12) - суммы НДС [23:47:57] 1010 (1) - 12% - код ставки НДС [23:47:57] 1011 (3) - 2979.33 - сумма НДС по ставке [23:47:57] 1007 (9) - суммы НСП [23:47:57] 1014 (1) - 0% - код ставки НСП [23:47:57] 1015 (0) - 0.00 - сумма НСП по ставке [23:47:57] 1007 (11) - суммы НСП [23:47:57] 1014 (1) - 1% - код ставки НСП [23:47:57] 1015 (2) - 248.15 - сумма НСП по ставке [23:47:57] 1007 (9) - суммы НСП [23:47:57] 1014 (1) - 2% - код ставки НСП [23:47:57] 1015 (0) - 0.00 - сумма НСП по ставке [23:47:57] 1007 (9) - суммы НСП [23:47:57] 1014 (1) - 3% - код ставки НСП [23:47:57] 1015 (0) - 0.00 - сумма НСП по ставке [23:47:57] 1007 (9) - суммы НСП [23:47:57] 1014 (1) - 5% - код ставки НСП [23:47:57] 1015 (0) - 0.00 - сумма НСП по ставке [23:47:57] 1007 (9) - суммы НСП [23:47:57] 1014 (1) - 0,50% - код ставки НСП [23:47:57] 1015 (0) - 0.00 - сумма НСП по ставке [23:47:57] 1007 (9) - суммы НСП [23:47:57] 1014 (1) - 1,50% - код ставки НСП [23:47:57] 1015 (0) - 0.00 - сумма НСП по ставке [23:47:57] 1130 (149) - счетчики операций «возврат прихода» [23:47:57] 1135 (4) - 1 - количество чеков по признаку расчетов [23:47:57] 1201 (2) - 445.00 - общая итоговая сумма в чеках [23:47:57] 1136 (2) - 445.00 - итоговая сумма в чеках наличными [23:47:57] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:47:57] 1024 (121) - суммы налогов [23:47:57] 1006 (9) - суммы НДС [23:47:57] 1010 (1) - 0% - код ставки НДС [23:47:57] 1011 (0) - 0.00 - сумма НДС по ставке [23:47:57] 1006 (11) - суммы НДС [23:47:57] 1010 (1) - 12% - код ставки НДС [23:47:57] 1011 (2) - 47.26 - сумма НДС по ставке [23:47:57] 1007 (9) - суммы НСП [23:47:57] 1014 (1) - 0% - код ставки НСП [23:47:57] 1015 (0) - 0.00 - сумма НСП по ставке [23:47:57] 1007 (11) - суммы НСП [23:47:57] 1014 (1) - 1% - код ставки НСП [23:47:57] 1015 (2) - 3.93 - сумма НСП по ставке [23:47:57] 1007 (9) - суммы НСП [23:47:57] 1014 (1) - 2% - код ставки НСП [23:47:57] 1015 (0) - 0.00 - сумма НСП по ставке [23:47:57] 1007 (9) - суммы НСП [23:47:57] 1014 (1) - 3% - код ставки НСП [23:47:57] 1015 (0) - 0.00 - сумма НСП по ставке [23:47:57] 1007 (9) - суммы НСП [23:47:57] 1014 (1) - 5% - код ставки НСП [23:47:57] 1015 (0) - 0.00 - сумма НСП по ставке [23:47:57] 1007 (9) - суммы НСП [23:47:57] 1014 (1) - 0,50% - код ставки НСП [23:47:57] 1015 (0) - 0.00 - сумма НСП по ставке [23:47:57] 1007 (9) - суммы НСП [23:47:57] 1014 (1) - 1,50% - код ставки НСП [23:47:57] 1015 (0) - 0.00 - сумма НСП по ставке [23:47:57] 1131 (141) - счетчики операций «расход» [23:47:57] 1135 (4) - 0 - количество чеков по признаку расчетов [23:47:57] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:47:57] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:47:57] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:47:57] 1024 (117) - суммы налогов [23:47:57] 1006 (9) - суммы НДС [23:47:57] 1010 (1) - 0% - код ставки НДС [23:47:57] 1011 (0) - 0.00 - сумма НДС по ставке [23:47:57] 1006 (9) - суммы НДС [23:47:57] 1010 (1) - 12% - код ставки НДС [23:47:57] 1011 (0) - 0.00 - сумма НДС по ставке [23:47:57] 1007 (9) - суммы НСП [23:47:57] 1014 (1) - 0% - код ставки НСП [23:47:57] 1015 (0) - 0.00 - сумма НСП по ставке [23:47:57] 1007 (9) - суммы НСП [23:47:57] 1014 (1) - 1% - код ставки НСП [23:47:57] 1015 (0) - 0.00 - сумма НСП по ставке [23:47:57] 1007 (9) - суммы НСП [23:47:57] 1014 (1) - 2% - код ставки НСП [23:47:57] 1015 (0) - 0.00 - сумма НСП по ставке [23:47:57] 1007 (9) - суммы НСП [23:47:57] 1014 (1) - 3% - код ставки НСП [23:47:57] 1015 (0) - 0.00 - сумма НСП по ставке [23:47:57] 1007 (9) - суммы НСП [23:47:57] 1014 (1) - 5% - код ставки НСП [23:47:57] 1015 (0) - 0.00 - сумма НСП по ставке [23:47:57] 1007 (9) - суммы НСП [23:47:57] 1014 (1) - 0,50% - код ставки НСП [23:47:57] 1015 (0) - 0.00 - сумма НСП по ставке [23:47:57] 1007 (9) - суммы НСП [23:47:57] 1014 (1) - 1,50% - код ставки НСП [23:47:57] 1015 (0) - 0.00 - сумма НСП по ставке [23:47:57] 1132 (141) - счетчики операций «возврат расхода» [23:47:57] 1135 (4) - 0 - количество чеков по признаку расчетов [23:47:57] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:47:57] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:47:57] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:47:57] 1024 (117) - суммы налогов [23:47:57] 1006 (9) - суммы НДС [23:47:57] 1010 (1) - 0% - код ставки НДС [23:47:57] 1011 (0) - 0.00 - сумма НДС по ставке [23:47:57] 1006 (9) - суммы НДС [23:47:57] 1010 (1) - 12% - код ставки НДС [23:47:57] 1011 (0) - 0.00 - сумма НДС по ставке [23:47:57] 1007 (9) - суммы НСП [23:47:57] 1014 (1) - 0% - код ставки НСП [23:47:57] 1015 (0) - 0.00 - сумма НСП по ставке [23:47:57] 1007 (9) - суммы НСП [23:47:57] 1014 (1) - 1% - код ставки НСП [23:47:57] 1015 (0) - 0.00 - сумма НСП по ставке [23:47:57] 1007 (9) - суммы НСП [23:47:57] 1014 (1) - 2% - код ставки НСП [23:47:57] 1015 (0) - 0.00 - сумма НСП по ставке [23:47:57] 1007 (9) - суммы НСП [23:47:57] 1014 (1) - 3% - код ставки НСП [23:47:57] 1015 (0) - 0.00 - сумма НСП по ставке [23:47:57] 1007 (9) - суммы НСП [23:47:57] 1014 (1) - 5% - код ставки НСП [23:47:57] 1015 (0) - 0.00 - сумма НСП по ставке [23:47:57] 1007 (9) - суммы НСП [23:47:57] 1014 (1) - 0,50% - код ставки НСП [23:47:57] 1015 (0) - 0.00 - сумма НСП по ставке [23:47:57] 1007 (9) - суммы НСП [23:47:57] 1014 (1) - 1,50% - код ставки НСП [23:47:57] 1015 (0) - 0.00 - сумма НСП по ставке [23:47:57] 1133 (588) - - счетчики коррекции - не используются [23:47:57]SetTLVBufToDocument [23:47:57]Processing tag 1194 (04AA) [23:47:57]Load OK [23:47:57]SetTLVBufToDocument [23:47:57]Processing tag 1134 (046E) [23:47:57]Malloc new data [23:47:57]Processing tag 1129 (0469) [23:47:57]Load OK [23:47:57]SetTLVBufToDocument [23:47:57]Processing tag 1135 (046F) [23:47:57]Malloc new data [23:47:57]Processing tag 1201 (04B1) [23:47:57]Malloc new data [23:47:57]Processing tag 1136 (0470) [23:47:57]Malloc new data [23:47:57]Processing tag 1138 (0472) [23:47:57]Malloc new data [23:47:57]Processing tag 1024 (0400) [23:47:57]Load OK [23:47:57]SetTLVBufToDocument [23:47:57]Processing tag 1006 (03EE) [23:47:57]Load OK [23:47:57]SetTLVBufToDocument [23:47:57]Processing tag 1010 (03F2) [23:47:57]Malloc new data [23:47:57]Processing tag 1011 (03F3) [23:47:57]Malloc new data [23:47:57]SetTLVBufToDocument err=0 [23:47:57]Processing tag 1006 (03EE) [23:47:57]Load OK [23:47:57]SetTLVBufToDocument [23:47:57]Processing tag 1010 (03F2) [23:47:57]Malloc new data [23:47:57]Processing tag 1011 (03F3) [23:47:57]Malloc new data [23:47:57]SetTLVBufToDocument err=0 [23:47:57]Processing tag 1007 (03EF) [23:47:57]Load OK [23:47:57]SetTLVBufToDocument [23:47:57]Processing tag 1014 (03F6) [23:47:57]Malloc new data [23:47:57]Processing tag 1015 (03F7) [23:47:57]Malloc new data [23:47:57]SetTLVBufToDocument err=0 [23:47:57]Processing tag 1007 (03EF) [23:47:57]Load OK [23:47:57]SetTLVBufToDocument [23:47:57]Processing tag 1014 (03F6) [23:47:57]Malloc new data [23:47:57]Processing tag 1015 (03F7) [23:47:57]Malloc new data [23:47:57]SetTLVBufToDocument err=0 [23:47:57]Processing tag 1007 (03EF) [23:47:57]Load OK [23:47:57]SetTLVBufToDocument [23:47:57]Processing tag 1014 (03F6) [23:47:57]Malloc new data [23:47:57]Processing tag 1015 (03F7) [23:47:57]Malloc new data [23:47:57]SetTLVBufToDocument err=0 [23:47:57]Processing tag 1007 (03EF) [23:47:57]Load OK [23:47:57]SetTLVBufToDocument [23:47:57]Processing tag 1014 (03F6) [23:47:57]Malloc new data [23:47:57]Processing tag 1015 (03F7) [23:47:57]Malloc new data [23:47:57]SetTLVBufToDocument err=0 [23:47:57]Processing tag 1007 (03EF) [23:47:58]Load OK [23:47:58]SetTLVBufToDocument [23:47:58]Processing tag 1014 (03F6) [23:47:58]Malloc new data [23:47:58]Processing tag 1015 (03F7) [23:47:58]Malloc new data [23:47:58]SetTLVBufToDocument err=0 [23:47:58]Processing tag 1007 (03EF) [23:47:58]Load OK [23:47:58]SetTLVBufToDocument [23:47:58]Processing tag 1014 (03F6) [23:47:58]Malloc new data [23:47:58]Processing tag 1015 (03F7) [23:47:58]Malloc new data [23:47:58]SetTLVBufToDocument err=0 [23:47:58]Processing tag 1007 (03EF) [23:47:58]Load OK [23:47:58]SetTLVBufToDocument [23:47:58]Processing tag 1014 (03F6) [23:47:58]Malloc new data [23:47:58]Processing tag 1015 (03F7) [23:47:58]Malloc new data [23:47:58]SetTLVBufToDocument err=0 [23:47:58]SetTLVBufToDocument err=0 [23:47:58]SetTLVBufToDocument err=0 [23:47:58]Processing tag 1130 (046A) [23:47:58]Load OK [23:47:58]SetTLVBufToDocument [23:47:58]Processing tag 1135 (046F) [23:47:58]Malloc new data [23:47:58]Processing tag 1201 (04B1) [23:47:58]Malloc new data [23:47:58]Processing tag 1136 (0470) [23:47:58]Malloc new data [23:47:58]Processing tag 1138 (0472) [23:47:58]Malloc new data [23:47:58]Processing tag 1024 (0400) [23:47:58]Load OK [23:47:58]SetTLVBufToDocument [23:47:58]Processing tag 1006 (03EE) [23:47:58]Load OK [23:47:58]SetTLVBufToDocument [23:47:58]Processing tag 1010 (03F2) [23:47:58]Malloc new data [23:47:58]Processing tag 1011 (03F3) [23:47:58]Malloc new data [23:47:58]SetTLVBufToDocument err=0 [23:47:58]Processing tag 1006 (03EE) [23:47:58]Load OK [23:47:58]SetTLVBufToDocument [23:47:58]Processing tag 1010 (03F2) [23:47:58]Malloc new data [23:47:58]Processing tag 1011 (03F3) [23:47:58]Malloc new data [23:47:58]SetTLVBufToDocument err=0 [23:47:58]Processing tag 1007 (03EF) [23:47:58]Load OK [23:47:58]SetTLVBufToDocument [23:47:58]Processing tag 1014 (03F6) [23:47:58]Malloc new data [23:47:58]Processing tag 1015 (03F7) [23:47:58]Malloc new data [23:47:58]SetTLVBufToDocument err=0 [23:47:58]Processing tag 1007 (03EF) [23:47:58]Load OK [23:47:58]SetTLVBufToDocument [23:47:58]Processing tag 1014 (03F6) [23:47:58]Malloc new data [23:47:58]Processing tag 1015 (03F7) [23:47:58]Malloc new data [23:47:58]SetTLVBufToDocument err=0 [23:47:58]Processing tag 1007 (03EF) [23:47:58]Load OK [23:47:58]SetTLVBufToDocument [23:47:58]Processing tag 1014 (03F6) [23:47:58]Malloc new data [23:47:58]Processing tag 1015 (03F7) [23:47:58]Malloc new data [23:47:58]SetTLVBufToDocument err=0 [23:47:58]Processing tag 1007 (03EF) [23:47:58]Load OK [23:47:58]SetTLVBufToDocument [23:47:58]Processing tag 1014 (03F6) [23:47:58]Malloc new data [23:47:58]Processing tag 1015 (03F7) [23:47:58]Malloc new data [23:47:58]SetTLVBufToDocument err=0 [23:47:58]Processing tag 1007 (03EF) [23:47:58]Load OK [23:47:58]SetTLVBufToDocument [23:47:58]Processing tag 1014 (03F6) [23:47:58]Malloc new data [23:47:58]Processing tag 1015 (03F7) [23:47:58]Malloc new data [23:47:58]SetTLVBufToDocument err=0 [23:47:58]Processing tag 1007 (03EF) [23:47:58]Load OK [23:47:58]SetTLVBufToDocument [23:47:58]Processing tag 1014 (03F6) [23:47:58]Malloc new data [23:47:58]Processing tag 1015 (03F7) [23:47:58]Malloc new data [23:47:58]SetTLVBufToDocument err=0 [23:47:58]Processing tag 1007 (03EF) [23:47:58]Load OK [23:47:58]SetTLVBufToDocument [23:47:58]Processing tag 1014 (03F6) [23:47:58]Malloc new data [23:47:58]Processing tag 1015 (03F7) [23:47:58]Malloc new data [23:47:58]SetTLVBufToDocument err=0 [23:47:58]SetTLVBufToDocument err=0 [23:47:58]SetTLVBufToDocument err=0 [23:47:58]Processing tag 1131 (046B) [23:47:58]Load OK [23:47:58]SetTLVBufToDocument [23:47:58]Processing tag 1135 (046F) [23:47:58]Malloc new data [23:47:58]Processing tag 1201 (04B1) [23:47:58]Malloc new data [23:47:58]Processing tag 1136 (0470) [23:47:58]Malloc new data [23:47:58]Processing tag 1138 (0472) [23:47:58]Malloc new data [23:47:58]Processing tag 1024 (0400) [23:47:58]Load OK [23:47:58]SetTLVBufToDocument [23:47:58]Processing tag 1006 (03EE) [23:47:58]Load OK [23:47:58]SetTLVBufToDocument [23:47:58]Processing tag 1010 (03F2) [23:47:58]Malloc new data [23:47:58]Processing tag 1011 (03F3) [23:47:58]Malloc new data [23:47:58]SetTLVBufToDocument err=0 [23:47:58]Processing tag 1006 (03EE) [23:47:58]Load OK [23:47:58]SetTLVBufToDocument [23:47:58]Processing tag 1010 (03F2) [23:47:58]Malloc new data [23:47:58]Processing tag 1011 (03F3) [23:47:58]Malloc new data [23:47:58]SetTLVBufToDocument err=0 [23:47:58]Processing tag 1007 (03EF) [23:47:58]Load OK [23:47:58]SetTLVBufToDocument [23:47:58]Processing tag 1014 (03F6) [23:47:58]Malloc new data [23:47:58]Processing tag 1015 (03F7) [23:47:58]Malloc new data [23:47:58]SetTLVBufToDocument err=0 [23:47:58]Processing tag 1007 (03EF) [23:47:58]Load OK [23:47:58]SetTLVBufToDocument [23:47:58]Processing tag 1014 (03F6) [23:47:58]Malloc new data [23:47:58]Processing tag 1015 (03F7) [23:47:58]Malloc new data [23:47:58]SetTLVBufToDocument err=0 [23:47:58]Processing tag 1007 (03EF) [23:47:58]Load OK [23:47:58]SetTLVBufToDocument [23:47:58]Processing tag 1014 (03F6) [23:47:58]Malloc new data [23:47:58]Processing tag 1015 (03F7) [23:47:58]Malloc new data [23:47:58]SetTLVBufToDocument err=0 [23:47:58]Processing tag 1007 (03EF) [23:47:58]Load OK [23:47:58]SetTLVBufToDocument [23:47:58]Processing tag 1014 (03F6) [23:47:58]Malloc new data [23:47:58]Processing tag 1015 (03F7) [23:47:58]Malloc new data [23:47:58]SetTLVBufToDocument err=0 [23:47:58]Processing tag 1007 (03EF) [23:47:58]Load OK [23:47:58]SetTLVBufToDocument [23:47:58]Processing tag 1014 (03F6) [23:47:58]Malloc new data [23:47:58]Processing tag 1015 (03F7) [23:47:58]Malloc new data [23:47:58]SetTLVBufToDocument err=0 [23:47:58]Processing tag 1007 (03EF) [23:47:58]Load OK [23:47:58]SetTLVBufToDocument [23:47:58]Processing tag 1014 (03F6) [23:47:58]Malloc new data [23:47:58]Processing tag 1015 (03F7) [23:47:58]Malloc new data [23:47:58]SetTLVBufToDocument err=0 [23:47:58]Processing tag 1007 (03EF) [23:47:58]Load OK [23:47:58]SetTLVBufToDocument [23:47:58]Processing tag 1014 (03F6) [23:47:58]Malloc new data [23:47:58]Processing tag 1015 (03F7) [23:47:58]Malloc new data [23:47:58]SetTLVBufToDocument err=0 [23:47:58]SetTLVBufToDocument err=0 [23:47:58]SetTLVBufToDocument err=0 [23:47:58]Processing tag 1132 (046C) [23:47:58]Load OK [23:47:58]SetTLVBufToDocument [23:47:58]Processing tag 1135 (046F) [23:47:58]Malloc new data [23:47:58]Processing tag 1201 (04B1) [23:47:58]Malloc new data [23:47:58]Processing tag 1136 (0470) [23:47:58]Malloc new data [23:47:58]Processing tag 1138 (0472) [23:47:58]Malloc new data [23:47:58]Processing tag 1024 (0400) [23:47:58]Load OK [23:47:58]SetTLVBufToDocument [23:47:58]Processing tag 1006 (03EE) [23:47:58]Load OK [23:47:58]SetTLVBufToDocument [23:47:58]Processing tag 1010 (03F2) [23:47:58]Malloc new data [23:47:58]Processing tag 1011 (03F3) [23:47:58]Malloc new data [23:47:58]SetTLVBufToDocument err=0 [23:47:58]Processing tag 1006 (03EE) [23:47:58]Load OK [23:47:58]SetTLVBufToDocument [23:47:58]Processing tag 1010 (03F2) [23:47:58]Malloc new data [23:47:58]Processing tag 1011 (03F3) [23:47:58]Malloc new data [23:47:58]SetTLVBufToDocument err=0 [23:47:58]Processing tag 1007 (03EF) [23:47:58]Load OK [23:47:58]SetTLVBufToDocument [23:47:58]Processing tag 1014 (03F6) [23:47:58]Malloc new data [23:47:58]Processing tag 1015 (03F7) [23:47:58]Malloc new data [23:47:58]SetTLVBufToDocument err=0 [23:47:58]Processing tag 1007 (03EF) [23:47:58]Load OK [23:47:58]SetTLVBufToDocument [23:47:58]Processing tag 1014 (03F6) [23:47:58]Malloc new data [23:47:58]Processing tag 1015 (03F7) [23:47:58]Malloc new data [23:47:58]SetTLVBufToDocument err=0 [23:47:58]Processing tag 1007 (03EF) [23:47:58]Load OK [23:47:58]SetTLVBufToDocument [23:47:58]Processing tag 1014 (03F6) [23:47:58]Malloc new data [23:47:58]Processing tag 1015 (03F7) [23:47:58]Malloc new data [23:47:58]SetTLVBufToDocument err=0 [23:47:58]Processing tag 1007 (03EF) [23:47:58]Load OK [23:47:58]SetTLVBufToDocument [23:47:58]Processing tag 1014 (03F6) [23:47:58]Malloc new data [23:47:58]Processing tag 1015 (03F7) [23:47:58]Malloc new data [23:47:58]SetTLVBufToDocument err=0 [23:47:58]Processing tag 1007 (03EF) [23:47:58]Load OK [23:47:58]SetTLVBufToDocument [23:47:58]Processing tag 1014 (03F6) [23:47:58]Malloc new data [23:47:58]Processing tag 1015 (03F7) [23:47:58]Malloc new data [23:47:58]SetTLVBufToDocument err=0 [23:47:58]Processing tag 1007 (03EF) [23:47:58]Load OK [23:47:58]SetTLVBufToDocument [23:47:58]Processing tag 1014 (03F6) [23:47:58]Malloc new data [23:47:58]Processing tag 1015 (03F7) [23:47:58]Malloc new data [23:47:58]SetTLVBufToDocument err=0 [23:47:58]Processing tag 1007 (03EF) [23:47:58]Load OK [23:47:58]SetTLVBufToDocument [23:47:58]Processing tag 1014 (03F6) [23:47:58]Malloc new data [23:47:58]Processing tag 1015 (03F7) [23:47:58]Malloc new data [23:47:58]SetTLVBufToDocument err=0 [23:47:58]SetTLVBufToDocument err=0 [23:47:58]SetTLVBufToDocument err=0 [23:47:58]Processing tag 1133 (046D) [23:47:58]Malloc new data [23:47:58]SetTLVBufToDocument err=0 [23:47:58]SetTLVBufToDocument err=0 [23:47:58]Malloc new data [23:47:58]SAM_PROTO_GetFMData [23:47:58]wFMCommunicate request_size=4 [23:47:58]MH_SAM_APDU [23:47:58]CAPDU: 80 13 03 00 [23:47:58]Write to MH i2c: E2 08 00 3E 00 80 13 03 00 00 00 00 00 BD [23:47:58]Write i2c OK [23:47:58]MH_I2C_Read... [23:47:59]OFD Sender: No OFD packet to send [23:47:59]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:47:59]Read from MH i2c: E2 [23:47:59]MH_I2C_Read... [23:47:59]Read from MH i2c: E2 FD 00 [23:47:59]MH_I2C_Read... [23:47:59]Read from MH i2c: E2 FD 00 3E 00 00 C1 04 85 04 BD 04 6E 04 04 00 A3 A0 00 00 69 04 A0 00 6F 04 04 00 09 A0 00 00 B1 04 04 00 85 EA 40 37 70 04 04 00 B0 12 E8 31 72 04 04 00 D5 D7 58 05 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 4D 05 DE 05 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 20 17 7D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 9A 00 00 00 B1 04 03 00 54 D5 4E 70 04 03 00 58 C9 42 72 04 03 00 FC 0B 0C 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 13 5F 08 EF 03 09 00 F6 03 90 00 66 [23:47:59]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 A3 A0 00 00 69 04 A0 00 6F 04 04 00 09 A0 00 00 B1 04 04 00 85 EA 40 37 70 04 04 00 B0 12 E8 31 72 04 04 00 D5 D7 58 05 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 4D 05 DE 05 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 20 17 7D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 9A 00 00 00 B1 04 03 00 54 D5 4E 70 04 03 00 58 C9 42 72 04 03 00 FC 0B 0C 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 13 5F 08 EF 03 09 00 F6 03 90 00 [23:47:59]wFMCommunicate OK [23:47:59]wFMCommunicate request_size=4 [23:47:59]MH_SAM_APDU [23:47:59]CAPDU: 80 17 00 00 [23:47:59]Write to MH i2c: E2 08 00 3F 00 80 17 00 00 00 00 00 00 BF [23:47:59]Write i2c OK [23:47:59]MH_I2C_Read... [23:47:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:47:59]Read from MH i2c: E2 [23:47:59]MH_I2C_Read... [23:47:59]Read from MH i2c: E2 FD 00 [23:47:59]MH_I2C_Read... [23:47:59]Read from MH i2c: E2 FD 00 3F 00 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:48:02]oper:6F 04 04 00 09 A0 00 00 B1 04 04 00 85 EA 40 37 70 04 04 00 B0 12 E8 31 72 04 04 00 D5 D7 58 05 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 4D 05 DE 05 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 20 17 7D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:48:02]total:85 EA 40 37 [23:48:02]Malloc new data [23:48:02]oper:6F 04 04 00 9A 00 00 00 B1 04 03 00 54 D5 4E 70 04 03 00 58 C9 42 72 04 03 00 FC 0B 0C 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 13 5F 08 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 7F B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:48:02]total:54 D5 4E [23:48:02]Malloc new data [23:48:02]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:48:02]total: [23:48:02]Malloc new data [23:48:02]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:48:02]total: [23:48:02]Malloc new data [23:48:02]KKMPrepareXReportFMData err=0 [23:48:02]Х отчет ИНН: 02508201610067 Кассир: Ахмадалиева М. 29.07.2024 23:47 Смена: 266 РНМ: 0000000000092626 ЗНМ: 0300000053 СНО: Общий режим Всего чеков: 166 ИТОГИ ПРИХОД Чеков: 165 Общий итог: 28057.00 Итого наличными: 24524.00 Итого безнал.: 3533.00 НДС 0% : 0.00 НДС 12% : 2979.33 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 248.15 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 1 Общий итог: 445.00 Итого наличными: 445.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 47.26 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 3.93 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 24079.00 НС Приход: 9270012.21 НС Возвр.Прихода: 51664.20 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000874958 [23:48:02]StoreToDocumentArchive [23:48:02]MH_GetDate [23:48:02]Write to MH i2c: F0 00 00 43 00 32 [23:48:02]Write i2c OK [23:48:02]MH_I2C_Read... [23:48:02]Read from MH i2c: F0 [23:48:02]MH_I2C_Read... [23:48:02]Read from MH i2c: F0 09 00 [23:48:02]MH_I2C_Read... [23:48:02]Read from MH i2c: F0 09 00 43 00 00 33 2A A8 66 64 A3 A7 66 BA [23:48:03]shift 266 fd 1722296883 [23:48:03]Create dir for shift 0266 [23:48:03]save to /storage/0266/doc_1722296883 [23:48:03]save last doc name /storage/0266/doc_1722296883 to /storage/kkm_last_doc_name [23:48:03]save OK [23:48:03]Clear old archive folders... [23:48:03]NVStorageSaveData kkm_last_timestamp [23:48:03]File name is /storage/kkm_last_timestamp [23:48:03]Write 4 bytes [23:48:03]NVStorageSaveData done [23:48:03]ExternCall_PrintAddStr [23:48:03]wPrintStart [23:48:03]Write to MH i2c: 01 00 00 44 00 44 [23:48:03]Write i2c OK [23:48:03]MH_I2C_Read... [23:48:03]Read from MH i2c: 01 [23:48:03]MH_I2C_Read... [23:48:03]Read from MH i2c: 01 07 00 [23:48:03]MH_I2C_Read... [23:48:03]Read from MH i2c: 01 07 00 44 00 00 00 00 00 00 FF 0F 59 [23:48:03]RasterBufferAndPrint [23:48:03]line Х отчет [23:48:03]line ИНН: 02508201610067 [23:48:03]line Кассир: Ахмадалиева М. [23:48:03]line 29.07.2024 23:47 [23:48:03]line Смена: 266 [23:48:03]line РНМ: 0000000000092626 [23:48:03]line ЗНМ: 0300000053 [23:48:03]line СНО: Общий режим [23:48:03]line Всего чеков: 166 [23:48:03]line ИТОГИ ПРИХОД [23:48:03]line Чеков: 165 [23:48:03]line Общий итог: 28057.00 [23:48:03]line Итого наличными: 24524.00 [23:48:03]line Итого безнал.: 3533.00 [23:48:03]line НДС 0% : 0.00 [23:48:03]line НДС 12% : 2979.33 [23:48:03]line НСП 0% : 0.00 [23:48:03]line НСП 1,50% : 0.00 [23:48:03]line НСП 0,50% : 0.00 [23:48:03]line НСП 5% : 0.00 [23:48:03]line НСП 3% : 0.00 [23:48:03]line НСП 2% : 0.00 [23:48:03]line НСП 1% : 248.15 [23:48:03]line ИТОГИ ВОЗВРАТ ПРИХОДА [23:48:03]line Чеков: 1 [23:48:03]line Общий итог: 445.00 [23:48:03]line Итого наличными: 445.00 [23:48:03]line Итого безнал.: 0.00 [23:48:03]line НДС 0% : 0.00 [23:48:03]line НДС 12% : 47.26 [23:48:03]line НСП 0% : 0.00 [23:48:03]line НСП 1,50% : 0.00 [23:48:03]line НСП 0,50% : 0.00 [23:48:03]line НСП 5% : 0.00 [23:48:03]line НСП 3% : 0.00 [23:48:03]line НСП 2% : 0.00 [23:48:03]line НСП 1% : 3.93 [23:48:03]line ИТОГИ РАСХОД [23:48:03]line Чеков: 0 [23:48:03]line Общий итог: 0.00 [23:48:03]line Итого наличными: 0.00 [23:48:03]line Итого безнал.: 0.00 [23:48:03]line НДС 0% : 0.00 [23:48:03]line НДС 12% : 0.00 [23:48:03]line НСП 0% : 0.00 [23:48:03]line НСП 1,50% : 0.00 [23:48:03]line НСП 0,50% : 0.00 [23:48:03]line НСП 5% : 0.00 [23:48:03]line НСП 3% : 0.00 [23:48:03]line НСП 2% : 0.00 [23:48:03]line НСП 1% : 0.00 [23:48:03]line ИТОГИ ВОЗВРАТ РАСХОДА [23:48:03]line Чеков: 0 [23:48:03]line Общий итог: 0.00 [23:48:03]line Итого наличными: 0.00 [23:48:03]line Итого безнал.: 0.00 [23:48:03]line НДС 0% : 0.00 [23:48:03]line НДС 12% : 0.00 [23:48:03]line НСП 0% : 0.00 [23:48:03]line НСП 1,50% : 0.00 [23:48:03]line НСП 0,50% : 0.00 [23:48:03]line НСП 5% : 0.00 [23:48:03]line НСП 3% : 0.00 [23:48:03]line НСП 2% : 0.00 [23:48:03]line НСП 1% : 0.00 [23:48:03]line Сумма внесений: 0.00 [23:48:03]line Сумма выплат: 0.00 [23:48:03]line Нал. в кассе: 24079.00 [23:48:03]line НС Приход: 9270012.21 [23:48:03]line НС Возвр.Прихода: 51664.20 [23:48:03]line НС Расход: 0.00 [23:48:03]line НС Возвр.Расхода: 0.00 [23:48:03]line ФМ: 0000000000874958 [23:48:03]written 0, free lines is 4095 [23:48:03]Write to MH i2c: 01 00 00 8F 00 8F [23:48:03]Write i2c OK [23:48:03]MH_I2C_Read... [23:48:03]Read from MH i2c: 01 [23:48:03]MH_I2C_Read... [23:48:03]Read from MH i2c: 01 07 00 [23:48:03]MH_I2C_Read... [23:48:03]Read from MH i2c: 01 07 00 8F 00 00 00 00 00 00 17 0B B8 [23:48:03]RasterBufferAndPrint [23:48:03]line [23:48:03]line [23:48:03]line [23:48:03]line [23:48:03]line [23:48:03]written 0, free lines is 2884 [23:48:03]MH_Cut [23:48:03]Write to MH i2c: D1 01 00 96 00 01 68 [23:48:03]Write i2c OK [23:48:03]MH_I2C_Read... [23:48:03]Read from MH i2c: D1 [23:48:03]MH_I2C_Read... [23:48:03]Read from MH i2c: D1 01 00 [23:48:03]MH_I2C_Read... [23:48:03]Read from MH i2c: D1 01 00 96 00 00 67 [23:48:03]Write to MH i2c: 01 00 00 97 00 97 [23:48:03]Write i2c OK [23:48:03]MH_I2C_Read... [23:48:04]OFD Sender: No OFD packet to send [23:48:04]*** Cut start [23:48:04]*** Partial cut [23:48:04]*** CUTSNS_PIN = 1 [23:48:04]*** CUTSNS_PIN = 0 [23:48:05]*** Brake cut motor [23:48:05]Read from MH i2c: 01 [23:48:05]MH_I2C_Read... [23:48:05]*** Stop cut motor [23:48:05]*** Cut end [23:48:05]Read from MH i2c: 01 07 00 [23:48:05]MH_I2C_Read... [23:48:05]Read from MH i2c: 01 07 00 97 00 00 00 00 00 00 FF 0F AC [23:48:05]process_action x_report done [23:48:05]requested_data is exist [23:48:05]produce_requested_data [23:49:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:49:01]execute_script... [23:49:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:49:01]POST & json_proto [23:49:01]process_json_proto [23:49:01]json parsed OK: [23:49:01]protocol is kg_v1.0 [23:49:01]action value=get_value [23:49:01]process_action get_value [23:49:01]cmd_get_value [23:49:01]process_action get_value done [23:49:01]requested_data is exist [23:49:01]produce_requested_data [23:49:01]requested_item fm.sale.total is exist - process it [23:49:01]SAM_PROTO_GetFMData [23:49:01]wFMCommunicate request_size=4 [23:49:01]MH_SAM_APDU [23:49:01]CAPDU: 80 13 03 00 [23:49:01]Write to MH i2c: E2 08 00 9D 00 80 13 03 00 00 00 00 00 1C [23:49:01]Write i2c OK [23:49:01]MH_I2C_Read... [23:49:01]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:49:01]Read from MH i2c: E2 [23:49:01]MH_I2C_Read... [23:49:01]Read from MH i2c: E2 FD 00 [23:49:01]MH_I2C_Read... [23:49:02]Read from MH i2c: E2 FD 00 9D 00 00 C1 04 85 04 BD 04 6E 04 04 00 A3 A0 00 00 69 04 A0 00 6F 04 04 00 09 A0 00 00 B1 04 04 00 85 EA 40 37 70 04 04 00 B0 12 E8 31 72 04 04 00 D5 D7 58 05 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 4D 05 DE 05 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 20 17 7D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 9A 00 00 00 B1 04 03 00 54 D5 4E 70 04 03 00 58 C9 42 72 04 03 00 FC 0B 0C 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 13 5F 08 EF 03 09 00 F6 03 90 00 C5 [23:49:02]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 A3 A0 00 00 69 04 A0 00 6F 04 04 00 09 A0 00 00 B1 04 04 00 85 EA 40 37 70 04 04 00 B0 12 E8 31 72 04 04 00 D5 D7 58 05 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 4D 05 DE 05 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 20 17 7D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 9A 00 00 00 B1 04 03 00 54 D5 4E 70 04 03 00 58 C9 42 72 04 03 00 FC 0B 0C 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 13 5F 08 EF 03 09 00 F6 03 90 00 [23:49:02]wFMCommunicate OK [23:49:02]wFMCommunicate request_size=4 [23:49:02]MH_SAM_APDU [23:49:02]CAPDU: 80 17 00 00 [23:49:02]Write to MH i2c: E2 08 00 9E 00 80 17 00 00 00 00 00 00 1E [23:49:02]Write i2c OK [23:49:02]MH_I2C_Read... [23:49:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:02]Read from MH i2c: E2 [23:49:02]MH_I2C_Read... [23:49:02]Read from MH i2c: E2 FD 00 [23:49:02]MH_I2C_Read... [23:49:02]Read from MH i2c: E2 FD 00 9E 00 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 7E [23:49:02]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 [23:49:02]wFMCommunicate OK [23:49:02]wFMCommunicate request_size=4 [23:49:02]MH_SAM_APDU [23:49:02]CAPDU: 80 17 00 00 [23:49:02]Write to MH i2c: E2 08 00 9F 00 80 17 00 00 00 00 00 00 1F [23:49:03]Write i2c OK [23:49:03]MH_I2C_Read... [23:49:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:03]Read from MH i2c: E2 [23:49:03]MH_I2C_Read... [23:49:03]Read from MH i2c: E2 FD 00 [23:49:03]MH_I2C_Read... [23:49:03]Read from MH i2c: E2 FD 00 9F 00 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 BF [23:49:03]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [23:49:03]wFMCommunicate OK [23:49:03]wFMCommunicate request_size=4 [23:49:03]MH_SAM_APDU [23:49:03]CAPDU: 80 17 00 00 [23:49:03]Write to MH i2c: E2 08 00 A0 00 80 17 00 00 00 00 00 00 20 [23:49:03]Write i2c OK [23:49:03]MH_I2C_Read... [23:49:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:03]Read from MH i2c: E2 [23:49:03]MH_I2C_Read... [23:49:03]Read from MH i2c: E2 FD 00 [23:49:03]MH_I2C_Read... [23:49:03]Read from MH i2c: E2 FD 00 A0 00 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 A5 [23:49:04]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 OFD Sender: No OFD packet to send [23:49:04]00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [23:49:04]wFMCommunicate OK [23:49:04]wFMCommunicate request_size=4 [23:49:04]MH_SAM_APDU [23:49:04]CAPDU: 80 17 00 00 [23:49:04]Write to MH i2c: E2 08 00 A1 00 80 17 00 00 00 00 00 00 21 [23:49:04]Write i2c OK [23:49:04]MH_I2C_Read... [23:49:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [23:49:04]Read from MH i2c: E2 [23:49:04]MH_I2C_Read... [23:49:04]Read from MH i2c: E2 DE 00 [23:49:04]MH_I2C_Read... [23:49:04]Read from MH i2c: E2 DE 00 A1 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 00 [23:49:04]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:49:04]wFMCommunicate OK [23:49:04]SAM_PROTO_GetFMData done [23:49:04]requested_item fm.sale_refund.total is exist - process it [23:49:04]requested_item fm.buy.total is exist - process it [23:49:04]requested_item shift.sale.total is exist - process it [23:49:04]SAM_PROTO_GetShiftData [23:49:04]wFMCommunicate request_size=4 [23:49:04]MH_SAM_APDU [23:49:04]CAPDU: 80 13 02 00 [23:49:04]Write to MH i2c: E2 08 00 A2 00 80 13 02 00 00 00 00 00 20 [23:49:04]Write i2c OK [23:49:04]MH_I2C_Read... [23:49:05]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:49:05]Read from MH i2c: E2 [23:49:05]MH_I2C_Read... [23:49:05]Read from MH i2c: E2 FD 00 [23:49:05]MH_I2C_Read... [23:49:05]Read from MH i2c: E2 FD 00 A2 00 00 B6 04 AA 04 B2 04 6E 04 04 00 A6 00 00 00 69 04 9B 00 6F 04 04 00 A5 00 00 00 B1 04 03 00 C4 CF 2A 70 04 03 00 B0 6B 25 72 04 03 00 14 64 05 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 CD 8B 04 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 EF 60 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 D4 AD 70 04 02 00 D4 AD 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 76 12 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 90 00 10 [23:49:05]RAPDU: B6 04 AA 04 B2 04 6E 04 04 00 A6 00 00 00 69 04 9B 00 6F 04 04 00 A5 00 00 00 B1 04 03 00 C4 CF 2A 70 04 03 00 B0 6B 25 72 04 03 00 14 64 05 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 CD 8B 04 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 EF 60 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 D4 AD 70 04 02 00 D4 AD 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 76 12 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 90 00 [23:49:05]wFMCommunicate OK [23:49:05]wFMCommunicate request_size=4 [23:49:05]MH_SAM_APDU [23:49:05]CAPDU: 80 17 00 00 [23:49:05]Write to MH i2c: E2 08 00 A3 00 80 17 00 00 00 00 00 00 23 [23:49:05]Write i2c OK [23:49:05]MH_I2C_Read... [23:49:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:06]Read from MH i2c: E2 [23:49:06]MH_I2C_Read... [23:49:06]Read from MH i2c: E2 FD 00 [23:49:06]MH_I2C_Read... [23:49:06]Read from MH i2c: E2 FD 00 A3 00 00 F6 03 01 00 01 F7 03 02 00 89 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 C1 [23:49:06]RAPDU: F6 03 01 00 01 F7 03 02 00 89 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [23:49:06]wFMCommunicate OK [23:49:06]wFMCommunicate request_size=4 [23:49:06]MH_SAM_APDU [23:49:06]CAPDU: 80 17 00 00 [23:49:06]Write to MH i2c: E2 08 00 A4 00 80 17 00 00 00 00 00 00 24 [23:49:06]Write i2c OK [23:49:06]MH_I2C_Read... [23:49:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:06]Read from MH i2c: E2 [23:49:06]MH_I2C_Read... [23:49:06]Read from MH i2c: E2 FD 00 [23:49:06]MH_I2C_Read... [23:49:06]Read from MH i2c: E2 FD 00 A4 00 00 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E4 [23:49:07]RAPDU: 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:49:07]wFMCommunicate OK [23:49:07]wFMCommunicate request_size=4 [23:49:07]MH_SAM_APDU [23:49:07]CAPDU: 80 17 00 00 [23:49:07]Write to MH i2c: E2 08 00 A5 00 80 17 00 00 00 00 00 00 25 [23:49:07]Write i2c OK [23:49:07]MH_I2C_Read... [23:49:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:07]Read from MH i2c: E2 [23:49:07]MH_I2C_Read... [23:49:07]Read from MH i2c: E2 FD 00 [23:49:07]MH_I2C_Read... [23:49:07]Read from MH i2c: E2 FD 00 A5 00 00 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 90 00 94 [23:49:07]RAPDU: 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 90 00 [23:49:07]wFMCommunicate OK [23:49:07]wFMCommunicate request_size=4 [23:49:07]MH_SAM_APDU [23:49:07]CAPDU: 80 17 00 00 [23:49:07]Write to MH i2c: E2 08 00 A6 00 80 17 00 00 00 00 00 00 26 [23:49:07]Write i2c OK [23:49:07]MH_I2C_Read... [23:49:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 208! [23:49:08]Read from MH i2c: E2 [23:49:08]MH_I2C_Read... [23:49:08]Read from MH i2c: E2 D3 00 [23:49:08]MH_I2C_Read... [23:49:08]Read from MH i2c: E2 D3 00 A6 00 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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:49:08]RAPDU: 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:08]wFMCommunicate OK [23:49:08]SAM_PROTO_GetShiftData done [23:49:08]requested_item shift.sale.total_cash is exist - process it [23:49:08]requested_item shift.sale_refund.total is exist - process it [23:49:08]requested_item shift.sale_refund.total_cash is exist - process it [23:49:08]requested_item shift.buy.total is exist - process it [23:49:08]requested_item shift.buy.total_cash is exist - process it [23:49:08]produce_requested_data done [23:49:08]produce_requested_data return {"fm.sale.total":9270012.21,"fm.sale_refund.total":51664.20,"fm.buy.total":0.00,"shift.sale.total":28057.00,"shift.sale.total_cash":24524.00,"shift.sale_refund.total":445.00,"shift.sale_refund.total_cash":445.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:49:08]process_action_free get_value [23:49:08]json_value_free [23:49:08]json_value_free done [23:49:08]process_json_proto returns [23:49:08]Send response to host [23:49:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":9270012.21,"fm.sale_refund.total":51664.20,"fm.buy.total":0.00,"shift.sale.total":28057.00,"shift.sale.total_cash":24524.00,"shift.sale_refund.total":445.00,"shift.sale_refund.total_cash":445.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:49:08]free response buf [23:49:08]execute_script done [23:49:08]execute_script returns [23:49:08]free content buf [23:49:08]Sock 10.Close socket [23:49:08]Sock 10.Thread stoped [23:49:08]accept exits with 8 [23:49:08]New connection [23:49:08]New thread 3067587940 created [23:49:08]Thread 3067444580 joined [23:49:08]Waiting for new connection... [23:49:08] Sock 8.Parse request [23:49:08]Sock 8.Check first char [23:49:08]Sock 8.First char is OK [23:49:08]request: POST /json_proto HTTP/1.0 [23:49:08]Method: POST [23:49:08]URL: /json_proto [23:49:08]Method is POST - this is cgi request [23:49:08]url: /json_proto [23:49:08]query_string will be loaded in cgi processing [23:49:08]execute_cgi json_proto POST (null) [23:49:08]execute_cgi path=json_proto method=POST [23:49:08]POST find Content-Length [23:49:08]Host: 172.17.43.132:8080 [23:49:08]Content-Length: 331 [23:49:08]Content-Type: application/json [23:49:08] [23:49:08]POST finish read [23:49:08]Found Content-Length = 331 [23:49: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:49:08]execute_script... [23:49: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:49:08]POST & json_proto [23:49:08]process_json_proto [23:49:08]json parsed OK: [23:49:08]protocol is kg_v1.0 [23:49:08]action value=get_value [23:49:08]process_action get_value [23:49:08]cmd_get_value [23:49:08]process_action get_value done [23:49:08]requested_data is exist [23:49:08]produce_requested_data [23:49:08]requested_item fm.sale.total is exist - process it [23:49:08]SAM_PROTO_GetFMData [23:49:08]wFMCommunicate request_size=4 [23:49:08]MH_SAM_APDU [23:49:08]CAPDU: 80 13 03 00 [23:49:08]Write to MH i2c: E2 08 00 A7 00 80 13 03 00 00 00 00 00 26 [23:49:08]Write i2c OK [23:49:08]MH_I2C_Read... [23:49:09]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:49:09]Read from MH i2c: E2 [23:49:09]MH_I2C_Read... [23:49:09]Read from MH i2c: E2 FD 00 [23:49:09]MH_I2C_Read... [23:49:09]Read from MH i2c: E2 FD 00 A7 00 00 C1 04 85 04 BD 04 6E 04 04 00 A3 A0 00 00 69 04 A0 00 6F 04 04 00 09 A0 00 00 B1 04 04 00 85 EA 40 37 70 04 04 00 B0 12 E8 31 72 04 04 00 D5 D7 58 05 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 4D 05 DE 05 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 20 17 7D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 OFD Sender: No OFD packet to send [23:49:09]EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 9A 00 00 00 B1 04 03 00 54 D5 4E 70 04 03 00 58 C9 42 72 04 03 00 FC 0B 0C 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 13 5F 08 EF 03 09 00 F6 03 90 00 CF [23:49:09]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 A3 A0 00 00 69 04 A0 00 6F 04 04 00 09 A0 00 00 B1 04 04 00 85 EA 40 37 70 04 04 00 B0 12 E8 31 72 04 04 00 D5 D7 58 05 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 4D 05 DE 05 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 20 17 7D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 9A 00 00 00 B1 04 03 00 54 D5 4E 70 04 03 00 58 C9 42 72 04 03 00 FC 0B 0C 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 13 5F 08 EF 03 09 00 F6 03 90 00 [23:49:09]wFMCommunicate OK [23:49:09]wFMCommunicate request_size=4 [23:49:09]MH_SAM_APDU [23:49:09]CAPDU: 80 17 00 00 [23:49:09]Write to MH i2c: E2 08 00 A8 00 80 17 00 00 00 00 00 00 28 [23:49:09]Write i2c OK [23:49:09]MH_I2C_Read... [23:49:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:10]Read from MH i2c: E2 [23:49:10]MH_I2C_Read... [23:49:10]Read from MH i2c: E2 FD 00 [23:49:10]MH_I2C_Read... [23:49:10]Read from MH i2c: E2 FD 00 A8 00 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 88 [23:49:10]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 [23:49:10]wFMCommunicate OK [23:49:10]wFMCommunicate request_size=4 [23:49:10]MH_SAM_APDU [23:49:10]CAPDU: 80 17 00 00 [23:49:10]Write to MH i2c: E2 08 00 A9 00 80 17 00 00 00 00 00 00 29 [23:49:10]Write i2c OK [23:49:10]MH_I2C_Read... [23:49:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:10]Read from MH i2c: E2 [23:49:10]MH_I2C_Read... [23:49:10]Read from MH i2c: E2 FD 00 [23:49:10]MH_I2C_Read... [23:49:10]Read from MH i2c: E2 FD 00 A9 00 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 C9 [23:49:11]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [23:49:11]wFMCommunicate OK [23:49:11]wFMCommunicate request_size=4 [23:49:11]MH_SAM_APDU [23:49:11]CAPDU: 80 17 00 00 [23:49:11]Write to MH i2c: E2 08 00 AA 00 80 17 00 00 00 00 00 00 2A [23:49:11]Write i2c OK [23:49:11]MH_I2C_Read... [23:49:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:11]Read from MH i2c: E2 [23:49:11]MH_I2C_Read... [23:49:11]Read from MH i2c: E2 FD 00 [23:49:11]MH_I2C_Read... [23:49:11]Read from MH i2c: E2 FD 00 AA 00 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 AF [23:49:11]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [23:49:12]wFMCommunicate OK [23:49:12]wFMCommunicate request_size=4 [23:49:12]MH_SAM_APDU [23:49:12]CAPDU: 80 17 00 00 [23:49:12]Write to MH i2c: E2 08 00 AB 00 80 17 00 00 00 00 00 00 2B [23:49:12]Write i2c OK [23:49:12]MH_I2C_Read... [23:49:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [23:49:12]Read from MH i2c: E2 [23:49:12]MH_I2C_Read... [23:49:12]Read from MH i2c: E2 DE 00 [23:49:12]MH_I2C_Read... [23:49:12]Read from MH i2c: E2 DE 00 AB 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 0A [23:49:12]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:49:12]wFMCommunicate OK [23:49:12]SAM_PROTO_GetFMData done [23:49:12]requested_item fm.sale_refund.total is exist - process it [23:49:12]requested_item fm.buy.total is exist - process it [23:49:12]requested_item shift.sale.total is exist - process it [23:49:12]SAM_PROTO_GetShiftData [23:49:12]wFMCommunicate request_size=4 [23:49:12]MH_SAM_APDU [23:49:12]CAPDU: 80 13 02 00 [23:49:12]Write to MH i2c: E2 08 00 AC 00 80 13 02 00 00 00 00 00 2A [23:49:12]Write i2c OK [23:49:12]MH_I2C_Read... [23:49:13]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:49:13]Read from MH i2c: E2 [23:49:13]MH_I2C_Read... [23:49:13]Read from MH i2c: E2 FD 00 [23:49:13]MH_I2C_Read... [23:49:13]Read from MH i2c: E2 FD 00 AC 00 00 B6 04 AA 04 B2 04 6E 04 04 00 A6 00 00 00 69 04 9B 00 6F 04 04 00 A5 00 00 00 B1 04 03 00 C4 CF 2A 70 04 03 00 B0 6B 25 72 04 03 00 14 64 05 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 CD 8B 04 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 EF 60 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 D4 AD 70 04 02 00 D4 AD 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 76 12 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 90 00 1A [23:49:13]RAPDU: B6 04 AA 04 B2 04 6E 04 04 00 A6 00 00 00 69 04 9B 00 6F 04 04 00 A5 00 00 00 B1 04 03 00 C4 CF 2A 70 04 03 00 B0 6B 25 72 04 03 00 14 64 05 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 CD 8B 04 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 EF 60 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 D4 AD 70 04 02 00 D4 AD 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 76 12 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 90 00 [23:49:13]wFMCommunicate OK [23:49:13]wFMCommunicate request_size=4 [23:49:13]MH_SAM_APDU [23:49:13]CAPDU: 80 17 00 00 [23:49:13]Write to MH i2c: E2 08 00 AD 00 80 17 00 00 00 00 00 00 2D [23:49:13]Write i2c OK [23:49:13]MH_I2C_Read... [23:49:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:14]Read from MH i2c: E2 [23:49:14]MH_I2C_Read... [23:49:14]Read from MH i2c: E2 FD 00 [23:49:14]MH_I2C_Read... [23:49:14]Read from MH i2c: E2 FD 00 AD 00 00 F6 03 01 00 01 F7 03 02 00 89 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 CB [23:49:14]RAPDU: F6 03 01 00 01 F7 03 02 00 89 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [23:49:14]wFMCommunicate OK [23:49:14]wFMCommunicate request_size=4 [23:49:14]MH_SAM_APDU [23:49:14]CAPDU: 80 17 00 00 [23:49:14]Write to MH i2c: E2 08 00 AE 00 80 17 00 00 00 00 00 00 2E [23:49:14]OFD Sender: No OFD packet to send [23:49:14]Write i2c OK [23:49:14]MH_I2C_Read... [23:49:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:14]Read from MH i2c: E2 [23:49:14]MH_I2C_Read... [23:49:14]Read from MH i2c: E2 FD 00 [23:49:14]MH_I2C_Read... [23:49:14]Read from MH i2c: E2 FD 00 AE 00 00 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 E2 03 00 B4 00 00 90 00 28 [23:49:17]RAPDU: 90 00 [23:49:17]wFMCommunicate OK [23:49:17]wFMCommunicate request_size=23 [23:49:17]MH_SAM_APDU [23:49:17]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:49:17]Write to MH i2c: E2 1A 00 B5 00 80 15 02 00 12 00 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 00 00 2A [23:49:17]Write i2c OK [23:49:17]MH_I2C_Read... [23:49:17]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:49:17]Read from MH i2c: E2 [23:49:17]MH_I2C_Read... [23:49:17]Read from MH i2c: E2 03 00 [23:49:17]MH_I2C_Read... [23:49:17]Read from MH i2c: E2 03 00 B5 00 00 90 00 29 [23:49:17]RAPDU: 90 00 [23:49:17]wFMCommunicate OK [23:49:17]wFMCommunicate request_size=36 [23:49:17]MH_SAM_APDU [23:49:17]CAPDU: 80 15 02 00 1F FD 03 1B 00 D0 90 D1 85 D0 BC D0 B0 D0 B4 D0 B0 D0 BB D0 B8 D0 B5 D0 B2 D0 B0 20 D0 9C 2E 20 [23:49:17]Write to MH i2c: E2 27 00 B6 00 80 15 02 00 1F 00 FD 03 1B 00 D0 90 D1 85 D0 BC D0 B0 D0 B4 D0 B0 D0 BB D0 B8 D0 B5 D0 B2 D0 B0 20 D0 9C 2E 20 00 00 C9 [23:49:17]Write i2c OK [23:49:17]MH_I2C_Read... [23:49:17]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:49:17]Read from MH i2c: E2 [23:49:17]MH_I2C_Read... [23:49:17]Read from MH i2c: E2 03 00 [23:49:17]MH_I2C_Read... [23:49:17]Read from MH i2c: E2 03 00 B6 00 00 90 00 2A [23:49:17]RAPDU: 90 00 [23:49:17]wFMCommunicate OK [23:49:17]wFMCommunicate request_size=13 [23:49:17]MH_SAM_APDU [23:49:17]CAPDU: 80 15 02 00 08 F4 03 04 00 7D 2A A8 66 [23:49:17]Write to MH i2c: E2 10 00 B7 00 80 15 02 00 08 00 F4 03 04 00 7D 2A A8 66 00 00 F7 [23:49:17]Write i2c OK [23:49:17]MH_I2C_Read... [23:49:17]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:49:17]Read from MH i2c: E2 [23:49:17]MH_I2C_Read... [23:49:17]Read from MH i2c: E2 03 00 [23:49:17]MH_I2C_Read... [23:49:17]Read from MH i2c: E2 03 00 B7 00 00 90 00 2B [23:49:17]RAPDU: 90 00 [23:49:17]wFMCommunicate OK [23:49:17]wFMCommunicate request_size=25 [23:49:17]MH_SAM_APDU [23:49:17]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 [23:49:17]Write to MH i2c: E2 1C 00 B8 00 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 00 00 9A [23:49:17]Write i2c OK [23:49:17]MH_I2C_Read... [23:49:17]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:49:17]Read from MH i2c: E2 [23:49:17]MH_I2C_Read... [23:49:17]Read from MH i2c: E2 03 00 [23:49:17]MH_I2C_Read... [23:49:17]Read from MH i2c: E2 03 00 B8 00 00 90 00 2C [23:49:17]RAPDU: 90 00 [23:49:17]wFMCommunicate OK [23:49:17]wFMCommunicate request_size=4 [23:49:17]MH_SAM_APDU [23:49:17]CAPDU: 80 15 03 00 [23:49:17]Write to MH i2c: E2 08 00 B9 00 80 15 03 00 00 00 00 00 3A [23:49:17]Write i2c OK [23:49:17]MH_I2C_Read... [23:49:18]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [23:49:18]Read from MH i2c: E2 [23:49:18]MH_I2C_Read... [23:49:18]Read from MH i2c: E2 FD 00 [23:49:18]MH_I2C_Read... [23:49:18]Read from MH i2c: E2 FD 00 B9 00 00 F9 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 FA A3 00 00 0E 04 04 00 AB 01 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A8 00 00 00 AA 04 B2 04 6E 04 04 00 A6 00 00 00 69 04 9B 00 6F 04 04 00 A5 00 00 00 B1 04 03 00 C4 CF 2A 70 04 03 00 B0 6B 25 72 04 03 00 14 64 05 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 CD 8B 04 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 EF 60 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 D4 AD 70 04 90 00 46 [23:49:18]RAPDU: F9 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 FA A3 00 00 0E 04 04 00 AB 01 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A8 00 00 00 AA 04 B2 04 6E 04 04 00 A6 00 00 00 69 04 9B 00 6F 04 04 00 A5 00 00 00 B1 04 03 00 C4 CF 2A 70 04 03 00 B0 6B 25 72 04 03 00 14 64 05 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 CD 8B 04 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 EF 60 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 D4 AD 70 04 90 00 [23:49:19]wFMCommunicate OK [23:49:19]SAM_PROTO_ProcessDocument answer len = 1273 [23:49:19]SAM_PROTO_ProcessDocument remain to read = 1025 [23:49:19]wFMCommunicate request_size=4 [23:49:19]MH_SAM_APDU [23:49:19]CAPDU: 80 17 00 00 [23:49:19]Write to MH i2c: E2 08 00 BA 00 80 17 00 00 00 00 00 00 3A [23:49:19]Write i2c OK [23:49:19]MH_I2C_Read... [23:49:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:19]Read from MH i2c: E2 [23:49:19]MH_I2C_Read... [23:49:19]Read from MH i2c: E2 FD 00 [23:49:19]MH_I2C_Read... [23:49:19]recv_with_timeout no data received [23:49:19]Read from MH i2c: E2 FD 00 BA 00 00 02 00 D4 AD 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 76 12 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 89 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 30 [23:49:19]RAPDU: 02 00 D4 AD 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 76 12 EF 03 09 00 F6 03 OFD Sender: No OFD packet to send [23:49:19]01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 89 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [23:49:19]wFMCommunicate OK [23:49:19]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:49:19]SAM_PROTO_ProcessDocument remain to read = 775 [23:49:19]wFMCommunicate request_size=4 [23:49:19]MH_SAM_APDU [23:49:19]CAPDU: 80 17 00 00 [23:49:19]Write to MH i2c: E2 08 00 BB 00 80 17 00 00 00 00 00 00 3B [23:49:20]Write i2c OK [23:49:20]MH_I2C_Read... [23:49:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:20]Read from MH i2c: E2 [23:49:20]MH_I2C_Read... [23:49:20]Read from MH i2c: E2 FD 00 [23:49:20]MH_I2C_Read... [23:49:20]Read from MH i2c: E2 FD 00 BB 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 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 90 00 9D [23:49:20]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 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 90 00 [23:49:20]wFMCommunicate OK [23:49:20]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:49:20]SAM_PROTO_ProcessDocument remain to read = 525 [23:49:20]wFMCommunicate request_size=4 [23:49:20]MH_SAM_APDU [23:49:20]CAPDU: 80 17 00 00 [23:49:20]Write to MH i2c: E2 08 00 BC 00 80 17 00 00 00 00 00 00 3C [23:49:20]Write i2c OK [23:49:20]MH_I2C_Read... [23:49:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:21]Read from MH i2c: E2 [23:49:21]MH_I2C_Read... [23:49:21]Read from MH i2c: E2 FD 00 [23:49:21]MH_I2C_Read... [23:49:21]Read from MH i2c: E2 FD 00 BC 00 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 55 [23:49:21]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:49:21]wFMCommunicate OK [23:49:21]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:49:21]SAM_PROTO_ProcessDocument remain to read = 275 [23:49:21]wFMCommunicate request_size=4 [23:49:21]MH_SAM_APDU [23:49:21]CAPDU: 80 17 00 00 [23:49:21]Write to MH i2c: E2 08 00 BD 00 80 17 00 00 00 00 00 00 3D [23:49:21]Write i2c OK [23:49:21]MH_I2C_Read... [23:49:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:22]Read from MH i2c: E2 [23:49:22]MH_I2C_Read... [23:49:22]Read from MH i2c: E2 FD 00 [23:49:22]MH_I2C_Read... [23:49:22]Read from MH i2c: E2 FD 00 BD 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 76 [23:49:22]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [23:49:22]wFMCommunicate OK [23:49:22]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:49:22]SAM_PROTO_ProcessDocument remain to read = 25 [23:49:22]wFMCommunicate request_size=4 [23:49:22]MH_SAM_APDU [23:49:22]CAPDU: 80 17 00 00 [23:49:22]Write to MH i2c: E2 08 00 BE 00 80 17 00 00 00 00 00 00 3E [23:49:22]Write i2c OK [23:49:22]MH_I2C_Read... [23:49:22]Read from MH i2c: E2 [23:49:22]MH_I2C_Read... [23:49:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 25! [23:49:22]Read from MH i2c: E2 1C 00 [23:49:22]MH_I2C_Read... [23:49:22]Read from MH i2c: E2 1C 00 BE 00 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 CA 3D 99 C0 07 30 90 00 16 [23:49:22]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 CA 3D 99 C0 07 30 90 00 [23:49:22]wFMCommunicate OK [23:49:22]SAM_PROTO_ProcessDocument received (without SW) 25 bytes [23:49:22]SAM_PROTO_ProcessDocument done [23:49:22]1209 (1) - 1.0 - номер версии ФФД [23:49:22]1041 (16) - 0000000000874958 - номер ФМ [23:49:22]1040 (4) - 41978 - номер ФД [23:49:22]1038 (4) - 427 - номер смены [23:49:22]1118 (4) - 166 - количество кассовых чеков за смену [23:49:22]1111 (4) - 168 - общее количество ФД за смену [23:49:22]1194 (1202) - счетчики итогов смены [23:49:22] 1134 (4) - 166 - количество чеков со всеми признаками расчетов [23:49:22] 1129 (155) - счетчики операций «приход» [23:49:22] 1135 (4) - 165 - количество чеков по признаку расчетов [23:49:22] 1201 (3) - 28057.00 - общая итоговая сумма в чеках [23:49:22] 1136 (3) - 24524.00 - итоговая сумма в чеках наличными [23:49:22] 1138 (3) - 3533.00 - итоговая сумма в чеках безналичными [23:49:22] 1024 (122) - суммы налогов [23:49:22] 1006 (9) - суммы НДС [23:49:22] 1010 (1) - 0% - код ставки НДС [23:49:22] 1011 (0) - 0.00 - сумма НДС по ставке [23:49:22] 1006 (12) - суммы НДС [23:49:22] 1010 (1) - 12% - код ставки НДС [23:49:22] 1011 (3) - 2979.33 - сумма НДС по ставке [23:49:22] 1007 (9) - суммы НСП [23:49:22] 1014 (1) - 0% - код ставки НСП [23:49:22] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:22] 1007 (11) - суммы НСП [23:49:22] 1014 (1) - 1% - код ставки НСП [23:49:22] 1015 (2) - 248.15 - сумма НСП по ставке [23:49:22] 1007 (9) - суммы НСП [23:49:22] 1014 (1) - 2% - код ставки НСП [23:49:22] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:22] 1007 (9) - суммы НСП [23:49:22] 1014 (1) - 3% - код ставки НСП [23:49:23] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:23] 1007 (9) - суммы НСП [23:49:23] 1014 (1) - 5% - код ставки НСП [23:49:23] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:23] 1007 (9) - суммы НСП [23:49:23] 1014 (1) - 0,50% - код ставки НСП [23:49:23] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:23] 1007 (9) - суммы НСП [23:49:23] 1014 (1) - 1,50% - код ставки НСП [23:49:23] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:23] 1130 (149) - счетчики операций «возврат прихода» [23:49:23] 1135 (4) - 1 - количество чеков по признаку расчетов [23:49:23] 1201 (2) - 445.00 - общая итоговая сумма в чеках [23:49:23] 1136 (2) - 445.00 - итоговая сумма в чеках наличными [23:49:23] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:49:23] 1024 (121) - суммы налогов [23:49:23] 1006 (9) - суммы НДС [23:49:23] 1010 (1) - 0% - код ставки НДС [23:49:23] 1011 (0) - 0.00 - сумма НДС по ставке [23:49:23] 1006 (11) - суммы НДС [23:49:23] 1010 (1) - 12% - код ставки НДС [23:49:23] 1011 (2) - 47.26 - сумма НДС по ставке [23:49:23] 1007 (9) - суммы НСП [23:49:23] 1014 (1) - 0% - код ставки НСП [23:49:23] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:23] 1007 (11) - суммы НСП [23:49:23] 1014 (1) - 1% - код ставки НСП [23:49:23] 1015 (2) - 3.93 - сумма НСП по ставке [23:49:23] 1007 (9) - суммы НСП [23:49:23] 1014 (1) - 2% - код ставки НСП [23:49:23] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:23] 1007 (9) - суммы НСП [23:49:23] 1014 (1) - 3% - код ставки НСП [23:49:23] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:23] 1007 (9) - суммы НСП [23:49:23] 1014 (1) - 5% - код ставки НСП [23:49:23] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:23] 1007 (9) - суммы НСП [23:49:23] 1014 (1) - 0,50% - код ставки НСП [23:49:23] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:23] 1007 (9) - суммы НСП [23:49:23] 1014 (1) - 1,50% - код ставки НСП [23:49:23] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:23] 1131 (141) - счетчики операций «расход» [23:49:23] 1135 (4) - 0 - количество чеков по признаку расчетов [23:49:23] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:49:23] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:49:23] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:49:23] 1024 (117) - суммы налогов [23:49:23] 1006 (9) - суммы НДС [23:49:23] 1010 (1) - 0% - код ставки НДС [23:49:23] 1011 (0) - 0.00 - сумма НДС по ставке [23:49:23] 1006 (9) - суммы НДС [23:49:23] 1010 (1) - 12% - код ставки НДС [23:49:23] 1011 (0) - 0.00 - сумма НДС по ставке [23:49:23] 1007 (9) - суммы НСП [23:49:23] 1014 (1) - 0% - код ставки НСП [23:49:23] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:23] 1007 (9) - суммы НСП [23:49:23] 1014 (1) - 1% - код ставки НСП [23:49:23] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:23] 1007 (9) - суммы НСП [23:49:23] 1014 (1) - 2% - код ставки НСП [23:49:23] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:23] 1007 (9) - суммы НСП [23:49:23] 1014 (1) - 3% - код ставки НСП [23:49:23] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:23] 1007 (9) - суммы НСП [23:49:23] 1014 (1) - 5% - код ставки НСП [23:49:23] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:23] 1007 (9) - суммы НСП [23:49:23] 1014 (1) - 0,50% - код ставки НСП [23:49:23] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:23] 1007 (9) - суммы НСП [23:49:23] 1014 (1) - 1,50% - код ставки НСП [23:49:23] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:23] 1132 (141) - счетчики операций «возврат расхода» [23:49:23] 1135 (4) - 0 - количество чеков по признаку расчетов [23:49:23] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:49:23] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:49:23] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:49:23] 1024 (117) - суммы налогов [23:49:23] 1006 (9) - суммы НДС [23:49:23] 1010 (1) - 0% - код ставки НДС [23:49:23] 1011 (0) - 0.00 - сумма НДС по ставке [23:49:23] 1006 (9) - суммы НДС [23:49:23] 1010 (1) - 12% - код ставки НДС [23:49:23] 1011 (0) - 0.00 - сумма НДС по ставке [23:49:23] 1007 (9) - суммы НСП [23:49:23] 1014 (1) - 0% - код ставки НСП [23:49:23] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:23] 1007 (9) - суммы НСП [23:49:23] 1014 (1) - 1% - код ставки НСП [23:49:23] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:23] 1007 (9) - суммы НСП [23:49:23] 1014 (1) - 2% - код ставки НСП [23:49:23] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:23] 1007 (9) - суммы НСП [23:49:23] 1014 (1) - 3% - код ставки НСП [23:49:23] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:23] 1007 (9) - суммы НСП [23:49:23] 1014 (1) - 5% - код ставки НСП [23:49:23] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:23] 1007 (9) - суммы НСП [23:49:23] 1014 (1) - 0,50% - код ставки НСП [23:49:23] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:23] 1007 (9) - суммы НСП [23:49:23] 1014 (1) - 1,50% - код ставки НСП [23:49:23] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:23] 1133 (588) - - счетчики коррекции - не используются [23:49:23]1077 (6) - 222365921314608 - ФПД [23:49:23]SetTLVBufToDocument [23:49:23]Processing tag 1209 (04B9) [23:49:23]Malloc new data [23:49:23]Processing tag 1041 (0411) [23:49:23]Processing tag 1040 (0410) [23:49:23]Malloc new data [23:49:23]Processing tag 1038 (040E) [23:49:23]Malloc new data [23:49:23]Processing tag 1118 (045E) [23:49:23]Malloc new data [23:49:23]Processing tag 1111 (0457) [23:49:23]Malloc new data [23:49:23]Processing tag 1194 (04AA) [23:49:23]Load OK [23:49:23]SetTLVBufToDocument [23:49:23]Processing tag 1134 (046E) [23:49:23]Malloc new data [23:49:23]Processing tag 1129 (0469) [23:49:23]Load OK [23:49:23]SetTLVBufToDocument [23:49:23]Processing tag 1135 (046F) [23:49:23]Malloc new data [23:49:23]Processing tag 1201 (04B1) [23:49:23]Malloc new data [23:49:23]Processing tag 1136 (0470) [23:49:23]Malloc new data [23:49:23]Processing tag 1138 (0472) [23:49:23]Malloc new data [23:49:23]Processing tag 1024 (0400) [23:49:23]Load OK [23:49:23]SetTLVBufToDocument [23:49:23]Processing tag 1006 (03EE) [23:49:23]Load OK [23:49:23]SetTLVBufToDocument [23:49:23]Processing tag 1010 (03F2) [23:49:23]Malloc new data [23:49:23]Processing tag 1011 (03F3) [23:49:23]Malloc new data [23:49:23]SetTLVBufToDocument err=0 [23:49:23]Processing tag 1006 (03EE) [23:49:23]Load OK [23:49:23]SetTLVBufToDocument [23:49:23]Processing tag 1010 (03F2) [23:49:23]Malloc new data [23:49:23]Processing tag 1011 (03F3) [23:49:23]Malloc new data [23:49:23]SetTLVBufToDocument err=0 [23:49:23]Processing tag 1007 (03EF) [23:49:23]Load OK [23:49:23]SetTLVBufToDocument [23:49:23]Processing tag 1014 (03F6) [23:49:23]Malloc new data [23:49:23]Processing tag 1015 (03F7) [23:49:23]Malloc new data [23:49:23]SetTLVBufToDocument err=0 [23:49:23]Processing tag 1007 (03EF) [23:49:23]Load OK [23:49:23]SetTLVBufToDocument [23:49:23]Processing tag 1014 (03F6) [23:49:23]Malloc new data [23:49:23]Processing tag 1015 (03F7) [23:49:23]Malloc new data [23:49:23]SetTLVBufToDocument err=0 [23:49:23]Processing tag 1007 (03EF) [23:49:23]Load OK [23:49:23]SetTLVBufToDocument [23:49:23]Processing tag 1014 (03F6) [23:49:23]Malloc new data [23:49:23]Processing tag 1015 (03F7) [23:49:23]Malloc new data [23:49:23]SetTLVBufToDocument err=0 [23:49:23]Processing tag 1007 (03EF) [23:49:23]Load OK [23:49:23]SetTLVBufToDocument [23:49:23]Processing tag 1014 (03F6) [23:49:23]Malloc new data [23:49:23]Processing tag 1015 (03F7) [23:49:23]Malloc new data [23:49:23]SetTLVBufToDocument err=0 [23:49:23]Processing tag 1007 (03EF) [23:49:23]Load OK [23:49:23]SetTLVBufToDocument [23:49:23]Processing tag 1014 (03F6) [23:49:23]Malloc new data [23:49:23]Processing tag 1015 (03F7) [23:49:23]Malloc new data [23:49:23]SetTLVBufToDocument err=0 [23:49:23]Processing tag 1007 (03EF) [23:49:23]Load OK [23:49:23]SetTLVBufToDocument [23:49:23]Processing tag 1014 (03F6) [23:49:23]Malloc new data [23:49:23]Processing tag 1015 (03F7) [23:49:23]Malloc new data [23:49:23]SetTLVBufToDocument err=0 [23:49:23]Processing tag 1007 (03EF) [23:49:23]Load OK [23:49:23]SetTLVBufToDocument [23:49:23]Processing tag 1014 (03F6) [23:49:23]Malloc new data [23:49:23]Processing tag 1015 (03F7) [23:49:23]Malloc new data [23:49:23]SetTLVBufToDocument err=0 [23:49:23]SetTLVBufToDocument err=0 [23:49:23]SetTLVBufToDocument err=0 [23:49:23]Processing tag 1130 (046A) [23:49:23]Load OK [23:49:23]SetTLVBufToDocument [23:49:23]Processing tag 1135 (046F) [23:49:23]Malloc new data [23:49:23]Processing tag 1201 (04B1) [23:49:23]Malloc new data [23:49:23]Processing tag 1136 (0470) [23:49:23]Malloc new data [23:49:23]Processing tag 1138 (0472) [23:49:23]Malloc new data [23:49:23]Processing tag 1024 (0400) [23:49:23]Load OK [23:49:23]SetTLVBufToDocument [23:49:23]Processing tag 1006 (03EE) [23:49:23]Load OK [23:49:23]SetTLVBufToDocument [23:49:23]Processing tag 1010 (03F2) [23:49:23]Malloc new data [23:49:23]Processing tag 1011 (03F3) [23:49:23]Malloc new data [23:49:23]SetTLVBufToDocument err=0 [23:49:23]Processing tag 1006 (03EE) [23:49:23]Load OK [23:49:23]SetTLVBufToDocument [23:49:23]Processing tag 1010 (03F2) [23:49:23]Malloc new data [23:49:23]Processing tag 1011 (03F3) [23:49:23]Malloc new data [23:49:23]SetTLVBufToDocument err=0 [23:49:23]Processing tag 1007 (03EF) [23:49:23]Load OK [23:49:23]SetTLVBufToDocument [23:49:23]Processing tag 1014 (03F6) [23:49:23]Malloc new data [23:49:23]Processing tag 1015 (03F7) [23:49:23]Malloc new data [23:49:23]SetTLVBufToDocument err=0 [23:49:23]Processing tag 1007 (03EF) [23:49:23]Load OK [23:49:23]SetTLVBufToDocument [23:49:23]Processing tag 1014 (03F6) [23:49:23]Malloc new data [23:49:23]Processing tag 1015 (03F7) [23:49:23]Malloc new data [23:49:23]SetTLVBufToDocument err=0 [23:49:23]Processing tag 1007 (03EF) [23:49:23]Load OK [23:49:23]SetTLVBufToDocument [23:49:23]Processing tag 1014 (03F6) [23:49:23]Malloc new data [23:49:23]Processing tag 1015 (03F7) [23:49:23]Malloc new data [23:49:23]SetTLVBufToDocument err=0 [23:49:23]Processing tag 1007 (03EF) [23:49:23]Load OK [23:49:23]SetTLVBufToDocument [23:49:23]Processing tag 1014 (03F6) [23:49:23]Malloc new data [23:49:23]Processing tag 1015 (03F7) [23:49:23]Malloc new data [23:49:23]SetTLVBufToDocument err=0 [23:49:23]Processing tag 1007 (03EF) [23:49:23]Load OK [23:49:23]SetTLVBufToDocument [23:49:23]Processing tag 1014 (03F6) [23:49:23]Malloc new data [23:49:23]Processing tag 1015 (03F7) [23:49:23]Malloc new data [23:49:23]SetTLVBufToDocument err=0 [23:49:23]Processing tag 1007 (03EF) [23:49:23]Load OK [23:49:23]SetTLVBufToDocument [23:49:23]Processing tag 1014 (03F6) [23:49:23]Malloc new data [23:49:23]Processing tag 1015 (03F7) [23:49:23]Malloc new data [23:49:23]SetTLVBufToDocument err=0 [23:49:23]Processing tag 1007 (03EF) [23:49:23]Load OK [23:49:23]SetTLVBufToDocument [23:49:23]Processing tag 1014 (03F6) [23:49:23]Malloc new data [23:49:23]Processing tag 1015 (03F7) [23:49:23]Malloc new data [23:49:23]SetTLVBufToDocument err=0 [23:49:23]SetTLVBufToDocument err=0 [23:49:23]SetTLVBufToDocument err=0 [23:49:23]Processing tag 1131 (046B) [23:49:23]Load OK [23:49:23]SetTLVBufToDocument [23:49:23]Processing tag 1135 (046F) [23:49:23]Malloc new data [23:49:23]Processing tag 1201 (04B1) [23:49:23]Malloc new data [23:49:23]Processing tag 1136 (0470) [23:49:23]Malloc new data [23:49:23]Processing tag 1138 (0472) [23:49:23]Malloc new data [23:49:23]Processing tag 1024 (0400) [23:49:23]Load OK [23:49:23]SetTLVBufToDocument [23:49:23]Processing tag 1006 (03EE) [23:49:23]Load OK [23:49:23]SetTLVBufToDocument [23:49:23]Processing tag 1010 (03F2) [23:49:23]Malloc new data [23:49:23]Processing tag 1011 (03F3) [23:49:23]Malloc new data [23:49:23]SetTLVBufToDocument err=0 [23:49:23]Processing tag 1006 (03EE) [23:49:23]Load OK [23:49:23]SetTLVBufToDocument [23:49:23]Processing tag 1010 (03F2) [23:49:23]Malloc new data [23:49:23]Processing tag 1011 (03F3) [23:49:23]Malloc new data [23:49:23]SetTLVBufToDocument err=0 [23:49:23]Processing tag 1007 (03EF) [23:49:23]Load OK [23:49:23]SetTLVBufToDocument [23:49:23]Processing tag 1014 (03F6) [23:49:23]Malloc new data [23:49:23]Processing tag 1015 (03F7) [23:49:23]Malloc new data [23:49:23]SetTLVBufToDocument err=0 [23:49:23]Processing tag 1007 (03EF) [23:49:23]Load OK [23:49:23]SetTLVBufToDocument [23:49:23]Processing tag 1014 (03F6) [23:49:24]Malloc new data [23:49:24]Processing tag 1015 (03F7) [23:49:24]Malloc new data [23:49:24]SetTLVBufToDocument err=0 [23:49:24]Processing tag 1007 (03EF) [23:49:24]Load OK [23:49:24]SetTLVBufToDocument [23:49:24]Processing tag 1014 (03F6) [23:49:24]Malloc new data [23:49:24]Processing tag 1015 (03F7) [23:49:24]Malloc new data [23:49:24]SetTLVBufToDocument err=0 [23:49:24]Processing tag 1007 (03EF) [23:49:24]Load OK [23:49:24]SetTLVBufToDocument [23:49:24]Processing tag 1014 (03F6) [23:49:24]Malloc new data [23:49:24]Processing tag 1015 (03F7) [23:49:24]Malloc new data [23:49:24]SetTLVBufToDocument err=0 [23:49:24]Processing tag 1007 (03EF) [23:49:24]Load OK [23:49:24]SetTLVBufToDocument [23:49:24]Processing tag 1014 (03F6) [23:49:24]Malloc new data [23:49:24]Processing tag 1015 (03F7) [23:49:24]Malloc new data [23:49:24]SetTLVBufToDocument err=0 [23:49:24]Processing tag 1007 (03EF) [23:49:24]Load OK [23:49:24]SetTLVBufToDocument [23:49:24]Processing tag 1014 (03F6) [23:49:24]Malloc new data [23:49:24]Processing tag 1015 (03F7) [23:49:24]Malloc new data [23:49:24]SetTLVBufToDocument err=0 [23:49:24]Processing tag 1007 (03EF) [23:49:24]Load OK [23:49:24]SetTLVBufToDocument [23:49:24]Processing tag 1014 (03F6) [23:49:24]Malloc new data [23:49:24]Processing tag 1015 (03F7) [23:49:24]Malloc new data [23:49:24]SetTLVBufToDocument err=0 [23:49:24]SetTLVBufToDocument err=0 [23:49:24]SetTLVBufToDocument err=0 [23:49:24]Processing tag 1132 (046C) [23:49:24]Load OK [23:49:24]SetTLVBufToDocument [23:49:24]Processing tag 1135 (046F) [23:49:24]Malloc new data [23:49:24]Processing tag 1201 (04B1) [23:49:24]Malloc new data [23:49:24]Processing tag 1136 (0470) [23:49:24]Malloc new data [23:49:24]Processing tag 1138 (0472) [23:49:24]Malloc new data [23:49:24]Processing tag 1024 (0400) [23:49:24]Load OK [23:49:24]SetTLVBufToDocument [23:49:24]Processing tag 1006 (03EE) [23:49:24]Load OK [23:49:24]SetTLVBufToDocument [23:49:24]Processing tag 1010 (03F2) [23:49:24]Malloc new data [23:49:24]Processing tag 1011 (03F3) [23:49:24]Malloc new data [23:49:24]SetTLVBufToDocument err=0 [23:49:24]Processing tag 1006 (03EE) [23:49:24]Load OK [23:49:24]SetTLVBufToDocument [23:49:24]Processing tag 1010 (03F2) [23:49:24]Malloc new data [23:49:24]Processing tag 1011 (03F3) [23:49:24]Malloc new data [23:49:24]SetTLVBufToDocument err=0 [23:49:24]Processing tag 1007 (03EF) [23:49:24]Load OK [23:49:24]SetTLVBufToDocument [23:49:24]Processing tag 1014 (03F6) [23:49:24]Malloc new data [23:49:24]Processing tag 1015 (03F7) [23:49:24]Malloc new data [23:49:24]SetTLVBufToDocument err=0 [23:49:24]Processing tag 1007 (03EF) [23:49:24]Load OK [23:49:24]SetTLVBufToDocument [23:49:24]Processing tag 1014 (03F6) [23:49:24]Malloc new data [23:49:24]Processing tag 1015 (03F7) [23:49:24]Malloc new data [23:49:24]SetTLVBufToDocument err=0 [23:49:24]Processing tag 1007 (03EF) [23:49:24]Load OK [23:49:24]SetTLVBufToDocument [23:49:24]Processing tag 1014 (03F6) [23:49:24]Malloc new data [23:49:24]Processing tag 1015 (03F7) [23:49:24]Malloc new data [23:49:24]SetTLVBufToDocument err=0 [23:49:24]Processing tag 1007 (03EF) [23:49:24]Load OK [23:49:24]SetTLVBufToDocument [23:49:24]Processing tag 1014 (03F6) [23:49:24]Malloc new data [23:49:24]Processing tag 1015 (03F7) [23:49:24]Malloc new data [23:49:24]SetTLVBufToDocument err=0 [23:49:24]Processing tag 1007 (03EF) [23:49:24]Load OK [23:49:24]SetTLVBufToDocument [23:49:24]Processing tag 1014 (03F6) [23:49:24]Malloc new data [23:49:24]Processing tag 1015 (03F7) [23:49:24]Malloc new data [23:49:24]SetTLVBufToDocument err=0 [23:49:24]Processing tag 1007 (03EF) [23:49:24]Load OK [23:49:24]SetTLVBufToDocument [23:49:24]Processing tag 1014 (03F6) [23:49:24]Malloc new data [23:49:24]Processing tag 1015 (03F7) [23:49:24]Malloc new data [23:49:24]SetTLVBufToDocument err=0 [23:49:24]Processing tag 1007 (03EF) [23:49:24]Load OK [23:49:24]SetTLVBufToDocument [23:49:24]Processing tag 1014 (03F6) [23:49:24]Malloc new data [23:49:24]Processing tag 1015 (03F7) [23:49:24]Malloc new data [23:49:24]SetTLVBufToDocument err=0 [23:49:24]SetTLVBufToDocument err=0 [23:49:24]SetTLVBufToDocument err=0 [23:49:24]Processing tag 1133 (046D) [23:49:24]Malloc new data [23:49:24]SetTLVBufToDocument err=0 [23:49:24]Processing tag 1077 (0435) [23:49:24]Malloc new data [23:49:24]SetTLVBufToDocument err=0 [23:49:24]Malloc new data [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 BF 00 80 13 03 00 00 00 00 00 3E [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 BF 00 00 C1 04 85 04 BD 04 6E 04 04 00 A3 A0 00 00 69 04 A0 00 6F 04 04 00 09 A0 00 00 B1 04 04 00 85 EA 40 37 70 04 04 00 B0 12 E8 31 72 04 04 00 D5 D7 58 05 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 4D 05 DE 05 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 20 17 7D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF OFD Sender: No OFD packet to send [23:49:24]03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 9A 00 00 00 B1 04 03 00 54 D5 4E 70 04 03 00 58 C9 42 72 04 03 00 FC 0B 0C 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 13 5F 08 EF 03 09 00 F6 03 90 00 E7 [23:49:25]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 A3 A0 00 00 69 04 A0 00 6F 04 04 00 09 A0 00 00 B1 04 04 00 85 EA 40 37 70 04 04 00 B0 12 E8 31 72 04 04 00 D5 D7 58 05 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 4D 05 DE 05 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 20 17 7D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 9A 00 00 00 B1 04 03 00 54 D5 4E 70 04 03 00 58 C9 42 72 04 03 00 FC 0B 0C 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 13 5F 08 EF 03 09 00 F6 03 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 C0 00 80 17 00 00 00 00 00 00 40 [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 C0 00 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 A0 [23:49:25]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 [23: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 C1 00 80 17 00 00 00 00 00 00 41 [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 C1 00 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 E1 [23:49:26]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 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: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 C2 00 80 17 00 00 00 00 00 00 42 [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 = 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 C2 00 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 C7 [23:49:27]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [23: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 C3 00 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 = 219! [23:49:28]Read from MH i2c: E2 [23:49:28]MH_I2C_Read... [23:49:28]Read from MH i2c: E2 DE 00 [23:49:28]MH_I2C_Read... [23:49:28]Read from MH i2c: E2 DE 00 C3 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 22 [23:49:28]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:49:28]wFMCommunicate OK [23:49:28]SAM_PROTO_GetFMData done [23:49:28]Malloc new data [23:49:28]Malloc new data [23:49:29]Malloc new data [23:49:29]Malloc new data [23:49:29]KKMLoadAndSignCloseShiftData err=0 [23:49:29]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Ахмадалиева М. 29.07.2024 23:49 Смена: 427 РНМ: 0000000000092626 ЗНМ: 0300000053 СНО: Общий режим Чеков за смену: 166 ФД за смену: 168 Всего чеков: 166 ИТОГИ ПРИХОД Чеков: 165 Общий итог: 28057.00 Итого наличными: 24524.00 Итого безнал.: 3533.00 НДС 0% : 0.00 НДС 12% : 2979.33 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 248.15 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 1 Общий итог: 445.00 Итого наличными: 445.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 47.26 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 3.93 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 24079.00 НС Приход: 9270012.21 НС Возвр.Прихода: 51664.20 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 41978 ФМ: 0000000000874958 ФПД: 222365921314608 [23:49:29]StoreToDocumentArchive [23:49:29]shift 427 fd 41978 [23:49:29]save to /storage/0427/doc_00041978 [23:49:29]save last doc name /storage/0427/doc_00041978 to /storage/kkm_last_doc_name [23:49:29]save OK [23:49:29]Clear old archive folders... [23:49:29]Remove dir /storage/0266 [23:49:29]opendir ok [23:49:29]file . [23:49:29]file .. [23:49:29]file doc_1722296883 [23:49:29]remove file /storage/0266/doc_1722296883 [23:49:29]remove dir /storage/0266 [23:49:29]NVStorageSaveData kkm_registers [23:49:29]File name is /storage/kkm_registers [23:49:29]Write 24 bytes [23:49:29]NVStorageSaveData done [23:49:29]NVStorageSaveData kkm_registers [23:49:29]File name is /storage/kkm_registers [23:49:29]Write 24 bytes [23:49:29]NVStorageSaveData done [23:49:29]ProcessDocumentItem done err = 0, tmpTLVsize=1389 [23:49:29]tlvbuf is 006E24C0 [23:49:29]SAM_PROTO_ClearQueue [23:49:29]wFMCommunicate request_size=4 [23:49:29]MH_SAM_APDU [23:49:29]CAPDU: 80 09 00 00 [23:49:29]Write to MH i2c: E2 08 00 C4 00 80 09 00 00 00 00 00 00 36 [23:49:29]Write i2c OK [23:49:29]MH_I2C_Read... [23:49:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:49:29]Read from MH i2c: E2 [23:49:29]MH_I2C_Read... [23:49:29]Read from MH i2c: E2 03 00 [23:49:29]MH_I2C_Read... [23:49:29]Read from MH i2c: E2 03 00 C4 00 00 90 00 38 [23:49:29]RAPDU: 90 00 [23:49:29]wFMCommunicate OK [23:49:29]SAM_PROTO_ClearQueue done [23:49:29]KKMCreateOFDPacket [23:49:29]OFDProtocolAddRootSTLVToBuf [23:49:29]FM_MakeSignedData [23:49:29]FM_MakeSignedData [23:49:29]SAM_PROTO_SignData [23:49:29]wFMCommunicate request_size=4 [23:49:29]MH_SAM_APDU [23:49:29]CAPDU: 80 0D 01 02 [23:49:29]Write to MH i2c: E2 08 00 C5 00 80 0D 01 02 00 00 00 00 3E [23:49:29]Write i2c OK [23:49:29]MH_I2C_Read... [23:49:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:49:29]Read from MH i2c: E2 [23:49:29]MH_I2C_Read... [23:49:29]Read from MH i2c: E2 03 00 [23:49:29]MH_I2C_Read... [23:49:29]Read from MH i2c: E2 03 00 C5 00 00 90 00 39 [23:49:29]RAPDU: 90 00 [23:49:29]wFMCommunicate OK [23:49:29]wFMCommunicate request_size=255 [23:49:29]MH_SAM_APDU [23:49:29]CAPDU: 80 0D 02 02 FA 05 00 6D 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 1B 00 D0 90 D1 85 D0 BC D0 B0 D0 B4 D0 B0 D0 BB D0 B8 D0 B5 D0 B2 D0 B0 20 D0 9C 2E 20 F4 03 04 00 7D 2A A8 66 0E 04 04 00 AB 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 5E 04 04 00 A6 00 00 00 57 04 04 00 A8 00 00 00 AA 04 D9 04 6E 04 04 00 A6 00 00 00 69 04 A2 00 6F 04 04 00 A5 00 00 00 B1 04 03 00 C4 CF 2A 70 04 03 00 B0 6B 25 72 04 03 00 14 64 05 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 CD 8B 04 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 [23:49:29]Write to MH i2c: E2 02 01 C6 00 80 0D 02 02 FA 00 05 00 6D 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 1B 00 D0 90 D1 85 D0 BC D0 B0 D0 B4 D0 B0 D0 BB D0 B8 D0 B5 D0 B2 D0 B0 20 D0 9C 2E 20 F4 03 04 00 7D 2A A8 66 0E 04 04 00 AB 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 5E 04 04 00 A6 00 00 00 57 04 04 00 A8 00 00 00 AA 04 D9 04 6E 04 04 00 A6 00 00 00 69 04 A2 00 6F 04 04 00 A5 00 00 00 B1 04 03 00 C4 CF 2A 70 04 03 00 B0 6B 25 72 04 03 00 14 64 05 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 CD 8B 04 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 OFD Sender: No OFD packet to send [23:49:29]0A 00 F6 00 00 BF [23:49:29]Write i2c OK [23:49:29]MH_I2C_Read... [23:49:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:49:30]Read from MH i2c: E2 [23:49:30]MH_I2C_Read... [23:49:30]Read from MH i2c: E2 03 00 [23:49:30]MH_I2C_Read... [23:49:30]Read from MH i2c: E2 03 00 C6 00 00 90 00 3A [23:49:30]RAPDU: 90 00 [23:49:30]wFMCommunicate OK [23:49:30]wFMCommunicate request_size=255 [23:49:30]MH_SAM_APDU [23:49:30]CAPDU: 80 0D 02 02 FA 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 EF 60 6A 04 9D 00 6F 04 04 00 01 00 00 00 B1 04 02 00 D4 AD 70 04 02 00 D4 AD 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 76 12 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 89 01 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 [23:49:30]Write to MH i2c: E2 02 01 C7 00 80 0D 02 02 FA 00 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 EF 60 6A 04 9D 00 6F 04 04 00 01 00 00 00 B1 04 02 00 D4 AD 70 04 02 00 D4 AD 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 76 12 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 89 01 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 00 00 29 [23:49:30]Write i2c OK [23:49:30]MH_I2C_Read... [23:49:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:49:31]Read from MH i2c: E2 [23:49:31]MH_I2C_Read... [23:49:31]Read from MH i2c: E2 03 00 [23:49:31]MH_I2C_Read... [23:49:31]Read from MH i2c: E2 03 00 C7 00 00 90 00 3B [23:49:31]RAPDU: 90 00 [23:49:31]wFMCommunicate OK [23:49:31]wFMCommunicate request_size=255 [23:49:31]MH_SAM_APDU [23:49:31]CAPDU: 80 0D 02 02 FA 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 [23:49:31]Write to MH i2c: E2 02 01 C8 00 80 0D 02 02 FA 00 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 00 00 FA [23:49:31]Write i2c OK [23:49:31]MH_I2C_Read... [23:49:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:49:32]Read from MH i2c: E2 [23:49:32]MH_I2C_Read... [23:49:32]Read from MH i2c: E2 03 00 [23:49:32]MH_I2C_Read... [23:49:32]Read from MH i2c: E2 03 00 C8 00 00 90 00 3C [23:49:32]RAPDU: 90 00 [23:49:32]wFMCommunicate OK [23:49:32]wFMCommunicate request_size=255 [23:49:32]MH_SAM_APDU [23:49:32]CAPDU: 80 0D 02 02 FA 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 [23:49:32]Write to MH i2c: E2 02 01 C9 00 80 0D 02 02 FA 00 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 00 00 1A [23:49:32]Write i2c OK [23:49:32]MH_I2C_Read... [23:49:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:49:33]Read from MH i2c: E2 [23:49:33]MH_I2C_Read... [23:49:33]Read from MH i2c: E2 03 00 [23:49:33]MH_I2C_Read... [23:49:33]Read from MH i2c: E2 03 00 C9 00 00 90 00 3D [23:49:33]RAPDU: 90 00 [23:49:33]wFMCommunicate OK [23:49:33]wFMCommunicate request_size=255 [23:49:33]MH_SAM_APDU [23:49:33]CAPDU: 80 0D 02 02 FA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 [23:49:33]Write to MH i2c: E2 02 01 CA 00 80 0D 02 02 FA 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 00 D4 [23:49:33]Write i2c OK [23:49:33]MH_I2C_Read... [23:49:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:49:34]Read from MH i2c: E2 [23:49:34]MH_I2C_Read... [23:49:34]Read from MH i2c: E2 03 00 [23:49:34]MH_I2C_Read... [23:49:34]Read from MH i2c: E2 03 00 CA 00 00 90 00 3E [23:49:34]RAPDU: 90 00 [23:49:34]wFMCommunicate OK [23:49:34]wFMCommunicate request_size=148 [23:49:34]MH_SAM_APDU [23:49:34]CAPDU: 80 0D 02 02 8F 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 FA A3 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 35 04 06 00 CA 3D 99 C0 07 30 [23:49:34]Write to MH i2c: E2 97 00 CB 00 80 0D 02 02 8F 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 FA A3 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 35 04 06 00 CA 3D 99 C0 07 30 00 00 C1 [23:49:34]Write i2c OK [23:49:34]MH_I2C_Read... [23:49:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:49:34]Read from MH i2c: E2 [23:49:34]MH_I2C_Read... [23:49:34]Read from MH i2c: E2 03 00 [23:49:34]MH_I2C_Read... [23:49:34]Read from MH i2c: E2 03 00 CB 00 00 90 00 3F [23:49:34]RAPDU: 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 0D 03 02 [23:49:34]Write to MH i2c: E2 08 00 CC 00 80 0D 03 02 00 00 00 00 47 [23:49:34]Write i2c OK [23:49:34]MH_I2C_Read... [23:49:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:49:34]Read from MH i2c: E2 [23:49:34]MH_I2C_Read... [23:49:34]Read from MH i2c: E2 0B 00 [23:49:34]MH_I2C_Read... [23:49:34]Read from MH i2c: E2 0B 00 CC 00 00 D7 14 38 A0 56 8D E7 CE 90 00 A3 [23:49:35]RAPDU: D7 14 38 A0 56 8D E7 CE 90 00 [23:49:35]wFMCommunicate OK [23:49:35]SAM_PROTO_SignData done [23:49:35]FM_MakeSignedData done [23:49:35]CreateOFDProtocolMessage [23:49:35]wFMCommunicate request_size=4 [23:49:35]MH_SAM_APDU [23:49:35]CAPDU: 80 11 00 00 [23:49:35]Write to MH i2c: E2 08 00 CD 00 80 11 00 00 00 00 00 00 47 [23:49:35]OFD Sender: No OFD packet to send [23:49:35]Write i2c OK [23:49:35]MH_I2C_Read... [23:49:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:49:35]Read from MH i2c: E2 [23:49:35]MH_I2C_Read... [23:49:35]Read from MH i2c: E2 17 00 [23:49:35]MH_I2C_Read... [23:49:35]Read from MH i2c: E2 17 00 CD 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 A3 [23:49:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [23:49:35]wFMCommunicate OK [23:49:35]CreateOFDProtocolMessage done [23:49:35]OFDSenderStorePacket 41978 [23:49:35]StoreOFDPacket docnum=41978 [23:49:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 81 05 00 00 0D 8D 79 05 C1 CD 5A 05 01 00 05 00 6D 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 1B 00 D0 90 D1 85 D0 BC D0 B0 D0 B4 D0 B0 D0 BB D0 B8 D0 B5 D0 B2 D0 B0 20 D0 9C 2E 20 F4 03 04 00 7D 2A A8 66 0E 04 04 00 AB 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 5E 04 04 00 A6 00 00 00 57 04 04 00 A8 00 00 00 AA 04 D9 04 6E 04 04 00 A6 00 00 00 69 04 A2 00 6F 04 04 00 A5 00 00 00 B1 04 03 00 C4 CF 2A 70 04 03 00 B0 6B 25 72 04 03 00 14 64 05 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 CD 8B 04 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 EF 60 6A 04 9D 00 6F 04 04 00 01 00 00 00 B1 04 02 00 D4 AD 70 04 02 00 D4 AD 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 76 12 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 89 01 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 FA A3 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 35 04 06 00 CA 3D 99 C0 07 30 D7 14 38 A0 56 8D E7 CE [23:49:35]CheckFolder [23:49:35]dirname=/storage/ofd_packets [23:49:35]CheckFolder done [23:49:35]ProducePacketName [23:49:35]name=ofd_packets/00041978 [23:49:35]NVStorageSaveData ofd_packets/00041978 [23:49:35]File name is /storage/ofd_packets/00041978 [23:49:35]Write 1439 bytes [23:49:35]NVStorageSaveData done [23:49:35]OFDSenderStorePacket done [23:49:35]KKMCreateOFDPacket done [23:49:35]NVStorageSaveData kkm_last_timestamp [23:49:35]File name is /storage/kkm_last_timestamp [23:49:35]Write 4 bytes [23:49:35]NVStorageSaveData done [23:49:35]ExternCall_PrintAddStr [23:49:35]wPrintStart [23:49:35]Write to MH i2c: 01 00 00 CE 00 CE [23:49:35]OFD Sender: Processing packet 41978 [packets to send 57, broken 56] [23:49:35]ProducePacketName [23:49:35]name=ofd_packets/00041978 [23:49:35]OFD Sender: To server: pG, [23:49:35]CommunicateWithHost lk.salyk.kg:30040 [23:49:35]ConnectInit lk.salyk.kg [23:49:35]Write i2c OK [23:49:35]MH_I2C_Read... [23:49:35]Read from MH i2c: 01 [23:49:35]MH_I2C_Read... [23:49:35]Read from MH i2c: 01 07 00 [23:49:35]MH_I2C_Read... [23:49:35]Read from MH i2c: 01 07 00 CE 00 00 00 00 00 00 FF 0F E3 [23:49:35]RasterBufferAndPrint [23:49:35]line Отчет о закрытии смены [23:49:35]line ФФД: 1.0 [23:49:35]line ИНН: 02508201610067 [23:49:35]line Кассир: Ахмадалиева М. [23:49:35]line 29.07.2024 23:49 [23:49:35]line Смена: 427 [23:49:35]line РНМ: 0000000000092626 [23:49:35]line ЗНМ: 0300000053 [23:49:35]line СНО: Общий режим [23:49:35]line Чеков за смену: 166 [23:49:35]line ФД за смену: 168 [23:49:35]line Всего чеков: 166 [23:49:35]line ИТОГИ ПРИХОД [23:49:35]line Чеков: 165 [23:49:35]line Общий итог: 28057.00 [23:49:35]line Итого наличными: 24524.00 [23:49:35]line Итого безнал.: 3533.00 [23:49:35]line НДС 0% : 0.00 [23:49:35]line НДС 12% : 2979.33 [23:49:35]line НСП 0% : 0.00 [23:49:35]line НСП 1,50% : 0.00 [23:49:35]line НСП 0,50% : 0.00 [23:49:35]line НСП 5% : 0.00 [23:49:35]line НСП 3% : 0.00 [23:49:35]line НСП 2% : 0.00 [23:49:35]line НСП 1% : 248.15 [23:49:35]line ИТОГИ ВОЗВРАТ ПРИХОДА [23:49:35]line Чеков: 1 [23:49:35]line Общий итог: 445.00 [23:49:35]line Итого наличными: 445.00 [23:49:35]line Итого безнал.: 0.00 [23:49:35]line НДС 0% : 0.00 [23:49:35]line НДС 12% : 47.26 [23:49:35]line НСП 0% : 0.00 [23:49:35]line НСП 1,50% : 0.00 [23:49:35]line НСП 0,50% : 0.00 [23:49:35]line НСП 5% : 0.00 [23:49:35]line НСП 3% : 0.00 [23:49:35]line НСП 2% : 0.00 [23:49:35]line НСП 1% : 3.93 [23:49:35]line ИТОГИ РАСХОД [23:49:35]line Чеков: 0 [23:49:35]line Общий итог: 0.00 [23:49:35]line Итого наличными: 0.00 [23:49:35]line Итого безнал.: 0.00 [23:49:35]line НДС 0% : 0.00 [23:49:35]line НДС 12% : 0.00 [23:49:35]line НСП 0% : 0.00 [23:49:35]line НСП 1,50% : 0.00 [23:49:35]line НСП 0,50% : 0.00 [23:49:35]line НСП 5% : 0.00 [23:49:35]line НСП 3% : 0.00 [23:49:35]line НСП 2% : 0.00 [23:49:35]line НСП 1% : 0.00 [23:49:35]line ИТОГИ ВОЗВРАТ РАСХОДА [23:49:35]line Чеков: 0 [23:49:35]line Общий итог: 0.00 [23:49:35]line Итого наличными: 0.00 [23:49:35]line Итого безнал.: 0.00 [23:49:35]line НДС 0% : 0.00 [23:49:35]line НДС 12% : 0.00 [23:49:35]line НСП 0% : 0.00 [23:49:35]line НСП 1,50% : 0.00 [23:49:35]line НСП 0,50% : 0.00 [23:49:35]line НСП 5% : 0.00 [23:49:35]line НСП 3% : 0.00 [23:49:35]line НСП 2% : 0.00 [23:49:35]line НСП 1% : 0.00 [23:49:35]line Сумма внесений: 0.00 [23:49:35]line Сумма выплат: 0.00 [23:49:35]line Нал. в кассе: 24079.00 [23:49:35]line НС Приход: 9270012.21 [23:49:35]line НС Возвр.Прихода: 51664.20 [23:49:35]line НС Расход: 0.00 [23:49:35]line НС Возвр.Расхода: 0.00 [23:49:35]line ФД: 41978 [23:49:35]line ФМ: 0000000000874958 [23:49:35]line ФПД: 222365921314608 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 1F [23:47:59]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 [23:47:59]wFMCommunicate OK [23:47:59]wFMCommunicate request_size=4 [23:47:59]MH_SAM_APDU [23:47:59]CAPDU: 80 17 00 00 [23:47:59]Write to MH i2c: E2 08 00 40 00 80 17 00 00 00 00 00 00 C0 [23:47:59]Write i2c OK [23:47:59]MH_I2C_Read... [23:48:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:48:00]Read from MH i2c: E2 [23:48:00]MH_I2C_Read... [23:48:00]Read from MH i2c: E2 FD 00 [23:48:00]MH_I2C_Read... [23:48:00]Read from MH i2c: E2 FD 00 40 00 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 60 [23:48:00]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [23:48:00]wFMCommunicate OK [23:48:00]wFMCommunicate request_size=4 [23:48:00]MH_SAM_APDU [23:48:00]CAPDU: 80 17 00 00 [23:48:00]Write to MH i2c: E2 08 00 41 00 80 17 00 00 00 00 00 00 C1 [23:48:00]Write i2c OK [23:48:00]MH_I2C_Read... [23:48:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:48:00]Read from MH i2c: E2 [23:48:00]MH_I2C_Read... [23:48:00]Read from MH i2c: E2 FD 00 [23:48:00]MH_I2C_Read... [23:48:00]Read from MH i2c: E2 FD 00 41 00 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 46 [23:48:00]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [23:48:01]wFMCommunicate OK [23:48:01]wFMCommunicate request_size=4 [23:48:01]MH_SAM_APDU [23:48:01]CAPDU: 80 17 00 00 [23:48:01]Write to MH i2c: E2 08 00 42 00 80 17 00 00 00 00 00 00 C2 [23:48:01]Write i2c OK [23:48:01]MH_I2C_Read... [23:48:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [23:48:01]Read from MH i2c: E2 [23:48:01]MH_I2C_Read... [23:48:01]Read from MH i2c: E2 DE 00 [23:48:01]MH_I2C_Read... [23:48:01]Read from MH i2c: E2 DE 00 42 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 A1 [23:48:01]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:48:01]wFMCommunicate OK [23:48:01]SAM_PROTO_GetFMData done [23:48:01]FM_GetFMData:85 04 BD 04 6E 04 04 00 A3 A0 00 00 69 04 A0 00 6F 04 04 00 09 A0 00 00 B1 04 04 00 85 EA 40 37 70 04 04 00 B0 12 E8 31 72 04 04 00 D5 D7 58 05 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 4D 05 DE 05 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 20 17 7D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 9A 00 00 00 B1 04 03 00 54 D5 4E 70 04 03 00 58 C9 42 72 04 03 00 FC 0B 0C 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 13 5F 08 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 7F B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [23:49:35]written 0, free lines is 4095 [23:49:36]Write to MH i2c: 01 00 00 1E 01 1F [23:49:36]Write i2c OK [23:49:36]MH_I2C_Read... [23:49:36]Read from MH i2c: 01 [23:49:36]MH_I2C_Read... [23:49:36]Read from MH i2c: 01 07 00 [23:49:36]MH_I2C_Read... [23:49:36]Read from MH i2c: 01 07 00 1E 01 00 00 00 00 00 EE 0A 1E [23:49:36]RasterBufferAndPrint [23:49:36]line [23:49:36]line [23:49:36]line [23:49:36]line [23:49:36]line [23:49:36]written 0, free lines is 2882 [23:49:36]MH_Cut [23:49:36]Write to MH i2c: D1 01 00 25 01 01 F8 [23:49:36]Write i2c OK [23:49:36]MH_I2C_Read... [23:49:36]Read from MH i2c: D1 [23:49:36]MH_I2C_Read... [23:49:36]Read from MH i2c: D1 01 00 [23:49:36]MH_I2C_Read... [23:49:36]Read from MH i2c: D1 01 00 25 01 00 F7 [23:49:36]Write to MH i2c: 01 00 00 26 01 27 [23:49:36]Write i2c OK [23:49:36]MH_I2C_Read... [23:49:37]*** Cut start [23:49:37]*** Partial cut [23:49:37]*** CUTSNS_PIN = 1 [23:49:37]*** CUTSNS_PIN = 0 [23:49:38]*** Brake cut motor [23:49:38]Read from MH i2c: 01 [23:49:38]MH_I2C_Read... [23:49:38]*** Stop cut motor [23:49:38]*** Cut end [23:49:38]Read from MH i2c: 01 07 00 [23:49:38]MH_I2C_Read... [23:49:38]Read from MH i2c: 01 07 00 26 01 00 00 00 00 00 FF 0F 3C [23:49:38]process_action close_shift done [23:49:38]requested_data is exist [23:49:38]produce_requested_data [23:49:38]requested_item fd.num is exist - process it [23:49:38]SAM_PROTO_GetFieldsCounters [23:49:38]wFMCommunicate request_size=4 [23:49:38]MH_SAM_APDU [23:49:38]CAPDU: 80 13 00 00 [23:49:38]Write to MH i2c: E2 08 00 27 01 80 13 00 00 00 00 00 00 A4 [23:49:38]Write i2c OK [23:49:38]MH_I2C_Read... [23:49:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:49:38]Read from MH i2c: E2 [23:49:38]MH_I2C_Read... [23:49:38]Read from MH i2c: E2 62 00 [23:49:38]MH_I2C_Read... [23:49:38]Read from MH i2c: E2 62 00 27 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 FA A3 00 00 0E 04 04 00 AB 01 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 0A [23:49: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 FA A3 00 00 0E 04 04 00 AB 01 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:49:38]wFMCommunicate OK [23:49:38]SAM_PROTO_GetFieldsCounters done [23:49:38]requested_item shift.num is exist - process it [23:49:38]requested_item shift.opened is exist - process it [23:49:38]req_shift_opened [23:49:38]FM_GetShiftState [23:49:38]SAM_PROTO_GetShiftState [23:49:38]wFMCommunicate request_size=4 [23:49:38]MH_SAM_APDU [23:49:38]CAPDU: 80 13 01 00 [23:49:38]Write to MH i2c: E2 08 00 28 01 80 13 01 00 00 00 00 00 A6 [23:49:38]Write i2c OK [23:49:38]MH_I2C_Read... [23:49:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:49:39]Read from MH i2c: E2 [23:49:39]MH_I2C_Read... [23:49:39]Read from MH i2c: E2 0E 00 [23:49:39]MH_I2C_Read... [23:49:39]Read from MH i2c: E2 0E 00 28 01 00 09 00 00 00 00 00 00 00 00 00 00 90 00 B1 [23:49:39]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [23:49:39]wFMCommunicate OK [23:49:39]SAM_PROTO_GetShiftState done [23:49:39]FM_GetShiftState done [23:49:39]req_shift_opened done [23:49:39]requested_item shift.open_date is exist - process it [23:49:39]req_shift_open_date [23:49:39]FM_GetShiftState [23:49:39]SAM_PROTO_GetShiftState [23:49:39]wFMCommunicate request_size=4 [23:49:39]MH_SAM_APDU [23:49:39]CAPDU: 80 13 01 00 [23:49:39]Write to MH i2c: E2 08 00 29 01 80 13 01 00 00 00 00 00 A7 [23:49:39]Write i2c OK [23:49:39]MH_I2C_Read... [23:49:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:49:39]Read from MH i2c: E2 [23:49:39]MH_I2C_Read... [23:49:39]Read from MH i2c: E2 0E 00 [23:49:39]MH_I2C_Read... [23:49:39]Read from MH i2c: E2 0E 00 29 01 00 09 00 00 00 00 00 00 00 00 00 00 90 00 B2 [23:49:39]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [23:49:39]wFMCommunicate OK [23:49:39]SAM_PROTO_GetShiftState done [23:49:39]FM_GetShiftState done [23:49:39]req_shift_open_date done [23:49:39]produce_requested_data done [23:49:39]produce_requested_data return {"fd.num":41978,"shift.num":427,"shift.opened":0,"shift.open_date":0} [23:49:39]process_action_free close_shift [23:49:39]json_value_free [23:49:39]json_value_free done [23:49:39]process_json_proto returns [23:49:39]Send response to host [23:49:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":41978,"shift.num":427,"shift.opened":0,"shift.open_date":0}}} [23:49:39]free response buf [23:49:39]execute_script done [23:49:39]execute_script returns [23:49:39]free content buf [23:49:39]Sock 10.Close socket [23:49:39]Sock 10.Thread stoped [23:49:40]ConnectInit Can't take IP for lk.salyk.kg [23:49:40]CommunicateWithHost connect error [23:49:40]CommunicateWithHost err = -1 [23:49:40]OFD Sender: Server communicate error [23:49:45]OFD Sender: Processing packet 41978 [packets to send 57, broken 56] [23:49:45]ProducePacketName [23:49:45]name=ofd_packets/00041978 [23:49:45]OFD Sender: To server: pG, [23:49:45]CommunicateWithHost lk.salyk.kg:30040 [23:49:45]ConnectInit lk.salyk.kg [23:49:50]ConnectInit Can't take IP for lk.salyk.kg [23:49:50]CommunicateWithHost connect error [23:49:50]CommunicateWithHost err = -1 [23:49:50]OFD Sender: Server communicate error [23:49:55]OFD Sender: Processing packet 41978 [packets to send 57, broken 56] [23:49:55]ProducePacketName [23:49:55]name=ofd_packets/00041978 [23:49:55]OFD Sender: To server: pG, [23:49:55]CommunicateWithHost lk.salyk.kg:30040 [23:49:55]ConnectInit lk.salyk.kg [23:50:00]ConnectInit Can't take IP for lk.salyk.kg [23:50:00]CommunicateWithHost connect error [23:50:00]CommunicateWithHost err = -1 [23:50:00]OFD Sender: Server communicate error [23:50:05]OFD Sender: Processing packet 41978 [packets to send 57, broken 56] [23:50:05]ProducePacketName [23:50:05]name=ofd_packets/00041978 [23:50:05]OFD Sender: To server: pG, [23:50:05]CommunicateWithHost lk.salyk.kg:30040 [23:50:05]ConnectInit lk.salyk.kg [23:50:10]ConnectInit Can't take IP for lk.salyk.kg [23:50:10]CommunicateWithHost connect error [23:50:10]CommunicateWithHost err = -1 [23:50:10]OFD Sender: Server communicate error [23:50:15]OFD Sender: Processing packet 41978 [packets to send 57, broken 56] [23:50:15]ProducePacketName [23:50:15]name=ofd_packets/00041978 [23:50:15]OFD Sender: To server: pG, [23:50:15]CommunicateWithHost lk.salyk.kg:30040 [23:50:15]ConnectInit lk.salyk.kg [23:50:21]Connected sock=10 [23:50: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 35 38 81 05 00 00 0D 8D 79 05 C1 CD 5A 05 01 00 05 00 6D 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 1B 00 D0 90 D1 85 D0 BC D0 B0 D0 B4 D0 B0 D0 BB D0 B8 D0 B5 D0 B2 D0 B0 20 D0 9C 2E 20 F4 03 04 00 7D 2A A8 66 0E 04 04 00 AB 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 5E 04 04 00 A6 00 00 00 57 04 04 00 A8 00 00 00 AA 04 D9 04 6E 04 04 00 A6 00 00 00 69 04 A2 00 6F 04 04 00 A5 00 00 00 B1 04 03 00 C4 CF 2A 70 04 03 00 B0 6B 25 72 04 03 00 14 64 05 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 CD 8B 04 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 EF 60 6A 04 9D 00 6F 04 04 00 01 00 00 00 B1 04 02 00 D4 AD 70 04 02 00 D4 AD 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 76 12 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 89 01 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 FA A3 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 35 04 06 00 CA 3D 99 C0 07 30 D7 14 38 A0 56 8D E7 CE [23:50:28]recv_with_timeout no data received [23:50:28]CommunicateWithHost answer receiving error [23:50:28]CommunicateWithHost err = -3 [23:50:28]OFD Sender: Server communicate error [23:50:33]OFD Sender: Processing packet 41978 [packets to send 57, broken 56] [23:50:33]ProducePacketName [23:50:33]name=ofd_packets/00041978 [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:36]recv_with_timeout no data received [23:50:38]ConnectInit Can't take IP for lk.salyk.kg [23:50:38]CommunicateWithHost connect error [23:50:38]CommunicateWithHost err = -1 [23:50:38]OFD Sender: Server communicate error [23:50:43]OFD Sender: Processing packet 41978 [packets to send 57, broken 56] [23:50:43]ProducePacketName [23:50:43]name=ofd_packets/00041978 [23:50:43]OFD Sender: To server: pG, [23:50:43]CommunicateWithHost lk.salyk.kg:30040 [23:50:43]ConnectInit lk.salyk.kg [23:50:48]ConnectInit Can't take IP for lk.salyk.kg [23:50:48]CommunicateWithHost connect error [23:50:48]CommunicateWithHost err = -1 [23:50:48]OFD Sender: Server communicate error [23:50:53]OFD Sender: Processing packet 41978 [packets to send 57, broken 56] [23:50:53]ProducePacketName [23:50:53]name=ofd_packets/00041978 [23:50:53]OFD Sender: To server: pG, [23:50:53]CommunicateWithHost lk.salyk.kg:30040 [23:50:53]ConnectInit lk.salyk.kg [23:50:58]ConnectInit Can't take IP for lk.salyk.kg [23:50:58]CommunicateWithHost connect error [23:50:58]CommunicateWithHost err = -1 [23:50:58]OFD Sender: Server communicate error [23:51:03]OFD Sender: Processing packet 41978 [packets to send 57, broken 56] [23:51:03]ProducePacketName [23:51:03]name=ofd_packets/00041978 [23:51:03]OFD Sender: To server: pG, [23:51:03]CommunicateWithHost lk.salyk.kg:30040 [23:51:03]ConnectInit lk.salyk.kg [23:51:08]ConnectInit Can't take IP for lk.salyk.kg [23:51:08]CommunicateWithHost connect error [23:51:08]CommunicateWithHost err = -1 [23:51:08]OFD Sender: Server communicate error [23:51:13]recv_with_timeout no data received [23:51:13]OFD Sender: Processing packet 41978 [packets to send 57, broken 56] [23:51:13]ProducePacketName [23:51:13]name=ofd_packets/00041978 [23:51:13]OFD Sender: To server: pG, [23:51:13]CommunicateWithHost lk.salyk.kg:30040 [23:51:13]ConnectInit lk.salyk.kg [23:51:19]ConnectInit Can't take IP for lk.salyk.kg [23:51:19]CommunicateWithHost connect error [23:51:19]CommunicateWithHost err = -1 [23:51:19]OFD Sender: Server communicate error [23:51:24]OFD Sender: Processing packet 41978 [packets to send 57, broken 56] [23:51:24]ProducePacketName [23:51:24]name=ofd_packets/00041978 [23:51:24]OFD Sender: To server: pG, [23:51:24]CommunicateWithHost lk.salyk.kg:30040 [23:51:24]ConnectInit lk.salyk.kg [23:51:29]ConnectInit Can't take IP for lk.salyk.kg [23:51:29]CommunicateWithHost connect error [23:51:29]CommunicateWithHost err = -1 [23:51:29]OFD Sender: Server communicate error [23:51:34]OFD Sender: Processing packet 41978 [packets to send 57, broken 56] [23:51:34]ProducePacketName [23:51:34]name=ofd_packets/00041978 [23:51:34]OFD Sender: To server: pG, [23:51:34]CommunicateWithHost lk.salyk.kg:30040 [23:51:34]ConnectInit lk.salyk.kg [23:51:40]recv_with_timeout no data received [23:51:48]Connected sock=9 [23:51: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 35 38 81 05 00 00 0D 8D 79 05 C1 CD 5A 05 01 00 05 00 6D 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 1B 00 D0 90 D1 85 D0 BC D0 B0 D0 B4 D0 B0 D0 BB D0 B8 D0 B5 D0 B2 D0 B0 20 D0 9C 2E 20 F4 03 04 00 7D 2A A8 66 0E 04 04 00 AB 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 5E 04 04 00 A6 00 00 00 57 04 04 00 A8 00 00 00 AA 04 D9 04 6E 04 04 00 A6 00 00 00 69 04 A2 00 6F 04 04 00 A5 00 00 00 B1 04 03 00 C4 CF 2A 70 04 03 00 B0 6B 25 72 04 03 00 14 64 05 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 CD 8B 04 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 EF 60 6A 04 9D 00 6F 04 04 00 01 00 00 00 B1 04 02 00 D4 AD 70 04 02 00 D4 AD 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 76 12 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 89 01 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 FA A3 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 35 04 06 00 CA 3D 99 C0 07 30 D7 14 38 A0 56 8D E7 CE [23:51:55]recv_with_timeout no data received [23:51:55]CommunicateWithHost answer receiving error [23:51:55]CommunicateWithHost err = -3 [23:51:55]OFD Sender: Server communicate error [23:51:57]recv_with_timeout no data received [23:52:00]OFD Sender: Processing packet 41978 [packets to send 57, broken 56] [23:52:00]ProducePacketName [23:52:00]name=ofd_packets/00041978 [23:52:00]OFD Sender: To server: pG, [23:52:00]CommunicateWithHost lk.salyk.kg:30040 [23:52:00]ConnectInit lk.salyk.kg [23:52:04]Connected sock=9 [23:52: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 35 38 81 05 00 00 0D 8D 79 05 C1 CD 5A 05 01 00 05 00 6D 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 1B 00 D0 90 D1 85 D0 BC D0 B0 D0 B4 D0 B0 D0 BB D0 B8 D0 B5 D0 B2 D0 B0 20 D0 9C 2E 20 F4 03 04 00 7D 2A A8 66 0E 04 04 00 AB 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 5E 04 04 00 A6 00 00 00 57 04 04 00 A8 00 00 00 AA 04 D9 04 6E 04 04 00 A6 00 00 00 69 04 A2 00 6F 04 04 00 A5 00 00 00 B1 04 03 00 C4 CF 2A 70 04 03 00 B0 6B 25 72 04 03 00 14 64 05 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 CD 8B 04 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 EF 60 6A 04 9D 00 6F 04 04 00 01 00 00 00 B1 04 02 00 D4 AD 70 04 02 00 D4 AD 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 76 12 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 89 01 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 FA A3 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 35 04 06 00 CA 3D 99 C0 07 30 D7 14 38 A0 56 8D E7 CE [23:52:08]recv_with_timeout no data received [23:52: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 35 38 4F 00 00 00 55 D8 47 00 DC A3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 FA A3 00 00 F4 03 04 00 3C D7 A7 66 B6 04 01 00 00 D0 EA 6F 54 5A 67 89 3D [23:52:09]CommunicateWithHost err = 0 [23:52:09]CheckOFDResponse [23:52:09]1017 (14) - 77093643461234 [23:52:09]1041 (16) - 0000000000874958 [23:52:09]1040 (4) - 41978 [23:52:09]1012 (4) - 29.07.2024 17:54 [23:52:09]1206 (1) - 0 [23:52:09]OFD Sender: Remove packet 41978 [23:52:09]ProducePacketName [23:52:09]name=ofd_packets/00041978 [23:52:09]NVStorageDeleteData [23:52:09]OFD Sender: No OFD packet to send [23:52:14]OFD Sender: No OFD packet to send [23:52:19]OFD Sender: No OFD packet to send [23:52:24]OFD Sender: No OFD packet to send [23:52:29]OFD Sender: No OFD packet to send [23:52:34]OFD Sender: No OFD packet to send [23:52:39]OFD Sender: No OFD packet to send [23:52:41]recv_with_timeout no data received [23:52:44]OFD Sender: No OFD packet to send [23:52:49]OFD Sender: No OFD packet to send [23:52:54]recv_with_timeout no data received [23:52:54]OFD Sender: No OFD packet to send [23:52:59]OFD Sender: No OFD packet to send [23:53:04]OFD Sender: No OFD packet to send [23:53:09]OFD Sender: No OFD packet to send [23:53:14]recv_with_timeout no data received [23:53:14]OFD Sender: No OFD packet to send [23:53:19]OFD Sender: No OFD packet to send [23:53:24]OFD Sender: No OFD packet to send [23:53:29]OFD Sender: No OFD packet to send [23:53:34]OFD Sender: No OFD packet to send [23:53:39]OFD Sender: No OFD packet to send [23:53:44]OFD Sender: No OFD packet to send [23:53:47]recv_with_timeout no data received [23:53:49]OFD Sender: No OFD packet to send [23:53:54]OFD Sender: No OFD packet to send [23:53:59]OFD Sender: No OFD packet to send [23:54:00]recv_with_timeout no data received [23:54:04]OFD Sender: No OFD packet to send [23:54:09]OFD Sender: No OFD packet to send [23:54:14]OFD Sender: No OFD packet to send [23:54:19]OFD Sender: No OFD packet to send [23:54:22]recv_with_timeout no data received [23:54:24]OFD Sender: No OFD packet to send [23:54:29]OFD Sender: No OFD packet to send [23:54:34]OFD Sender: No OFD packet to send [23:54:39]OFD Sender: No OFD packet to send [23:54:44]OFD Sender: No OFD packet to send [23:54:49]OFD Sender: No OFD packet to send [23:54:54]OFD Sender: No OFD packet to send [23:54:59]OFD Sender: No OFD packet to send [23:55:04]OFD Sender: No OFD packet to send [23:55:06]recv_with_timeout no data received [23:55:09]OFD Sender: No OFD packet to send [23:55:14]OFD Sender: No OFD packet to send [23:55:19]OFD Sender: No OFD packet to send [23:55:24]OFD Sender: No OFD packet to send [23:55:29]OFD Sender: No OFD packet to send [23:55:34]OFD Sender: No OFD packet to send [23:55:38]recv_with_timeout no data received [23:55:39]OFD Sender: No OFD packet to send [23:55:44]OFD Sender: No OFD packet to send [23:55:49]OFD Sender: No OFD packet to send [23:55:54]OFD Sender: No OFD packet to send [23:55:59]OFD Sender: No OFD packet to send [23:56:04]OFD Sender: No OFD packet to send [23:56:07]recv_with_timeout no data received [23:56:09]OFD Sender: No OFD packet to send [23:56:14]OFD Sender: No OFD packet to send [23:56:19]OFD Sender: No OFD packet to send [23:56:24]OFD Sender: No OFD packet to send [23:56:29]recv_with_timeout no data received [23:56:29]OFD Sender: No OFD packet to send [23:56:34]OFD Sender: No OFD packet to send [23:56:39]OFD Sender: No OFD packet to send [23:56:44]OFD Sender: No OFD packet to send [23:56:49]OFD Sender: No OFD packet to send [23:56:55]OFD Sender: No OFD packet to send [23:57:00]OFD Sender: No OFD packet to send [23:57:05]OFD Sender: No OFD packet to send [23:57:10]OFD Sender: No OFD packet to send [23:57:15]OFD Sender: No OFD packet to send [23:57:16]recv_with_timeout no data received [23:57:20]OFD Sender: No OFD packet to send [23:57:25]OFD Sender: No OFD packet to send [23:57:27]recv_with_timeout no data received [23:57:30]OFD Sender: No OFD packet to send [23:57:35]OFD Sender: No OFD packet to send [23:57:40]OFD Sender: No OFD packet to send [23:57:45]OFD Sender: No OFD packet to send [23:57:50]OFD Sender: No OFD packet to send [23:57:55]OFD Sender: No OFD packet to send [23:58:00]OFD Sender: No OFD packet to send [23:58:05]OFD Sender: No OFD packet to send [23:58:10]OFD Sender: No OFD packet to send [23:58:15]OFD Sender: No OFD packet to send [23:58:20]OFD Sender: No OFD packet to send [23:58:25]OFD Sender: No OFD packet to send [23:58:30]OFD Sender: No OFD packet to send [23:58:30]recv_with_timeout no data received [23:58:35]OFD Sender: No OFD packet to send [23:58:40]OFD Sender: No OFD packet to send [23:58:45]OFD Sender: No OFD packet to send [23:58:50]OFD Sender: No OFD packet to send [23:48:05]requested_item fd.num is exist - process it [23:48:05]SAM_PROTO_GetFieldsCounters [23:48:05]wFMCommunicate request_size=4 [23:48:05]MH_SAM_APDU [23:48:05]CAPDU: 80 13 00 00 [23:48:05]Write to MH i2c: E2 08 00 98 00 80 13 00 00 00 00 00 00 14 [23:48:05]Write i2c OK [23:48:05]MH_I2C_Read... [23:48:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:48:05]Read from MH i2c: E2 [23:48:05]MH_I2C_Read... [23:48:05]Read from MH i2c: E2 62 00 [23:48:05]MH_I2C_Read... [23:48:05]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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 F9 A3 00 00 0E 04 04 00 AB 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 78 [23:48: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 F9 A3 00 00 0E 04 04 00 AB 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 [23:48:05]wFMCommunicate OK [23:48:05]SAM_PROTO_GetFieldsCounters done [23:48:05]requested_item shift.num is exist - process it [23:48:05]requested_item shift.opened is exist - process it [23:48:05]req_shift_opened [23:48:05]FM_GetShiftState [23:48:05]SAM_PROTO_GetShiftState [23:48:05]wFMCommunicate request_size=4 [23:48:05]MH_SAM_APDU [23:48:05]CAPDU: 80 13 01 00 [23:48:05]Write to MH i2c: E2 08 00 99 00 80 13 01 00 00 00 00 00 16 [23:48:05]Write i2c OK [23:48:05]MH_I2C_Read... [23:48:05]recv_with_timeout no data received [23:48:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:48:06]Read from MH i2c: E2 [23:48:06]MH_I2C_Read... [23:48:06]Read from MH i2c: E2 0E 00 [23:48:06]MH_I2C_Read... [23:48:06]Read from MH i2c: E2 0E 00 99 00 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 B2 [23:48:06]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [23:48:06]wFMCommunicate OK [23:48:06]SAM_PROTO_GetShiftState done [23:48:06]FM_GetShiftState done [23:48:06]req_shift_opened done [23:48:06]requested_item shift.open_date is exist - process it [23:48:06]req_shift_open_date [23:48:06]req_shift_open_date done [23:48:06]produce_requested_data done [23:48:06]produce_requested_data return {"fd.num":41977,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [23:48:06]process_action_free x_report [23:48:06]json_value_free [23:48:06]json_value_free done [23:48:06]process_json_proto returns [23:48:06]Send response to host [23:48:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":41977,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [23:48:06]free response buf [23:48:06]execute_script done [23:48:06]execute_script returns [23:48:06]free content buf [23:48:06]Sock 10.Close socket [23:48:06]Sock 10.Thread stoped [23:48:09]OFD Sender: No OFD packet to send [23:48:14]OFD Sender: No OFD packet to send [23:48:19]OFD Sender: No OFD packet to send [23:48:24]OFD Sender: No OFD packet to send [23:48:29]OFD Sender: No OFD packet to send [23:48:31]recv_with_timeout no data received [23:48:34]OFD Sender: No OFD packet to send [23:48:39]OFD Sender: No OFD packet to send [23:48:44]OFD Sender: No OFD packet to send [23:48:49]OFD Sender: No OFD packet to send [23:48:54]OFD Sender: No OFD packet to send [23:48:59]OFD Sender: No OFD packet to send [23:49:00]accept exits with 8 [23:49:00]New connection [23:49:00]New thread 3067587940 created [23:49:00]Thread 3067444580 joined [23:49:00]Waiting for new connection... [23:49:00] Sock 8.Parse request [23:49:00]Sock 8.Check first char [23:49:00]Sock 8.First char is OK [23:49:00]request: POST /json_proto HTTP/1.0 [23:49:00]Method: POST [23:49:00]URL: /json_proto [23:49:00]Method is POST - this is cgi request [23:49:00]url: /json_proto [23:49:00]query_string will be loaded in cgi processing [23:49:00]execute_cgi json_proto POST (null) [23:49:00]execute_cgi path=json_proto method=POST [23:49:00]POST find Content-Length [23:49:00]Host: 172.17.43.132:8080 [23:49:00]Content-Length: 215 [23:49:00]Content-Type: application/json [23:49:00] [23:49:00]POST finish read [23:49:00]Found Content-Length = 215 [23:49:00]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:00]execute_script... [23:49:00]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:00]POST & json_proto [23:49:00]process_json_proto [23:49:00]json parsed OK: [23:49:00]protocol is kg_v1.0 [23:49:00]action value=get_value [23:49:01]process_action get_value [23:49:01]cmd_get_value [23:49:01]process_action get_value done [23:49:01]requested_data is exist [23:49:01]produce_requested_data [23:49:01]requested_item kkm.sn is exist - process it [23:49:01]requested_item kkm.ver is exist - process it [23:49:01]requested_item fm.sn is exist - process it [23:49:01]wFMCommunicate request_size=4 [23:49:01]MH_SAM_APDU [23:49:01]CAPDU: 80 11 00 00 [23:49:01]Write to MH i2c: E2 08 00 9A 00 80 11 00 00 00 00 00 00 14 [23:49:01]Write i2c OK [23:49:01]MH_I2C_Read... [23:49:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:49:01]Read from MH i2c: E2 [23:49:01]MH_I2C_Read... [23:49:01]Read from MH i2c: E2 17 00 [23:49:01]MH_I2C_Read... [23:49:01]Read from MH i2c: E2 17 00 9A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 70 [23:49:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [23:49:01]wFMCommunicate OK [23:49:01]requested_item fd.num is exist - process it [23:49:01]SAM_PROTO_GetFieldsCounters [23:49:01]wFMCommunicate request_size=4 [23:49:01]MH_SAM_APDU [23:49:01]CAPDU: 80 13 00 00 [23:49:01]Write to MH i2c: E2 08 00 9B 00 80 13 00 00 00 00 00 00 17 [23:49:01]Write i2c OK [23:49:01]MH_I2C_Read... [23:49:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:49:01]Read from MH i2c: E2 [23:49:01]MH_I2C_Read... [23:49:01]Read from MH i2c: E2 62 00 [23:49:01]MH_I2C_Read... [23:49:01]Read from MH i2c: E2 62 00 9B 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 F9 A3 00 00 0E 04 04 00 AB 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 7B [23:49: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 F9 A3 00 00 0E 04 04 00 AB 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 [23:49:01]wFMCommunicate OK [23:49:01]SAM_PROTO_GetFieldsCounters done [23:49:01]requested_item shift.num is exist - process it [23:49:01]requested_item shift.opened is exist - process it [23:49:01]req_shift_opened [23:49:01]FM_GetShiftState [23:49:01]SAM_PROTO_GetShiftState [23:49:01]wFMCommunicate request_size=4 [23:49:01]MH_SAM_APDU [23:49:01]CAPDU: 80 13 01 00 [23:49:01]Write to MH i2c: E2 08 00 9C 00 80 13 01 00 00 00 00 00 19 [23:49:01]Write i2c OK [23:49:01]MH_I2C_Read... [23:49:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:49:01]Read from MH i2c: E2 [23:49:01]MH_I2C_Read... [23:49:01]Read from MH i2c: E2 0E 00 [23:49:01]MH_I2C_Read... [23:49:01]Read from MH i2c: E2 0E 00 9C 00 00 09 00 01 A8 DC A6 66 00 00 00 00 90 00 B5 [23:49:01]RAPDU: 09 00 01 A8 DC A6 66 00 00 00 00 90 00 [23:49:01]wFMCommunicate OK [23:49:01]SAM_PROTO_GetShiftState done [23:49:01]FM_GetShiftState done [23:49:01]req_shift_opened done [23:49:01]requested_item shift.open_date is exist - process it [23:49:01]req_shift_open_date [23:49:01]req_shift_open_date done [23:49:01]produce_requested_data done [23:49:01]produce_requested_data return {"kkm.sn":"0300000053","kkm.ver":"001","fm.sn":"0000000000874958","fd.num":41977,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496} [23:49:01]process_action_free get_value [23:49:01]json_value_free [23:49:01]json_value_free done [23:49:01]process_json_proto returns [23:49:01]Send response to host [23:49:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000053","kkm.ver":"001","fm.sn":"0000000000874958","fd.num":41977,"shift.num":427,"shift.opened":1,"shift.open_date":1722211496}}} [23:49:01]free response buf [23:49:01]execute_script done [23:49:01]execute_script returns [23:49:01]free content buf [23:49:01]Sock 8.Close socket [23:49:01]Sock 8.Thread stoped [23:49:01]accept exits with 10 [23:49:01]New connection [23:49:01]New thread 3067444580 created [23:49:01]Thread 3067587940 joined [23:49:01]Waiting for new connection... [23:49:01] Sock 10.Parse request [23:49:01]Sock 10.Check first char [23:49:01]Sock 10.First char is OK [23:49:01]request: POST /json_proto HTTP/1.0 [23:49:01]Method: POST [23:49:01]URL: /json_proto [23:58:55]OFD Sender: No OFD packet to send [23:59:00]OFD Sender: No OFD packet to send [23:59:05]OFD Sender: No OFD packet to send [23:59:10]OFD Sender: No OFD packet to send [23:59:15]OFD Sender: No OFD packet to send [23:59:20]OFD Sender: No OFD packet to send [23:59:25]OFD Sender: No OFD packet to send [23:59:30]OFD Sender: No OFD packet to send [23:59:35]OFD Sender: No OFD packet to send [23:59:40]OFD Sender: No OFD packet to send [23:59:45]OFD Sender: No OFD packet to send [23:59:50]OFD Sender: No OFD packet to send [23:59:55]OFD Sender: No OFD packet to send [00:00:00]OFD Sender: No OFD packet to send [00:00:01]recv_with_timeout no data received [00:00:05]OFD Sender: No OFD packet to send [00:00:10]OFD Sender: No OFD packet to send [00:00:15]OFD Sender: No OFD packet to send [00:00:20]OFD Sender: No OFD packet to send [00:00:25]OFD Sender: No OFD packet to send [00:00:30]OFD Sender: No OFD packet to send [00:00:35]OFD Sender: No OFD packet to send [00:00:40]OFD Sender: No OFD packet to send [00:00:45]OFD Sender: No OFD packet to send [00:00:50]OFD Sender: No OFD packet to send [00:00:54]recv_with_timeout no data received [00:00:55]OFD Sender: No OFD packet to send [00:01:00]OFD Sender: No OFD packet to send [00:01:05]OFD Sender: No OFD packet to send [00:01:10]OFD Sender: No OFD packet to send [00:01:15]OFD Sender: No OFD packet to send [00:01:20]OFD Sender: No OFD packet to send [00:01:25]OFD Sender: No OFD packet to send [00:01:30]OFD Sender: No OFD packet to send [00:01:35]OFD Sender: No OFD packet to send [00:01:40]OFD Sender: No OFD packet to send [00:01:45]OFD Sender: No OFD packet to send [00:01:50]OFD Sender: No OFD packet to send [00:01:55]OFD Sender: No OFD packet to send [00:02:00]OFD Sender: No OFD packet to send [00:02:05]OFD Sender: No OFD packet to send [00:02:10]OFD Sender: No OFD packet to send [00:02:15]OFD Sender: No OFD packet to send [00:02:20]OFD Sender: No OFD packet to send [00:02:25]OFD Sender: No OFD packet to send [00:02:30]OFD Sender: No OFD packet to send [00:02:35]OFD Sender: No OFD packet to send [00:02:40]OFD Sender: No OFD packet to send [00:02:45]OFD Sender: No OFD packet to send [00:02:50]OFD Sender: No OFD packet to send [00:02:55]OFD Sender: No OFD packet to send [00:03:00]OFD Sender: No OFD packet to send [00:03:05]OFD Sender: No OFD packet to send [00:03:10]OFD Sender: No OFD packet to send [00:03:15]OFD Sender: No OFD packet to send [00:03:20]OFD Sender: No OFD packet to send [00:03:25]OFD Sender: No OFD packet to send [00:03:30]OFD Sender: No OFD packet to send [00:03:35]OFD Sender: No OFD packet to send [00:03:40]OFD Sender: No OFD packet to send [00:03:45]OFD Sender: No OFD packet to send [00:03:50]OFD Sender: No OFD packet to send [00:03:55]OFD Sender: No OFD packet to send [00:04:00]OFD Sender: No OFD packet to send [00:04:05]OFD Sender: No OFD packet to send [00:04:10]OFD Sender: No OFD packet to send [00:04:15]OFD Sender: No OFD packet to send [00:04:20]OFD Sender: No OFD packet to send [00:04:23]recv_with_timeout no data received [00:04:25]OFD Sender: No OFD packet to send [00:04:30]OFD Sender: No OFD packet to send [00:04:35]OFD Sender: No OFD packet to send [00:04:40]OFD Sender: No OFD packet to send [00:04:45]OFD Sender: No OFD packet to send [00:04:50]OFD Sender: No OFD packet to send [00:04:55]OFD Sender: No OFD packet to send [00:05:00]OFD Sender: No OFD packet to send [00:05:05]OFD Sender: No OFD packet to send [00:05:10]OFD Sender: No OFD packet to send [00:05:15]OFD Sender: No OFD packet to send [00:05:20]OFD Sender: No OFD packet to send [00:05:25]OFD Sender: No OFD packet to send [00:05:30]OFD Sender: No OFD packet to send [00:05:35]OFD Sender: No OFD packet to send [00:05:40]OFD Sender: No OFD packet to send [00:05:45]OFD Sender: No OFD packet to send [00:05:50]OFD Sender: No OFD packet to send [00:05:55]OFD Sender: No OFD packet to send [00:06:00]OFD Sender: No OFD packet to send [00:06:03]recv_with_timeout no data received [00:06:05]OFD Sender: No OFD packet to send [00:06:10]OFD Sender: No OFD packet to send [00:06:15]OFD Sender: No OFD packet to send [00:06:20]OFD Sender: No OFD packet to send [00:06:25]OFD Sender: No OFD packet to send [00:06:25]recv_with_timeout no data received [00:06:30]OFD Sender: No OFD packet to send [00:06:35]OFD Sender: No OFD packet to send [00:06:40]OFD Sender: No OFD packet to send [00:06:45]OFD Sender: No OFD packet to send [00:06:46]recv_with_timeout no data received [00:06:50]OFD Sender: No OFD packet to send [00:06:55]OFD Sender: No OFD packet to send [00:07:00]OFD Sender: No OFD packet to send [00:07:05]OFD Sender: No OFD packet to send [00:07:10]OFD Sender: No OFD packet to send [00:07:15]OFD Sender: No OFD packet to send [00:07:20]OFD Sender: No OFD packet to send [00:07:25]OFD Sender: No OFD packet to send [00:07:30]OFD Sender: No OFD packet to send [00:07:35]OFD Sender: No OFD packet to send [00:07:40]OFD Sender: No OFD packet to send [00:07:45]OFD Sender: No OFD packet to send [00:07:50]OFD Sender: No OFD packet to send [00:07:55]OFD Sender: No OFD packet to send [00:08:00]OFD Sender: No OFD packet to send [00:08:05]OFD Sender: No OFD packet to send [00:08:10]OFD Sender: No OFD packet to send [00:08:15]OFD Sender: No OFD packet to send [00:08:20]OFD Sender: No OFD packet to send [00:08:22]recv_with_timeout no data received [00:08:25]OFD Sender: No OFD packet to send [00:08:30]OFD Sender: No OFD packet to send [00:08:34]recv_with_timeout no data received [00:08:35]OFD Sender: No OFD packet to send [00:08:40]OFD Sender: No OFD packet to send [00:08:45]OFD Sender: No OFD packet to send [00:08:46]recv_with_timeout no data received [00:08:50]OFD Sender: No OFD packet to send [00:08:55]OFD Sender: No OFD packet to send [00:09:00]OFD Sender: No OFD packet to send [00:09:02]recv_with_timeout no data received [00:09:05]OFD Sender: No OFD packet to send [00:09:10]OFD Sender: No OFD packet to send [00:09:15]OFD Sender: No OFD packet to send [00:09:20]OFD Sender: No OFD packet to send [00:09:25]OFD Sender: No OFD packet to send [00:09:30]OFD Sender: No OFD packet to send [00:09:31]recv_with_timeout no data received [00:09:35]OFD Sender: No OFD packet to send [00:09:40]OFD Sender: No OFD packet to send [00:09:42]recv_with_timeout no data received [00:09:45]OFD Sender: No OFD packet to send [00:09:50]OFD Sender: No OFD packet to send [00:09:55]OFD Sender: No OFD packet to send [00:10:00]OFD Sender: No OFD packet to send [00:10:05]OFD Sender: No OFD packet to send [00:10:10]OFD Sender: No OFD packet to send [00:10:13]accept exits with 8 [00:10:13]New connection [00:10:13]New thread 3067587940 created [00:10:13]Thread 3067444580 joined [00:10:13]Waiting for new connection... [00:10:13] Sock 8.Parse request [00:10:13]Sock 8.Check first char [00:10:13]Sock 8.First char is OK [00:10:13]request: POST /json_proto HTTP/1.0 [00:10:13]Method: POST [00:10:13]URL: /json_proto [00:10:13]Method is POST - this is cgi request [00:10:13]url: /json_proto [00:10:13]query_string will be loaded in cgi processing [00:10:13]execute_cgi json_proto POST (null) [00:10:13]execute_cgi path=json_proto method=POST [00:10:13]POST find Content-Length [00:10:13]Host: 172.17.43.132:8080 [00:10:13]Content-Length: 215 [00:10:13]Content-Type: application/json [00:10:13] [00:10:13]POST finish read [00:10:13]Found Content-Length = 215 [00:10:13]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:10:13]execute_script... [00:10:13]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:10:13]POST & json_proto [00:10:13]process_json_proto [00:10:13]json parsed OK: [00:10:13]protocol is kg_v1.0 [00:10:13]action value=get_value [00:10:13]process_action get_value [00:10:13]cmd_get_value [00:10:13]process_action get_value done [00:10:13]requested_data is exist [00:10:13]produce_requested_data [00:10:13]requested_item kkm.sn is exist - process it [00:10:13]requested_item kkm.ver is exist - process it [00:10:13]requested_item fm.sn is exist - process it [00:10:13]wFMCommunicate request_size=4 [00:10:13]MH_SAM_APDU [00:10:13]CAPDU: 80 11 00 00 [00:10:13]Write to MH i2c: E2 08 00 2A 01 80 11 00 00 00 00 00 00 A5 [00:10:13]Write i2c OK [00:10:13]MH_I2C_Read... [00:10:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:10:13]Read from MH i2c: E2 [00:10:13]MH_I2C_Read... [00:10:13]Read from MH i2c: E2 17 00 [00:10:13]MH_I2C_Read... [00:10:13]Read from MH i2c: E2 17 00 2A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 01 [00:10:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [00:10:13]wFMCommunicate OK [00:10:13]requested_item fd.num is exist - process it [00:10:13]SAM_PROTO_GetFieldsCounters [00:10:13]wFMCommunicate request_size=4 [00:10:13]MH_SAM_APDU [00:10:13]CAPDU: 80 13 00 00 [00:10:13]Write to MH i2c: E2 08 00 2B 01 80 13 00 00 00 00 00 00 A8 [00:10:13]Write i2c OK [00:10:13]MH_I2C_Read... [00:10:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:10:13]Read from MH i2c: E2 [00:10:13]MH_I2C_Read... [00:10:13]Read from MH i2c: E2 62 00 [00:10:13]MH_I2C_Read... [00:10:13]Read from MH i2c: E2 62 00 2B 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 FA A3 00 00 0E 04 04 00 AB 01 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 0E [00:10: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 FA A3 00 00 0E 04 04 00 AB 01 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:10:13]wFMCommunicate OK [00:10:13]SAM_PROTO_GetFieldsCounters done [00:10:13]requested_item shift.num is exist - process it [00:10:13]requested_item shift.opened is exist - process it [00:10:13]req_shift_opened [00:10:13]FM_GetShiftState [00:10:13]SAM_PROTO_GetShiftState [00:10:13]wFMCommunicate request_size=4 [00:10:13]MH_SAM_APDU [00:10:13]CAPDU: 80 13 01 00 [00:10:13]Write to MH i2c: E2 08 00 2C 01 80 13 01 00 00 00 00 00 AA [00:10:13]Write i2c OK [00:10:13]MH_I2C_Read... [00:10:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:10:13]Read from MH i2c: E2 [00:10:13]MH_I2C_Read... [00:10:13]Read from MH i2c: E2 0E 00 [00:10:13]MH_I2C_Read... [00:10:13]Read from MH i2c: E2 0E 00 2C 01 00 09 00 00 00 00 00 00 00 00 00 00 90 00 B5 [00:10:13]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:10:13]wFMCommunicate OK [00:10:13]SAM_PROTO_GetShiftState done [00:10:13]FM_GetShiftState done [00:10:13]req_shift_opened done [00:10:13]requested_item shift.open_date is exist - process it [00:10:13]req_shift_open_date [00:10:13]FM_GetShiftState [00:10:13]SAM_PROTO_GetShiftState [00:10:13]wFMCommunicate request_size=4 [00:10:13]MH_SAM_APDU [00:10:13]CAPDU: 80 13 01 00 [00:10:13]Write to MH i2c: E2 08 00 2D 01 80 13 01 00 00 00 00 00 AB [00:10:13]Write i2c OK [00:10:13]MH_I2C_Read... [00:10:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:10:13]Read from MH i2c: E2 [00:10:13]MH_I2C_Read... [00:10:13]Read from MH i2c: E2 0E 00 [00:10:13]MH_I2C_Read... [00:10:13]Read from MH i2c: E2 0E 00 2D 01 00 09 00 00 00 00 00 00 00 00 00 00 90 00 B6 [00:10:13]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:10:13]wFMCommunicate OK [00:10:13]SAM_PROTO_GetShiftState done [00:10:13]FM_GetShiftState done [00:10:13]req_shift_open_date done [00:10:13]produce_requested_data done [00:10:13]produce_requested_data return {"kkm.sn":"0300000053","kkm.ver":"001","fm.sn":"0000000000874958","fd.num":41978,"shift.num":427,"shift.opened":0,"shift.open_date":0} [00:10:13]process_action_free get_value [00:10:13]json_value_free [00:10:13]json_value_free done [00:10:13]process_json_proto returns [00:10:13]Send response to host [00:10:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000053","kkm.ver":"001","fm.sn":"0000000000874958","fd.num":41978,"shift.num":427,"shift.opened":0,"shift.open_date":0}}} [00:10:13]free response buf [00:10:13]execute_script done [00:10:13]execute_script returns [00:10:13]free content buf [00:10:13]Sock 8.Close socket [00:10:13]Sock 8.Thread stoped [00:10:13]accept exits with 9 [00:10:13]New connection [00:10:13]New thread 3067444580 created [00:10:13]Thread 3067587940 joined [00:10:13]Waiting for new connection... [00:10:13] Sock 9.Parse request [00:10:13]Sock 9.Check first char [00:10:13]Sock 9.First char is OK [00:10:13]request: POST /json_proto HTTP/1.0 [00:10:13]Method: POST [00:10:13]URL: /json_proto [00:10:13]Method is POST - this is cgi request [00:10:13]url: /json_proto [00:10:13]query_string will be loaded in cgi processing [00:10:13]execute_cgi json_proto POST (null) [00:10:13]execute_cgi path=json_proto method=POST [00:10:13]POST find Content-Length [00:10:13]Host: 172.17.43.132:8080 [00:10:13]Content-Length: 331 [00:10:13]Content-Type: application/json [00:10:13] [00:10:13]POST finish read [00:10:13]Found Content-Length = 331 [00:10: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" ] } } [00:10:13]execute_script... [00:10:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:10:14]POST & json_proto [00:10:14]process_json_proto [00:10:14]json parsed OK: [00:10:14]protocol is kg_v1.0 [00:10:14]action value=get_value [00:10:14]process_action get_value [00:10:14]cmd_get_value [00:10:14]process_action get_value done [00:10:14]requested_data is exist [00:10:14]produce_requested_data [00:10:14]requested_item fm.sale.total is exist - process it [00:10:14]SAM_PROTO_GetFMData [00:10:14]wFMCommunicate request_size=4 [00:10:14]MH_SAM_APDU [00:10:14]CAPDU: 80 13 03 00 [00:10:14]Write to MH i2c: E2 08 00 2E 01 80 13 03 00 00 00 00 00 AE [00:10:14]Write i2c OK [00:10:14]MH_I2C_Read... [00:10:14]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:10:14]Read from MH i2c: E2 [00:10:14]MH_I2C_Read... [00:10:14]Read from MH i2c: E2 FD 00 [00:10:14]MH_I2C_Read... [00:10:14]Read from MH i2c: E2 FD 00 2E 01 00 C1 04 85 04 BD 04 6E 04 04 00 A3 A0 00 00 69 04 A0 00 6F 04 04 00 09 A0 00 00 B1 04 04 00 85 EA 40 37 70 04 04 00 B0 12 E8 31 72 04 04 00 D5 D7 58 05 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 4D 05 DE 05 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 20 17 7D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 9A 00 00 00 B1 04 03 00 54 D5 4E 70 04 03 00 58 C9 42 72 04 03 00 FC 0B 0C 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 13 5F 08 EF 03 09 00 F6 03 90 00 57 [00:10:14]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 A3 A0 00 00 69 04 A0 00 6F 04 04 00 09 A0 00 00 B1 04 04 00 85 EA 40 37 70 04 04 00 B0 12 E8 31 72 04 04 00 D5 D7 58 05 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 4D 05 DE 05 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 20 17 7D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 9A 00 00 00 B1 04 03 00 54 D5 4E 70 04 03 00 58 C9 42 72 04 03 00 FC 0B 0C 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 13 5F 08 EF 03 09 00 F6 03 90 00 [00:10:14]wFMCommunicate OK [00:10:14]wFMCommunicate request_size=4 [00:10:14]MH_SAM_APDU [00:10:14]CAPDU: 80 17 00 00 [00:10:14]Write to MH i2c: E2 08 00 2F 01 80 17 00 00 00 00 00 00 B0 [00:10:14]Write i2c OK [00:10:14]MH_I2C_Read... [00:10:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:14]Read from MH i2c: E2 [00:10:14]MH_I2C_Read... [00:10:14]Read from MH i2c: E2 FD 00 [00:10:14]MH_I2C_Read... [00:10:14]Read from MH i2c: E2 FD 00 2F 01 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 10 [00:10:14]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 [00:10:14]wFMCommunicate OK [00:10:14]wFMCommunicate request_size=4 [00:10:14]MH_SAM_APDU [00:10:14]CAPDU: 80 17 00 00 [00:10:14]Write to MH i2c: E2 08 00 30 01 80 17 00 00 00 00 00 00 B1 [00:10:14]Write i2c OK [00:10:14]MH_I2C_Read... [00:10:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:15]Read from MH i2c: E2 [00:10:15]MH_I2C_Read... [00:10:15]Read from MH i2c: E2 FD 00 [00:10:15]MH_I2C_Read... [00:10:15]Read from MH i2c: E2 FD 00 30 01 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 51 [00:10:15]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [00:10:15]wFMCommunicate OK [00:10:15]wFMCommunicate request_size=4 [00:10:15]MH_SAM_APDU [00:10:15]CAPDU: 80 17 00 00 [00:10:15]Write to MH i2c: E2 08 00 31 01 80 17 00 00 00 00 00 00 B2 [00:10:15]Write i2c OK [00:10:15]MH_I2C_Read... [00:10:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:15]Read from MH i2c: E2 [00:10:15]MH_I2C_Read... [00:10:15]Read from MH i2c: E2 FD 00 [00:10:15]MH_I2C_Read... [00:10:15]Read from MH i2c: E2 FD 00 31 01 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 37 [00:10:15]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [00:10:15]wFMCommunicate OK [00:10:15]wFMCommunicate request_size=4 [00:10:15]MH_SAM_APDU [00:10:15]CAPDU: 80 17 00 00 [00:10:15]Write to MH i2c: E2 08 00 32 01 80 17 00 00 00 00 00 00 B3 [00:10:15]Write i2c OK [00:10:15]MH_I2C_Read... [00:10:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:10:15]Read from MH i2c: E2 [00:10:15]MH_I2C_Read... [00:10:15]Read from MH i2c: E2 DE 00 [00:10:15]MH_I2C_Read... [00:10:15]Read from MH i2c: E2 DE 00 32 01 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 92 [00:10:15]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:10:15]wFMCommunicate OK [00:10:15]SAM_PROTO_GetFMData done [00:10:15]requested_item fm.sale_refund.total is exist - process it [00:10:15]requested_item fm.buy.total is exist - process it [00:10:15]requested_item shift.sale.total is exist - process it [00:10:15]SAM_PROTO_GetShiftData [00:10:15]wFMCommunicate request_size=4 [00:10:15]MH_SAM_APDU [00:10:15]CAPDU: 80 13 02 00 [00:10:15]Write to MH i2c: E2 08 00 33 01 80 13 02 00 00 00 00 00 B2 [00:10:15]Write i2c OK [00:10:15]MH_I2C_Read... [00:10:15]OFD Sender: No OFD packet to send [00:10:16]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:10:16]Read from MH i2c: E2 [00:10:16]MH_I2C_Read... [00:10:16]Read from MH i2c: E2 FD 00 [00:10:16]MH_I2C_Read... [00:10:16]Read from MH i2c: E2 FD 00 33 01 00 B6 04 AA 04 B2 04 6E 04 04 00 A6 00 00 00 69 04 9B 00 6F 04 04 00 A5 00 00 00 B1 04 03 00 C4 CF 2A 70 04 03 00 B0 6B 25 72 04 03 00 14 64 05 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 CD 8B 04 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 EF 60 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 D4 AD 70 04 02 00 D4 AD 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 76 12 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 90 00 A2 [00:10:16]RAPDU: B6 04 AA 04 B2 04 6E 04 04 00 A6 00 00 00 69 04 9B 00 6F 04 04 00 A5 00 00 00 B1 04 03 00 C4 CF 2A 70 04 03 00 B0 6B 25 72 04 03 00 14 64 05 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 CD 8B 04 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 EF 60 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 D4 AD 70 04 02 00 D4 AD 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 76 12 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 90 00 [00:10:16]wFMCommunicate OK [00:10:16]wFMCommunicate request_size=4 [00:10:16]MH_SAM_APDU [00:10:16]CAPDU: 80 17 00 00 [00:10:16]Write to MH i2c: E2 08 00 34 01 80 17 00 00 00 00 00 00 B5 [00:10:16]Write i2c OK [00:10:16]MH_I2C_Read... [00:10:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:16]Read from MH i2c: E2 [00:10:16]MH_I2C_Read... [00:10:16]Read from MH i2c: E2 FD 00 [00:10:16]MH_I2C_Read... [00:10:16]Read from MH i2c: E2 FD 00 34 01 00 F6 03 01 00 01 F7 03 02 00 89 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 53 [00:10:16]RAPDU: F6 03 01 00 01 F7 03 02 00 89 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:10:16]wFMCommunicate OK [00:10:16]wFMCommunicate request_size=4 [00:10:16]MH_SAM_APDU [00:10:16]CAPDU: 80 17 00 00 [00:10:16]Write to MH i2c: E2 08 00 35 01 80 17 00 00 00 00 00 00 B6 [00:10:16]Write i2c OK [00:10:16]MH_I2C_Read... [00:10:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:16]Read from MH i2c: E2 [00:10:16]MH_I2C_Read... [00:10:16]Read from MH i2c: E2 FD 00 [00:10:16]MH_I2C_Read... [00:10:16]Read from MH i2c: E2 FD 00 35 01 00 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 76 [00:10:16]RAPDU: 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:10:16]wFMCommunicate OK [00:10:16]wFMCommunicate request_size=4 [00:10:16]MH_SAM_APDU [00:10:16]CAPDU: 80 17 00 00 [00:10:16]Write to MH i2c: E2 08 00 36 01 80 17 00 00 00 00 00 00 B7 [00:10:16]Write i2c OK [00:10:16]MH_I2C_Read... [00:10:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:17]Read from MH i2c: E2 [00:10:17]MH_I2C_Read... [00:10:17]Read from MH i2c: E2 FD 00 [00:10:17]MH_I2C_Read... [00:10:17]Read from MH i2c: E2 FD 00 36 01 00 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 90 00 26 [00:10:17]RAPDU: 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 90 00 [00:10:17]wFMCommunicate OK [00:10:17]wFMCommunicate request_size=4 [00:10:17]MH_SAM_APDU [00:10:17]CAPDU: 80 17 00 00 [00:10:17]Write to MH i2c: E2 08 00 37 01 80 17 00 00 00 00 00 00 B8 [00:10:17]Write i2c OK [00:10:17]MH_I2C_Read... [00:10:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 208! [00:10:17]Read from MH i2c: E2 [00:10:17]MH_I2C_Read... [00:10:17]Read from MH i2c: E2 D3 00 [00:10:17]MH_I2C_Read... [00:10:17]Read from MH i2c: E2 D3 00 37 01 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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A5 [00:10:17]RAPDU: 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:10:17]wFMCommunicate OK [00:10:17]SAM_PROTO_GetShiftData done [00:10:17]requested_item shift.sale.total_cash is exist - process it [00:10:17]requested_item shift.sale_refund.total is exist - process it [00:10:17]requested_item shift.sale_refund.total_cash is exist - process it [00:10:17]requested_item shift.buy.total is exist - process it [00:10:17]requested_item shift.buy.total_cash is exist - process it [00:10:17]produce_requested_data done [00:10:17]produce_requested_data return {"fm.sale.total":9270012.21,"fm.sale_refund.total":51664.20,"fm.buy.total":0.00,"shift.sale.total":28057.00,"shift.sale.total_cash":24524.00,"shift.sale_refund.total":445.00,"shift.sale_refund.total_cash":445.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:10:17]process_action_free get_value [00:10:17]json_value_free [00:10:17]json_value_free done [00:10:17]process_json_proto returns [00:10:17]Send response to host [00:10:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":9270012.21,"fm.sale_refund.total":51664.20,"fm.buy.total":0.00,"shift.sale.total":28057.00,"shift.sale.total_cash":24524.00,"shift.sale_refund.total":445.00,"shift.sale_refund.total_cash":445.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:10:17]free response buf [00:10:17]execute_script done [00:10:17]execute_script returns [00:10:17]free content buf [00:10:17]Sock 9.Close socket [00:10:17]Sock 9.Thread stoped [00:10:17]accept exits with 8 [00:10:17]New connection [00:10:17]New thread 3067587940 created [00:10:17]Thread 3067444580 joined [00:10:17]Waiting for new connection... [00:10:17] Sock 8.Parse request [00:10:17]Sock 8.Check first char [00:10:17]Sock 8.First char is OK [00:10:17]request: POST /json_proto HTTP/1.0 [00:10:17]Method: POST [00:10:17]URL: /json_proto [00:10:17]Method is POST - this is cgi request [00:10:17]url: /json_proto [00:10:17]query_string will be loaded in cgi processing [00:10:17]execute_cgi json_proto POST (null) [00:10:17]execute_cgi path=json_proto method=POST [00:10:17]POST find Content-Length [00:10:17]Host: 172.17.43.132:8080 [00:10:17]Content-Length: 265 [00:10:17]Content-Type: application/json [00:10:17] [00:10:17]POST finish read [00:10:17]Found Content-Length = 265 [00:10:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u041E\u0440\u0443\u043D\u0431\u0430\u0435\u0432\u0430 \u0411. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:10:17]execute_script... [00:10:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u041E\u0440\u0443\u043D\u0431\u0430\u0435\u0432\u0430 \u0411. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:10:17]POST & json_proto [00:10:17]process_json_proto [00:10:17]json parsed OK: [00:10:17]protocol is kg_v1.0 [00:10:17]action value=open_shift [00:10:17]process_action open_shift [00:10:17]cmd_open_shift [00:10:17]MH_GetDate [00:10:17]Write to MH i2c: F0 00 00 38 01 28 [00:10:17]Write i2c OK [00:10:17]MH_I2C_Read... [00:10:17]Read from MH i2c: F0 [00:10:17]MH_I2C_Read... [00:10:17]Read from MH i2c: F0 09 00 [00:10:17]MH_I2C_Read... [00:10:17]Read from MH i2c: F0 09 00 38 01 00 6A 2F A8 66 64 A3 A7 66 EC [00:10:17]GetLastDocTimeStamp 1722296957 [00:10:17]current date 1722298218 [00:10:17]FM_GetShiftState [00:10:17]SAM_PROTO_GetShiftState [00:10:17]wFMCommunicate request_size=4 [00:10:17]MH_SAM_APDU [00:10:17]CAPDU: 80 13 01 00 [00:10:17]Write to MH i2c: E2 08 00 39 01 80 13 01 00 00 00 00 00 B7 [00:10:17]Write i2c OK [00:10:17]MH_I2C_Read... [00:10:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:10:17]Read from MH i2c: E2 [00:10:17]MH_I2C_Read... [00:10:17]Read from MH i2c: E2 0E 00 [00:10:17]MH_I2C_Read... [00:10:17]Read from MH i2c: E2 0E 00 39 01 00 09 00 00 00 00 00 00 00 00 00 00 90 00 C2 [00:10:17]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:10:17]wFMCommunicate OK [00:10:17]SAM_PROTO_GetShiftState done [00:10:17]FM_GetShiftState done [00:10:17]KKMCreateOpenShiftDocument [00:10:17]Load OK [00:10:17]Malloc new data [00:10:17]MH_GetDate [00:10:17]Write to MH i2c: F0 00 00 3A 01 2A [00:10:17]Write i2c OK [00:10:17]MH_I2C_Read... [00:10:17]Read from MH i2c: F0 [00:10:17]MH_I2C_Read... [00:10:17]Read from MH i2c: F0 09 00 [00:10:17]MH_I2C_Read... [00:10:17]Read from MH i2c: F0 09 00 3A 01 00 6A 2F A8 66 64 A3 A7 66 EE [00:10:17]Malloc new data [00:10:17]KKMCreateOpenShiftDocument OK [00:10:17]KKMSetOpenShiftData OK [00:10:17]ProcessDocumentItem done err = 0, tmpTLVsize=204 [00:10:17]tlvbuf is 0050F8B0 [00:10:17]KKMLoadAndSignOpenShiftData [00:10:17]SAM_PROTO_ProcessDocument [00:10:17]wFMCommunicate request_size=9 [00:10:17]MH_SAM_APDU [00:10:17]CAPDU: 80 15 01 00 04 02 00 CC 00 [00:10:17]Write to MH i2c: E2 0C 00 3B 01 80 15 01 00 04 00 02 00 CC 00 00 00 91 [00:10:17]Write i2c OK [00:10:17]MH_I2C_Read... [00:10:17]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:10:17]Read from MH i2c: E2 [00:10:17]MH_I2C_Read... [00:10:17]Read from MH i2c: E2 03 00 [00:10:17]MH_I2C_Read... [00:10:17]Read from MH i2c: E2 03 00 3B 01 00 90 00 B0 [00:10:17]RAPDU: 90 00 [00:10:17]wFMCommunicate OK [00:10:17]wFMCommunicate request_size=23 [00:10:17]MH_SAM_APDU [00:10:17]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:10:17]Write to MH i2c: E2 1A 00 3C 01 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 B2 [00:10:17]Write i2c OK [00:10:17]MH_I2C_Read... [00:10:17]Read from MH i2c: E2 [00:10:17]MH_I2C_Read... [00:10:17]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:10:17]Read from MH i2c: E2 03 00 [00:10:17]MH_I2C_Read... [00:10:17]Read from MH i2c: E2 03 00 3C 01 00 90 00 B1 [00:10:17]RAPDU: 90 00 [00:10:17]wFMCommunicate OK [00:10:17]wFMCommunicate request_size=32 [00:10:17]MH_SAM_APDU [00:10:17]CAPDU: 80 15 02 00 1B FD 03 17 00 D0 9E D1 80 D1 83 D0 BD D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 20 D0 91 2E 20 [00:10:17]Write to MH i2c: E2 23 00 3D 01 80 15 02 00 1B 00 FD 03 17 00 D0 9E D1 80 D1 83 D0 BD D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 20 D0 91 2E 20 00 00 02 [00:10:17]Write i2c OK [00:10:17]MH_I2C_Read... [00:10:17]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:10:17]Read from MH i2c: E2 [00:10:17]MH_I2C_Read... [00:10:17]Read from MH i2c: E2 03 00 [00:10:17]MH_I2C_Read... [00:10:17]Read from MH i2c: E2 03 00 3D 01 00 90 00 B2 [00:10:17]RAPDU: 90 00 [00:10:17]wFMCommunicate OK [00:10:17]wFMCommunicate request_size=91 [00:10:17]MH_SAM_APDU [00:10:17]CAPDU: 80 15 02 00 56 F1 03 52 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D1 8B D0 B7 D1 8B D0 BB 20 D0 9A D0 B8 D1 8F 2C 20 D1 83 D0 BB 2E 20 D0 9A D1 83 D0 BB D0 B0 D1 82 D0 BE D0 B2 D0 B0 20 31 34 37 20 D0 90 2C 20 34 30 2E 32 37 33 33 37 30 2C 20 37 32 2E 31 33 34 31 35 32 [00:10:17]Write to MH i2c: E2 5E 00 3E 01 80 15 02 00 56 00 F1 03 52 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D1 8B D0 B7 D1 8B D0 BB 20 D0 9A D0 B8 D1 8F 2C 20 D1 83 D0 BB 2E 20 D0 9A D1 83 D0 BB D0 B0 D1 82 D0 BE D0 B2 D0 B0 20 31 34 37 20 D0 90 2C 20 34 30 2E 32 37 33 33 37 30 2C 20 37 32 2E 31 33 34 31 35 32 00 00 26 [00:10:17]Write i2c OK [00:10:17]MH_I2C_Read... [00:10:17]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:10:17]Read from MH i2c: E2 [00:10:17]MH_I2C_Read... [00:10:17]Read from MH i2c: E2 03 00 [00:10:17]MH_I2C_Read... [00:10:17]Read from MH i2c: E2 03 00 3E 01 00 90 00 B3 [00:10:17]RAPDU: 90 00 [00:10:17]wFMCommunicate OK [00:10:17]wFMCommunicate request_size=50 [00:10:17]MH_SAM_APDU [00:10:17]CAPDU: 80 15 02 00 2D A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 39 37 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:10:17]Write to MH i2c: E2 35 00 3F 01 80 15 02 00 2D 00 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 39 37 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 3F [00:10:17]Write i2c OK [00:10:17]MH_I2C_Read... [00:10:17]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:10:17]Read from MH i2c: E2 [00:10:17]MH_I2C_Read... [00:10:17]Read from MH i2c: E2 03 00 [00:10:17]MH_I2C_Read... [00:10:17]Read from MH i2c: E2 03 00 3F 01 00 90 00 B4 [00:10:17]RAPDU: 90 00 [00:10:17]wFMCommunicate OK [00:10:17]wFMCommunicate request_size=13 [00:10:17]MH_SAM_APDU [00:10:17]CAPDU: 80 15 02 00 08 F4 03 04 00 6A 2F A8 66 [00:10:17]Write to MH i2c: E2 10 00 40 01 80 15 02 00 08 00 F4 03 04 00 6A 2F A8 66 00 00 73 [00:10:17]Write i2c OK [00:10:17]MH_I2C_Read... [00:10:17]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:10:18]Read from MH i2c: E2 [00:10:18]MH_I2C_Read... [00:10:18]Read from MH i2c: E2 03 00 [00:10:18]MH_I2C_Read... [00:10:18]Read from MH i2c: E2 03 00 40 01 00 90 00 B5 [00:10:18]RAPDU: 90 00 [00:10:18]wFMCommunicate OK [00:10:18]wFMCommunicate request_size=25 [00:10:18]MH_SAM_APDU [00:10:18]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 [00:10:18]Write to MH i2c: E2 1C 00 41 01 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 00 00 24 [00:10:18]Write i2c OK [00:10:18]MH_I2C_Read... [00:10:18]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:10:18]Read from MH i2c: E2 [00:10:18]MH_I2C_Read... [00:10:18]Read from MH i2c: E2 03 00 [00:10:18]MH_I2C_Read... [00:10:18]Read from MH i2c: E2 03 00 41 01 00 90 00 B6 [00:10:18]RAPDU: 90 00 [00:10:18]wFMCommunicate OK [00:10:18]wFMCommunicate request_size=4 [00:10:18]MH_SAM_APDU [00:10:18]CAPDU: 80 15 03 00 [00:10:18]Write to MH i2c: E2 08 00 42 01 80 15 03 00 00 00 00 00 C4 [00:10:18]Write i2c OK [00:10:18]MH_I2C_Read... [00:10:18]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:10:18]Read from MH i2c: E2 [00:10:18]MH_I2C_Read... [00:10:18]Read from MH i2c: E2 38 00 [00:10:18]MH_I2C_Read... [00:10:18]Read from MH i2c: E2 38 00 42 01 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 35 38 10 04 04 00 FB A3 00 00 0E 04 04 00 AC 01 00 00 35 04 06 00 21 C8 73 C6 4F 1B 90 00 70 [00:10:18]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 35 38 10 04 04 00 FB A3 00 00 0E 04 04 00 AC 01 00 00 35 04 06 00 21 C8 73 C6 4F 1B 90 00 [00:10:18]wFMCommunicate OK [00:10:18]SAM_PROTO_ProcessDocument answer len = 51 [00:10:18]SAM_PROTO_ProcessDocument done [00:10:18]SetTLVBufToDocument [00:10:18]Processing tag 1209 (04B9) [00:10:18]Malloc new data [00:10:18]Processing tag 1041 (0411) [00:10:18]Processing tag 1040 (0410) [00:10:18]Malloc new data [00:10:18]Processing tag 1038 (040E) [00:10:18]Malloc new data [00:10:18]Processing tag 1077 (0435) [00:10:18]Malloc new data [00:10:18]SetTLVBufToDocument err=0 [00:10:18]KKMLoadAndSignOpenShiftData store KKM data [00:10:18]KKMLoadAndSignOpenShiftData err=0 [00:10:18]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Орунбаева Б. Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 Место: АЗС № 97 "Партнер Нефть" 30.07.2024 00:10 Смена: 428 РНМ: 0000000000092626 ЗНМ: 0300000053 ФД: 41979 ФМ: 0000000000874958 ФПД: 37144819552027 [00:10:18]StoreToDocumentArchive [00:10:18]shift 428 fd 41979 [00:10:18]Create dir for shift 0428 [00:10:18]save to /storage/0428/doc_00041979 [00:10:18]save last doc name /storage/0428/doc_00041979 to /storage/kkm_last_doc_name [00:10:18]save OK [00:10:18]Clear old archive folders... [00:10:18]Remove dir /storage/0427 [00:10:18]opendir ok [00:10:18]file . [00:10:18]file .. [00:10:18]file doc_00041811 [00:10:18]remove file /storage/0427/doc_00041811 [00:10:18]file doc_00041812 [00:10:18]remove file /storage/0427/doc_00041812 [00:10:18]file doc_00041813 [00:10:18]remove file /storage/0427/doc_00041813 [00:10:18]file doc_00041814 [00:10:18]remove file /storage/0427/doc_00041814 [00:10:18]file doc_00041815 [00:10:18]remove file /storage/0427/doc_00041815 [00:10:18]file doc_00041816 [00:10:18]remove file /storage/0427/doc_00041816 [00:10:18]file doc_00041817 [00:10:18]remove file /storage/0427/doc_00041817 [00:10:18]file doc_00041818 [00:10:18]remove file /storage/0427/doc_00041818 [00:10:18]file doc_00041819 [00:10:18]remove file /storage/0427/doc_00041819 [00:10:18]file doc_00041820 [00:10:18]remove file /storage/0427/doc_00041820 [00:10:18]file doc_00041821 [00:10:18]remove file /storage/0427/doc_00041821 [00:10:18]file doc_00041822 [00:10:18]remove file /storage/0427/doc_00041822 [00:10:18]file doc_00041823 [00:10:18]remove file /storage/0427/doc_00041823 [00:10:18]file doc_00041824 [00:10:18]remove file /storage/0427/doc_00041824 [00:10:18]file doc_00041825 [00:10:18]remove file /storage/0427/doc_00041825 [00:10:18]file doc_00041826 [00:10:18]remove file /storage/0427/doc_00041826 [00:10:18]file doc_00041827 [00:10:18]remove file /storage/0427/doc_00041827 [00:10:18]file doc_00041828 [00:10:18]remove file /storage/0427/doc_00041828 [00:10:18]file doc_00041829 [00:10:18]remove file /storage/0427/doc_00041829 [00:10:18]file doc_00041830 [00:10:18]remove file /storage/0427/doc_00041830 [00:10:18]file doc_00041831 [00:10:18]remove file /storage/0427/doc_00041831 [00:10:18]file doc_00041832 [00:10:18]remove file /storage/0427/doc_00041832 [00:10:18]file doc_00041833 [00:10:18]remove file /storage/0427/doc_00041833 [00:10:18]file doc_00041834 [00:10:18]remove file /storage/0427/doc_00041834 [00:10:18]file doc_00041835 [00:10:18]remove file /storage/0427/doc_00041835 [00:10:18]file doc_00041836 [00:10:18]remove file /storage/0427/doc_00041836 [00:10:18]file doc_00041837 [00:10:18]remove file /storage/0427/doc_00041837 [00:10:18]file doc_00041838 [00:10:18]remove file /storage/0427/doc_00041838 [00:10:18]file doc_00041839 [00:10:18]remove file /storage/0427/doc_00041839 [00:10:18]file doc_00041840 [00:10:18]remove file /storage/0427/doc_00041840 [00:10:18]file doc_00041841 [00:10:18]remove file /storage/0427/doc_00041841 [00:10:18]file doc_00041842 [00:10:18]remove file /storage/0427/doc_00041842 [00:10:18]file doc_00041843 [00:10:18]remove file /storage/0427/doc_00041843 [00:10:18]file doc_00041844 [00:10:18]remove file /storage/0427/doc_00041844 [00:10:18]file doc_00041845 [00:10:18]remove file /storage/0427/doc_00041845 [00:10:18]file doc_00041846 [00:10:18]remove file /storage/0427/doc_00041846 [00:10:18]file doc_00041847 [00:10:18]remove file /storage/0427/doc_00041847 [00:10:18]file doc_00041848 [00:10:18]remove file /storage/0427/doc_00041848 [00:10:18]file doc_00041849 [00:10:18]remove file /storage/0427/doc_00041849 [00:10:18]file doc_00041850 [00:10:18]remove file /storage/0427/doc_00041850 [00:10:18]file doc_00041851 [00:10:18]remove file /storage/0427/doc_00041851 [00:10:18]file doc_00041852 [00:10:18]remove file /storage/0427/doc_00041852 [00:10:18]file doc_00041853 [00:10:18]remove file /storage/0427/doc_00041853 [00:10:18]file doc_00041854 [00:10:18]remove file /storage/0427/doc_00041854 [00:10:18]file doc_00041855 [00:10:18]remove file /storage/0427/doc_00041855 [00:10:18]file doc_00041856 [00:10:18]remove file /storage/0427/doc_00041856 [00:10:18]file doc_00041857 [00:10:18]remove file /storage/0427/doc_00041857 [00:10:18]file doc_00041858 [00:10:18]remove file /storage/0427/doc_00041858 [00:10:18]file doc_00041859 [00:10:18]remove file /storage/0427/doc_00041859 [00:10:18]file doc_00041860 [00:10:18]remove file /storage/0427/doc_00041860 [00:10:18]file doc_00041861 [00:10:18]remove file /storage/0427/doc_00041861 [00:10:18]file doc_00041862 [00:10:18]remove file /storage/0427/doc_00041862 [00:10:18]file doc_00041863 [00:10:18]remove file /storage/0427/doc_00041863 [00:10:18]file doc_00041864 [00:10:18]remove file /storage/0427/doc_00041864 [00:10:18]file doc_00041865 [00:10:18]remove file /storage/0427/doc_00041865 [00:10:18]file doc_00041866 [00:10:18]remove file /storage/0427/doc_00041866 [00:10:18]file doc_00041867 [00:10:18]remove file /storage/0427/doc_00041867 [00:10:18]file doc_00041868 [00:10:18]remove file /storage/0427/doc_00041868 [00:10:18]file doc_00041869 [00:10:18]remove file /storage/0427/doc_00041869 [00:10:18]file doc_00041870 [00:10:18]remove file /storage/0427/doc_00041870 [00:10:18]file doc_00041871 [00:10:18]remove file /storage/0427/doc_00041871 [00:10:18]file doc_00041872 [00:10:18]remove file /storage/0427/doc_00041872 [00:10:18]file doc_00041873 [00:10:18]remove file /storage/0427/doc_00041873 [00:10:18]file doc_00041874 [00:10:18]remove file /storage/0427/doc_00041874 [00:10:18]file doc_00041875 [00:10:18]remove file /storage/0427/doc_00041875 [00:10:18]file doc_00041876 [00:10:18]remove file /storage/0427/doc_00041876 [00:10:18]file doc_00041877 [00:10:18]remove file /storage/0427/doc_00041877 [00:10:18]file doc_00041878 [00:10:18]remove file /storage/0427/doc_00041878 [00:10:18]file doc_00041879 [00:10:18]remove file /storage/0427/doc_00041879 [00:10:18]file doc_00041880 [00:10:18]remove file /storage/0427/doc_00041880 [00:10:18]file doc_00041881 [00:10:18]remove file /storage/0427/doc_00041881 [00:10:18]file doc_00041882 [00:10:18]remove file /storage/0427/doc_00041882 [00:10:18]file doc_00041883 [00:10:18]remove file /storage/0427/doc_00041883 [00:10:18]file doc_00041884 [00:10:18]remove file /storage/0427/doc_00041884 [00:10:18]file doc_00041885 [00:10:18]remove file /storage/0427/doc_00041885 [00:10:18]file doc_00041886 [00:10:18]remove file /storage/0427/doc_00041886 [00:10:18]file doc_00041887 [00:10:18]remove file /storage/0427/doc_00041887 [00:10:18]file doc_00041888 [00:10:18]remove file /storage/0427/doc_00041888 [00:10:18]file doc_00041889 [00:10:18]remove file /storage/0427/doc_00041889 [00:10:18]file doc_00041890 [00:10:18]remove file /storage/0427/doc_00041890 [00:10:18]file doc_00041891 [00:10:18]remove file /storage/0427/doc_00041891 [00:10:18]file doc_00041892 [00:10:18]remove file /storage/0427/doc_00041892 [00:10:18]file doc_00041893 [00:10:18]remove file /storage/0427/doc_00041893 [00:10:18]file doc_00041894 [00:10:18]remove file /storage/0427/doc_00041894 [00:10:18]file doc_00041895 [00:10:18]remove file /storage/0427/doc_00041895 [00:10:18]file doc_00041896 [00:10:18]remove file /storage/0427/doc_00041896 [00:10:18]file doc_00041897 [00:10:18]remove file /storage/0427/doc_00041897 [00:10:18]file doc_00041898 [00:10:18]remove file /storage/0427/doc_00041898 [00:10:18]file doc_00041899 [00:10:18]remove file /storage/0427/doc_00041899 [00:10:18]file doc_00041900 [00:10:18]remove file /storage/0427/doc_00041900 [00:10:18]file doc_00041901 [00:10:18]remove file /storage/0427/doc_00041901 [00:10:18]file doc_00041902 [00:10:18]remove file /storage/0427/doc_00041902 [00:10:18]file doc_00041903 [00:10:18]remove file /storage/0427/doc_00041903 [00:10:18]file doc_00041904 [00:10:18]remove file /storage/0427/doc_00041904 [00:10:18]file doc_00041905 [00:10:18]remove file /storage/0427/doc_00041905 [00:10:18]file doc_00041906 [00:10:18]remove file /storage/0427/doc_00041906 [00:10:18]file doc_00041907 [00:10:18]remove file /storage/0427/doc_00041907 [00:10:18]file doc_00041908 [00:10:18]remove file /storage/0427/doc_00041908 [00:10:18]file doc_00041909 [00:10:18]remove file /storage/0427/doc_00041909 [00:10:18]file doc_00041910 [00:10:18]remove file /storage/0427/doc_00041910 [00:10:18]file doc_00041911 [00:10:18]remove file /storage/0427/doc_00041911 [00:10:18]file doc_00041912 [00:10:18]remove file /storage/0427/doc_00041912 [00:10:18]file doc_00041913 [00:10:18]remove file /storage/0427/doc_00041913 [00:10:18]file doc_00041914 [00:10:18]remove file /storage/0427/doc_00041914 [00:10:18]file doc_00041915 [00:10:18]remove file /storage/0427/doc_00041915 [00:10:18]file doc_00041916 [00:10:18]remove file /storage/0427/doc_00041916 [00:10:18]file doc_00041917 [00:10:18]remove file /storage/0427/doc_00041917 [00:10:18]file doc_00041918 [00:10:18]remove file /storage/0427/doc_00041918 [00:10:18]file doc_00041919 [00:10:18]remove file /storage/0427/doc_00041919 [00:10:18]file doc_00041920 [00:10:18]remove file /storage/0427/doc_00041920 [00:10:18]file doc_00041921 [00:10:18]remove file /storage/0427/doc_00041921 [00:10:18]file doc_00041922 [00:10:18]remove file /storage/0427/doc_00041922 [00:10:18]file doc_00041923 [00:10:18]remove file /storage/0427/doc_00041923 [00:10:18]file doc_00041924 [00:10:18]remove file /storage/0427/doc_00041924 [00:10:18]file doc_00041925 [00:10:18]remove file /storage/0427/doc_00041925 [00:10:18]file doc_00041926 [00:10:18]remove file /storage/0427/doc_00041926 [00:10:18]file doc_00041927 [00:10:19]remove file /storage/0427/doc_00041927 [00:10:19]file doc_00041928 [00:10:19]remove file /storage/0427/doc_00041928 [00:10:19]file doc_00041929 [00:10:19]remove file /storage/0427/doc_00041929 [00:10:19]file doc_00041930 [00:10:19]remove file /storage/0427/doc_00041930 [00:10:19]file doc_00041931 [00:10:19]remove file /storage/0427/doc_00041931 [00:10:19]file doc_00041932 [00:10:19]remove file /storage/0427/doc_00041932 [00:10:19]file doc_00041933 [00:10:19]remove file /storage/0427/doc_00041933 [00:10:19]file doc_00041934 [00:10:19]remove file /storage/0427/doc_00041934 [00:10:19]file doc_00041935 [00:10:19]remove file /storage/0427/doc_00041935 [00:10:19]file doc_00041936 [00:10:19]remove file /storage/0427/doc_00041936 [00:10:19]file doc_00041937 [00:10:19]remove file /storage/0427/doc_00041937 [00:10:19]file doc_00041938 [00:10:19]remove file /storage/0427/doc_00041938 [00:10:19]file doc_00041939 [00:10:19]remove file /storage/0427/doc_00041939 [00:10:19]file doc_00041940 [00:10:19]remove file /storage/0427/doc_00041940 [00:10:19]file doc_00041941 [00:10:19]remove file /storage/0427/doc_00041941 [00:10:19]file doc_00041942 [00:10:19]remove file /storage/0427/doc_00041942 [00:10:19]file doc_00041943 [00:10:19]remove file /storage/0427/doc_00041943 [00:10:19]file doc_00041944 [00:10:19]remove file /storage/0427/doc_00041944 [00:10:19]file doc_00041945 [00:10:19]remove file /storage/0427/doc_00041945 [00:10:19]file doc_00041946 [00:10:19]remove file /storage/0427/doc_00041946 [00:10:19]file doc_00041947 [00:10:19]remove file /storage/0427/doc_00041947 [00:10:19]file doc_00041948 [00:10:19]remove file /storage/0427/doc_00041948 [00:10:19]file doc_00041949 [00:10:19]remove file /storage/0427/doc_00041949 [00:10:19]file doc_00041950 [00:10:19]remove file /storage/0427/doc_00041950 [00:10:19]file doc_00041951 [00:10:19]remove file /storage/0427/doc_00041951 [00:10:19]file doc_00041952 [00:10:19]remove file /storage/0427/doc_00041952 [00:10:19]file doc_00041953 [00:10:19]remove file /storage/0427/doc_00041953 [00:10:19]file doc_00041954 [00:10:19]remove file /storage/0427/doc_00041954 [00:10:19]file doc_00041955 [00:10:19]remove file /storage/0427/doc_00041955 [00:10:19]file doc_00041956 [00:10:19]remove file /storage/0427/doc_00041956 [00:10:19]file doc_00041957 [00:10:19]remove file /storage/0427/doc_00041957 [00:10:19]file doc_00041958 [00:10:19]remove file /storage/0427/doc_00041958 [00:10:19]file doc_00041959 [00:10:19]remove file /storage/0427/doc_00041959 [00:10:19]file doc_00041960 [00:10:19]remove file /storage/0427/doc_00041960 [00:10:19]file doc_00041961 [00:10:19]remove file /storage/0427/doc_00041961 [00:10:19]file doc_00041962 [00:10:19]remove file /storage/0427/doc_00041962 [00:10:19]file doc_00041963 [00:10:19]remove file /storage/0427/doc_00041963 [00:10:19]file doc_00041964 [00:10:19]remove file /storage/0427/doc_00041964 [00:10:19]file doc_00041965 [00:10:19]remove file /storage/0427/doc_00041965 [00:10:19]file doc_00041966 [00:10:19]remove file /storage/0427/doc_00041966 [00:10:19]file doc_00041967 [00:10:19]remove file /storage/0427/doc_00041967 [00:10:19]file doc_00041968 [00:10:19]remove file /storage/0427/doc_00041968 [00:10:19]file doc_00041969 [00:10:19]remove file /storage/0427/doc_00041969 [00:10:19]file doc_00041970 [00:10:19]remove file /storage/0427/doc_00041970 [00:10:19]file doc_00041971 [00:10:19]remove file /storage/0427/doc_00041971 [00:10:19]file doc_00041972 [00:10:19]remove file /storage/0427/doc_00041972 [00:10:19]file doc_00041973 [00:10:19]remove file /storage/0427/doc_00041973 [00:10:19]file doc_00041974 [00:10:19]remove file /storage/0427/doc_00041974 [00:10:19]file doc_00041975 [00:10:19]remove file /storage/0427/doc_00041975 [00:10:19]file doc_00041976 [00:10:19]remove file /storage/0427/doc_00041976 [00:10:19]file doc_00041977 [00:10:19]remove file /storage/0427/doc_00041977 [00:10:19]file doc_00041978 [00:10:19]remove file /storage/0427/doc_00041978 [00:10:19]remove dir /storage/0427 [00:10:19]ProcessDocumentItem done err = 0, tmpTLVsize=255 [00:10:19]tlvbuf is 006E14C0 [00:10:19]SAM_PROTO_ClearQueue [00:10:19]wFMCommunicate request_size=4 [00:10:19]MH_SAM_APDU [00:10:19]CAPDU: 80 09 00 00 [00:10:19]Write to MH i2c: E2 08 00 43 01 80 09 00 00 00 00 00 00 B6 [00:10:19]Write i2c OK [00:10:19]MH_I2C_Read... [00:10:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:10:19]Read from MH i2c: E2 [00:10:19]MH_I2C_Read... [00:10:19]Read from MH i2c: E2 03 00 [00:10:19]MH_I2C_Read... [00:10:19]Read from MH i2c: E2 03 00 43 01 00 90 00 B8 [00:10:19]RAPDU: 90 00 [00:10:19]wFMCommunicate OK [00:10:19]SAM_PROTO_ClearQueue done [00:10:19]KKMCreateOFDPacket [00:10:19]OFDProtocolAddRootSTLVToBuf [00:10:19]FM_MakeSignedData [00:10:19]FM_MakeSignedData [00:10:19]SAM_PROTO_SignData [00:10:19]wFMCommunicate request_size=4 [00:10:19]MH_SAM_APDU [00:10:19]CAPDU: 80 0D 01 02 [00:10:19]Write to MH i2c: E2 08 00 44 01 80 0D 01 02 00 00 00 00 BE [00:10:19]Write i2c OK [00:10:19]MH_I2C_Read... [00:10:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:10:19]Read from MH i2c: E2 [00:10:19]MH_I2C_Read... [00:10:19]Read from MH i2c: E2 03 00 [00:10:19]MH_I2C_Read... [00:10:19]Read from MH i2c: E2 03 00 44 01 00 90 00 B9 [00:10:19]RAPDU: 90 00 [00:10:19]wFMCommunicate OK [00:10:19]wFMCommunicate request_size=255 [00:10:19]MH_SAM_APDU [00:10:19]CAPDU: 80 0D 02 02 FA 02 00 FF 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 17 00 D0 9E D1 80 D1 83 D0 BD D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 20 D0 91 2E 20 F1 03 52 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D1 8B D0 B7 D1 8B D0 BB 20 D0 9A D0 B8 D1 8F 2C 20 D1 83 D0 BB 2E 20 D0 9A D1 83 D0 BB D0 B0 D1 82 D0 BE D0 B2 D0 B0 20 31 34 37 20 D0 90 2C 20 34 30 2E 32 37 33 33 37 30 2C 20 37 32 2E 31 33 34 31 35 32 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 39 37 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 6A 2F A8 66 0E 04 04 00 AC 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 FB A3 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 35 [00:10:19]Write to MH i2c: E2 02 01 45 01 80 0D 02 02 FA 00 02 00 FF 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 17 00 D0 9E D1 80 D1 83 D0 BD D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 20 D0 91 2E 20 F1 03 52 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D1 8B D0 B7 D1 8B D0 BB 20 D0 9A D0 B8 D1 8F 2C 20 D1 83 D0 BB 2E 20 D0 9A D1 83 D0 BB D0 B0 D1 82 D0 BE D0 B2 D0 B0 20 31 34 37 20 D0 90 2C 20 34 30 2E 32 37 33 33 37 30 2C 20 37 32 2E 31 33 34 31 35 32 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 39 37 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 6A 2F A8 66 0E 04 04 00 AC 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 FB A3 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 35 00 00 0C [00:10:19]Write i2c OK [00:10:19]MH_I2C_Read... [00:10:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:10:19]Read from MH i2c: E2 [00:10:19]MH_I2C_Read... [00:10:19]Read from MH i2c: E2 03 00 [00:10:19]MH_I2C_Read... [00:10:19]Read from MH i2c: E2 03 00 45 01 00 90 00 BA [00:10:19]RAPDU: 90 00 [00:10:19]wFMCommunicate OK [00:10:19]wFMCommunicate request_size=14 [00:10:19]MH_SAM_APDU [00:10:19]CAPDU: 80 0D 02 02 09 04 06 00 21 C8 73 C6 4F 1B [00:10:19]Write to MH i2c: E2 11 00 46 01 80 0D 02 02 09 00 04 06 00 21 C8 73 C6 4F 1B 00 00 69 [00:10:19]Write i2c OK [00:10:19]MH_I2C_Read... [00:10:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:10:19]Read from MH i2c: E2 [00:10:19]MH_I2C_Read... [00:10:19]Read from MH i2c: E2 03 00 [00:10:19]MH_I2C_Read... [00:10:19]Read from MH i2c: E2 03 00 46 01 00 90 00 BB [00:10:19]RAPDU: 90 00 [00:10:19]wFMCommunicate OK [00:10:19]wFMCommunicate request_size=4 [00:10:19]MH_SAM_APDU [00:10:19]CAPDU: 80 0D 03 02 [00:10:19]Write to MH i2c: E2 08 00 47 01 80 0D 03 02 00 00 00 00 C3 [00:10:19]Write i2c OK [00:10:19]MH_I2C_Read... [00:10:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:10:20]Read from MH i2c: E2 [00:10:20]MH_I2C_Read... [00:10:20]Read from MH i2c: E2 0B 00 [00:10:20]MH_I2C_Read... [00:10:20]Read from MH i2c: E2 0B 00 47 01 00 61 B5 B1 38 EF F3 E3 3D 90 00 C5 [00:10:20]RAPDU: 61 B5 B1 38 EF F3 E3 3D 90 00 [00:10:20]wFMCommunicate OK [00:10:20]SAM_PROTO_SignData done [00:10:20]FM_MakeSignedData done [00:10:20]CreateOFDProtocolMessage [00:10:20]wFMCommunicate request_size=4 [00:10:20]MH_SAM_APDU [00:10:20]CAPDU: 80 11 00 00 [00:10:20]Write to MH i2c: E2 08 00 48 01 80 11 00 00 00 00 00 00 C3 [00:10:20]Write i2c OK [00:10:20]MH_I2C_Read... [00:10:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:10:20]Read from MH i2c: E2 [00:10:20]MH_I2C_Read... [00:10:20]Read from MH i2c: E2 17 00 [00:10:20]MH_I2C_Read... [00:10:20]Read from MH i2c: E2 17 00 48 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 1F [00:10:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [00:10:20]wFMCommunicate OK [00:10:20]CreateOFDProtocolMessage done [00:10:20]OFDSenderStorePacket 41979 [00:10:20]StoreOFDPacket docnum=41979 [00:10:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 13 01 00 00 FF C4 0B 01 88 F4 5A 02 01 00 02 00 FF 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 17 00 D0 9E D1 80 D1 83 D0 BD D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 20 D0 91 2E 20 F1 03 52 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D1 8B D0 B7 D1 8B D0 BB 20 D0 9A D0 B8 D1 8F 2C 20 D1 83 D0 BB 2E 20 D0 9A D1 83 D0 BB D0 B0 D1 82 D0 BE D0 B2 D0 B0 20 31 34 37 20 D0 90 2C 20 34 30 2E 32 37 33 33 37 30 2C 20 37 32 2E 31 33 34 31 35 32 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 39 37 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 6A 2F A8 66 0E 04 04 00 AC 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 FB A3 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 35 04 06 00 21 C8 73 C6 4F 1B 61 B5 B1 38 EF F3 E3 3D [00:10:20]CheckFolder [00:10:20]dirname=/storage/ofd_packets [00:10:20]CheckFolder done [00:10:20]ProducePacketName [00:10:20]name=ofd_packets/00041979 [00:10:20]NVStorageSaveData ofd_packets/00041979 [00:10:20]File name is /storage/ofd_packets/00041979 [00:10:20]Write 305 bytes [00:10:20]NVStorageSaveData done [00:10:20]OFDSenderStorePacket done [00:10:20]KKMCreateOFDPacket done [00:10:20]NVStorageSaveData kkm_last_timestamp [00:10:20]File name is /storage/kkm_last_timestamp [00:10:20]Write 4 bytes [00:10:20]NVStorageSaveData done [00:10:20]ExternCall_PrintAddStr [00:10:20]wPrintStart [00:10:20]Write to MH i2c: 01 00 00 49 01 4A [00:10:20]Write i2c OK [00:10:20]MH_I2C_Read... [00:10:20]Read from MH i2c: 01 [00:10:20]MH_I2C_Read... [00:10:20]Read from MH i2c: 01 07 00 [00:10:20]MH_I2C_Read... [00:10:20]Read from MH i2c: 01 07 00 49 01 00 00 00 00 00 FF 0F 5F [00:10:20]RasterBufferAndPrint [00:10:20]line Отчет об открытии смены [00:10:20]line ФФД: 1.0 [00:10:20]line ИНН: 02508201610067 [00:10:20]line Кассир: Орунбаева Б. [00:10:20]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [00:10:20]line Место: АЗС № 97 "Партнер Нефть" [00:10:20]line 30.07.2024 00:10 [00:10:20]line Смена: 428 [00:10:20]line РНМ: 0000000000092626 [00:10:20]line ЗНМ: 0300000053 [00:10:20]line ФД: 41979 [00:10:20]line ФМ: 0000000000874958 [00:10:20]line ФПД: 37144819552027 [00:10:20]written 0, free lines is 4095 [00:10:20]OFD Sender: Processing packet 41979 [packets to send 57, broken 56] [00:10:20]ProducePacketName [00:10:20]name=ofd_packets/00041979 [00:10:20]OFD Sender: To server: pG, [00:10:20]CommunicateWithHost lk.salyk.kg:30040 [00:10:20]ConnectInit lk.salyk.kg [00:10:20]Write to MH i2c: 01 00 00 5B 01 5C [00:10:20]Write i2c OK [00:10:20]MH_I2C_Read... [00:10:20]Read from MH i2c: 01 [00:10:20]MH_I2C_Read... [00:10:20]Read from MH i2c: 01 07 00 [00:10:20]MH_I2C_Read... [00:10:20]Read from MH i2c: 01 07 00 5B 01 00 00 00 00 00 55 0E C6 [00:10:20]RasterBufferAndPrint [00:10:20]line [00:10:20]line [00:10:20]line [00:10:20]line [00:10:20]line [00:10:20]written 0, free lines is 3680 [00:10:20]MH_Cut [00:10:20]Write to MH i2c: D1 01 00 62 01 01 35 [00:10:20]Write i2c OK [00:10:20]MH_I2C_Read... [00:10:20]Read from MH i2c: D1 [00:10:20]MH_I2C_Read... [00:10:20]Read from MH i2c: D1 01 00 [00:10:20]MH_I2C_Read... [00:10:20]Read from MH i2c: D1 01 00 62 01 00 34 [00:10:20]Write to MH i2c: 01 00 00 63 01 64 [00:10:20]Write i2c OK [00:10:20]MH_I2C_Read... [00:10:20]Connected sock=10 [00:10: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 35 38 13 01 00 00 FF C4 0B 01 88 F4 5A 02 01 00 02 00 FF 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 17 00 D0 9E D1 80 D1 83 D0 BD D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 20 D0 91 2E 20 F1 03 52 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D1 8B D0 B7 D1 8B D0 BB 20 D0 9A D0 B8 D1 8F 2C 20 D1 83 D0 BB 2E 20 D0 9A D1 83 D0 BB D0 B0 D1 82 D0 BE D0 B2 D0 B0 20 31 34 37 20 D0 90 2C 20 34 30 2E 32 37 33 33 37 30 2C 20 37 32 2E 31 33 34 31 35 32 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 39 37 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 6A 2F A8 66 0E 04 04 00 AC 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 FB A3 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 35 04 06 00 21 C8 73 C6 4F 1B 61 *** Cut start [00:10:20]B5 B1 *** Partial cut [00:10:20]38 EF F3 E3 3D [00:10:20]*** CUTSNS_PIN = 1 [00:10:20]*** CUTSNS_PIN = 0 [00:10:21]*** Brake cut motor [00:10: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 35 38 4F 00 00 00 30 4E 47 00 27 B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 FB A3 00 00 F4 03 04 00 80 DB A7 66 B6 04 01 00 00 5F A8 FD A3 D4 01 01 25 [00:10:21]CommunicateWithHost err = 0 [00:10:21]CheckOFDResponse [00:10:21]1017 (14) - 77093643461234 [00:10:21]1041 (16) - 0000000000874958 [00:10:21]1040 (4) - 41979 [00:10:21]1012 (4) - 29.07.2024 18:12 [00:10:21]1206 (1) - 0 [00:10:21]OFD Sender: Remove packet 41979 [00:10:21]ProducePacketName [00:10:21]name=ofd_packets/00041979 [00:10:21]NVStorageDeleteData [00:10:21]Read from MH i2c: 01 [00:10:21]MH_I2C_Read... [00:10:21]*** Stop cut motor [00:10:21]*** Cut end [00:10:21]Read from MH i2c: 01 07 00 [00:10:21]MH_I2C_Read... [00:10:21]Read from MH i2c: 01 07 00 63 01 00 00 00 00 00 FF 0F 79 [00:10:21]process_action open_shift done [00:10:21]requested_data is exist [00:10:21]produce_requested_data [00:10:21]requested_item fd.num is exist - process it [00:10:21]SAM_PROTO_GetFieldsCounters [00:10:21]wFMCommunicate request_size=4 [00:10:21]MH_SAM_APDU [00:10:21]CAPDU: 80 13 00 00 [00:10:21]Write to MH i2c: E2 08 00 64 01 80 13 00 00 00 00 00 00 E1 [00:10:21]Write i2c OK [00:10:21]MH_I2C_Read... [00:10:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:10:21]Read from MH i2c: E2 [00:10:21]MH_I2C_Read... [00:10:21]Read from MH i2c: E2 62 00 [00:10:21]MH_I2C_Read... [00:10:21]Read from MH i2c: E2 62 00 64 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 FB A3 00 00 0E 04 04 00 AC 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 56 [00:10: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 FB A3 00 00 0E 04 04 00 AC 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:10:21]wFMCommunicate OK [00:10:21]SAM_PROTO_GetFieldsCounters done [00:10:21]requested_item shift.num is exist - process it [00:10:21]requested_item shift.opened is exist - process it [00:10:21]req_shift_opened [00:10:21]FM_GetShiftState [00:10:21]SAM_PROTO_GetShiftState [00:10:21]wFMCommunicate request_size=4 [00:10:21]MH_SAM_APDU [00:10:21]CAPDU: 80 13 01 00 [00:10:21]Write to MH i2c: E2 08 00 65 01 80 13 01 00 00 00 00 00 E3 [00:10:21]Write i2c OK [00:10:21]MH_I2C_Read... [00:10:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:10:21]Read from MH i2c: E2 [00:10:21]MH_I2C_Read... [00:10:21]Read from MH i2c: E2 0E 00 [00:10:21]MH_I2C_Read... [00:10:21]OFD Sender: No OFD packet to send [00:10:21]Read from MH i2c: E2 0E 00 65 01 00 09 00 01 6A 2F A8 66 00 00 00 00 90 00 96 [00:10:21]RAPDU: 09 00 01 6A 2F A8 66 00 00 00 00 90 00 [00:10:21]wFMCommunicate OK [00:10:21]SAM_PROTO_GetShiftState done [00:10:21]FM_GetShiftState done [00:10:21]req_shift_opened done [00:10:21]requested_item shift.open_date is exist - process it [00:10:21]req_shift_open_date [00:10:21]req_shift_open_date done [00:10:21]produce_requested_data done [00:10:21]produce_requested_data return {"fd.num":41979,"shift.num":428,"shift.opened":1,"shift.open_date":1722298218} [00:10:21]process_action_free open_shift [00:10:21]json_value_free [00:10:21]json_value_free done [00:10:21]process_json_proto returns [00:10:21]Send response to host [00:10:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":41979,"shift.num":428,"shift.opened":1,"shift.open_date":1722298218}}} [00:10:21]free response buf [00:10:21]execute_script done [00:10:21]execute_script returns [00:10:21]free content buf [00:10:21]Sock 8.Close socket [00:10:21]Sock 8.Thread stoped [00:10:21]accept exits with 9 [00:10:21]New connection [00:10:21]New thread 3067444580 created [00:10:21]Thread 3067587940 joined [00:10:21]Waiting for new connection... [00:10:21] Sock 9.Parse request [00:10:21]Sock 9.Check first char [00:10:21]Sock 9.First char is OK [00:10:21]request: POST /json_proto HTTP/1.0 [00:10:21]Method: POST [00:10:21]URL: /json_proto [00:10:21]Method is POST - this is cgi request [00:10:21]url: /json_proto [00:10:21]query_string will be loaded in cgi processing [00:10:21]execute_cgi json_proto POST (null) [00:10:21]execute_cgi path=json_proto method=POST [00:10:21]POST find Content-Length [00:10:21]Host: 172.17.43.132:8080 [00:10:21]Content-Length: 331 [00:10:21]Content-Type: application/json [00:10:21] [00:10:21]POST finish read [00:10:21]Found Content-Length = 331 [00:10:21]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:10:21]execute_script... [00:10:21]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:10:21]POST & json_proto [00:10:21]process_json_proto [00:10:21]json parsed OK: [00:10:21]protocol is kg_v1.0 [00:10:21]action value=get_value [00:10:21]process_action get_value [00:10:21]cmd_get_value [00:10:21]process_action get_value done [00:10:21]requested_data is exist [00:10:21]produce_requested_data [00:10:21]requested_item fm.sale.total is exist - process it [00:10:21]SAM_PROTO_GetFMData [00:10:21]wFMCommunicate request_size=4 [00:10:21]MH_SAM_APDU [00:10:21]CAPDU: 80 13 03 00 [00:10:21]Write to MH i2c: E2 08 00 66 01 80 13 03 00 00 00 00 00 E6 [00:10:21]Write i2c OK [00:10:21]MH_I2C_Read... [00:10:22]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:10:22]Read from MH i2c: E2 [00:10:22]MH_I2C_Read... [00:10:22]Read from MH i2c: E2 FD 00 [00:10:22]MH_I2C_Read... [00:10:22]Read from MH i2c: E2 FD 00 66 01 00 C1 04 85 04 BD 04 6E 04 04 00 A3 A0 00 00 69 04 A0 00 6F 04 04 00 09 A0 00 00 B1 04 04 00 85 EA 40 37 70 04 04 00 B0 12 E8 31 72 04 04 00 D5 D7 58 05 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 4D 05 DE 05 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 20 17 7D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 9A 00 00 00 B1 04 03 00 54 D5 4E 70 04 03 00 58 C9 42 72 04 03 00 FC 0B 0C 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 13 5F 08 EF 03 09 00 F6 03 90 00 8F [00:10:22]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 A3 A0 00 00 69 04 A0 00 6F 04 04 00 09 A0 00 00 B1 04 04 00 85 EA 40 37 70 04 04 00 B0 12 E8 31 72 04 04 00 D5 D7 58 05 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 4D 05 DE 05 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 20 17 7D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 9A 00 00 00 B1 04 03 00 54 D5 4E 70 04 03 00 58 C9 42 72 04 03 00 FC 0B 0C 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 13 5F 08 EF 03 09 00 F6 03 90 00 [00:10:22]wFMCommunicate OK [00:10:22]wFMCommunicate request_size=4 [00:10:22]MH_SAM_APDU [00:10:22]CAPDU: 80 17 00 00 [00:10:22]Write to MH i2c: E2 08 00 67 01 80 17 00 00 00 00 00 00 E8 [00:10:22]Write i2c OK [00:10:22]MH_I2C_Read... [00:10:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:22]Read from MH i2c: E2 [00:10:22]MH_I2C_Read... [00:10:22]Read from MH i2c: E2 FD 00 [00:10:22]MH_I2C_Read... [00:10:22]Read from MH i2c: E2 FD 00 67 01 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 48 [00:10:22]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 [00:10:22]wFMCommunicate OK [00:10:22]wFMCommunicate request_size=4 [00:10:22]MH_SAM_APDU [00:10:22]CAPDU: 80 17 00 00 [00:10:22]Write to MH i2c: E2 08 00 68 01 80 17 00 00 00 00 00 00 E9 [00:10:22]Write i2c OK [00:10:22]MH_I2C_Read... [00:10:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:23]Read from MH i2c: E2 [00:10:23]MH_I2C_Read... [00:10:23]Read from MH i2c: E2 FD 00 [00:10:23]MH_I2C_Read... [00:10:23]Read from MH i2c: E2 FD 00 68 01 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 89 [00:10:23]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [00:10:23]wFMCommunicate OK [00:10:23]wFMCommunicate request_size=4 [00:10:23]MH_SAM_APDU [00:10:23]CAPDU: 80 17 00 00 [00:10:23]Write to MH i2c: E2 08 00 69 01 80 17 00 00 00 00 00 00 EA [00:10:23]Write i2c OK [00:10:23]MH_I2C_Read... [00:10:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:23]Read from MH i2c: E2 [00:10:23]MH_I2C_Read... [00:10:23]Read from MH i2c: E2 FD 00 [00:10:23]MH_I2C_Read... [00:10:23]Read from MH i2c: E2 FD 00 69 01 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 6F [00:10:23]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [00:10:23]wFMCommunicate OK [00:10:23]wFMCommunicate request_size=4 [00:10:23]MH_SAM_APDU [00:10:23]CAPDU: 80 17 00 00 [00:10:23]Write to MH i2c: E2 08 00 6A 01 80 17 00 00 00 00 00 00 EB [00:10:23]Write i2c OK [00:10:23]MH_I2C_Read... [00:10:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:10:24]Read from MH i2c: E2 [00:10:24]MH_I2C_Read... [00:10:24]Read from MH i2c: E2 DE 00 [00:10:24]MH_I2C_Read... [00:10:24]Read from MH i2c: E2 DE 00 6A 01 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 CA [00:10:24]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:10:24]wFMCommunicate OK [00:10:24]SAM_PROTO_GetFMData done [00:10:24]requested_item fm.sale_refund.total is exist - process it [00:10:24]requested_item fm.buy.total is exist - process it [00:10:24]requested_item shift.sale.total is exist - process it [00:10:24]SAM_PROTO_GetShiftData [00:10:24]wFMCommunicate request_size=4 [00:10:24]MH_SAM_APDU [00:10:24]CAPDU: 80 13 02 00 [00:10:24]Write to MH i2c: E2 08 00 6B 01 80 13 02 00 00 00 00 00 EA [00:10:24]Write i2c OK [00:10:24]MH_I2C_Read... [00:10:24]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:10:24]Read from MH i2c: E2 [00:10:24]MH_I2C_Read... [00:10:24]Read from MH i2c: E2 FD 00 [00:10:24]MH_I2C_Read... [00:10:24]Read from MH i2c: E2 FD 00 6B 01 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 5D [00:10:24]RAPDU: A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [00:10:24]wFMCommunicate OK [00:10:24]wFMCommunicate request_size=4 [00:10:24]MH_SAM_APDU [00:10:24]CAPDU: 80 17 00 00 [00:10:24]Write to MH i2c: E2 08 00 6C 01 80 17 00 00 00 00 00 00 ED [00:10:24]Write i2c OK [00:10:24]MH_I2C_Read... [00:10:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:25]Read from MH i2c: E2 [00:10:25]MH_I2C_Read... [00:10:25]Read from MH i2c: E2 FD 00 [00:10:25]MH_I2C_Read... [00:10:25]Read from MH i2c: E2 FD 00 6C 01 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 F5 [00:10:25]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:10:25]wFMCommunicate OK [00:10:25]wFMCommunicate request_size=4 [00:10:25]MH_SAM_APDU [00:10:25]CAPDU: 80 17 00 00 [00:10:25]Write to MH i2c: E2 08 00 6D 01 80 17 00 00 00 00 00 00 EE [00:10:25]Write i2c OK [00:10:25]MH_I2C_Read... [00:10:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:25]Read from MH i2c: E2 [00:10:25]MH_I2C_Read... [00:10:25]Read from MH i2c: E2 FD 00 [00:10:25]MH_I2C_Read... [00:10:25]Read from MH i2c: E2 FD 00 6D 01 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 C0 [00:10:25]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 [00:10:25]wFMCommunicate OK [00:10:25]wFMCommunicate request_size=4 [00:10:25]MH_SAM_APDU [00:10:25]CAPDU: 80 17 00 00 [00:10:25]Write to MH i2c: E2 08 00 6E 01 80 17 00 00 00 00 00 00 EF [00:10:25]Write i2c OK [00:10:25]MH_I2C_Read... [00:10:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:26]Read from MH i2c: E2 [00:10:26]MH_I2C_Read... [00:10:26]Read from MH i2c: E2 FD 00 [00:10:26]MH_I2C_Read... [00:10:26]Read from MH i2c: E2 FD 00 6E 01 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 61 [00:10:26]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:10:26]wFMCommunicate OK [00:10:26]wFMCommunicate request_size=4 [00:10:26]MH_SAM_APDU [00:10:26]CAPDU: 80 17 00 00 [00:10:26]Write to MH i2c: E2 08 00 6F 01 80 17 00 00 00 00 00 00 F0 [00:10:26]Write i2c OK [00:10:26]MH_I2C_Read... [00:10:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:10:26]Read from MH i2c: E2 [00:10:26]MH_I2C_Read... [00:10:26]Read from MH i2c: E2 BD 00 [00:10:26]MH_I2C_Read... [00:10:26]Read from MH i2c: E2 BD 00 6F 01 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 D6 [00:10:26]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:10:26]wFMCommunicate OK [00:10:26]SAM_PROTO_GetShiftData done [00:10:26]requested_item shift.sale.total_cash is exist - process it [00:10:26]requested_item shift.sale_refund.total is exist - process it [00:10:26]requested_item shift.sale_refund.total_cash is exist - process it [00:10:26]requested_item shift.buy.total is exist - process it [00:10:26]requested_item shift.buy.total_cash is exist - process it [00:10:26]produce_requested_data done [00:10:26]produce_requested_data return {"fm.sale.total":9270012.21,"fm.sale_refund.total":51664.20,"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:10:26]process_action_free get_value [00:10:26]json_value_free [00:10:26]json_value_free done [00:10:26]process_json_proto returns [00:10:26]Send response to host [00:10:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":9270012.21,"fm.sale_refund.total":51664.20,"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:10:26]free response buf [00:10:26]execute_script done [00:10:26]execute_script returns [00:10:26]free content buf [00:10:26]Sock 9.Close socket [00:10:26]Sock 9.Thread stoped [00:10:26]OFD Sender: No OFD packet to send [00:10:31]OFD Sender: No OFD packet to send [00:10:36]OFD Sender: No OFD packet to send [00:10:41]OFD Sender: No OFD packet to send [00:10:46]OFD Sender: No OFD packet to send [00:10:51]OFD Sender: No OFD packet to send [00:10:56]OFD Sender: No OFD packet to send [00:11:01]OFD Sender: No OFD packet to send [00:11:06]OFD Sender: No OFD packet to send [00:11:11]OFD Sender: No OFD packet to send [00:11:16]OFD Sender: No OFD packet to send [00:11:21]OFD Sender: No OFD packet to send [00:11:26]OFD Sender: No OFD packet to send [00:11:31]OFD Sender: No OFD packet to send [00:11:33]recv_with_timeout no data received [00:11:37]OFD Sender: No OFD packet to send [00:11:42]OFD Sender: No OFD packet to send [00:11:47]OFD Sender: No OFD packet to send [00:11:52]OFD Sender: No OFD packet to send [00:11:57]OFD Sender: No OFD packet to send [00:12:02]OFD Sender: No OFD packet to send [00:12:07]OFD Sender: No OFD packet to send [00:12:12]OFD Sender: No OFD packet to send [00:12:17]OFD Sender: No OFD packet to send [00:12:22]OFD Sender: No OFD packet to send [00:12:27]OFD Sender: No OFD packet to send [00:12:32]OFD Sender: No OFD packet to send [00:12:37]OFD Sender: No OFD packet to send [00:12:42]OFD Sender: No OFD packet to send [00:12:47]OFD Sender: No OFD packet to send [00:12:49]recv_with_timeout no data received [00:12:52]OFD Sender: No OFD packet to send [00:12:57]OFD Sender: No OFD packet to send [00:13:02]OFD Sender: No OFD packet to send [00:13:07]OFD Sender: No OFD packet to send [00:13:12]OFD Sender: No OFD packet to send [00:13:17]OFD Sender: No OFD packet to send [00:13:22]OFD Sender: No OFD packet to send [00:13:27]OFD Sender: No OFD packet to send [00:13:32]OFD Sender: No OFD packet to send [00:13:37]OFD Sender: No OFD packet to send [00:13:42]OFD Sender: No OFD packet to send [00:13:47]OFD Sender: No OFD packet to send [00:13:52]OFD Sender: No OFD packet to send [00:13:57]OFD Sender: No OFD packet to send [00:14:01]recv_with_timeout no data received [00:14:02]OFD Sender: No OFD packet to send [00:14:07]OFD Sender: No OFD packet to send [00:14:12]OFD Sender: No OFD packet to send [00:14:17]OFD Sender: No OFD packet to send [00:14:22]OFD Sender: No OFD packet to send [00:14:27]OFD Sender: No OFD packet to send [00:14:32]OFD Sender: No OFD packet to send [00:14:37]OFD Sender: No OFD packet to send [00:14:42]OFD Sender: No OFD packet to send [00:14:47]OFD Sender: No OFD packet to send [00:14:52]OFD Sender: No OFD packet to send [00:14:57]OFD Sender: No OFD packet to send [00:15:02]OFD Sender: No OFD packet to send [00:15:07]OFD Sender: No OFD packet to send [00:15:12]OFD Sender: No OFD packet to send [00:15:17]OFD Sender: No OFD packet to send [00:15:22]OFD Sender: No OFD packet to send [00:15:27]OFD Sender: No OFD packet to send [00:15:32]OFD Sender: No OFD packet to send [00:15:37]OFD Sender: No OFD packet to send [00:15:39]recv_with_timeout no data received [00:15:42]OFD Sender: No OFD packet to send [00:15:47]OFD Sender: No OFD packet to send [00:15:52]OFD Sender: No OFD packet to send [00:15:56]recv_with_timeout no data received [00:15:57]OFD Sender: No OFD packet to send [00:16:02]OFD Sender: No OFD packet to send [00:16:07]OFD Sender: No OFD packet to send [00:16:12]OFD Sender: No OFD packet to send [00:16:17]OFD Sender: No OFD packet to send [00:16:22]OFD Sender: No OFD packet to send [00:16:27]OFD Sender: No OFD packet to send [00:16:28]recv_with_timeout no data received [00:16:32]OFD Sender: No OFD packet to send [00:16:37]OFD Sender: No OFD packet to send [00:16:42]OFD Sender: No OFD packet to send [00:16:47]OFD Sender: No OFD packet to send [00:16:52]OFD Sender: No OFD packet to send [00:16:57]OFD Sender: No OFD packet to send [00:17:02]OFD Sender: No OFD packet to send [00:17:07]OFD Sender: No OFD packet to send [00:17:12]OFD Sender: No OFD packet to send [00:17:17]OFD Sender: No OFD packet to send [00:17:22]OFD Sender: No OFD packet to send [00:17:27]OFD Sender: No OFD packet to send [00:17:32]OFD Sender: No OFD packet to send [00:17:37]OFD Sender: No OFD packet to send [00:17:42]OFD Sender: No OFD packet to send [00:17:47]OFD Sender: No OFD packet to send [00:17:52]OFD Sender: No OFD packet to send [00:17:57]OFD Sender: No OFD packet to send [00:18:02]OFD Sender: No OFD packet to send [00:18:05]recv_with_timeout no data received [00:18:07]OFD Sender: No OFD packet to send [00:18:12]OFD Sender: No OFD packet to send [00:18:17]OFD Sender: No OFD packet to send [00:18:22]OFD Sender: No OFD packet to send [00:18:27]OFD Sender: No OFD packet to send [00:18:32]OFD Sender: No OFD packet to send [00:18:37]OFD Sender: No OFD packet to send [00:18:42]OFD Sender: No OFD packet to send [00:18:47]OFD Sender: No OFD packet to send [00:18:52]OFD Sender: No OFD packet to send [00:18:57]OFD Sender: No OFD packet to send [00:19:02]OFD Sender: No OFD packet to send [00:19:07]OFD Sender: No OFD packet to send [00:19:12]OFD Sender: No OFD packet to send [00:19:15]recv_with_timeout no data received [00:19:17]OFD Sender: No OFD packet to send [00:19:22]OFD Sender: No OFD packet to send [00:19:27]OFD Sender: No OFD packet to send [00:19:32]OFD Sender: No OFD packet to send [00:19:37]OFD Sender: No OFD packet to send [00:19:42]OFD Sender: No OFD packet to send [00:19:47]OFD Sender: No OFD packet to send [00:19:52]OFD Sender: No OFD packet to send [00:19:57]OFD Sender: No OFD packet to send [00:20:02]OFD Sender: No OFD packet to send [00:20:07]OFD Sender: No OFD packet to send [00:20:12]OFD Sender: No OFD packet to send [00:20:17]OFD Sender: No OFD packet to send [00:20:19]recv_with_timeout no data received [00:20:22]OFD Sender: No OFD packet to send [00:20:27]OFD Sender: No OFD packet to send [00:20:32]OFD Sender: No OFD packet to send [00:20:37]OFD Sender: No OFD packet to send [00:20:42]OFD Sender: No OFD packet to send [00:20:47]OFD Sender: No OFD packet to send [00:20:52]OFD Sender: No OFD packet to send [00:20:57]OFD Sender: No OFD packet to send [00:21:02]OFD Sender: No OFD packet to send [00:21:02]recv_with_timeout no data received [00:21:07]OFD Sender: No OFD packet to send [00:21:12]OFD Sender: No OFD packet to send [00:21:17]OFD Sender: No OFD packet to send [00:21:22]OFD Sender: No OFD packet to send [00:21:27]OFD Sender: No OFD packet to send [00:21:32]OFD Sender: No OFD packet to send [00:21:37]OFD Sender: No OFD packet to send [00:21:42]OFD Sender: No OFD packet to send [00:21:47]OFD Sender: No OFD packet to send [00:21:49]recv_with_timeout no data received [00:21:52]OFD Sender: No OFD packet to send [00:21:57]OFD Sender: No OFD packet to send [00:22:02]OFD Sender: No OFD packet to send [00:22:07]OFD Sender: No OFD packet to send [00:22:12]OFD Sender: No OFD packet to send [00:22:17]OFD Sender: No OFD packet to send [00:22:22]OFD Sender: No OFD packet to send [00:22:27]OFD Sender: No OFD packet to send [00:22:32]OFD Sender: No OFD packet to send [00:22:37]OFD Sender: No OFD packet to send [00:22:42]OFD Sender: No OFD packet to send [00:22:47]OFD Sender: No OFD packet to send [00:22:52]OFD Sender: No OFD packet to send [00:22:57]OFD Sender: No OFD packet to send [00:22:58]recv_with_timeout no data received [00:23:02]OFD Sender: No OFD packet to send [00:23:07]OFD Sender: No OFD packet to send [00:23:12]OFD Sender: No OFD packet to send [00:23:17]OFD Sender: No OFD packet to send [00:23:22]OFD Sender: No OFD packet to send [00:23:27]OFD Sender: No OFD packet to send [00:23:32]OFD Sender: No OFD packet to send [00:23:37]OFD Sender: No OFD packet to send [00:23:42]OFD Sender: No OFD packet to send [00:23:47]OFD Sender: No OFD packet to send [00:23:52]OFD Sender: No OFD packet to send [00:23:57]OFD Sender: No OFD packet to send [00:24:02]OFD Sender: No OFD packet to send [00:24:07]OFD Sender: No OFD packet to send [00:24:12]OFD Sender: No OFD packet to send [00:24:17]OFD Sender: No OFD packet to send [00:24:22]OFD Sender: No OFD packet to send [00:24:27]OFD Sender: No OFD packet to send [00:24:32]OFD Sender: No OFD packet to send [00:24:37]OFD Sender: No OFD packet to send [00:24:42]OFD Sender: No OFD packet to send [00:24:47]OFD Sender: No OFD packet to send [00:24:52]OFD Sender: No OFD packet to send [00:24:57]OFD Sender: No OFD packet to send [00:25:02]OFD Sender: No OFD packet to send [00:25:07]OFD Sender: No OFD packet to send [00:25:12]OFD Sender: No OFD packet to send [00:25:17]OFD Sender: No OFD packet to send [00:25:22]OFD Sender: No OFD packet to send [00:25:27]OFD Sender: No OFD packet to send [00:25:32]OFD Sender: No OFD packet to send [00:25:37]OFD Sender: No OFD packet to send [00:25:42]OFD Sender: No OFD packet to send [00:25:47]OFD Sender: No OFD packet to send [00:25:52]OFD Sender: No OFD packet to send [00:25:57]OFD Sender: No OFD packet to send [00:25:58]recv_with_timeout no data received [00:26:02]OFD Sender: No OFD packet to send [00:26:07]OFD Sender: No OFD packet to send [00:26:12]OFD Sender: No OFD packet to send [00:26:17]OFD Sender: No OFD packet to send [00:26:22]recv_with_timeout no data received [00:26:22]OFD Sender: No OFD packet to send [00:26:27]OFD Sender: No OFD packet to send [00:26:32]OFD Sender: No OFD packet to send [00:26:42]OFD Sender: No OFD packet to send [00:26:47]OFD Sender: No OFD packet to send [00:26:52]OFD Sender: No OFD packet to send [00:26:57]OFD Sender: No OFD packet to send [00:26:57]recv_with_timeout no data received [00:27:02]OFD Sender: No OFD packet to send [00:27:07]OFD Sender: No OFD packet to send [00:27:12]OFD Sender: No OFD packet to send [00:27:17]OFD Sender: No OFD packet to send [00:27:22]OFD Sender: No OFD packet to send [00:27:27]OFD Sender: No OFD packet to send [00:27:32]OFD Sender: No OFD packet to send [00:27:37]OFD Sender: No OFD packet to send [00:27:42]OFD Sender: No OFD packet to send [00:27:47]OFD Sender: No OFD packet to send [00:27:52]OFD Sender: No OFD packet to send [00:27:57]OFD Sender: No OFD packet to send [00:28:02]OFD Sender: No OFD packet to send [00:28:03]recv_with_timeout no data received [00:28:07]OFD Sender: No OFD packet to send [00:28:12]OFD Sender: No OFD packet to send [00:28:17]OFD Sender: No OFD packet to send [00:28:22]OFD Sender: No OFD packet to send [00:28:27]OFD Sender: No OFD packet to send [00:28:32]OFD Sender: No OFD packet to send [00:28:37]OFD Sender: No OFD packet to send [00:28:42]OFD Sender: No OFD packet to send [00:28:47]OFD Sender: No OFD packet to send [00:28:52]OFD Sender: No OFD packet to send [00:28:57]OFD Sender: No OFD packet to send [00:29:02]OFD Sender: No OFD packet to send [00:29:07]OFD Sender: No OFD packet to send [00:29:12]OFD Sender: No OFD packet to send [00:29:17]OFD Sender: No OFD packet to send [00:29:22]OFD Sender: No OFD packet to send [00:29:28]OFD Sender: No OFD packet to send [00:29:32]recv_with_timeout no data received [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:25]accept exits with 8 [00:30:25]New connection [00:30:25]New thread 3067587940 created [00:30:25]Thread 3067444580 joined [00:30:25]Waiting for new connection... [00:30:25] Sock 8.Parse request [00:30:25]Sock 8.Check first char [00:30:25]Sock 8.First char is OK [00:30:25]request: POST /json_proto HTTP/1.0 [00:30:25]Method: POST [00:30:25]URL: /json_proto [00:30:25]Method is POST - this is cgi request [00:30:25]url: /json_proto [00:30:25]query_string will be loaded in cgi processing [00:30:25]execute_cgi json_proto POST (null) [00:30:25]execute_cgi path=json_proto method=POST [00:30:25]POST find Content-Length [00:30:25]Host: 172.17.43.132:8080 [00:30:25]Content-Length: 1168 [00:30:25]Content-Type: application/json [00:30:25] [00:30:25]POST finish read [00:30:25]Found Content-Length = 1168 [00:30:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184008", "tax_sys" : 0, "items" : [ { "code": "4700000160051", "name": "\u0412\u043E\u0434\u0430 \u042B\u0441\u0441\u044B\u043A \u0410\u0442\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480517", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 180.00, "quantity" : 1.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 2.000, "sum" : 8.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 238.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:30:25]execute_script... [00:30:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184008", "tax_sys" : 0, "items" : [ { "code": "4700000160051", "name": "\u0412\u043E\u0434\u0430 \u042B\u0441\u0441\u044B\u043A \u0410\u0442\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480517", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 180.00, "quantity" : 1.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 2.000, "sum" : 8.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 238.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:30:25]POST & json_proto [00:30:25]process_json_proto [00:30:25]json parsed OK: [00:30:25]protocol is kg_v1.0 [00:30:25]action value=close_receipt [00:30:25]process_action close_receipt [00:30:25]cmd_close_receipt [00:30:25]MH_GetDate [00:30:25]Write to MH i2c: F0 00 00 70 01 60 [00:30:25]Write i2c OK [00:30:25]MH_I2C_Read... [00:30:25]Read from MH i2c: F0 [00:30:25]MH_I2C_Read... [00:30:25]Read from MH i2c: F0 09 00 [00:30:25]MH_I2C_Read... [00:30:25]Read from MH i2c: F0 09 00 70 01 00 22 34 A8 66 64 A3 A7 66 E1 [00:30:25]GetLastDocTimeStamp 1722298218 [00:30:25]current date 1722299426 [00:30:25]FM_GetShiftState [00:30:25]SAM_PROTO_GetShiftState [00:30:25]wFMCommunicate request_size=4 [00:30:25]MH_SAM_APDU [00:30:25]CAPDU: 80 13 01 00 [00:30:25]Write to MH i2c: E2 08 00 71 01 80 13 01 00 00 00 00 00 EF [00:30:25]Write i2c OK [00:30:25]MH_I2C_Read... [00:30:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:30:25]Read from MH i2c: E2 [00:30:25]MH_I2C_Read... [00:30:25]Read from MH i2c: E2 0E 00 [00:30:25]MH_I2C_Read... [00:30:25]Read from MH i2c: E2 0E 00 71 01 00 09 00 01 6A 2F A8 66 00 00 00 00 90 00 A2 [00:30:25]RAPDU: 09 00 01 6A 2F A8 66 00 00 00 00 90 00 [00:30:25]wFMCommunicate OK [00:30:25]SAM_PROTO_GetShiftState done [00:30:25]FM_GetShiftState done [00:30:25]opened in 1722298218 [00:30:25]opened+sec_in_day 1722384618 [00:30:25]quantity*price = 5000 [00:30:25]sum+1 = 5001 [00:30:25]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000480517 Пиво Живое 1л ПЭТ 1.000 * 180.00 = 180.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000031750019 Пакет Партнер Нефть 2.000 * 4.00 = 8.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 238.00 НСП 1% : 2.10 НДС 12% : 25.27 Наличными: 238.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 1 30.07.2024 00:30 Смена: 428 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41980 ФПД: 125863741780325 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T003026&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41980&fm=125863741780325&tin=02508201610067®Number=0000000000092626&sum=23800 0 [00:30:26]StoreToDocumentArchive [00:30:26]shift 428 fd 41980 [00:30:26]save to /storage/0428/doc_00041980 [00:30:26]save last doc name /storage/0428/doc_00041980 to /storage/kkm_last_doc_name [00:30:26]save OK [00:30:26]Clear old archive folders... [00:30:26]ProcessDocumentItem done err = 0, tmpTLVsize=482 [00:30:26]tlvbuf is 00503090 [00:30:26]SAM_PROTO_ClearQueue [00:30:26]wFMCommunicate request_size=4 [00:30:26]MH_SAM_APDU [00:30:26]CAPDU: 80 09 00 00 [00:30:26]Write to MH i2c: E2 08 00 7E 01 80 09 00 00 00 00 00 00 F1 [00:30:26]Write i2c OK [00:30:26]MH_I2C_Read... [00:30:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:30:26]Read from MH i2c: E2 [00:30:26]MH_I2C_Read... [00:30:26]Read from MH i2c: E2 03 00 [00:30:26]MH_I2C_Read... [00:30:26]Read from MH i2c: E2 03 00 7E 01 00 90 00 F3 [00:30:26]RAPDU: 90 00 [00:30:26]wFMCommunicate OK [00:30:26]SAM_PROTO_ClearQueue done [00:30:26]KKMCreateOFDPacket [00:30:26]OFDProtocolAddRootSTLVToBuf [00:30:26]FM_MakeSignedData [00:30:26]FM_MakeSignedData [00:30:26]SAM_PROTO_SignData [00:30:26]wFMCommunicate request_size=4 [00:30:26]MH_SAM_APDU [00:30:26]CAPDU: 80 0D 01 02 [00:30:26]Write to MH i2c: E2 08 00 7F 01 80 0D 01 02 00 00 00 00 F9 [00:30:26]Write i2c OK [00:30:26]MH_I2C_Read... [00:30:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:30:26]Read from MH i2c: E2 [00:30:26]MH_I2C_Read... [00:30:26]Read from MH i2c: E2 03 00 [00:30:26]MH_I2C_Read... [00:30:26]Read from MH i2c: E2 03 00 7F 01 00 90 00 F4 [00:30:26]RAPDU: 90 00 [00:30:26]wFMCommunicate OK [00:30:26]wFMCommunicate request_size=255 [00:30:26]MH_SAM_APDU [00:30:26]CAPDU: 80 0D 02 02 FA 03 00 E2 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 [00:30:26]Write to MH i2c: E2 02 01 80 01 80 0D 02 02 FA 00 03 00 E2 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 00 00 95 [00:30:26]Write i2c OK [00:30:26]MH_I2C_Read... [00:30:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:30:27]Read from MH i2c: E2 [00:30:27]MH_I2C_Read... [00:30:27]Read from MH i2c: E2 03 00 [00:30:27]MH_I2C_Read... [00:30:27]Read from MH i2c: E2 03 00 80 01 00 90 00 F5 [00:30:27]RAPDU: 90 00 [00:30:27]wFMCommunicate OK [00:30:27]wFMCommunicate request_size=241 [00:30:27]MH_SAM_APDU [00:30:27]CAPDU: 80 0D 02 02 EC 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 20 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 5C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 09 00 00 00 00 07 04 06 00 F8 5C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 22 34 A8 66 0E 04 04 00 AC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 FC A3 00 00 35 04 06 00 72 78 EF 9E 71 65 [00:30:27]Write to MH i2c: E2 F4 00 81 01 80 0D 02 02 EC 00 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 20 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 5C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 09 00 00 00 00 07 04 06 00 F8 5C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 22 34 A8 66 0E 04 04 00 AC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 FC A3 00 00 35 04 06 00 72 78 EF 9E 71 65 00 00 66 [00:30:27]Write i2c OK [00:30:27]MH_I2C_Read... [00:30:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:30:27]Read from MH i2c: E2 [00:30:27]MH_I2C_Read... [00:30:27]Read from MH i2c: E2 03 00 [00:30:27]MH_I2C_Read... [00:30:27]Read from MH i2c: E2 03 00 81 01 00 90 00 F6 [00:30:27]RAPDU: 90 00 [00:30:27]wFMCommunicate OK [00:30:27]wFMCommunicate request_size=4 [00:30:27]MH_SAM_APDU [00:30:27]CAPDU: 80 0D 03 02 [00:30:27]Write to MH i2c: E2 08 00 82 01 80 0D 03 02 00 00 00 00 FE [00:30:27]Write i2c OK [00:30:27]MH_I2C_Read... [00:30:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:30:27]Read from MH i2c: E2 [00:30:27]MH_I2C_Read... [00:30:27]Read from MH i2c: E2 0B 00 [00:30:27]MH_I2C_Read... [00:30:27]Read from MH i2c: E2 0B 00 82 01 00 76 72 33 D3 DC 9F 21 05 90 00 8E [00:30:27]RAPDU: 76 72 33 D3 DC 9F 21 05 90 00 [00:30:27]wFMCommunicate OK [00:30:27]SAM_PROTO_SignData done [00:30:27]FM_MakeSignedData done [00:30:27]CreateOFDProtocolMessage [00:30:27]wFMCommunicate request_size=4 [00:30:27]MH_SAM_APDU [00:30:27]CAPDU: 80 11 00 00 [00:30:27]Write to MH i2c: E2 08 00 83 01 80 11 00 00 00 00 00 00 FE [00:30:27]Write i2c OK [00:30:27]MH_I2C_Read... [00:30:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:30:27]Read from MH i2c: E2 [00:30:27]MH_I2C_Read... [00:30:27]Read from MH i2c: E2 17 00 [00:30:27]MH_I2C_Read... [00:30:27]Read from MH i2c: E2 17 00 83 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 5A [00:30:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [00:30:27]wFMCommunicate OK [00:30:27]CreateOFDProtocolMessage done [00:30:27]OFDSenderStorePacket 41980 [00:30:27]StoreOFDPacket docnum=41980 [00:30:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 F6 01 00 00 05 30 EE 01 A7 32 5A 03 01 00 03 00 E2 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 20 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 5C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 09 00 00 00 00 07 04 06 00 F8 5C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 22 34 A8 66 0E 04 04 00 AC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 FC A3 00 00 35 04 06 00 72 78 EF 9E 71 65 76 72 33 D3 DC 9F 21 05 [00:30:27]CheckFolder [00:30:27]dirname=/storage/ofd_packets [00:30:27]CheckFolder done [00:30:27]ProducePacketName [00:30:27]name=ofd_packets/00041980 [00:30:27]NVStorageSaveData ofd_packets/00041980 [00:30:27]File name is /storage/ofd_packets/00041980 [00:30:27]Write 532 bytes [00:30:27]NVStorageSaveData done [00:30:27]OFDSenderStorePacket done [00:30:27]KKMCreateOFDPacket done [00:30:27]NVStorageSaveData kkm_last_timestamp [00:30:27]File name is /storage/kkm_last_timestamp [00:30:27]Write 4 bytes [00:30:27]NVStorageSaveData done [00:30:27]ExternCall_PrintAddStr [00:30:27]wPrintStart [00:30:27]Write to MH i2c: 01 00 00 84 01 85 [00:30:27]Write i2c OK [00:30:27]MH_I2C_Read... [00:30:27]Read from MH i2c: 01 [00:30:27]MH_I2C_Read... [00:30:27]Read from MH i2c: 01 07 00 [00:30:27]MH_I2C_Read... [00:30:27]Read from MH i2c: 01 07 00 84 01 00 00 00 00 00 FF 0F 9A [00:30:27]RasterBufferAndPrint [00:30:27]line Счет N : (3)184008 [00:30:27]line ИНН: 02508201610067 [00:30:27]line Контрольно-Кассовый Чек [00:30:27]line ПРОДАЖА [00:30:27]line Товар: 4700000160051 [00:30:27]line Вода Ыссык Ата 1л [00:30:27]line 1.000 * 50.00 [00:30:27]line = 50.00 [00:30:27]line НДС 12% НСП 1% [00:30:27]line > о реализуемом товаре [00:30:27]line Товар: 4700000480517 [00:30:27]line Пиво Живое 1л ПЭТ [00:30:27]line 1.000 * 180.00 [00:30:27]line = 180.00 [00:30:27]line НДС 12% НСП 1% [00:30:27]line > о реализуемом товаре [00:30:27]line Товар: 2000031750019 [00:30:27]line Пакет Партнер Нефть [00:30:27]line 2.000 * 4.00 [00:30:27]line = 8.00 [00:30:27]line НДС 12% НСП 1% [00:30:27]line > о реализуемом товаре [00:30:27]line ИТОГО: 238.00 [00:30:27]line НСП 1% : 2.10 [00:30:27]line НДС 12% : 25.27 [00:30:27]line Наличными: 238.00 [00:30:27]line Безнал.: 0.00 [00:30:27]line Место: АЗС № 97 "Партнер Нефть" [00:30:27]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [00:30:27]line СНО: Общий режим [00:30:27]line Чек 1 30.07.2024 00:30 [00:30:27]line Смена: 428 ФФД: 1.0 [00:30:27]line ЗНМ: 0300000053 [00:30:27]line РНМ: 0000000000092626 [00:30:27]line Версия ККМ: 001 [00:30:27]line ФМ: 0000000000874958 [00:30:27]line ФД: 41980 [00:30:27]line ФПД: 125863741780325 [00:30:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T003026&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41980&fm=125863741780325&tin=02508201610067®Number=0000000000092626&sum=23800 [00:30:27]OFD Sender: Processing packet 41980 [packets to send 57, broken 56] [00:30:27]ProducePacketName [00:30:27]name=ofd_packets/00041980 [00:30:27]OFD Sender: To server: pG, [00:30:27]CommunicateWithHost lk.salyk.kg:30040 [00:30:27]ConnectInit lk.salyk.kg [00:30:27]line 0 [00:30:27]written 0, free lines is 4095 [00:30:27]Write to MH i2c: 01 00 00 B8 01 B9 [00:30:27]Write i2c OK [00:30:27]MH_I2C_Read... [00:30:27]Read from MH i2c: 01 [00:30:27]MH_I2C_Read... [00:30:27]Read from MH i2c: 01 07 00 [00:30:27]MH_I2C_Read... [00:30:27]Read from MH i2c: 01 07 00 B8 01 00 00 00 00 00 83 0C 4F [00:30:27]RasterBufferAndPrint [00:30:27]line [00:30:27]line [00:30:27]line [00:30:27]line [00:30:27]line [00:30:27]written 0, free lines is 3209 [00:30:27]MH_Cut [00:30:27]Write to MH i2c: D1 01 00 BF 01 01 92 [00:30:27]Write i2c OK [00:30:27]MH_I2C_Read... [00:30:27]Read from MH i2c: D1 [00:30:27]MH_I2C_Read... [00:30:27]Read from MH i2c: D1 01 00 [00:30:27]MH_I2C_Read... [00:30:27]Read from MH i2c: D1 01 00 BF 01 00 91 [00:30:27]Write to MH i2c: 01 00 00 C0 01 C1 [00:30:27]Write i2c OK [00:30:27]MH_I2C_Read... [00:30:28]*** Cut start [00:30:28]*** Partial cut [00:30:28]*** CUTSNS_PIN = 1 [00:30:28]*** CUTSNS_PIN = 0 [00:30:29]*** Brake cut motor [00:30:29]Connected sock=11 [00:30: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 35 38 F6 01 00 00 05 30 EE 01 A7 32 5A 03 01 00 03 00 E2 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 20 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 5C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 09 00 00 00 00 07 04 06 00 F8 5C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 22 34 A8 66 0E 04 04 00 AC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 FC A3 00 00 35 04 06 00 72 78 EF 9E 71 65 76 72 33 D3 DC 9F 21 05 [00:30:29]Read from MH i2c: 01 [00:30:29]MH_I2C_Read... [00:30:29]*** Stop cut motor [00:30:29]*** Cut end [00:30:29]Read from MH i2c: 01 07 00 [00:30:29]MH_I2C_Read... [00:30:29]Read from MH i2c: 01 07 00 C0 01 00 00 00 00 00 FF 0F D6 [00:30:29]process_action close_receipt done [00:30:29]requested_data is exist [00:30:29]produce_requested_data [00:30:29]requested_item fm.sn is exist - process it [00:30:29]wFMCommunicate request_size=4 [00:30:29]MH_SAM_APDU [00:30:29]CAPDU: 80 11 00 00 [00:30:29]Write to MH i2c: E2 08 00 C1 01 80 11 00 00 00 00 00 00 3C [00:30:29]Write i2c OK [00:30:29]MH_I2C_Read... [00:30:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:30:29]Read from MH i2c: E2 [00:30:29]MH_I2C_Read... [00:30:29]Read from MH i2c: E2 17 00 [00:30:29]MH_I2C_Read... [00:30:29]Read from MH i2c: E2 17 00 C1 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 98 [00:30:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [00:30:29]wFMCommunicate OK [00:30:29]requested_item fd.num is exist - process it [00:30:29]SAM_PROTO_GetFieldsCounters [00:30:29]wFMCommunicate request_size=4 [00:30:29]MH_SAM_APDU [00:30:29]CAPDU: 80 13 00 00 [00:30:29]Write to MH i2c: E2 08 00 C2 01 80 13 00 00 00 00 00 00 3F [00:30:29]Write i2c OK [00:30:29]MH_I2C_Read... [00:30:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:30:29]Read from MH i2c: E2 [00:30:29]MH_I2C_Read... [00:30:29]Read from MH i2c: E2 62 00 [00:30:29]MH_I2C_Read... [00:30:29]Read from MH i2c: E2 62 00 C2 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 FC A3 00 00 0E 04 04 00 AC 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 B8 [00:30: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 FC A3 00 00 0E 04 04 00 AC 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:30:29]wFMCommunicate OK [00:30:29]SAM_PROTO_GetFieldsCounters done [00:30:29]requested_item shift.num is exist - process it [00:30:29]requested_item shift.opened is exist - process it [00:30:29]req_shift_opened [00:30:29]FM_GetShiftState [00:30:29]SAM_PROTO_GetShiftState [00:30:29]wFMCommunicate request_size=4 [00:30:29]MH_SAM_APDU [00:30:29]CAPDU: 80 13 01 00 [00:30:29]Write to MH i2c: E2 08 00 C3 01 80 13 01 00 00 00 00 00 41 [00:30:29]Write i2c OK [00:30:29]MH_I2C_Read... [00:30:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:30:29]Read from MH i2c: E2 [00:30:29]MH_I2C_Read... [00:30:29]Read from MH i2c: E2 0E 00 [00:30:29]MH_I2C_Read... [00:30:29]Read from MH i2c: E2 0E 00 C3 01 00 09 00 01 6A 2F A8 66 00 00 00 00 90 00 F4 [00:30:29]RAPDU: 09 00 01 6A 2F A8 66 00 00 00 00 90 00 [00:30:29]wFMCommunicate OK [00:30:29]SAM_PROTO_GetShiftState done [00:30:29]FM_GetShiftState done [00:30:29]req_shift_opened done [00:30:29]requested_item shift.open_date is exist - process it [00:30:29]req_shift_open_date [00:30:29]req_shift_open_date done [00:30:29]produce_requested_data done [00:30:29]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41980,"shift.num":428,"shift.opened":1,"shift.open_date":1722298218} [00:30:29]process_action_free close_receipt [00:30:29]json_value_free [00:30:29]json_value_free done [00:30:29]process_json_proto returns [00:30:29]Send response to host [00:30:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41980,"shift.num":428,"shift.opened":1,"shift.open_date":1722298218}}} [00:30:29]free response buf [00:30:29]execute_script done [00:30:29]execute_script returns [00:30:29]free content buf [00:30:29]Sock 8.Close socket [00:30:29]Sock 8.Thread stoped [00:30: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 35 38 4F 00 00 00 11 FA 47 00 A8 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 35 38 10 04 04 00 FC A3 00 00 F4 03 04 00 3A E0 A7 66 B6 04 01 00 00 36 0B 40 36 7F 62 38 94 [00:30:31]CommunicateWithHost err = 0 [00:30:31]CheckOFDResponse [00:30:31]1017 (14) - 77093643461234 [00:30:31]1041 (16) - 0000000000874958 [00:30:31]1040 (4) - 41980 [00:30:31]1012 (4) - 29.07.2024 18:32 [00:30:31]1206 (1) - 0 [00:30:31]OFD Sender: Remove packet 41980 [00:30:31]ProducePacketName [00:30:31]name=ofd_packets/00041980 [00:30:31]NVStorageDeleteData [00:30:31]OFD Sender: No OFD packet to send [00:30:36]OFD Sender: No OFD packet to send [00:30:41]OFD Sender: No OFD packet to send [00:30:46]OFD Sender: No OFD packet to send [00:30:51]OFD Sender: No OFD packet to send [00:30:56]OFD Sender: No OFD packet to send [00:30:59]recv_with_timeout no data received [00:31:01]OFD Sender: No OFD packet to send [00:31:06]OFD Sender: No OFD packet to send [00:31:11]OFD Sender: No OFD packet to send [00:31:16]OFD Sender: No OFD packet to send [00:31:21]OFD Sender: No OFD packet to send [00:31:26]OFD Sender: No OFD packet to send [00:31:31]OFD Sender: No OFD packet to send [00:31:36]OFD Sender: No OFD packet to send [00:31:41]OFD Sender: No OFD packet to send [00:31:46]OFD Sender: No OFD packet to send [00:31:51]OFD Sender: No OFD packet to send [00:31:56]OFD Sender: No OFD packet to send [00:32:01]OFD Sender: No OFD packet to send [00:32:06]OFD Sender: No OFD packet to send [00:32:11]OFD Sender: No OFD packet to send [00:32:16]OFD Sender: No OFD packet to send [00:32:21]OFD Sender: No OFD packet to send [00:32:26]OFD Sender: No OFD packet to send [00:32:31]OFD Sender: No OFD packet to send [00:32:36]OFD Sender: No OFD packet to send [00:32:41]OFD Sender: No OFD packet to send [00:32:46]OFD Sender: No OFD packet to send [00:32:51]OFD Sender: No OFD packet to send [00:32:56]OFD Sender: No OFD packet to send [00:33:01]OFD Sender: No OFD packet to send [00:33:06]OFD Sender: No OFD packet to send [00:33:11]OFD Sender: No OFD packet to send [00:33:16]OFD Sender: No OFD packet to send [00:33:21]OFD Sender: No OFD packet to send [00:33:27]OFD Sender: No OFD packet to send [00:33:32]OFD Sender: No OFD packet to send [00:33:37]OFD Sender: No OFD packet to send [00:33:42]OFD Sender: No OFD packet to send [00:33:47]OFD Sender: No OFD packet to send [00:33:52]OFD Sender: No OFD packet to send [00:33:57]OFD Sender: No OFD packet to send [00:34:02]OFD Sender: No OFD packet to send [00:34:07]OFD Sender: No OFD packet to send [00:34:12]OFD Sender: No OFD packet to send [00:34:17]OFD Sender: No OFD packet to send [00:34:22]OFD Sender: No OFD packet to send [00:34:27]OFD Sender: No OFD packet to send [00:34:32]OFD Sender: No OFD packet to send [00:34:37]OFD Sender: No OFD packet to send [00:34:42]OFD Sender: No OFD packet to send [00:34:47]OFD Sender: No OFD packet to send [00:34:52]OFD Sender: No OFD packet to send [00:34:57]OFD Sender: No OFD packet to send [00:35:02]OFD Sender: No OFD packet to send [00:35:07]OFD Sender: No OFD packet to send [00:35:12]OFD Sender: No OFD packet to send [00:35:17]OFD Sender: No OFD packet to send [00:35:22]OFD Sender: No OFD packet to send [00:35:27]OFD Sender: No OFD packet to send [00:35:29]recv_with_timeout no data received [00:35:32]OFD Sender: No OFD packet to send [00:35:37]OFD Sender: No OFD packet to send [00:35:42]OFD Sender: No OFD packet to send [00:35:47]OFD Sender: No OFD packet to send [00:35:52]OFD Sender: No OFD packet to send [00:35:57]OFD Sender: No OFD packet to send [00:36:02]OFD Sender: No OFD packet to send [00:36:07]OFD Sender: No OFD packet to send [00:36:12]OFD Sender: No OFD packet to send [00:36:17]OFD Sender: No OFD packet to send [00:36:22]OFD Sender: No OFD packet to send [00:36:27]OFD Sender: No OFD packet to send [00:36:32]OFD Sender: No OFD packet to send [00:36:37]OFD Sender: No OFD packet to send [00:36:42]OFD Sender: No OFD packet to send [00:36:47]OFD Sender: No OFD packet to send [00:36:52]OFD Sender: No OFD packet to send [00:36:57]OFD Sender: No OFD packet to send [00:37:02]OFD Sender: No OFD packet to send [00:37:07]OFD Sender: No OFD packet to send [00:37:12]OFD Sender: No OFD packet to send [00:37:17]OFD Sender: No OFD packet to send [00:37:22]OFD Sender: No OFD packet to send [00:37:27]OFD Sender: No OFD packet to send [00:37:32]OFD Sender: No OFD packet to send [00:37:37]OFD Sender: No OFD packet to send [00:37:42]OFD Sender: No OFD packet to send [00:37:47]OFD Sender: No OFD packet to send [00:37:52]OFD Sender: No OFD packet to send [00:37:57]OFD Sender: No OFD packet to send [00:38:02]OFD Sender: No OFD packet to send [00:38:07]OFD Sender: No OFD packet to send [00:38:12]OFD Sender: No OFD packet to send [00:38:17]OFD Sender: No OFD packet to send [00:38:22]OFD Sender: No OFD packet to send [00:38:27]OFD Sender: No OFD packet to send [00:38:32]OFD Sender: No OFD packet to send [00:38:37]OFD Sender: No OFD packet to send [00:38:42]OFD Sender: No OFD packet to send [00:38:47]OFD Sender: No OFD packet to send [00:38:52]OFD Sender: No OFD packet to send [00:38:57]OFD Sender: No OFD packet to send [00:39:02]OFD Sender: No OFD packet to send [00:39:32]OFD Sender: No OFD packet to send [00:39:37]OFD Sender: No OFD packet to send [00:39:42]OFD Sender: No OFD packet to send [00:39:44]recv_with_timeout no data received [00:39:47]OFD Sender: No OFD packet to send [00:39:52]OFD Sender: No OFD packet to send [00:39:57]OFD Sender: No OFD packet to send [00:40:02]OFD Sender: No OFD packet to send [00:40:07]OFD Sender: No OFD packet to send [00:40:12]OFD Sender: No OFD packet to send [00:40:17]OFD Sender: No OFD packet to send [00:40:22]OFD Sender: No OFD packet to send [00:40:27]OFD Sender: No OFD packet to send [00:40:32]OFD Sender: No OFD packet to send [00:40:37]OFD Sender: No OFD packet to send [00:40:42]OFD Sender: No OFD packet to send [00:40:47]OFD Sender: No OFD packet to send [00:40:52]OFD Sender: No OFD packet to send [00:40:57]OFD Sender: No OFD packet to send [00:41:02]OFD Sender: No OFD packet to send [00:41:07]OFD Sender: No OFD packet to send [00:41:12]OFD Sender: No OFD packet to send [00:41:17]OFD Sender: No OFD packet to send [00:41:22]OFD Sender: No OFD packet to send [00:41:27]OFD Sender: No OFD packet to send [00:41:32]OFD Sender: No OFD packet to send [00:41:37]OFD Sender: No OFD packet to send [00:41:42]OFD Sender: No OFD packet to send [00:41:47]OFD Sender: No OFD packet to send [00:41:52]OFD Sender: No OFD packet to send [00:41:57]OFD Sender: No OFD packet to send [00:42:02]OFD Sender: No OFD packet to send [00:42:07]OFD Sender: No OFD packet to send [00:42:12]OFD Sender: No OFD packet to send [00:42:17]OFD Sender: No OFD packet to send [00:42:22]OFD Sender: No OFD packet to send [00:42:27]OFD Sender: No OFD packet to send [00:42:27]recv_with_timeout no data received [00:42:32]OFD Sender: No OFD packet to send [00:42:37]OFD Sender: No OFD packet to send [00:42:42]OFD Sender: No OFD packet to send [00:42:47]OFD Sender: No OFD packet to send [00:42:52]OFD Sender: No OFD packet to send [00:42:56]recv_with_timeout no data received [00:42:57]OFD Sender: No OFD packet to send [00:43:02]OFD Sender: No OFD packet to send [00:43:07]OFD Sender: No OFD packet to send [00:43:12]OFD Sender: No OFD packet to send [00:43:17]OFD Sender: No OFD packet to send [00:43:22]OFD Sender: No OFD packet to send [00:43:27]OFD Sender: No OFD packet to send [00:43:32]OFD Sender: No OFD packet to send [00:43:37]OFD Sender: No OFD packet to send [00:43:42]OFD Sender: No OFD packet to send [00:43:47]OFD Sender: No OFD packet to send [00:43:52]OFD Sender: No OFD packet to send [00:43:57]OFD Sender: No OFD packet to send [00:43:58]recv_with_timeout no data received [00:44:02]OFD Sender: No OFD packet to send [00:44:07]OFD Sender: No OFD packet to send [00:44:12]OFD Sender: No OFD packet to send [00:44:17]OFD Sender: No OFD packet to send [00:44:20]recv_with_timeout no data received [00:44:22]OFD Sender: No OFD packet to send [00:44:27]OFD Sender: No OFD packet to send [00:44:32]OFD Sender: No OFD packet to send [00:44:37]OFD Sender: No OFD packet to send [00:44:42]OFD Sender: No OFD packet to send [00:44:47]OFD Sender: No OFD packet to send [00:44:52]OFD Sender: No OFD packet to send [00:44:57]OFD Sender: No OFD packet to send [00:45:00]recv_with_timeout no data received [00:45:02]OFD Sender: No OFD packet to send [00:45:07]OFD Sender: No OFD packet to send [00:45:12]OFD Sender: No OFD packet to send [00:45:17]OFD Sender: No OFD packet to send [00:45:22]OFD Sender: No OFD packet to send [00:45:27]OFD Sender: No OFD packet to send [00:45:32]OFD Sender: No OFD packet to send [00:45:37]OFD Sender: No OFD packet to send [00:45:42]OFD Sender: No OFD packet to send [00:45:47]OFD Sender: No OFD packet to send [00:45:52]OFD Sender: No OFD packet to send [00:45:57]OFD Sender: No OFD packet to send [00:46:02]OFD Sender: No OFD packet to send [00:46:07]OFD Sender: No OFD packet to send [00:46:12]OFD Sender: No OFD packet to send [00:46:17]OFD Sender: No OFD packet to send [00:46:22]OFD Sender: No OFD packet to send [00:46:27]OFD Sender: No OFD packet to send [00:46:32]OFD Sender: No OFD packet to send [00:46:37]OFD Sender: No OFD packet to send [00:46:42]OFD Sender: No OFD packet to send [00:46:47]OFD Sender: No OFD packet to send [00:46:52]OFD Sender: No OFD packet to send [00:46:57]OFD Sender: No OFD packet to send [00:47:02]OFD Sender: No OFD packet to send [00:47:07]OFD Sender: No OFD packet to send [00:47:12]OFD Sender: No OFD packet to send [00:47:17]OFD Sender: No OFD packet to send [00:47:22]OFD Sender: No OFD packet to send [00:47:27]OFD Sender: No OFD packet to send [00:47:32]OFD Sender: No OFD packet to send [00:47:37]OFD Sender: No OFD packet to send [00:47:42]OFD Sender: No OFD packet to send [00:47:47]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:48:59]recv_with_timeout no data received [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:18]recv_with_timeout no data received [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:53]recv_with_timeout no data received [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:15]recv_with_timeout no data received [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]recv_with_timeout no data received [00:50:37]OFD Sender: No OFD packet to send [00:51:26]ConnectInit Can't connect to host [00:51:28]OFD Sender: No OFD packet to send [00:51:33]OFD Sender: No OFD packet to send [00:51:38]OFD Sender: No OFD packet to send [00:51:43]OFD Sender: No OFD packet to send [00:51:48]OFD Sender: No OFD packet to send [00:51:53]OFD Sender: No OFD packet to send [00:51:58]OFD Sender: No OFD packet to send [00:52:03]OFD Sender: No OFD packet to send [00:52:08]OFD Sender: No OFD packet to send [00:52:13]OFD Sender: No OFD packet to send [00:52:18]OFD Sender: No OFD packet to send [00:52:23]OFD Sender: No OFD packet to send [00:52:28]OFD Sender: No OFD packet to send [00:52:33]OFD Sender: No OFD packet to send [00:52:38]OFD Sender: No OFD packet to send [00:52:43]OFD Sender: No OFD packet to send [00:52:48]OFD Sender: No OFD packet to send [00:52:53]OFD Sender: No OFD packet to send [00:52:53]recv_with_timeout no data received [00:52:58]OFD Sender: No OFD packet to send [00:53:03]OFD Sender: No OFD packet to send [00:53:08]OFD Sender: No OFD packet to send [00:53:13]OFD Sender: No OFD packet to send [00:53:18]OFD Sender: No OFD packet to send [00:53:23]OFD Sender: No OFD packet to send [00:53:28]OFD Sender: No OFD packet to send [00:53:33]OFD Sender: No OFD packet to send [00:53:38]OFD Sender: No OFD packet to send [00:53:43]OFD Sender: No OFD packet to send [00:53:48]OFD Sender: No OFD packet to send [00:53:53]OFD Sender: No OFD packet to send [00:53:58]OFD Sender: No OFD packet to send [00:54:03]OFD Sender: No OFD packet to send [00:54:08]OFD Sender: No OFD packet to send [00:54:13]OFD Sender: No OFD packet to send [00:54:18]OFD Sender: No OFD packet to send [00:54:23]OFD Sender: No OFD packet to send [00:54:28]OFD Sender: No OFD packet to send [00:54:33]OFD Sender: No OFD packet to send [00:54:38]OFD Sender: No OFD packet to send [00:54:43]OFD Sender: No OFD packet to send [00:54:48]OFD Sender: No OFD packet to send [00:54:53]OFD Sender: No OFD packet to send [00:54:58]OFD Sender: No OFD packet to send [00:55:03]OFD Sender: No OFD packet to send [00:55:08]OFD Sender: No OFD packet to send [00:55:13]OFD Sender: No OFD packet to send [00:55:16]recv_with_timeout no data received [00:55:18]OFD Sender: No OFD packet to send [00:55:23]OFD Sender: No OFD packet to send [00:55:28]OFD Sender: No OFD packet to send [00:55:33]OFD Sender: No OFD packet to send [00:55:38]OFD Sender: No OFD packet to send [00:55:38]recv_with_timeout no data received [00:55:43]OFD Sender: No OFD packet to send [00:55:48]OFD Sender: No OFD packet to send [00:55:53]OFD Sender: No OFD packet to send [00:55:55]recv_with_timeout no data received [00:55:58]OFD Sender: No OFD packet to send [00:56:03]OFD Sender: No OFD packet to send [00:56:08]OFD Sender: No OFD packet to send [00:56:13]OFD Sender: No OFD packet to send [00:56:18]OFD Sender: No OFD packet to send [00:56:23]OFD Sender: No OFD packet to send [00:56:28]OFD Sender: No OFD packet to send [00:56:33]OFD Sender: No OFD packet to send [00:56:38]OFD Sender: No OFD packet to send [00:56:43]OFD Sender: No OFD packet to send [00:56:48]OFD Sender: No OFD packet to send [00:56:50]recv_with_timeout no data received [00:56:53]OFD Sender: No OFD packet to send [00:56:58]OFD Sender: No OFD packet to send [00:57:03]OFD Sender: No OFD packet to send [00:57:08]OFD Sender: No OFD packet to send [00:57:13]OFD Sender: No OFD packet to send [00:57:18]OFD Sender: No OFD packet to send [00:57:23]OFD Sender: No OFD packet to send [00:57:28]OFD Sender: No OFD packet to send [00:57:33]OFD Sender: No OFD packet to send [00:57:35]recv_with_timeout no data received [00:57:38]OFD Sender: No OFD packet to send [00:57:43]OFD Sender: No OFD packet to send [00:57:48]OFD Sender: No OFD packet to send [00:57:53]OFD Sender: No OFD packet to send [00:57:58]OFD Sender: No OFD packet to send [00:58:03]OFD Sender: No OFD packet to send [00:58:08]OFD Sender: No OFD packet to send [00:58:13]OFD Sender: No OFD packet to send [00:58:18]OFD Sender: No OFD packet to send [00:58:23]OFD Sender: No OFD packet to send [00:58:28]OFD Sender: No OFD packet to send [00:58:33]OFD Sender: No OFD packet to send [00:58:38]OFD Sender: No OFD packet to send [00:58:48]OFD Sender: No OFD packet to send [00:58:53]OFD Sender: No OFD packet to send [00:58:58]OFD Sender: No OFD packet to send [00:59:03]OFD Sender: No OFD packet to send [00:59:08]OFD Sender: No OFD packet to send [00:59:09]recv_with_timeout no data received [00:59:13]OFD Sender: No OFD packet to send [00:59:18]OFD Sender: No OFD packet to send [00:59:23]OFD Sender: No OFD packet to send [00:59:28]OFD Sender: No OFD packet to send [00:59:33]OFD Sender: No OFD packet to send [00:59:38]OFD Sender: No OFD packet to send [00:59:43]OFD Sender: No OFD packet to send [00:59:48]OFD Sender: No OFD packet to send [00:59:53]OFD Sender: No OFD packet to send [00:59:58]OFD Sender: No OFD packet to send [01:00:03]OFD Sender: No OFD packet to send [01:00:08]OFD Sender: No OFD packet to send [01:00:13]OFD Sender: No OFD packet to send [01:00:18]OFD Sender: No OFD packet to send [01:00:23]OFD Sender: No OFD packet to send [01:00:28]OFD Sender: No OFD packet to send [01:00:33]OFD Sender: No OFD packet to send [01:00:38]OFD Sender: No OFD packet to send [01:00:43]OFD Sender: No OFD packet to send [01:00:48]OFD Sender: No OFD packet to send [01:00:53]OFD Sender: No OFD packet to send [01:00:54]accept exits with 9 [01:00:54]New connection [01:00:54]New thread 3067444580 created [01:00:54]Thread 3067587940 joined [01:00:54]Waiting for new connection... [01:00:54] Sock 9.Parse request [01:00:54]Sock 9.Check first char [01:00:54]Sock 9.First char is OK [01:00:54]request: POST /json_proto HTTP/1.0 [01:00:54]Method: POST [01:00:54]URL: /json_proto [01:00:54]Method is POST - this is cgi request [01:00:54]url: /json_proto [01:00:54]query_string will be loaded in cgi processing [01:00:54]execute_cgi json_proto POST (null) [01:00:54]execute_cgi path=json_proto method=POST [01:00:54]POST find Content-Length [01:00:54]Host: 172.17.43.132:8080 [01:00:54]Content-Length: 623 [01:00:54]Content-Type: application/json [01:00:54] [01:00:54]POST finish read [01:00:54]Found Content-Length = 623 [01:00:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184009", "tax_sys" : 0, "items" : [ { "code": "4630002599859", "name": "\u041C\u0430\u0441\u043B\u043E Gazpromneft Standart 15w40 1\u043B", "price" : 405.00, "quantity" : 1.000, "sum" : 405.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 405.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:00:54]execute_script... [01:00: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 : (3)184009", "tax_sys" : 0, "items" : [ { "code": "4630002599859", "name": "\u041C\u0430\u0441\u043B\u043E Gazpromneft Standart 15w40 1\u043B", "price" : 405.00, "quantity" : 1.000, "sum" : 405.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 405.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:00:54]POST & json_proto [01:00:54]process_json_proto [01:00:54]json parsed OK: [01:00:54]protocol is kg_v1.0 [01:00:54]action value=close_receipt [01:00:54]process_action close_receipt [01:00:54]cmd_close_receipt [01:00:54]MH_GetDate [01:00:54]Write to MH i2c: F0 00 00 C4 01 B4 [01:00:54]Write i2c OK [01:00:54]MH_I2C_Read... [01:00:54]Read from MH i2c: F0 [01:00:54]MH_I2C_Read... [01:00:54]Read from MH i2c: F0 09 00 [01:00:54]MH_I2C_Read... [01:00:54]Read from MH i2c: F0 09 00 C4 01 00 47 3B A8 66 64 A3 A7 66 61 [01:00:54]GetLastDocTimeStamp 1722299426 [01:00:54]current date 1722301255 [01:00:54]FM_GetShiftState [01:00:54]SAM_PROTO_GetShiftState [01:00:54]wFMCommunicate request_size=4 [01:00:54]MH_SAM_APDU [01:00:54]CAPDU: 80 13 01 00 [01:00:54]Write to MH i2c: E2 08 00 C5 01 80 13 01 00 00 00 00 00 43 [01:00:54]Write i2c OK [01:00:54]MH_I2C_Read... [01:00:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:00:54]Read from MH i2c: E2 [01:00:54]MH_I2C_Read... [01:00:54]Read from MH i2c: E2 0E 00 [01:00:54]MH_I2C_Read... [01:00:54]Read from MH i2c: E2 0E 00 C5 01 00 09 00 01 6A 2F A8 66 00 00 00 00 90 00 F6 [01:00:54]RAPDU: 09 00 01 6A 2F A8 66 00 00 00 00 90 00 [01:00:54]wFMCommunicate OK [01:00:54]SAM_PROTO_GetShiftState done [01:00:54]FM_GetShiftState done [01:00:54]opened in 1722298218 [01:00:54]opened+sec_in_day 1722384618 [01:00:54]quantity*price = 40500 [01:00:54]sum+1 = 40501 [01:00:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 405.00 НСП 1% : 3.58 НДС 12% : 43.01 Наличными: 405.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 2 30.07.2024 01:00 Смена: 428 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41981 ФПД: 120592528981507 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T010055&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41981&fm=120592528981507&tin=02508201610067®Number=0000000000092626&sum=40500 0 [01:00:55]StoreToDocumentArchive [01:00:55]shift 428 fd 41981 [01:00:55]save to /storage/0428/doc_00041981 [01:00:55]save last doc name /storage/0428/doc_00041981 to /storage/kkm_last_doc_name [01:00:55]save OK [01:00:55]Clear old archive folders... [01:00:55]ProcessDocumentItem done err = 0, tmpTLVsize=283 [01:00:55]tlvbuf is 004ED380 [01:00:55]SAM_PROTO_ClearQueue [01:00:55]wFMCommunicate request_size=4 [01:00:55]MH_SAM_APDU [01:00:55]CAPDU: 80 09 00 00 [01:00:55]Write to MH i2c: E2 08 00 D2 01 80 09 00 00 00 00 00 00 45 [01:00:55]Write i2c OK [01:00:55]MH_I2C_Read... [01:00:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:00:55]Read from MH i2c: E2 [01:00:55]MH_I2C_Read... [01:00:55]Read from MH i2c: E2 03 00 [01:00:55]MH_I2C_Read... [01:00:55]Read from MH i2c: E2 03 00 D2 01 00 90 00 47 [01:00:55]RAPDU: 90 00 [01:00:55]wFMCommunicate OK [01:00:55]SAM_PROTO_ClearQueue done [01:00:55]KKMCreateOFDPacket [01:00:55]OFDProtocolAddRootSTLVToBuf [01:00:55]FM_MakeSignedData [01:00:55]FM_MakeSignedData [01:00:55]SAM_PROTO_SignData [01:00:55]wFMCommunicate request_size=4 [01:00:55]MH_SAM_APDU [01:00:55]CAPDU: 80 0D 01 02 [01:00:55]Write to MH i2c: E2 08 00 D3 01 80 0D 01 02 00 00 00 00 4D [01:00:55]Write i2c OK [01:00:55]MH_I2C_Read... [01:00:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:00:55]Read from MH i2c: E2 [01:00:55]MH_I2C_Read... [01:00:55]Read from MH i2c: E2 03 00 [01:00:55]MH_I2C_Read... [01:00:55]Read from MH i2c: E2 03 00 D3 01 00 90 00 48 [01:00:55]RAPDU: 90 00 [01:00:55]wFMCommunicate OK [01:00:55]wFMCommunicate request_size=255 [01:00:55]MH_SAM_APDU [01:00:55]CAPDU: 80 0D 02 02 FA 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 33 30 30 30 32 35 39 39 38 35 39 06 04 29 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 74 61 6E 64 61 72 74 20 31 35 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 47 3B A8 66 0E 04 04 00 AC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 [01:00:55]Write to MH i2c: E2 02 01 D4 01 80 0D 02 02 FA 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 33 30 30 30 32 35 39 39 38 35 39 06 04 29 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 74 61 6E 64 61 72 74 20 31 35 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 47 3B A8 66 0E 04 04 00 AC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 00 00 C3 [01:00:55]Write i2c OK [01:00:55]MH_I2C_Read... [01:00:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:00:56]Read from MH i2c: E2 [01:00:56]MH_I2C_Read... [01:00:56]Read from MH i2c: E2 03 00 [01:00:56]MH_I2C_Read... [01:00:56]Read from MH i2c: E2 03 00 D4 01 00 90 00 49 [01:00:56]RAPDU: 90 00 [01:00:56]wFMCommunicate OK [01:00:56]wFMCommunicate request_size=42 [01:00:56]MH_SAM_APDU [01:00:56]CAPDU: 80 0D 02 02 25 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 FD A3 00 00 35 04 06 00 6D AD A2 DA 3E 03 [01:00:56]Write to MH i2c: E2 2D 00 D5 01 80 0D 02 02 25 00 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 FD A3 00 00 35 04 06 00 6D AD A2 DA 3E 03 00 00 A5 [01:00:56]Write i2c OK [01:00:56]MH_I2C_Read... [01:00:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:00:56]Read from MH i2c: E2 [01:00:56]MH_I2C_Read... [01:00:56]Read from MH i2c: E2 03 00 [01:00:56]MH_I2C_Read... [01:00:56]Read from MH i2c: E2 03 00 D5 01 00 90 00 4A [01:00:56]RAPDU: 90 00 [01:00:56]wFMCommunicate OK [01:00:56]wFMCommunicate request_size=4 [01:00:56]MH_SAM_APDU [01:00:56]CAPDU: 80 0D 03 02 [01:00:56]Write to MH i2c: E2 08 00 D6 01 80 0D 03 02 00 00 00 00 52 [01:00:56]Write i2c OK [01:00:56]MH_I2C_Read... [01:00:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:00:56]Read from MH i2c: E2 [01:00:56]MH_I2C_Read... [01:00:56]Read from MH i2c: E2 0B 00 [01:00:56]MH_I2C_Read... [01:00:56]Read from MH i2c: E2 0B 00 D6 01 00 A7 ED 9E 15 11 55 E5 5C 90 00 41 [01:00:56]RAPDU: A7 ED 9E 15 11 55 E5 5C 90 00 [01:00:56]wFMCommunicate OK [01:00:56]SAM_PROTO_SignData done [01:00:56]FM_MakeSignedData done [01:00:56]CreateOFDProtocolMessage [01:00:56]wFMCommunicate request_size=4 [01:00:56]MH_SAM_APDU [01:00:56]CAPDU: 80 11 00 00 [01:00:56]Write to MH i2c: E2 08 00 D7 01 80 11 00 00 00 00 00 00 52 [01:00:56]Write i2c OK [01:00:56]MH_I2C_Read... [01:00:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:00:56]Read from MH i2c: E2 [01:00:56]MH_I2C_Read... [01:00:56]Read from MH i2c: E2 17 00 [01:00:56]MH_I2C_Read... [01:00:56]Read from MH i2c: E2 17 00 D7 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 AE [01:00:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [01:00:56]wFMCommunicate OK [01:00:56]CreateOFDProtocolMessage done [01:00:56]OFDSenderStorePacket 41981 [01:00:56]StoreOFDPacket docnum=41981 [01:00:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 2F 01 00 00 59 73 27 01 5A 70 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 33 30 30 30 32 35 39 39 38 35 39 06 04 29 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 74 61 6E 64 61 72 74 20 31 35 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 47 3B A8 66 0E 04 04 00 AC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 FD A3 00 00 35 04 06 00 6D AD A2 DA 3E 03 A7 ED 9E 15 11 55 E5 5C [01:00:56]CheckFolder [01:00:56]dirname=/storage/ofd_packets [01:00:56]CheckFolder done [01:00:56]ProducePacketName [01:00:56]name=ofd_packets/00041981 [01:00:56]NVStorageSaveData ofd_packets/00041981 [01:00:56]File name is /storage/ofd_packets/00041981 [01:00:56]Write 333 bytes [01:00:56]NVStorageSaveData done [01:00:56]OFDSenderStorePacket done [01:00:56]KKMCreateOFDPacket done [01:00:56]NVStorageSaveData kkm_last_timestamp [01:00:56]File name is /storage/kkm_last_timestamp [01:00:56]Write 4 bytes [01:00:56]NVStorageSaveData done [01:00:56]ExternCall_PrintAddStr [01:00:56]wPrintStart [01:00:56]Write to MH i2c: 01 00 00 D8 01 D9 [01:00:56]Write i2c OK [01:00:56]MH_I2C_Read... [01:00:56]Read from MH i2c: 01 [01:00:56]MH_I2C_Read... [01:00:56]Read from MH i2c: 01 07 00 [01:00:56]MH_I2C_Read... [01:00:56]Read from MH i2c: 01 07 00 D8 01 00 00 00 00 00 FF 0F EE [01:00:56]RasterBufferAndPrint [01:00:56]line Счет N : (3)184009 [01:00:56]line ИНН: 02508201610067 [01:00:56]line Контрольно-Кассовый Чек [01:00:56]line ПРОДАЖА [01:00:56]line Товар: 4630002599859 [01:00:56]line Масло Gazpromneft Standart 15w40 1л [01:00:56]line 1.000 * 405.00 [01:00:56]line = 405.00 [01:00:56]line НДС 12% НСП 1% [01:00:56]line > о реализуемом товаре [01:00:56]line ИТОГО: 405.00 [01:00:56]line НСП 1% : 3.58 [01:00:56]line НДС 12% : 43.01 [01:00:56]line Наличными: 405.00 [01:00:56]line Безнал.: 0.00 [01:00:56]line Место: АЗС № 97 "Партнер Нефть" [01:00:56]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [01:00:56]line СНО: Общий режим [01:00:56]line Чек 2 30.07.2024 01:00 [01:00:56]line Смена: 428 ФФД: 1.0 [01:00:56]line ЗНМ: 0300000053 [01:00:56]line РНМ: 0000000000092626 [01:00:56]line Версия ККМ: 001 [01:00:56]line ФМ: 0000000000874958 [01:00:56]line ФД: 41981 [01:00:56]line ФПД: 120592528981507 [01:00:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T010055&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41981&fm=120592528981507&tin=02508201610067®Number=0000000000092626&sum=40500 [01:00:56]line 0 [01:00:56]OFD Sender: Processing packet 41981 [packets to send 57, broken 56] [01:00:56]ProducePacketName [01:00:56]name=ofd_packets/00041981 [01:00:56]OFD Sender: To server: pG, [01:00:56]CommunicateWithHost lk.salyk.kg:30040 [01:00:56]ConnectInit lk.salyk.kg [01:00:56]written 0, free lines is 4095 [01:00:56]Connected sock=8 [01:00: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 35 38 2F 01 00 00 59 73 27 01 5A 70 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 33 30 30 30 32 35 39 39 38 35 39 06 04 29 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 74 61 6E 64 61 72 74 20 31 35 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 47 3B A8 66 0E 04 04 00 AC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 FD A3 00 00 35 04 06 00 6D AD A2 DA 3E 03 A7 ED 9E 15 11 55 E5 5C [01:00:57]Write to MH i2c: 01 00 00 01 02 03 [01:00:57]Write i2c OK [01:00:57]MH_I2C_Read... [01:00:57]Read from MH i2c: 01 [01:00:57]MH_I2C_Read... [01:00:57]Read from MH i2c: 01 07 00 [01:00:57]MH_I2C_Read... [01:00:57]Read from MH i2c: 01 07 00 01 02 00 00 00 00 00 09 0D 20 [01:00:57]RasterBufferAndPrint [01:00:57]line [01:00:57]line [01:00:57]line [01:00:57]line [01:00:57]line [01:00:57]written 0, free lines is 3343 [01:00:57]MH_Cut [01:00:57]Write to MH i2c: D1 01 00 08 02 01 DC [01:00:57]Write i2c OK [01:00:57]MH_I2C_Read... [01:00:57]Read from MH i2c: D1 [01:00:57]MH_I2C_Read... [01:00:57]Read from MH i2c: D1 01 00 [01:00:57]MH_I2C_Read... [01:00:57]Read from MH i2c: D1 01 00 08 02 00 DB [01:00:57]Write to MH i2c: 01 00 00 09 02 0B [01:00:57]Write i2c OK [01:00:57]MH_I2C_Read... [01:00: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 35 38 4F 00 00 00 15 D5 47 00 80 CB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 FD A3 00 00 F4 03 04 00 5C E7 A7 66 B6 04 01 00 00 98 EA AE 16 B0 35 C4 B2 [01:00:57]CommunicateWithHost err = 0 [01:00:57]CheckOFDResponse [01:00:57]1017 (14) - 77093643461234 [01:00:57]1041 (16) - 0000000000874958 [01:00:57]1040 (4) - 41981 [01:00:57]1012 (4) - 29.07.2024 19:02 [01:00:57]1206 (1) - 0 [01:00:57]OFD Sender: Remove packet 41981 [01:00:57]ProducePacketName [01:00:57]name=ofd_packets/00041981 [01:00:57]NVStorageDeleteData [01:00:57]*** Cut start [01:00:57]*** Partial cut [01:00:57]*** CUTSNS_PIN = 1 [01:00:57]*** CUTSNS_PIN = 0 [01:00:57]OFD Sender: No OFD packet to send [01:00:58]*** Brake cut motor [01:00:58]Read from MH i2c: 01 [01:00:58]MH_I2C_Read... [01:00:58]*** Stop cut motor [01:00:58]*** Cut end [01:00:58]Read from MH i2c: 01 07 00 [01:00:58]MH_I2C_Read... [01:00:58]Read from MH i2c: 01 07 00 09 02 00 00 00 00 00 FF 0F 20 [01:00:58]process_action close_receipt done [01:00:58]requested_data is exist [01:00:58]produce_requested_data [01:00:58]requested_item fm.sn is exist - process it [01:00:58]wFMCommunicate request_size=4 [01:00:58]MH_SAM_APDU [01:00:58]CAPDU: 80 11 00 00 [01:00:58]Write to MH i2c: E2 08 00 0A 02 80 11 00 00 00 00 00 00 86 [01:00:58]Write i2c OK [01:00:58]MH_I2C_Read... [01:00:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:00:58]Read from MH i2c: E2 [01:00:58]MH_I2C_Read... [01:00:58]Read from MH i2c: E2 17 00 [01:00:58]MH_I2C_Read... [01:00:58]Read from MH i2c: E2 17 00 0A 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 E2 [01:00:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [01:00:58]wFMCommunicate OK [01:00:58]requested_item fd.num is exist - process it [01:00:58]SAM_PROTO_GetFieldsCounters [01:00:58]wFMCommunicate request_size=4 [01:00:58]MH_SAM_APDU [01:00:58]CAPDU: 80 13 00 00 [01:00:58]Write to MH i2c: E2 08 00 0B 02 80 13 00 00 00 00 00 00 89 [01:00:58]Write i2c OK [01:00:58]MH_I2C_Read... [01:00:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:00:58]Read from MH i2c: E2 [01:00:58]MH_I2C_Read... [01:00:58]Read from MH i2c: E2 62 00 [01:00:58]MH_I2C_Read... [01:00:58]Read from MH i2c: E2 62 00 0B 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 FD A3 00 00 0E 04 04 00 AC 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 06 [01:00: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 FD A3 00 00 0E 04 04 00 AC 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 [01:00:58]wFMCommunicate OK [01:00:58]SAM_PROTO_GetFieldsCounters done [01:00:58]requested_item shift.num is exist - process it [01:00:58]requested_item shift.opened is exist - process it [01:00:58]req_shift_opened [01:00:58]FM_GetShiftState [01:00:58]SAM_PROTO_GetShiftState [01:00:58]wFMCommunicate request_size=4 [01:00:58]MH_SAM_APDU [01:00:58]CAPDU: 80 13 01 00 [01:00:58]Write to MH i2c: E2 08 00 0C 02 80 13 01 00 00 00 00 00 8B [01:00:58]Write i2c OK [01:00:58]MH_I2C_Read... [01:00:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:00:58]Read from MH i2c: E2 [01:00:58]MH_I2C_Read... [01:00:58]Read from MH i2c: E2 0E 00 [01:00:58]MH_I2C_Read... [01:00:58]Read from MH i2c: E2 0E 00 0C 02 00 09 00 01 6A 2F A8 66 00 00 00 00 90 00 3E [01:00:58]RAPDU: 09 00 01 6A 2F A8 66 00 00 00 00 90 00 [01:00:58]wFMCommunicate OK [01:00:58]SAM_PROTO_GetShiftState done [01:00:58]FM_GetShiftState done [01:00:58]req_shift_opened done [01:00:58]requested_item shift.open_date is exist - process it [01:00:58]req_shift_open_date [01:00:58]req_shift_open_date done [01:00:58]produce_requested_data done [01:00:58]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41981,"shift.num":428,"shift.opened":1,"shift.open_date":1722298218} [01:00:58]process_action_free close_receipt [01:00:58]json_value_free [01:00:58]json_value_free done [01:00:58]process_json_proto returns [01:00:58]Send response to host [01:00:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41981,"shift.num":428,"shift.opened":1,"shift.open_date":1722298218}}} [01:00:58]free response buf [01:00:58]execute_script done [01:00:58]execute_script returns [01:00:58]free content buf [01:00:58]Sock 9.Close socket [01:00:58]Sock 9.Thread stoped [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:39]recv_with_timeout no data received [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:13]recv_with_timeout no data received [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:49]recv_with_timeout no data received [01:02:50]accept exits with 10 [01:02:50]New connection [01:02:50]New thread 3067587940 created [01:02:50]Thread 3067444580 joined [01:02:50]Waiting for new connection... [01:02:50] Sock 10.Parse request [01:02:50]Sock 10.Check first char [01:02:50]Sock 10.First char is OK [01:02:50]request: POST /json_proto HTTP/1.0 [01:02:50]Method: POST [01:02:50]URL: /json_proto [01:02:50]Method is POST - this is cgi request [01:02:50]url: /json_proto [01:02:50]query_string will be loaded in cgi processing [01:02:50]execute_cgi json_proto POST (null) [01:02:50]execute_cgi path=json_proto method=POST [01:02:50]POST find Content-Length [01:02:50]Host: 172.17.43.132:8080 [01:02:50]Content-Length: 620 [01:02:50]Content-Type: application/json [01:02:50] [01:02:50]POST finish read [01:02:50]Found Content-Length = 620 [01:02:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184010", "tax_sys" : 0, "items" : [ { "code": "4650063110756", "name": "\u041C\u0430\u0441\u043B\u043E Gazpromneft Super 10w40 1\u043B", "price" : 405.00, "quantity" : 1.000, "sum" : 405.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 405.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:02:50]execute_script... [01:02:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184010", "tax_sys" : 0, "items" : [ { "code": "4650063110756", "name": "\u041C\u0430\u0441\u043B\u043E Gazpromneft Super 10w40 1\u043B", "price" : 405.00, "quantity" : 1.000, "sum" : 405.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 405.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:02:50]POST & json_proto [01:02:50]process_json_proto [01:02:50]json parsed OK: [01:02:50]protocol is kg_v1.0 [01:02:50]action value=close_receipt [01:02:50]process_action close_receipt [01:02:50]cmd_close_receipt [01:02:50]MH_GetDate [01:02:50]Write to MH i2c: F0 00 00 0D 02 FE [01:02:50]Write i2c OK [01:02:50]MH_I2C_Read... [01:02:50]Read from MH i2c: F0 [01:02:50]MH_I2C_Read... [01:02:50]Read from MH i2c: F0 09 00 [01:02:50]MH_I2C_Read... [01:02:50]Read from MH i2c: F0 09 00 0D 02 00 BB 3B A8 66 64 A3 A7 66 1F [01:02:50]GetLastDocTimeStamp 1722301255 [01:02:50]current date 1722301371 [01:02:50]FM_GetShiftState [01:02:50]SAM_PROTO_GetShiftState [01:02:50]wFMCommunicate request_size=4 [01:02:50]MH_SAM_APDU [01:02:50]CAPDU: 80 13 01 00 [01:02:50]Write to MH i2c: E2 08 00 0E 02 80 13 01 00 00 00 00 00 8D [01:02:50]Write i2c OK [01:02:50]MH_I2C_Read... [01:02:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:02:50]Read from MH i2c: E2 [01:02:50]MH_I2C_Read... [01:02:50]Read from MH i2c: E2 0E 00 [01:02:50]MH_I2C_Read... [01:02:50]Read from MH i2c: E2 0E 00 0E 02 00 09 00 01 6A 2F A8 66 00 00 00 00 90 00 40 [01:02:50]RAPDU: 09 00 01 6A 2F A8 66 00 00 00 00 90 00 [01:02:50]wFMCommunicate OK [01:02:50]SAM_PROTO_GetShiftState done [01:02:50]FM_GetShiftState done [01:02:50]opened in 1722298218 [01:02:50]opened+sec_in_day 1722384618 [01:02:50]quantity*price = 40500 [01:02:50]sum+1 = 40501 [01:02:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 405.00 НСП 1% : 3.58 НДС 12% : 43.01 Наличными: 405.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 3 30.07.2024 01:02 Смена: 428 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41982 ФПД: 94425370663154 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T010251&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41982&fm=94425370663154&tin=02508201610067®Number=0000000000092626&sum=40500 0 [01:02:51]StoreToDocumentArchive [01:02:51]shift 428 fd 41982 [01:02:51]save to /storage/0428/doc_00041982 [01:02:51]save last doc name /storage/0428/doc_00041982 to /storage/kkm_last_doc_name [01:02:51]save OK [01:02:51]Clear old archive folders... [01:02:51]ProcessDocumentItem done err = 0, tmpTLVsize=280 [01:02:51]tlvbuf is 005264A0 [01:02:51]SAM_PROTO_ClearQueue [01:02:51]wFMCommunicate request_size=4 [01:02:51]MH_SAM_APDU [01:02:51]CAPDU: 80 09 00 00 [01:02:51]Write to MH i2c: E2 08 00 1B 02 80 09 00 00 00 00 00 00 8F [01:02:51]Write i2c OK [01:02:51]MH_I2C_Read... [01:02:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:02:51]Read from MH i2c: E2 [01:02:51]MH_I2C_Read... [01:02:51]Read from MH i2c: E2 03 00 [01:02:51]MH_I2C_Read... [01:02:51]Read from MH i2c: E2 03 00 1B 02 00 90 00 91 [01:02:51]RAPDU: 90 00 [01:02:51]wFMCommunicate OK [01:02:51]SAM_PROTO_ClearQueue done [01:02:51]KKMCreateOFDPacket [01:02:51]OFDProtocolAddRootSTLVToBuf [01:02:51]FM_MakeSignedData [01:02:51]FM_MakeSignedData [01:02:51]SAM_PROTO_SignData [01:02:51]wFMCommunicate request_size=4 [01:02:51]MH_SAM_APDU [01:02:51]CAPDU: 80 0D 01 02 [01:02:51]Write to MH i2c: E2 08 00 1C 02 80 0D 01 02 00 00 00 00 97 [01:02:51]Write i2c OK [01:02:51]MH_I2C_Read... [01:02:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:02:51]Read from MH i2c: E2 [01:02:51]MH_I2C_Read... [01:02:51]Read from MH i2c: E2 03 00 [01:02:51]MH_I2C_Read... [01:02:51]Read from MH i2c: E2 03 00 1C 02 00 90 00 92 [01:02:51]RAPDU: 90 00 [01:02:51]wFMCommunicate OK [01:02:51]wFMCommunicate request_size=255 [01:02:51]MH_SAM_APDU [01:02:51]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 30 37 35 36 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 75 70 65 72 20 31 30 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 BB 3B A8 66 0E 04 04 00 AC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 [01:02:51]Write to MH i2c: E2 02 01 1D 02 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 30 37 35 36 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 75 70 65 72 20 31 30 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 BB 3B A8 66 0E 04 04 00 AC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 00 00 46 [01:02:51]Write i2c OK [01:02:51]MH_I2C_Read... [01:02:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:02:52]Read from MH i2c: E2 [01:02:52]MH_I2C_Read... [01:02:52]Read from MH i2c: E2 03 00 [01:02:52]MH_I2C_Read... [01:02:52]Read from MH i2c: E2 03 00 1D 02 00 90 00 93 [01:02:52]RAPDU: 90 00 [01:02:52]wFMCommunicate OK [01:02:52]wFMCommunicate request_size=39 [01:02:52]MH_SAM_APDU [01:02:52]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 FE A3 00 00 35 04 06 00 55 E1 1E AD 18 F2 [01:02:52]Write to MH i2c: E2 2A 00 1E 02 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 FE A3 00 00 35 04 06 00 55 E1 1E AD 18 F2 00 00 0A [01:02:52]Write i2c OK [01:02:52]MH_I2C_Read... [01:02:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:02:52]Read from MH i2c: E2 [01:02:52]MH_I2C_Read... [01:02:52]Read from MH i2c: E2 03 00 [01:02:52]MH_I2C_Read... [01:02:52]Read from MH i2c: E2 03 00 1E 02 00 90 00 94 [01:02:52]RAPDU: 90 00 [01:02:52]wFMCommunicate OK [01:02:52]wFMCommunicate request_size=4 [01:02:52]MH_SAM_APDU [01:02:52]CAPDU: 80 0D 03 02 [01:02:52]Write to MH i2c: E2 08 00 1F 02 80 0D 03 02 00 00 00 00 9C [01:02:52]Write i2c OK [01:02:52]MH_I2C_Read... [01:02:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:02:52]Read from MH i2c: E2 [01:02:52]MH_I2C_Read... [01:02:52]Read from MH i2c: E2 0B 00 [01:02:52]MH_I2C_Read... [01:02:52]Read from MH i2c: E2 0B 00 1F 02 00 A2 EA CE 33 B2 4C 6D D4 90 00 69 [01:02:52]RAPDU: A2 EA CE 33 B2 4C 6D D4 90 00 [01:02:52]wFMCommunicate OK [01:02:52]SAM_PROTO_SignData done [01:02:52]FM_MakeSignedData done [01:02:52]CreateOFDProtocolMessage [01:02:52]wFMCommunicate request_size=4 [01:02:52]MH_SAM_APDU [01:02:52]CAPDU: 80 11 00 00 [01:02:52]Write to MH i2c: E2 08 00 20 02 80 11 00 00 00 00 00 00 9C [01:02:52]Write i2c OK [01:02:52]MH_I2C_Read... [01:02:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:02:52]Read from MH i2c: E2 [01:02:52]MH_I2C_Read... [01:02:52]Read from MH i2c: E2 17 00 [01:02:52]MH_I2C_Read... [01:02:52]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 35 38 90 00 F8 [01:02:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [01:02:52]wFMCommunicate OK [01:02:52]CreateOFDProtocolMessage done [01:02:52]OFDSenderStorePacket 41982 [01:02:52]StoreOFDPacket docnum=41982 [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 81 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 26 [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 5400000000572581 (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: 40576+1722262372=1722302948 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0xff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33540624 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 81 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 27 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 60 00 FF FF 7F [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 E5 41 A8 66 64 A3 A7 66 47 [01:29:09]Current date/time: 30.07.2024 01:29 [01:29:09]FM_Init [01:29:09]wFMConnect [01:29:09]MH_SAM_On [01:29:09]Write to MH i2c: E0 00 00 08 00 E7 [01:29:09]Write i2c OK [01:29:09]MH_I2C_Read... [01:29:09]*** iso7816_init finished! [01:29:09]*** atr: [01:29:09]*** 0F 3B D5 18 FF 81 91 FE [01:29:09]*** 1F C3 80 73 C8 21 10 0A [01:29:09]*** 00 00 00 00 00 00 00 00 [01:29:09]*** 00 00 00 00 00 00 00 00 [01:29:09]*** 00 00 00 00 00 00 00 00 [01:29:09]*** 00 00 00 00 00 00 00 00 [01:29:09]*** 00 00 00 00 00 00 00 00 [01:29:09]*** 00 00 00 00 00 00 00 00 [01:29:09]Read from MH i2c: E0 [01:29:09]MH_I2C_Read... [01:29:09]Read from MH i2c: E0 10 00 [01:29:09]MH_I2C_Read... [01:29:09]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [01:29:09]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [01:29:09]wFMCommunicate request_size=10 [01:29:09]MH_SAM_APDU [01:29:09]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [01:29:09]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [01:29:09]Write i2c OK [01:29:09]MH_I2C_Read... [01:29:09]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [01:29:09]Read from MH i2c: E2 [01:29:09]MH_I2C_Read... [01:29:09]Read from MH i2c: E2 03 00 [01:29:09]MH_I2C_Read... [01:29:09]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [01:29:09]RAPDU: 90 00 [01:29:09]wFMCommunicate OK [01:29:09]wFMCommunicate request_size=4 [01:29:09]MH_SAM_APDU [01:29:09]CAPDU: 80 11 00 00 [01:29:09]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [01:29:09]Write i2c OK [01:29:09]MH_I2C_Read... [01:29:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:29:09]Read from MH i2c: E2 [01:29:09]MH_I2C_Read... [01:29:09]Read from MH i2c: E2 17 00 [01:29:09]MH_I2C_Read... [01:29:09]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 35 38 90 00 E0 [01:29:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [01:29:09]wFMCommunicate OK [01:29:09]Detected FM SN is 0000000000874958 [01:29:09]Stored FM SN is 0000000000874958 [01:29:09]wFMCommunicate request_size=9 [01:29:09]MH_SAM_APDU [01:29:09]CAPDU: 80 16 00 00 04 FB 29 00 00 [01:29:09]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 FB 29 00 00 00 00 B6 [01:29:09]Write i2c OK [01:29:09]MH_I2C_Read... [01:29:09]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [01:29:09]Read from MH i2c: E2 [01:29:09]MH_I2C_Read... [01:29:09]Read from MH i2c: E2 03 00 [01:29:09]MH_I2C_Read... [01:29:09]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [01:29:09]RAPDU: 90 00 [01:29:09]wFMCommunicate OK [01:29:09]FM PIN OK [01:29:09]wFMCommunicate request_size=8 [01:29:09]MH_SAM_APDU [01:29:09]CAPDU: 80 14 04 00 03 02 00 01 [01:29:09]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [01:29:09]Write i2c OK [01:29:09]MH_I2C_Read... [01:29:09]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [01:29:09]Read from MH i2c: E2 [01:29:09]MH_I2C_Read... [01:29:09]Read from MH i2c: E2 03 00 [01:29:09]MH_I2C_Read... [01:29:09]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [01:29:09]RAPDU: 90 00 [01:29:09]wFMCommunicate OK [01:29:09]wFMCommunicate request_size=13 [01:29:09]MH_SAM_APDU [01:29:09]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [01:29:09]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [01:29:09]Write i2c OK [01:29:09]MH_I2C_Read... [01:29:09]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [01:29:09]Read from MH i2c: E2 [01:29:09]MH_I2C_Read... [01:29:09]Read from MH i2c: E2 03 00 [01:29:09]MH_I2C_Read... [01:29:09]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [01:29:09]RAPDU: 90 00 [01:29:09]wFMCommunicate OK [01:29:09]wFMCommunicate request_size=4 [01:29:09]MH_SAM_APDU [01:29:09]CAPDU: 80 11 00 00 [01:29:09]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [01:29:09]Write i2c OK [01:29:09]MH_I2C_Read... [01:29:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:29:09]Read from MH i2c: E2 [01:29:09]MH_I2C_Read... [01:29:09]Read from MH i2c: E2 17 00 [01:29:09]MH_I2C_Read... [01:29:09]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 35 38 90 00 E4 [01:29:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [01:29:09]wFMCommunicate OK [01:29:09]DocumentArchiveInit [01:29:09]Start Httpd... [01:29:09]Httpd thread 3067530596 created [01:29:09]Write to MH i2c: 01 00 00 0F 00 0F [01:29:09]Write i2c OK [01:29:09]MH_I2C_Read... [01:29:09]Read from MH i2c: 01 [01:29:09]MH_I2C_Read... [01:29:09]Read from MH i2c: 01 07 00 [01:29:09]MH_I2C_Read... [01:29:09]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [01:29:09]MH Int Process started [01:29:09]Allocated Socket 7 [01:29:09]Bind OK [01:29:09]Listen OK [01:29:09]httpd running on port 8080 [01:29:09]Waiting for new connection... [01:29:09]OFD Sender: Processing packet 41982 [packets to send 57, broken 56] [01:29:09]ProducePacketName [01:29:09]name=ofd_packets/00041982 [01:29:09]OFD Sender: To server: pG, [01:29:09]CommunicateWithHost lk.salyk.kg:30040 [01:29:09]ConnectInit lk.salyk.kg [01:29:09]Connected sock=8 [01:29:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 2C 01 00 00 7F BE 24 01 35 84 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 30 37 35 36 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 75 70 65 72 20 31 30 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 BB 3B A8 66 0E 04 04 00 AC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 FE A3 00 00 35 04 06 00 55 E1 1E AD 18 F2 A2 EA CE 33 B2 4C 6D D4 [01: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 35 38 4F 00 00 00 3E C4 47 00 A2 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 35 38 10 04 04 00 FE A3 00 00 F4 03 04 00 F9 ED A7 66 B6 04 01 00 00 51 D1 99 DB 53 0D B4 D8 [01:29:10]CommunicateWithHost err = 0 [01:29:10]CheckOFDResponse [01:29:10]1017 (14) - 77093643461234 [01:29:10]1041 (16) - 0000000000874958 [01:29:10]1040 (4) - 41982 [01:29:10]1012 (4) - 29.07.2024 19:31 [01:29:10]1206 (1) - 0 [01:29:10]OFD Sender: Remove packet 41982 [01:29:10]ProducePacketName [01:29:10]name=ofd_packets/00041982 [01:29:10]NVStorageDeleteData [01:29:10]OFD Sender: No OFD packet to send [01:29:11]accept exits with 9 [01:29:11]New connection [01:29:11]New thread 3067243876 created [01:29:11]Waiting for new connection... [01:29:11] Sock 9.Parse request [01:29:11]Sock 9.Check first char [01:29:11]Sock 9.First char is OK [01:29:11]request: POST /json_proto HTTP/1.0 [01:29:11]Method: POST [01:29:11]URL: /json_proto [01:29:11]Method is POST - this is cgi request [01:29:11]url: /json_proto [01:29:11]query_string will be loaded in cgi processing [01:29:11]execute_cgi json_proto POST (null) [01:29:11]execute_cgi path=json_proto method=POST [01:29:11]POST find Content-Length [01:29:11]Host: 172.17.43.132:8080 [01:29:11]Content-Length: 215 [01:29:11]Content-Type: application/json [01:29:11] [01:29:11]POST finish read [01:29:11]Found Content-Length = 215 [01:29:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:29:11]execute_script... [01:29:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:29:11]POST & json_proto [01:29:11]process_json_proto [01:29:11]json parsed OK: [01:29:11]protocol is kg_v1.0 [01:29:11]action value=get_value [01:29:11]process_action get_value [01:29:11]cmd_get_value [01:29:11]process_action get_value done [01:29:11]requested_data is exist [01:29:11]produce_requested_data [01:29:11]requested_item kkm.sn is exist - process it [01:29:11]requested_item kkm.ver is exist - process it [01:29:11]requested_item fm.sn is exist - process it [01:29:11]wFMCommunicate request_size=4 [01:29:11]MH_SAM_APDU [01:29:11]CAPDU: 80 11 00 00 [01:29:11]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [01:29:11]Write i2c OK [01:29:11]MH_I2C_Read... [01:29:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:29:11]Read from MH i2c: E2 [01:29:11]MH_I2C_Read... [01:29:11]Read from MH i2c: E2 17 00 [01:29:11]MH_I2C_Read... [01:29:11]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 35 38 90 00 E6 [01:29:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [01:29:11]wFMCommunicate OK [01:29:11]requested_item fd.num is exist - process it [01:29:11]SAM_PROTO_GetFieldsCounters [01:29:11]wFMCommunicate request_size=4 [01:29:11]MH_SAM_APDU [01:29:11]CAPDU: 80 13 00 00 [01:29:11]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [01:29:11]Write i2c OK [01:29:11]MH_I2C_Read... [01:29:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:29:11]Read from MH i2c: E2 [01:29:11]MH_I2C_Read... [01:29:11]Read from MH i2c: E2 62 00 [01:29:11]MH_I2C_Read... [01:29:11]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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 FE A3 00 00 0E 04 04 00 AC 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 0E [01: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 FE A3 00 00 0E 04 04 00 AC 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 [01:29:11]wFMCommunicate OK [01:29:11]SAM_PROTO_GetFieldsCounters done [01:29:11]requested_item shift.num is exist - process it [01:29:11]requested_item shift.opened is exist - process it [01:29:11]req_shift_opened [01:29:11]FM_GetShiftState [01:29:11]SAM_PROTO_GetShiftState [01:29:11]wFMCommunicate request_size=4 [01:29:11]MH_SAM_APDU [01:29:11]CAPDU: 80 13 01 00 [01:29:11]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [01:29:11]Write i2c OK [01:29:11]MH_I2C_Read... [01:29:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:29:11]Read from MH i2c: E2 [01:29:11]MH_I2C_Read... [01:29:11]Read from MH i2c: E2 0E 00 [01:29:11]MH_I2C_Read... [01:29:11]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 6A 2F A8 66 00 00 00 00 90 00 42 [01:29:11]RAPDU: 09 00 01 6A 2F A8 66 00 00 00 00 90 00 [01:29:11]wFMCommunicate OK [01:29:11]SAM_PROTO_GetShiftState done [01:29:11]FM_GetShiftState done [01:29:11]req_shift_opened done [01:29:11]requested_item shift.open_date is exist - process it [01:29:11]req_shift_open_date [01:29:11]req_shift_open_date done [01:29:11]produce_requested_data done [01:29:11]produce_requested_data return {"kkm.sn":"0300000053","kkm.ver":"001","fm.sn":"0000000000874958","fd.num":41982,"shift.num":428,"shift.opened":1,"shift.open_date":1722298218} [01:29:11]process_action_free get_value [01:29:11]json_value_free [01:29:11]json_value_free done [01:29:11]process_json_proto returns [01:29:11]Send response to host [01:29:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000053","kkm.ver":"001","fm.sn":"0000000000874958","fd.num":41982,"shift.num":428,"shift.opened":1,"shift.open_date":1722298218}}} [01:29:11]free response buf [01:29:11]execute_script done [01:29:11]execute_script returns [01:29:11]free content buf [01:29:11]Sock 9.Close socket [01:29:11]Sock 9.Thread stoped [01:29:11]accept exits with 8 [01:29:11]New connection [01:29:11]New thread 3067100516 created [01:29:11]Thread 3067243876 joined [01:29:11]Waiting for new connection... [01:29:11] Sock 8.Parse request [01:29:11]Sock 8.Check first char [01:29:11]Sock 8.First char is OK [01:29:11]request: POST /json_proto HTTP/1.0 [01:29:11]Method: POST [01:29:11]URL: /json_proto [01:29:11]Method is POST - this is cgi request [01:29:11]url: /json_proto [01:29:11]query_string will be loaded in cgi processing [01:29:11]execute_cgi json_proto POST (null) [01:29:11]execute_cgi path=json_proto method=POST [01:29:11]POST find Content-Length [01:29:11]Host: 172.17.43.132:8080 [01:29:11]Content-Length: 331 [01:29:11]Content-Type: application/json [01:29:11] [01:29:11]POST finish read [01:29:11]Found Content-Length = 331 [01:29:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [01:29:11]execute_script... [01:29:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [01:29:11]POST & json_proto [01:29:11]process_json_proto [01:29:11]json parsed OK: [01:29:11]protocol is kg_v1.0 [01:29:11]action value=get_value [01:29:11]process_action get_value [01:29:11]cmd_get_value [01:29:11]process_action get_value done [01:29:11]requested_data is exist [01:29:11]produce_requested_data [01:29:11]requested_item fm.sale.total is exist - process it [01:29:11]SAM_PROTO_GetFMData [01:29:11]wFMCommunicate request_size=4 [01:29:11]MH_SAM_APDU [01:29:11]CAPDU: 80 13 03 00 [01:29:11]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [01:29:11]Write i2c OK [01:29:11]MH_I2C_Read... [01:29:12]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [01:29:12]Read from MH i2c: E2 [01:29:12]MH_I2C_Read... [01:29:12]Read from MH i2c: E2 FD 00 [01:29:12]MH_I2C_Read... [01:29:12]Read from MH i2c: E2 FD 00 13 00 00 C1 04 85 04 BD 04 6E 04 04 00 A6 A0 00 00 69 04 A0 00 6F 04 04 00 0C A0 00 00 B1 04 04 00 E5 83 42 37 70 04 04 00 10 AC E9 31 72 04 04 00 D5 D7 58 05 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 C6 30 DE 05 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 BE 1A 7D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 9A 00 00 00 B1 04 03 00 54 D5 4E 70 04 03 00 58 C9 42 72 04 03 00 FC 0B 0C 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 13 5F 08 EF 03 09 00 F6 03 90 00 7C [01:29:12]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 A6 A0 00 00 69 04 A0 00 6F 04 04 00 0C A0 00 00 B1 04 04 00 E5 83 42 37 70 04 04 00 10 AC E9 31 72 04 04 00 D5 D7 58 05 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 C6 30 DE 05 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 BE 1A 7D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 9A 00 00 00 B1 04 03 00 54 D5 4E 70 04 03 00 58 C9 42 72 04 03 00 FC 0B 0C 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 13 5F 08 EF 03 09 00 F6 03 90 00 [01:29:12]wFMCommunicate OK [01:29:12]wFMCommunicate request_size=4 [01:29:12]MH_SAM_APDU [01:29:12]CAPDU: 80 17 00 00 [01:29:12]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [01:29:12]Write i2c OK [01:29:12]MH_I2C_Read... [01:29:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:29:12]Read from MH i2c: E2 [01:29:12]MH_I2C_Read... [01:29:12]Read from MH i2c: E2 FD 00 [01:29:12]MH_I2C_Read... [01:29:12]Read from MH i2c: E2 FD 00 14 00 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 F4 [01:29:12]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 [01:29:12]wFMCommunicate OK [01:29:12]wFMCommunicate request_size=4 [01:29:12]MH_SAM_APDU [01:29:12]CAPDU: 80 17 00 00 [01:29:12]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [01:29:12]Write i2c OK [01:29:12]MH_I2C_Read... [01:29:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:29:12]Read from MH i2c: E2 [01:29:12]MH_I2C_Read... [01:29:12]Read from MH i2c: E2 FD 00 [01:29:12]MH_I2C_Read... [01:29:12]Read from MH i2c: E2 FD 00 15 00 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 35 [01:29:12]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [01:29:12]wFMCommunicate OK [01:29:12]wFMCommunicate request_size=4 [01:29:12]MH_SAM_APDU [01:29:12]CAPDU: 80 17 00 00 [01:29:12]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [01:29:12]Write i2c OK [01:29:12]MH_I2C_Read... [01:29:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:29:13]Read from MH i2c: E2 [01:29:13]MH_I2C_Read... [01:29:13]Read from MH i2c: E2 FD 00 [01:29:13]MH_I2C_Read... [01:29:13]Read from MH i2c: E2 FD 00 16 00 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 1B [01:29:13]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [01:29:13]wFMCommunicate OK [01:29:13]wFMCommunicate request_size=4 [01:29:13]MH_SAM_APDU [01:29:13]CAPDU: 80 17 00 00 [01:29:13]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [01:29:13]Write i2c OK [01:29:13]MH_I2C_Read... [01:29:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [01:29:13]Read from MH i2c: E2 [01:29:13]MH_I2C_Read... [01:29:13]Read from MH i2c: E2 DE 00 [01:29:13]MH_I2C_Read... [01:29:13]Read from MH i2c: E2 DE 00 17 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 76 [01:29:13]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [01:29:13]wFMCommunicate OK [01:29:13]SAM_PROTO_GetFMData done [01:29:13]requested_item fm.sale_refund.total is exist - process it [01:29:13]requested_item fm.buy.total is exist - process it [01:29:13]requested_item shift.sale.total is exist - process it [01:29:13]SAM_PROTO_GetShiftData [01:29:13]wFMCommunicate request_size=4 [01:29:13]MH_SAM_APDU [01:29:13]CAPDU: 80 13 02 00 [01:29:13]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [01:29:13]Write i2c OK [01:29:13]MH_I2C_Read... [01:29:13]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [01:29:13]Read from MH i2c: E2 [01:29:13]MH_I2C_Read... [01:29:13]Read from MH i2c: E2 FD 00 [01:29:13]MH_I2C_Read... [01:29:13]Read from MH i2c: E2 FD 00 18 00 00 AA 04 AA 04 A6 04 6E 04 04 00 03 00 00 00 69 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 60 99 01 70 04 03 00 60 99 01 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 79 2B 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 9E 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 90 00 76 [01:29:13]RAPDU: AA 04 AA 04 A6 04 6E 04 04 00 03 00 00 00 69 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 60 99 01 70 04 03 00 60 99 01 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 79 2B 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 9E 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 90 00 [01:29:13]wFMCommunicate OK [01:29:13]wFMCommunicate request_size=4 [01:29:13]MH_SAM_APDU [01:29:13]CAPDU: 80 17 00 00 [01:29:13]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [01:29:13]Write i2c OK [01:29:13]MH_I2C_Read... [01:29:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:29:14]Read from MH i2c: E2 [01:29:14]MH_I2C_Read... [01:29:14]Read from MH i2c: E2 FD 00 [01:29:14]MH_I2C_Read... [01:29:14]Read from MH i2c: E2 FD 00 19 00 00 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 BF [01:29:14]RAPDU: 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:29:14]wFMCommunicate OK [01:29:14]wFMCommunicate request_size=4 [01:29:14]MH_SAM_APDU [01:29:14]CAPDU: 80 17 00 00 [01:29:14]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [01:29:14]Write i2c OK [01:29:14]MH_I2C_Read... [01:29:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:29:14]Read from MH i2c: E2 [01:29:14]MH_I2C_Read... [01:29:14]Read from MH i2c: E2 FD 00 [01:29:14]MH_I2C_Read... [01:29:14]Read from MH i2c: E2 FD 00 1A 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 4D [01:29:14]RAPDU: EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:29:14]wFMCommunicate OK [01:29:14]wFMCommunicate request_size=4 [01:29:14]MH_SAM_APDU [01:29:14]CAPDU: 80 17 00 00 [01:29:14]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [01:29:14]Write i2c OK [01:29:14]MH_I2C_Read... [01:29:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:29:14]Read from MH i2c: E2 [01:29:14]MH_I2C_Read... [01:29:14]Read from MH i2c: E2 FD 00 [01:29:14]MH_I2C_Read... [01:29:14]Read from MH i2c: E2 FD 00 1B 00 00 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 90 00 0D [01:29:14]RAPDU: 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 90 00 [01:29:14]wFMCommunicate OK [01:29:14]wFMCommunicate request_size=4 [01:29:14]MH_SAM_APDU [01:29:14]CAPDU: 80 17 00 00 [01:29:14]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [01:29:14]Write i2c OK [01:29:14]MH_I2C_Read... [01:29:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 196! [01:29:14]Read from MH i2c: E2 [01:29:14]MH_I2C_Read... [01:29:14]Read from MH i2c: E2 C7 00 [01:29:14]MH_I2C_Read... [01:29:14]Read from MH i2c: E2 C7 00 1C 00 00 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 8F [01:29:15]RAPDU: 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [01:29:15]wFMCommunicate OK [01:29:15]SAM_PROTO_GetShiftData done [01:29:15]requested_item shift.sale.total_cash is exist - process it [01:29:15]requested_item shift.sale_refund.total is exist - process it [01:29:15]requested_item shift.sale_refund.total_cash is exist - process it [01:29:15]requested_item shift.buy.total is exist - process it [01:29:15]requested_item shift.buy.total_cash is exist - process it [01:29:15]produce_requested_data done [01:29:15]produce_requested_data return {"fm.sale.total":9271060.21,"fm.sale_refund.total":51664.20,"fm.buy.total":0.00,"shift.sale.total":1048.00,"shift.sale.total_cash":1048.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [01:29:15]process_action_free get_value [01:29:15]json_value_free [01:29:15]json_value_free done [01:29:15]process_json_proto returns [01:29:15]Send response to host [01:29:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":9271060.21,"fm.sale_refund.total":51664.20,"fm.buy.total":0.00,"shift.sale.total":1048.00,"shift.sale.total_cash":1048.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [01:29:15]free response buf [01:29:15]execute_script done [01:29:15]execute_script returns [01:29:15]free content buf [01:29:15]Sock 8.Close socket [01:29:15]Sock 8.Thread stoped [01:29:15]OFD Sender: No OFD packet to send [01:29:16]accept exits with 9 [01:29:16]New connection [01:29:16]New thread 3067243876 created [01:29:16]Thread 3067100516 joined [01:29:16]Waiting for new connection... [01:29:16] Sock 9.Parse request [01:29:16]Sock 9.Check first char [01:29:16]Sock 9.First char is OK [01:29:16]request: POST /json_proto HTTP/1.0 [01:29:16]Method: POST [01:29:16]URL: /json_proto [01:29:16]Method is POST - this is cgi request [01:29:16]url: /json_proto [01:29:16]query_string will be loaded in cgi processing [01:29:16]execute_cgi json_proto POST (null) [01:29:16]execute_cgi path=json_proto method=POST [01:29:16]POST find Content-Length [01:29:16]Host: 172.17.43.132:8080 [01:29:16]Content-Length: 630 [01:29:16]Content-Type: application/json [01:29:16] [01:29:16]POST finish read [01:29:16]Found Content-Length = 630 [01:29:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184011", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:29:16]execute_script... [01:29:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184011", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:29:16]POST & json_proto [01:29:16]process_json_proto [01:29:16]json parsed OK: [01:29:16]protocol is kg_v1.0 [01:29:16]action value=close_receipt [01:29:16]process_action close_receipt [01:29:16]cmd_close_receipt [01:29:16]MH_GetDate [01:29:16]Write to MH i2c: F0 00 00 1D 00 0C [01:29:16]Write i2c OK [01:29:16]MH_I2C_Read... [01:29:16]Read from MH i2c: F0 [01:29:16]MH_I2C_Read... [01:29:16]Read from MH i2c: F0 09 00 [01:29:16]MH_I2C_Read... [01:29:16]Read from MH i2c: F0 09 00 1D 00 00 EC 41 A8 66 64 A3 A7 66 64 [01:29:16]GetLastDocTimeStamp 1722301371 [01:29:16]current date 1722302956 [01:29:16]FM_GetShiftState [01:29:16]SAM_PROTO_GetShiftState [01:29:16]wFMCommunicate request_size=4 [01:29:16]MH_SAM_APDU [01:29:16]CAPDU: 80 13 01 00 [01:29:16]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [01:29:16]Write i2c OK [01:29:16]MH_I2C_Read... [01:29:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:29:16]Read from MH i2c: E2 [01:29:16]MH_I2C_Read... [01:29:16]Read from MH i2c: E2 0E 00 [01:29:16]MH_I2C_Read... [01:29:16]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 6A 2F A8 66 00 00 00 00 90 00 4E [01:29:16]RAPDU: 09 00 01 6A 2F A8 66 00 00 00 00 90 00 [01:29:16]wFMCommunicate OK [01:29:16]SAM_PROTO_GetShiftState done [01:29:16]FM_GetShiftState done [01:29:16]opened in 1722298218 [01:29:16]opened+sec_in_day 1722384618 [01:29:16]quantity*price = 5000 [01:29:16]sum+1 = 5001 [01:29:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 4 30.07.2024 01:29 Смена: 428 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41983 ФПД: 260274788284739 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T012916&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41983&fm=260274788284739&tin=02508201610067®Number=0000000000092626&sum=5000 0 [01:29:17]StoreToDocumentArchive [01:29:17]shift 428 fd 41983 [01:29:17]save to /storage/0428/doc_00041983 [01:29:17]save last doc name /storage/0428/doc_00041983 to /storage/kkm_last_doc_name [01:29:17]save OK [01:29:17]Clear old archive folders... [01:29:17]ProcessDocumentItem done err = 0, tmpTLVsize=269 [01:29:17]tlvbuf is 00A2D430 [01:29:17]SAM_PROTO_ClearQueue [01:29:17]wFMCommunicate request_size=4 [01:29:17]MH_SAM_APDU [01:29:17]CAPDU: 80 09 00 00 [01:29:17]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [01:29:17]Write i2c OK [01:29:17]MH_I2C_Read... [01:29:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:29:17]Read from MH i2c: E2 [01:29:17]MH_I2C_Read... [01:29:17]Read from MH i2c: E2 03 00 [01:29:17]MH_I2C_Read... [01:29:17]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [01:29:17]RAPDU: 90 00 [01:29:17]wFMCommunicate OK [01:29:17]SAM_PROTO_ClearQueue done [01:29:17]KKMCreateOFDPacket [01:29:17]OFDProtocolAddRootSTLVToBuf [01:29:17]FM_MakeSignedData [01:29:17]FM_MakeSignedData [01:29:17]SAM_PROTO_SignData [01:29:17]wFMCommunicate request_size=4 [01:29:17]MH_SAM_APDU [01:29:17]CAPDU: 80 0D 01 02 [01:29:17]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [01:29:17]Write i2c OK [01:29:17]MH_I2C_Read... [01:29:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:29:17]Read from MH i2c: E2 [01:29:17]MH_I2C_Read... [01:29:17]Read from MH i2c: E2 03 00 [01:29:17]MH_I2C_Read... [01:29:17]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [01:29:17]RAPDU: 90 00 [01:29:17]wFMCommunicate OK [01:29:17]wFMCommunicate request_size=255 [01:29:17]MH_SAM_APDU [01:29:17]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 EC 41 A8 66 0E 04 04 00 AC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [01:29:17]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 EC 41 A8 66 0E 04 04 00 AC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 A8 [01:29:17]Write i2c OK [01:29:17]MH_I2C_Read... [01:29:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:29:18]Read from MH i2c: E2 [01:29:18]MH_I2C_Read... [01:29:18]Read from MH i2c: E2 03 00 [01:29:18]MH_I2C_Read... [01:29:18]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [01:29:18]RAPDU: 90 00 [01:29:18]wFMCommunicate OK [01:29:18]wFMCommunicate request_size=28 [01:29:18]MH_SAM_APDU [01:29:18]CAPDU: 80 0D 02 02 17 37 34 39 35 38 10 04 04 00 FF A3 00 00 35 04 06 00 EC B7 F2 4C B9 43 [01:29:18]Write to MH i2c: E2 1F 00 2E 00 80 0D 02 02 17 00 37 34 39 35 38 10 04 04 00 FF A3 00 00 35 04 06 00 EC B7 F2 4C B9 43 00 00 BD [01:29:18]Write i2c OK [01:29:18]MH_I2C_Read... [01:29:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:29:18]Read from MH i2c: E2 [01:29:18]MH_I2C_Read... [01:29:18]Read from MH i2c: E2 03 00 [01:29:18]MH_I2C_Read... [01:29:18]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [01:29:18]RAPDU: 90 00 [01:29:18]wFMCommunicate OK [01:29:18]wFMCommunicate request_size=4 [01:29:18]MH_SAM_APDU [01:29:18]CAPDU: 80 0D 03 02 [01:29:18]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [01:29:18]Write i2c OK [01:29:18]MH_I2C_Read... [01:29:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:29:18]Read from MH i2c: E2 [01:29:18]MH_I2C_Read... [01:29:18]Read from MH i2c: E2 0B 00 [01:29:18]MH_I2C_Read... [01:29:18]Read from MH i2c: E2 0B 00 2F 00 00 AD E1 4C 5C A1 1B 1B FF 90 00 B7 [01:29:18]RAPDU: AD E1 4C 5C A1 1B 1B FF 90 00 [01:29:18]wFMCommunicate OK [01:29:18]SAM_PROTO_SignData done [01:29:18]FM_MakeSignedData done [01:29:18]CreateOFDProtocolMessage [01:29:18]wFMCommunicate request_size=4 [01:29:18]MH_SAM_APDU [01:29:18]CAPDU: 80 11 00 00 [01:29:18]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [01:29:18]Write i2c OK [01:29:18]MH_I2C_Read... [01:29:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:29:18]Read from MH i2c: E2 [01:29:18]MH_I2C_Read... [01:29:18]Read from MH i2c: E2 17 00 [01:29:18]MH_I2C_Read... [01:29:18]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 35 38 90 00 06 [01:29:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [01:29:18]wFMCommunicate OK [01:29:18]CreateOFDProtocolMessage done [01:29:18]OFDSenderStorePacket 41983 [01:29:18]StoreOFDPacket docnum=41983 [01:29:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 21 01 00 00 18 24 19 01 BA 64 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 EC 41 A8 66 0E 04 04 00 AC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 FF A3 00 00 35 04 06 00 EC B7 F2 4C B9 43 AD E1 4C 5C A1 1B 1B FF [01:29:18]CheckFolder [01:29:18]dirname=/storage/ofd_packets [01:29:18]CheckFolder done [01:29:18]ProducePacketName [01:29:18]name=ofd_packets/00041983 [01:29:18]NVStorageSaveData ofd_packets/00041983 [01:29:18]File name is /storage/ofd_packets/00041983 [01:29:18]Write 319 bytes [01:29:18]NVStorageSaveData done [01:29:18]OFDSenderStorePacket done [01:29:18]KKMCreateOFDPacket done [01:29:18]NVStorageSaveData kkm_last_timestamp [01:29:18]File name is /storage/kkm_last_timestamp [01:29:18]Write 4 bytes [01:29:18]NVStorageSaveData done [01:29:18]ExternCall_PrintAddStr [01:29:18]wPrintStart [01:29:18]Write to MH i2c: 01 00 00 31 00 31 [01:29:18]OFD Sender: Processing packet 41983 [packets to send 57, broken 56] [01:29:18]ProducePacketName [01:29:18]name=ofd_packets/00041983 [01:29:18]OFD Sender: To server: pG, [01:29:18]CommunicateWithHost lk.salyk.kg:30040 [01:29:18]ConnectInit lk.salyk.kg [01:29:18]Write i2c OK [01:29:18]MH_I2C_Read... [01:29:18]Read from MH i2c: 01 [01:29:18]MH_I2C_Read... [01:29:18]Read from MH i2c: 01 07 00 [01:29:18]MH_I2C_Read... [01:29:18]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [01:29:18]RasterBufferAndPrint [01:29:18]line Счет N : (3)184011 [01:29:18]line ИНН: 02508201610067 [01:29:18]line Контрольно-Кассовый Чек [01:29:18]line ПРОДАЖА [01:29:18]line Товар: 4700000160358 [01:29:18]line Вода Легенда 1л [01:29:18]line 1.000 * 50.00 [01:29:18]line = 50.00 [01:29:18]line НДС 12% НСП 1% [01:29:18]line > о реализуемом товаре [01:29:18]line ИТОГО: 50.00 [01:29:18]line НСП 1% : 0.44 [01:29:18]line НДС 12% : 5.31 [01:29:18]line Наличными: 50.00 [01:29:18]line Безнал.: 0.00 [01:29:18]line Место: АЗС № 97 "Партнер Нефть" [01:29:18]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [01:29:18]line СНО: Общий режим [01:29:18]line Чек 4 30.07.2024 01:29 [01:29:18]line Смена: 428 ФФД: 1.0 [01:29:18]line ЗНМ: 0300000053 [01:29:18]line РНМ: 0000000000092626 [01:29:18]line Версия ККМ: 001 [01:29:18]line ФМ: 0000000000874958 [01:29:18]line ФД: 41983 [01:29:18]line ФПД: 260274788284739 [01:29:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T012916&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41983&fm=260274788284739&tin=02508201610067®Number=0000000000092626&sum=5000 [01:29:18]line 0 [01:29:18]written 0, free lines is 4095 [01:29:18]Connected sock=10 [01:29: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 35 38 21 01 00 00 18 24 19 01 BA 64 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 EC 41 A8 66 0E 04 04 00 AC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 FF A3 00 00 35 04 06 00 EC B7 F2 4C B9 43 AD E1 4C 5C A1 1B 1B FF [01:29:18]Write to MH i2c: 01 00 00 59 00 59 [01:29:18]Write i2c OK [01:29:18]MH_I2C_Read... [01:29:18]Read from MH i2c: 01 [01:29:18]MH_I2C_Read... [01:29:18]Read from MH i2c: 01 07 00 [01:29:18]MH_I2C_Read... [01:29:18]Read from MH i2c: 01 07 00 59 00 00 00 00 00 00 87 0D F4 [01:29:18]RasterBufferAndPrint [01:29:18]line [01:29:18]line [01:29:18]line [01:29:18]line [01:29:18]line [01:29:18]written 0, free lines is 3490 [01:29:19]MH_Cut [01:29:19]Write to MH i2c: D1 01 00 60 00 01 32 [01:29:19]Write i2c OK [01:29:19]MH_I2C_Read... [01:29:19]Read from MH i2c: D1 [01:29:19]MH_I2C_Read... [01:29:19]Read from MH i2c: D1 01 00 [01:29:19]MH_I2C_Read... [01:29:19]Read from MH i2c: D1 01 00 60 00 00 31 [01:29:19]Write to MH i2c: 01 00 00 61 00 61 [01:29:19]Write i2c OK [01:29:19]MH_I2C_Read... [01:29: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 35 38 4F 00 00 00 19 49 47 00 6B 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 35 38 10 04 04 00 FF A3 00 00 F4 03 04 00 02 EE A7 66 B6 04 01 00 00 85 D4 48 C8 0B 3B 66 9E [01:29:19]CommunicateWithHost err = 0 [01:29:19]CheckOFDResponse [01:29:19]1017 (14) - 77093643461234 [01:29:19]1041 (16) - 0000000000874958 [01:29:19]1040 (4) - 41983 [01:29:19]1012 (4) - 29.07.2024 19:31 [01:29:19]1206 (1) - 0 [01:29:19]OFD Sender: Remove packet 41983 [01:29:19]ProducePacketName [01:29:19]name=ofd_packets/00041983 [01:29:19]NVStorageDeleteData [01:29:19]*** Cut start [01:29:19]*** Partial cut [01:29:19]*** CUTSNS_PIN = 1 [01:29:19]*** CUTSNS_PIN = 0 [01:29:19]OFD Sender: No OFD packet to send [01:29:19]*** Brake cut motor [01:29:20]Read from MH i2c: 01 [01:29:20]MH_I2C_Read... [01:29:20]*** Stop cut motor [01:29:20]*** Cut end [01:29:20]Read from MH i2c: 01 07 00 [01:29:20]MH_I2C_Read... [01:29:20]Read from MH i2c: 01 07 00 61 00 00 00 00 00 00 FF 0F 76 [01:29:20]process_action close_receipt done [01:29:20]requested_data is exist [01:29:20]produce_requested_data [01:29:20]requested_item fm.sn is exist - process it [01:29:20]wFMCommunicate request_size=4 [01:29:20]MH_SAM_APDU [01:29:20]CAPDU: 80 11 00 00 [01:29:20]Write to MH i2c: E2 08 00 62 00 80 11 00 00 00 00 00 00 DC [01:29:20]Write i2c OK [01:29:20]MH_I2C_Read... [01:29:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:29:20]Read from MH i2c: E2 [01:29:20]MH_I2C_Read... [01:29:20]Read from MH i2c: E2 17 00 [01:29:20]MH_I2C_Read... [01:29:20]Read from MH i2c: E2 17 00 62 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 38 [01:29:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [01:29:20]wFMCommunicate OK [01:29:20]requested_item fd.num is exist - process it [01:29:20]SAM_PROTO_GetFieldsCounters [01:29:20]wFMCommunicate request_size=4 [01:29:20]MH_SAM_APDU [01:29:20]CAPDU: 80 13 00 00 [01:29:20]Write to MH i2c: E2 08 00 63 00 80 13 00 00 00 00 00 00 DF [01:29:20]Write i2c OK [01:29:20]MH_I2C_Read... [01:29:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:29:20]Read from MH i2c: E2 [01:29:20]MH_I2C_Read... [01:29:20]Read from MH i2c: E2 62 00 [01:29:20]MH_I2C_Read... [01:29:20]Read from MH i2c: E2 62 00 63 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 FF A3 00 00 0E 04 04 00 AC 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 64 [01:29: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 FF A3 00 00 0E 04 04 00 AC 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 [01:29:20]wFMCommunicate OK [01:29:20]SAM_PROTO_GetFieldsCounters done [01:29:20]requested_item shift.num is exist - process it [01:29:20]requested_item shift.opened is exist - process it [01:29:20]req_shift_opened [01:29:20]FM_GetShiftState [01:29:20]SAM_PROTO_GetShiftState [01:29:20]wFMCommunicate request_size=4 [01:29:20]MH_SAM_APDU [01:29:20]CAPDU: 80 13 01 00 [01:29:20]Write to MH i2c: E2 08 00 64 00 80 13 01 00 00 00 00 00 E1 [01:29:20]Write i2c OK [01:29:20]MH_I2C_Read... [01:29:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:29:20]Read from MH i2c: E2 [01:29:20]MH_I2C_Read... [01:29:20]Read from MH i2c: E2 0E 00 [01:29:20]MH_I2C_Read... [01:29:20]Read from MH i2c: E2 0E 00 64 00 00 09 00 01 6A 2F A8 66 00 00 00 00 90 00 94 [01:29:20]RAPDU: 09 00 01 6A 2F A8 66 00 00 00 00 90 00 [01:29:20]wFMCommunicate OK [01:29:20]SAM_PROTO_GetShiftState done [01:29:20]FM_GetShiftState done [01:29:20]req_shift_opened done [01:29:20]requested_item shift.open_date is exist - process it [01:29:20]req_shift_open_date [01:29:20]req_shift_open_date done [01:29:20]produce_requested_data done [01:29:20]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41983,"shift.num":428,"shift.opened":1,"shift.open_date":1722298218} [01:29:20]process_action_free close_receipt [01:29:20]json_value_free [01:29:20]json_value_free done [01:29:20]process_json_proto returns [01:29:20]Send response to host [01:29:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41983,"shift.num":428,"shift.opened":1,"shift.open_date":1722298218}}} [01:29:20]free response buf [01:29:20]execute_script done [01:29:20]execute_script returns [01:29:20]free content buf [01:29:20]Sock 9.Close socket [01:29:20]Sock 9.Thread stoped [01:29:22]accept exits with 8 [01:29:22]New connection [01:29:22]New thread 3067100516 created [01:29:22]Thread 3067243876 joined [01:29:22]Waiting for new connection... [01:29:22] Sock 8.Parse request [01:29:22]Sock 8.Check first char [01:29:22]Sock 8.First char is OK [01:29:22]request: POST /json_proto HTTP/1.0 [01:29:22]Method: POST [01:29:22]URL: /json_proto [01:29:22]Method is POST - this is cgi request [01:29:22]url: /json_proto [01:29:22]query_string will be loaded in cgi processing [01:29:22]execute_cgi json_proto POST (null) [01:29:22]execute_cgi path=json_proto method=POST [01:29:22]POST find Content-Length [01:29:22]Host: 172.17.43.132:8080 [01:29:22]Content-Length: 621 [01:29:22]Content-Type: application/json [01:29:22] [01:29:22]POST finish read [01:29:22]Found Content-Length = 621 [01:29:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184012", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:29:22]execute_script... [01:29:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184012", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:29:22]POST & json_proto [01:29:22]process_json_proto [01:29:22]json parsed OK: [01:29:22]protocol is kg_v1.0 [01:29:22]action value=close_receipt [01:29:22]process_action close_receipt [01:29:22]cmd_close_receipt [01:29:22]MH_GetDate [01:29:22]Write to MH i2c: F0 00 00 65 00 54 [01:29:22]Write i2c OK [01:29:22]MH_I2C_Read... [01:29:22]Read from MH i2c: F0 [01:29:22]MH_I2C_Read... [01:29:22]Read from MH i2c: F0 09 00 [01:29:22]MH_I2C_Read... [01:29:22]Read from MH i2c: F0 09 00 65 00 00 F2 41 A8 66 64 A3 A7 66 B2 [01:29:22]GetLastDocTimeStamp 1722302956 [01:29:22]current date 1722302962 [01:29:22]FM_GetShiftState [01:29:22]SAM_PROTO_GetShiftState [01:29:22]wFMCommunicate request_size=4 [01:29:22]MH_SAM_APDU [01:29:22]CAPDU: 80 13 01 00 [01:29:22]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [01:29:22]Write i2c OK [01:29:22]MH_I2C_Read... [01:29:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:29:22]Read from MH i2c: E2 [01:29:22]MH_I2C_Read... [01:29:22]Read from MH i2c: E2 0E 00 [01:29:22]MH_I2C_Read... [01:29:22]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 6A 2F A8 66 00 00 00 00 90 00 96 [01:29:22]RAPDU: 09 00 01 6A 2F A8 66 00 00 00 00 90 00 [01:29:22]wFMCommunicate OK [01:29:22]SAM_PROTO_GetShiftState done [01:29:22]FM_GetShiftState done [01:29:22]opened in 1722298218 [01:29:22]opened+sec_in_day 1722384618 [01:29:22]quantity*price = 14000 [01:29:22]sum+1 = 14001 [01:29:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 5 30.07.2024 01:29 Смена: 428 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41984 ФПД: 147971329875196 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T012922&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41984&fm=147971329875196&tin=02508201610067®Number=0000000000092626&sum=14000 0 [01:29:23]StoreToDocumentArchive [01:29:23]shift 428 fd 41984 [01:29:23]save to /storage/0428/doc_00041984 [01:29:23]save last doc name /storage/0428/doc_00041984 to /storage/kkm_last_doc_name [01:29:23]save OK [01:29:23]Clear old archive folders... [01:29:23]ProcessDocumentItem done err = 0, tmpTLVsize=273 [01:29:23]tlvbuf is 00A34A30 [01:29:23]SAM_PROTO_ClearQueue [01:29:23]wFMCommunicate request_size=4 [01:29:23]MH_SAM_APDU [01:29:23]CAPDU: 80 09 00 00 [01:29:23]Write to MH i2c: E2 08 00 73 00 80 09 00 00 00 00 00 00 E5 [01:29:23]Write i2c OK [01:29:23]MH_I2C_Read... [01:29:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:29:23]Read from MH i2c: E2 [01:29:23]MH_I2C_Read... [01:29:23]Read from MH i2c: E2 03 00 [01:29:23]MH_I2C_Read... [01:29:23]Read from MH i2c: E2 03 00 73 00 00 90 00 E7 [01:29:23]RAPDU: 90 00 [01:29:23]wFMCommunicate OK [01:29:23]SAM_PROTO_ClearQueue done [01:29:23]KKMCreateOFDPacket [01:29:23]OFDProtocolAddRootSTLVToBuf [01:29:23]FM_MakeSignedData [01:29:23]FM_MakeSignedData [01:29:23]SAM_PROTO_SignData [01:29:23]wFMCommunicate request_size=4 [01:29:23]MH_SAM_APDU [01:29:23]CAPDU: 80 0D 01 02 [01:29:23]Write to MH i2c: E2 08 00 74 00 80 0D 01 02 00 00 00 00 ED [01:29:23]Write i2c OK [01:29:23]MH_I2C_Read... [01:29:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:29:23]Read from MH i2c: E2 [01:29:23]MH_I2C_Read... [01:29:23]Read from MH i2c: E2 03 00 [01:29:23]MH_I2C_Read... [01:29:23]Read from MH i2c: E2 03 00 74 00 00 90 00 E8 [01:29:23]RAPDU: 90 00 [01:29:23]wFMCommunicate OK [01:29:23]wFMCommunicate request_size=255 [01:29:23]MH_SAM_APDU [01:29:23]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 F2 41 A8 66 0E 04 04 00 AC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 [01:29:23]Write to MH i2c: E2 02 01 75 00 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 F2 41 A8 66 0E 04 04 00 AC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 00 00 D5 [01:29:23]Write i2c OK [01:29:23]MH_I2C_Read... [01:29:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:29:24]Read from MH i2c: E2 [01:29:24]MH_I2C_Read... [01:29:24]Read from MH i2c: E2 03 00 [01:29:24]MH_I2C_Read... [01:29:24]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [01:29:24]RAPDU: 90 00 [01:29:24]wFMCommunicate OK [01:29:24]wFMCommunicate request_size=32 [01:29:24]MH_SAM_APDU [01:29:24]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 39 35 38 10 04 04 00 00 A4 00 00 35 04 06 00 86 94 42 8D DC FC [01:29:24]Write to MH i2c: E2 23 00 76 00 80 0D 02 02 1B 00 30 30 30 38 37 34 39 35 38 10 04 04 00 00 A4 00 00 35 04 06 00 86 94 42 8D DC FC 00 00 BB [01:29:24]Write i2c OK [01:29:24]MH_I2C_Read... [01:29:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:29:24]Read from MH i2c: E2 [01:29:24]MH_I2C_Read... [01:29:24]Read from MH i2c: E2 03 00 [01:29:24]MH_I2C_Read... [01:29:24]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [01:29:24]RAPDU: 90 00 [01:29:24]wFMCommunicate OK [01:29:24]wFMCommunicate request_size=4 [01:29:24]MH_SAM_APDU [01:29:24]CAPDU: 80 0D 03 02 [01:29:24]Write to MH i2c: E2 08 00 77 00 80 0D 03 02 00 00 00 00 F2 [01:29:24]Write i2c OK [01:29:24]MH_I2C_Read... [01:29:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:29:24]Read from MH i2c: E2 [01:29:24]MH_I2C_Read... [01:29:24]Read from MH i2c: E2 0B 00 [01:29:24]MH_I2C_Read... [01:29:24]Read from MH i2c: E2 0B 00 77 00 00 00 C6 9C 4B 7A 47 BA D2 90 00 ED [01:29:24]RAPDU: 00 C6 9C 4B 7A 47 BA D2 90 00 [01:29:24]wFMCommunicate OK [01:29:24]SAM_PROTO_SignData done [01:29:24]FM_MakeSignedData done [01:29:24]CreateOFDProtocolMessage [01:29:24]wFMCommunicate request_size=4 [01:29:24]MH_SAM_APDU [01:29:24]CAPDU: 80 11 00 00 [01:29:24]Write to MH i2c: E2 08 00 78 00 80 11 00 00 00 00 00 00 F2 [01:29:24]Write i2c OK [01:29:24]MH_I2C_Read... [01:29:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:29:24]Read from MH i2c: E2 [01:29:24]MH_I2C_Read... [01:29:24]Read from MH i2c: E2 17 00 [01:29:24]MH_I2C_Read... [01:29:24]Read from MH i2c: E2 17 00 78 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 4E [01:29:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [01:29:24]wFMCommunicate OK [01:29:24]CreateOFDProtocolMessage done [01:29:24]OFDSenderStorePacket 41984 [01:29:24]StoreOFDPacket docnum=41984 [01:29:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 25 01 00 00 54 D4 1D 01 FB 49 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 F2 41 A8 66 0E 04 04 00 AC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 00 A4 00 00 35 04 06 00 86 94 42 8D DC FC 00 C6 9C 4B 7A 47 BA D2 [01:29:24]CheckFolder [01:29:24]dirname=/storage/ofd_packets [01:29:24]CheckFolder done [01:29:24]ProducePacketName [01:29:24]name=ofd_packets/00041984 [01:29:24]NVStorageSaveData ofd_packets/00041984 [01:29:24]File name is /storage/ofd_packets/00041984 [01:29:24]Write 323 bytes [01:29:24]NVStorageSaveData done [01:29:24]OFDSenderStorePacket done [01:29:24]KKMCreateOFDPacket done [01:29:24]NVStorageSaveData kkm_last_timestamp [01:29:24]File name is /storage/kkm_last_timestamp [01:29:24]Write 4 bytes [01:29:24]NVStorageSaveData done [01:29:24]ExternCall_PrintAddStr [01:29:24]wPrintStart [01:29:24]Write to MH i2c: 01 00 00 79 00 79 [01:29:24]Write i2c OK [01:29:24]MH_I2C_Read... [01:29:24]Read from MH i2c: 01 [01:29:24]MH_I2C_Read... [01:29:24]Read from MH i2c: 01 07 00 [01:29:24]MH_I2C_Read... [01:29:24]Read from MH i2c: 01 07 00 79 00 00 00 00 00 00 FF 0F 8E [01:29:24]RasterBufferAndPrint [01:29:24]line Счет N : (3)184012 [01:29:24]line ИНН: 02508201610067 [01:29:24]line Контрольно-Кассовый Чек [01:29:24]line ПРОДАЖА [01:29:24]line Товар: 48743570 [01:29:24]line Сигареты Winston XStyle Blue [01:29:24]line 1.000 * 140.00 [01:29:24]line = 140.00 [01:29:24]line НДС 12% НСП 1% [01:29:24]line > о реализуемом товаре [01:29:24]line ИТОГО: 140.00 [01:29:24]line НСП 1% : 1.24 [01:29:24]line НДС 12% : 14.87 [01:29:24]line Наличными: 140.00 [01:29:24]line Безнал.: 0.00 [01:29:24]line Место: АЗС № 97 "Партнер Нефть" [01:29:24]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [01:29:24]line СНО: Общий режим [01:29:24]line Чек 5 30.07.2024 01:29 [01:29:24]line Смена: 428 ФФД: 1.0 [01:29:24]line ЗНМ: 0300000053 [01:29:24]line РНМ: 0000000000092626 [01:29:24]line Версия ККМ: 001 [01:29:24]line ФМ: 0000000000874958 [01:29:24]line ФД: 41984 [01:29:24]line ФПД: 147971329875196 [01:29:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T012922&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41984&fm=147971329875196&tin=02508201610067®Number=0000000000092626&sum=14000 [01:29:24]line 0 [01:29:24]written 0, free lines is 4095 [01:29:24]OFD Sender: Processing packet 41984 [packets to send 57, broken 56] [01:29:24]ProducePacketName [01:29:24]name=ofd_packets/00041984 [01:29:24]OFD Sender: To server: pG, [01:29:24]CommunicateWithHost lk.salyk.kg:30040 [01:29:24]ConnectInit lk.salyk.kg [01:29:24]Write to MH i2c: 01 00 00 A1 00 A1 [01:29:24]Write i2c OK [01:29:24]MH_I2C_Read... [01:29:24]Read from MH i2c: 01 [01:29:24]MH_I2C_Read... [01:29:24]Read from MH i2c: 01 07 00 [01:29:24]MH_I2C_Read... [01:29:24]Read from MH i2c: 01 07 00 A1 00 00 00 00 00 00 0F 0D C4 [01:29:24]RasterBufferAndPrint [01:29:24]line [01:29:24]line [01:29:24]line [01:29:24]line [01:29:24]line [01:29:24]written 0, free lines is 3371 [01:29:24]MH_Cut [01:29:24]Write to MH i2c: D1 01 00 A8 00 01 7A [01:29:24]Write i2c OK [01:29:24]MH_I2C_Read... [01:29:24]Read from MH i2c: D1 [01:29:24]MH_I2C_Read... [01:29:24]Read from MH i2c: D1 01 00 [01:29:24]MH_I2C_Read... [01:29:24]Read from MH i2c: D1 01 00 A8 00 00 79 [01:29:24]Write to MH i2c: 01 00 00 A9 00 A9 [01:29:24]Write i2c OK [01:29:24]MH_I2C_Read... [01:29:25]*** Cut start [01:29:25]*** Partial cut [01:29:25]*** CUTSNS_PIN = 1 [01:29:25]*** CUTSNS_PIN = 0 [01:29:25]*** Brake cut motor [01:29:26]Connected sock=10 [01:29:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 25 01 00 00 54 D4 1D 01 FB 49 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 Read from MH i2c: 01 [01:29:26]MH_I2C_Read... [01:29:26]*** Stop cut motor [01:29:26]*** Cut end [01:29:26]Read from MH i2c: 01 07 00 [01:29:26]MH_I2C_Read... [01:29:26]BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 F2 41 A8 66 0E 04 04 00 AC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 00 A4 00 00 35 04 06 00 86 94 42 8D DC FC 00 C6 9C 4B 7A 47 BA D2 [01:29:26]Read from MH i2c: 01 07 00 A9 00 00 00 00 00 00 FF 0F BE [01:29:26]process_action close_receipt done [01:29:26]requested_data is exist [01:29:26]produce_requested_data [01:29:26]requested_item fm.sn is exist - process it [01:29:26]wFMCommunicate request_size=4 [01:29:26]MH_SAM_APDU [01:29:26]CAPDU: 80 11 00 00 [01:29:26]Write to MH i2c: E2 08 00 AA 00 80 11 00 00 00 00 00 00 24 [01:29:26]Write i2c OK [01:29:26]MH_I2C_Read... [01:29:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:29:26]Read from MH i2c: E2 [01:29:26]MH_I2C_Read... [01:29:26]Read from MH i2c: E2 17 00 [01:29:26]MH_I2C_Read... [01:29:26]Read from MH i2c: E2 17 00 AA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 80 [01:29:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [01:29:26]wFMCommunicate OK [01:29:26]requested_item fd.num is exist - process it [01:29:26]SAM_PROTO_GetFieldsCounters [01:29:26]wFMCommunicate request_size=4 [01:29:26]MH_SAM_APDU [01:29:26]CAPDU: 80 13 00 00 [01:29:26]Write to MH i2c: E2 08 00 AB 00 80 13 00 00 00 00 00 00 27 [01:29:26]Write i2c OK [01:29:26]MH_I2C_Read... [01:29:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:29:26]Read from MH i2c: E2 [01:29:26]MH_I2C_Read... [01:29:26]Read from MH i2c: E2 62 00 [01:29:26]MH_I2C_Read... [01:29:26]Read from MH i2c: E2 62 00 AB 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 00 A4 00 00 0E 04 04 00 AC 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 B1 [01:29: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 00 A4 00 00 0E 04 04 00 AC 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 [01:29:26]wFMCommunicate OK [01:29:26]SAM_PROTO_GetFieldsCounters done [01:29:26]requested_item shift.num is exist - process it [01:29:26]requested_item shift.opened is exist - process it [01:29:26]req_shift_opened [01:29:26]FM_GetShiftState [01:29:26]SAM_PROTO_GetShiftState [01:29:26]wFMCommunicate request_size=4 [01:29:26]MH_SAM_APDU [01:29:26]CAPDU: 80 13 01 00 [01:29:26]Write to MH i2c: E2 08 00 AC 00 80 13 01 00 00 00 00 00 29 [01:29:26]Write i2c OK [01:29:26]MH_I2C_Read... [01:29:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:29:26]Read from MH i2c: E2 [01:29:26]MH_I2C_Read... [01:29:26]Read from MH i2c: E2 0E 00 [01:29:26]MH_I2C_Read... [01:29:26]Read from MH i2c: E2 0E 00 AC 00 00 09 00 01 6A 2F A8 66 00 00 00 00 90 00 DC [01:29:26]RAPDU: 09 00 01 6A 2F A8 66 00 00 00 00 90 00 [01:29:26]wFMCommunicate OK [01:29:26]SAM_PROTO_GetShiftState done [01:29:26]FM_GetShiftState done [01:29:26]req_shift_opened done [01:29:26]requested_item shift.open_date is exist - process it [01:29:26]req_shift_open_date [01:29:26]req_shift_open_date done [01:29:26]produce_requested_data done [01:29:26]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41984,"shift.num":428,"shift.opened":1,"shift.open_date":1722298218} [01:29:26]process_action_free close_receipt [01:29:26]json_value_free [01:29:26]json_value_free done [01:29:26]process_json_proto returns [01:29:26]Send response to host [01:29:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41984,"shift.num":428,"shift.opened":1,"shift.open_date":1722298218}}} [01:29:26]free response buf [01:29:26]execute_script done [01:29:26]execute_script returns [01:29:26]free content buf [01:29:26]Sock 8.Close socket [01:29:26]Sock 8.Thread stoped [01:29: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 35 38 4F 00 00 00 68 40 47 00 66 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 35 38 10 04 04 00 00 A4 00 00 F4 03 04 00 09 EE A7 66 B6 04 01 00 00 44 F1 4B 3B 86 F2 DB C4 [01:29:27]CommunicateWithHost err = 0 [01:29:27]CheckOFDResponse [01:29:27]1017 (14) - 77093643461234 [01:29:27]1041 (16) - 0000000000874958 [01:29:27]1040 (4) - 41984 [01:29:27]1012 (4) - 29.07.2024 19:31 [01:29:27]1206 (1) - 0 [01:29:27]OFD Sender: Remove packet 41984 [01:29:27]ProducePacketName [01:29:27]name=ofd_packets/00041984 [01:29:27]NVStorageDeleteData [01:29:27]OFD Sender: No OFD packet to send [01:29:27]accept exits with 9 [01:29:27]New connection [01:29:27]New thread 3067243876 created [01:29:28]Thread 3067100516 joined [01:29:28]Waiting for new connection... [01:29:28] Sock 9.Parse request [01:29:28]Sock 9.Check first char [01:29:28]Sock 9.First char is OK [01:29:28]request: POST /json_proto HTTP/1.0 [01:29:28]Method: POST [01:29:28]URL: /json_proto [01:29:28]Method is POST - this is cgi request [01:29:28]url: /json_proto [01:29:28]query_string will be loaded in cgi processing [01:29:28]execute_cgi json_proto POST (null) [01:29:28]execute_cgi path=json_proto method=POST [01:29:28]POST find Content-Length [01:29:28]Host: 172.17.43.132:8080 [01:29:28]Content-Length: 617 [01:29:28]Content-Type: application/json [01:29:28] [01:29:28]POST finish read [01:29:28]Found Content-Length = 617 [01:29:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184013", "tax_sys" : 0, "items" : [ { "code": "47803008", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:29:28]execute_script... [01:29:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184013", "tax_sys" : 0, "items" : [ { "code": "47803008", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:29:28]POST & json_proto [01:29:28]process_json_proto [01:29:28]json parsed OK: [01:29:28]protocol is kg_v1.0 [01:29:28]action value=close_receipt [01:29:28]process_action close_receipt [01:29:28]cmd_close_receipt [01:29:28]MH_GetDate [01:29:28]Write to MH i2c: F0 00 00 AD 00 9C [01:29:28]Write i2c OK [01:29:28]MH_I2C_Read... [01:29:28]Read from MH i2c: F0 [01:29:28]MH_I2C_Read... [01:29:28]Read from MH i2c: F0 09 00 [01:29:28]MH_I2C_Read... [01:29:28]Read from MH i2c: F0 09 00 AD 00 00 F8 41 A8 66 64 A3 A7 66 00 [01:29:28]GetLastDocTimeStamp 1722302962 [01:29:28]current date 1722302968 [01:29:28]FM_GetShiftState [01:29:28]SAM_PROTO_GetShiftState [01:29:28]wFMCommunicate request_size=4 [01:29:28]MH_SAM_APDU [01:29:28]CAPDU: 80 13 01 00 [01:29:28]Write to MH i2c: E2 08 00 AE 00 80 13 01 00 00 00 00 00 2B [01:29:28]Write i2c OK [01:29:28]MH_I2C_Read... [01:29:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:29:28]Read from MH i2c: E2 [01:29:28]MH_I2C_Read... [01:29:28]Read from MH i2c: E2 0E 00 [01:29:28]MH_I2C_Read... [01:29:28]Read from MH i2c: E2 0E 00 AE 00 00 09 00 01 6A 2F A8 66 00 00 00 00 90 00 DE [01:29:28]RAPDU: 09 00 01 6A 2F A8 66 00 00 00 00 90 00 [01:29:28]wFMCommunicate OK [01:29:28]SAM_PROTO_GetShiftState done [01:29:28]FM_GetShiftState done [01:29:28]opened in 1722298218 [01:29:28]opened+sec_in_day 1722384618 [01:29:28]quantity*price = 14000 [01:29:28]sum+1 = 14001 [01:29:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 6 30.07.2024 01:29 Смена: 428 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41985 ФПД: 256424405983338 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T012928&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41985&fm=256424405983338&tin=02508201610067®Number=0000000000092626&sum=14000 0 [01:29:29]StoreToDocumentArchive [01:29:29]shift 428 fd 41985 [01:29:29]save to /storage/0428/doc_00041985 [01:29:29]save last doc name /storage/0428/doc_00041985 to /storage/kkm_last_doc_name [01:29:29]save OK [01:29:29]Clear old archive folders... [01:29:29]ProcessDocumentItem done err = 0, tmpTLVsize=269 [01:29:29]tlvbuf is 00A348C0 [01:29:29]SAM_PROTO_ClearQueue [01:29:29]wFMCommunicate request_size=4 [01:29:29]MH_SAM_APDU [01:29:29]CAPDU: 80 09 00 00 [01:29:29]Write to MH i2c: E2 08 00 BB 00 80 09 00 00 00 00 00 00 2D [01:29:29]Write i2c OK [01:29:29]MH_I2C_Read... [01:29:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:29:29]Read from MH i2c: E2 [01:29:29]MH_I2C_Read... [01:29:29]Read from MH i2c: E2 03 00 [01:29:29]MH_I2C_Read... [01:29:29]Read from MH i2c: E2 03 00 BB 00 00 90 00 2F [01:29:29]RAPDU: 90 00 [01:29:29]wFMCommunicate OK [01:29:29]SAM_PROTO_ClearQueue done [01:29:29]KKMCreateOFDPacket [01:29:29]OFDProtocolAddRootSTLVToBuf [01:29:29]FM_MakeSignedData [01:29:29]FM_MakeSignedData [01:29:29]SAM_PROTO_SignData [01:29:29]wFMCommunicate request_size=4 [01:29:29]MH_SAM_APDU [01:29:29]CAPDU: 80 0D 01 02 [01:29:29]Write to MH i2c: E2 08 00 BC 00 80 0D 01 02 00 00 00 00 35 [01:29:29]Write i2c OK [01:29:29]MH_I2C_Read... [01:29:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:29:29]Read from MH i2c: E2 [01:29:29]MH_I2C_Read... [01:29:29]Read from MH i2c: E2 03 00 [01:29:29]MH_I2C_Read... [01:29:29]Read from MH i2c: E2 03 00 BC 00 00 90 00 30 [01:29:29]RAPDU: 90 00 [01:29:29]wFMCommunicate OK [01:29:29]wFMCommunicate request_size=255 [01:29:29]MH_SAM_APDU [01:29:29]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 F8 41 A8 66 0E 04 04 00 AC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [01:29:29]Write to MH i2c: E2 02 01 BD 00 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 F8 41 A8 66 0E 04 04 00 AC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 1A [01:29:30]Write i2c OK [01:29:30]MH_I2C_Read... [01:29:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:29:30]Read from MH i2c: E2 [01:29:30]MH_I2C_Read... [01:29:30]Read from MH i2c: E2 03 00 [01:29:30]MH_I2C_Read... [01:29:30]Read from MH i2c: E2 03 00 BD 00 00 90 00 31 [01:29:30]RAPDU: 90 00 [01:29:30]wFMCommunicate OK [01:29:30]wFMCommunicate request_size=28 [01:29:30]MH_SAM_APDU [01:29:30]CAPDU: 80 0D 02 02 17 37 34 39 35 38 10 04 04 00 01 A4 00 00 35 04 06 00 E9 37 75 A1 60 6A [01:29:30]Write to MH i2c: E2 1F 00 BE 00 80 0D 02 02 17 00 37 34 39 35 38 10 04 04 00 01 A4 00 00 35 04 06 00 E9 37 75 A1 60 6A 00 00 73 [01:29:30]Write i2c OK [01:29:30]MH_I2C_Read... [01:29:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:29:30]Read from MH i2c: E2 [01:29:30]MH_I2C_Read... [01:29:30]Read from MH i2c: E2 03 00 [01:29:30]MH_I2C_Read... [01:29:30]Read from MH i2c: E2 03 00 BE 00 00 90 00 32 [01:29:30]RAPDU: 90 00 [01:29:30]wFMCommunicate OK [01:29:30]wFMCommunicate request_size=4 [01:29:30]MH_SAM_APDU [01:29:30]CAPDU: 80 0D 03 02 [01:29:30]Write to MH i2c: E2 08 00 BF 00 80 0D 03 02 00 00 00 00 3A [01:29:30]Write i2c OK [01:29:30]MH_I2C_Read... [01:29:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:29:30]Read from MH i2c: E2 [01:29:30]MH_I2C_Read... [01:29:30]Read from MH i2c: E2 0B 00 [01:29:30]MH_I2C_Read... [01:29:30]Read from MH i2c: E2 0B 00 BF 00 00 F2 4C E9 ED B0 A1 ED B9 90 00 46 [01:29:30]RAPDU: F2 4C E9 ED B0 A1 ED B9 90 00 [01:29:30]wFMCommunicate OK [01:29:30]SAM_PROTO_SignData done [01:29:30]FM_MakeSignedData done [01:29:30]CreateOFDProtocolMessage [01:29:30]wFMCommunicate request_size=4 [01:29:30]MH_SAM_APDU [01:29:30]CAPDU: 80 11 00 00 [01:29:30]Write to MH i2c: E2 08 00 C0 00 80 11 00 00 00 00 00 00 3A [01:29:30]Write i2c OK [01:29:30]MH_I2C_Read... [01:29:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:29:30]Read from MH i2c: E2 [01:29:30]MH_I2C_Read... [01:29:30]Read from MH i2c: E2 17 00 [01:29:30]MH_I2C_Read... [01:29:30]Read from MH i2c: E2 17 00 C0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 96 [01:29:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [01:29:30]wFMCommunicate OK [01:29:30]CreateOFDProtocolMessage done [01:29:30]OFDSenderStorePacket 41985 [01:29:30]StoreOFDPacket docnum=41985 [01:29:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 21 01 00 00 52 AB 19 01 0F 6D 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 F8 41 A8 66 0E 04 04 00 AC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 01 A4 00 00 35 04 06 00 E9 37 75 A1 60 6A F2 4C E9 ED B0 A1 ED B9 [01:29:30]CheckFolder [01:29:30]dirname=/storage/ofd_packets [01:29:30]CheckFolder done [01:29:30]ProducePacketName [01:29:30]name=ofd_packets/00041985 [01:29:30]NVStorageSaveData ofd_packets/00041985 [01:29:30]File name is /storage/ofd_packets/00041985 [01:29:30]Write 319 bytes [01:29:30]NVStorageSaveData done [01:29:30]OFDSenderStorePacket done [01:29:30]KKMCreateOFDPacket done [01:29:30]NVStorageSaveData kkm_last_timestamp [01:29:30]File name is /storage/kkm_last_timestamp [01:29:30]Write 4 bytes [01:29:30]NVStorageSaveData done [01:29:30]ExternCall_PrintAddStr [01:29:30]wPrintStart [01:29:30]Write to MH i2c: 01 00 00 C1 00 C1 [01:29:30]Write i2c OK [01:29:30]MH_I2C_Read... [01:29:30]Read from MH i2c: 01 [01:29:30]MH_I2C_Read... [01:29:30]Read from MH i2c: 01 07 00 [01:29:30]MH_I2C_Read... [01:29:30]Read from MH i2c: 01 07 00 C1 00 00 00 00 00 00 FF 0F D6 [01:29:30]RasterBufferAndPrint [01:29:30]line Счет N : (3)184013 [01:29:30]line ИНН: 02508201610067 [01:29:30]line Контрольно-Кассовый Чек [01:29:30]line ПРОДАЖА [01:29:30]line Товар: 47803008 [01:29:30]line Сигареты Winston XS Blue [01:29:30]line 1.000 * 140.00 [01:29:30]line = 140.00 [01:29:30]line НДС 12% НСП 1% [01:29:30]line > о реализуемом товаре [01:29:30]line ИТОГО: 140.00 [01:29:30]line НСП 1% : 1.24 [01:29:30]line НДС 12% : 14.87 [01:29:30]line Наличными: 140.00 [01:29:30]line Безнал.: 0.00 [01:29:30]line Место: АЗС № 97 "Партнер Нефть" [01:29:30]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [01:29:30]line СНО: Общий режим [01:29:30]line Чек 6 30.07.2024 01:29 [01:29:30]line Смена: 428 ФФД: 1.0 [01:29:30]line ЗНМ: 0300000053 [01:29:30]line РНМ: 0000000000092626 [01:29:30]line Версия ККМ: 001 [01:29:30]line ФМ: 0000000000874958 [01:29:30]line ФД: 41985 [01:29:30]line ФПД: 256424405983338 [01:29:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T012928&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41985&fm=256424405983338&tin=02508201610067®Number=0000000000092626&sum=14000 [01:29:30]OFD Sender: Processing packet 41985 [packets to send 57, broken 56] [01:29:30]ProducePacketName [01:29:30]name=ofd_packets/00041985 [01:29:30]OFD Sender: To server: pG, [01:29:30]CommunicateWithHost lk.salyk.kg:30040 [01:29:30]line 0 [01:29:30]ConnectInit lk.salyk.kg [01:29:30]written 0, free lines is 4095 [01:29:31]Write to MH i2c: 01 00 00 E9 00 E9 [01:29:31]Write i2c OK [01:29:31]MH_I2C_Read... [01:29:31]Read from MH i2c: 01 [01:29:31]MH_I2C_Read... [01:29:31]Read from MH i2c: 01 07 00 [01:29:31]MH_I2C_Read... [01:29:31]Read from MH i2c: 01 07 00 E9 00 00 00 00 00 00 19 0D 16 [01:29:31]RasterBufferAndPrint [01:29:31]line [01:29:31]line [01:29:31]line [01:29:31]line [01:29:31]line [01:29:31]written 0, free lines is 3387 [01:29:31]MH_Cut [01:29:31]Write to MH i2c: D1 01 00 F0 00 01 C2 [01:29:31]Write i2c OK [01:29:31]MH_I2C_Read... [01:29:31]Read from MH i2c: D1 [01:29:31]MH_I2C_Read... [01:29:31]Read from MH i2c: D1 01 00 [01:29:31]MH_I2C_Read... [01:29:31]Read from MH i2c: D1 01 00 F0 00 00 C1 [01:29:31]Write to MH i2c: 01 00 00 F1 00 F1 [01:29:31]Write i2c OK [01:29:31]MH_I2C_Read... [01:29:31]*** Cut start [01:29:31]*** Partial cut [01:29:31]*** CUTSNS_PIN = 1 [01:29:31]*** CUTSNS_PIN = 0 [01:29:32]*** Brake cut motor [01:29:32]Read from MH i2c: *** Stop cut motor [01:29:32]01 *** Cut end [01:29:32] [01:29:32]MH_I2C_Read... [01:29:32]Read from MH i2c: 01 07 00 [01:29:32]MH_I2C_Read... [01:29:32]Read from MH i2c: 01 07 00 F1 00 00 00 00 00 00 FF 0F 06 [01:29:32]process_action close_receipt done [01:29:32]requested_data is exist [01:29:32]produce_requested_data [01:29:32]requested_item fm.sn is exist - process it [01:29:32]wFMCommunicate request_size=4 [01:29:32]MH_SAM_APDU [01:29:32]CAPDU: 80 11 00 00 [01:29:32]Write to MH i2c: E2 08 00 F2 00 80 11 00 00 00 00 00 00 6C [01:29:32]Write i2c OK [01:29:32]MH_I2C_Read... [01:29:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:29:32]Read from MH i2c: E2 [01:29:32]MH_I2C_Read... [01:29:32]Read from MH i2c: E2 17 00 [01:29:32]MH_I2C_Read... [01:29:32]Read from MH i2c: E2 17 00 F2 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 C8 [01:29:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [01:29:32]wFMCommunicate OK [01:29:32]requested_item fd.num is exist - process it [01:29:32]SAM_PROTO_GetFieldsCounters [01:29:32]wFMCommunicate request_size=4 [01:29:32]MH_SAM_APDU [01:29:32]CAPDU: 80 13 00 00 [01:29:32]Write to MH i2c: E2 08 00 F3 00 80 13 00 00 00 00 00 00 6F [01:29:32]Write i2c OK [01:29:32]MH_I2C_Read... [01:29:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:29:32]Read from MH i2c: E2 [01:29:32]MH_I2C_Read... [01:29:32]Read from MH i2c: E2 62 00 [01:29:32]MH_I2C_Read... [01:29:32]Read from MH i2c: E2 62 00 F3 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 01 A4 00 00 0E 04 04 00 AC 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 FD [01:29:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 01 A4 00 00 0E 04 04 00 AC 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:29:32]wFMCommunicate OK [01:29:32]SAM_PROTO_GetFieldsCounters done [01:29:32]requested_item shift.num is exist - process it [01:29:32]requested_item shift.opened is exist - process it [01:29:32]req_shift_opened [01:29:32]FM_GetShiftState [01:29:32]SAM_PROTO_GetShiftState [01:29:32]wFMCommunicate request_size=4 [01:29:32]MH_SAM_APDU [01:29:32]CAPDU: 80 13 01 00 [01:29:32]Write to MH i2c: E2 08 00 F4 00 80 13 01 00 00 00 00 00 71 [01:29:32]Write i2c OK [01:29:32]MH_I2C_Read... [01:29:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:29:32]Read from MH i2c: E2 [01:29:32]MH_I2C_Read... [01:29:32]Read from MH i2c: E2 0E 00 [01:29:32]MH_I2C_Read... [01:29:32]Read from MH i2c: E2 0E 00 F4 00 00 09 00 01 6A 2F A8 66 00 00 00 00 90 00 24 [01:29:32]RAPDU: 09 00 01 6A 2F A8 66 00 00 00 00 90 00 [01:29:32]wFMCommunicate OK [01:29:32]SAM_PROTO_GetShiftState done [01:29:33]FM_GetShiftState done [01:29:33]req_shift_opened done [01:29:33]requested_item shift.open_date is exist - process it [01:29:33]req_shift_open_date [01:29:33]req_shift_open_date done [01:29:33]produce_requested_data done [01:29:33]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41985,"shift.num":428,"shift.opened":1,"shift.open_date":1722298218} [01:29:33]process_action_free close_receipt [01:29:33]json_value_free [01:29:33]json_value_free done [01:29:33]process_json_proto returns [01:29:33]Send response to host [01:29:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41985,"shift.num":428,"shift.opened":1,"shift.open_date":1722298218}}} [01:29:33]free response buf [01:29:33]execute_script done [01:29:33]execute_script returns [01:29:33]free content buf [01:29:33]Sock 9.Close socket [01:29:33]Sock 9.Thread stoped [01:29:34]accept exits with 8 [01:29:34]New connection [01:29:34]New thread 3067100516 created [01:29:34]Thread 3067243876 joined [01:29:34]Waiting for new connection... [01:29:34] Sock 8.Parse request [01:29:34]Sock 8.Check first char [01:29:34]Sock 8.First char is OK [01:29:34]request: POST /json_proto HTTP/1.0 [01:29:34]Method: POST [01:29:34]URL: /json_proto [01:29:34]Method is POST - this is cgi request [01:29:34]url: /json_proto [01:29:34]query_string will be loaded in cgi processing [01:29:34]execute_cgi json_proto POST (null) [01:29:34]execute_cgi path=json_proto method=POST [01:29:34]POST find Content-Length [01:29:34]Host: 172.17.43.132:8080 [01:29:34]Content-Length: 620 [01:29:34]Content-Type: application/json [01:29:34] [01:29:34]POST finish read [01:29:34]Found Content-Length = 620 [01:29:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184014", "tax_sys" : 0, "items" : [ { "code": "4650063110756", "name": "\u041C\u0430\u0441\u043B\u043E Gazpromneft Super 10w40 1\u043B", "price" : 405.00, "quantity" : 1.000, "sum" : 405.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 405.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:29:34]execute_script... [01:29:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184014", "tax_sys" : 0, "items" : [ { "code": "4650063110756", "name": "\u041C\u0430\u0441\u043B\u043E Gazpromneft Super 10w40 1\u043B", "price" : 405.00, "quantity" : 1.000, "sum" : 405.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 405.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:29:34]POST & json_proto [01:29:34]process_json_proto [01:29:34]json parsed OK: [01:29:34]protocol is kg_v1.0 [01:29:34]action value=close_receipt [01:29:34]process_action close_receipt [01:29:34]cmd_close_receipt [01:29:34]MH_GetDate [01:29:34]Write to MH i2c: F0 00 00 F5 00 E4 [01:29:34]Write i2c OK [01:29:34]MH_I2C_Read... [01:29:34]Read from MH i2c: F0 [01:29:34]MH_I2C_Read... [01:29:34]Read from MH i2c: F0 09 00 [01:29:34]MH_I2C_Read... [01:29:34]Read from MH i2c: F0 09 00 F5 00 00 FE 41 A8 66 64 A3 A7 66 4E [01:29:34]GetLastDocTimeStamp 1722302968 [01:29:34]current date 1722302974 [01:29:34]FM_GetShiftState [01:29:34]SAM_PROTO_GetShiftState [01:29:34]wFMCommunicate request_size=4 [01:29:34]MH_SAM_APDU [01:29:34]CAPDU: 80 13 01 00 [01:29:34]Write to MH i2c: E2 08 00 F6 00 80 13 01 00 00 00 00 00 73 [01:29:34]Write i2c OK [01:29:34]MH_I2C_Read... [01:29:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:29:34]Read from MH i2c: E2 [01:29:34]MH_I2C_Read... [01:29:34]Read from MH i2c: E2 0E 00 [01:29:34]MH_I2C_Read... [01:29:34]Read from MH i2c: E2 0E 00 F6 00 00 09 00 01 6A 2F A8 66 00 00 00 00 90 00 26 [01:29:34]RAPDU: 09 00 01 6A 2F A8 66 00 00 00 00 90 00 [01:29:34]wFMCommunicate OK [01:29:34]SAM_PROTO_GetShiftState done [01:29:34]FM_GetShiftState done [01:29:34]opened in 1722298218 [01:29:34]opened+sec_in_day 1722384618 [01:29:34]quantity*price = 40500 [01:29:34]sum+1 = 40501 [01:29:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 405.00 НСП 1% : 3.58 НДС 12% : 43.01 Наличными: 405.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 7 30.07.2024 01:29 Смена: 428 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41986 ФПД: 43539623958071 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T012934&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41986&fm=43539623958071&tin=02508201610067®Number=0000000000092626&sum=40500 0 [01:29:35]StoreToDocumentArchive [01:29:35]shift 428 fd 41986 [01:29:35]save to /storage/0428/doc_00041986 [01:29:35]save last doc name /storage/0428/doc_00041986 to /storage/kkm_last_doc_name [01:29:35]save OK [01:29:35]Clear old archive folders... [01:29:35]ProcessDocumentItem done err = 0, tmpTLVsize=280 [01:29:35]tlvbuf is 00A8A4F0 [01:29:35]SAM_PROTO_ClearQueue [01:29:35]wFMCommunicate request_size=4 [01:29:35]MH_SAM_APDU [01:29:35]CAPDU: 80 09 00 00 [01:29:35]Write to MH i2c: E2 08 00 03 01 80 09 00 00 00 00 00 00 76 [01:29:35]Write i2c OK [01:29:35]MH_I2C_Read... [01:29:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:29:35]Read from MH i2c: E2 [01:29:35]MH_I2C_Read... [01:29:35]Read from MH i2c: E2 03 00 [01:29:35]MH_I2C_Read... [01:29:35]Read from MH i2c: E2 03 00 03 01 00 90 00 78 [01:29:35]RAPDU: 90 00 [01:29:35]wFMCommunicate OK [01:29:35]SAM_PROTO_ClearQueue done [01:29:35]KKMCreateOFDPacket [01:29:35]OFDProtocolAddRootSTLVToBuf [01:29:35]FM_MakeSignedData [01:29:35]FM_MakeSignedData [01:29:35]SAM_PROTO_SignData [01:29:35]wFMCommunicate request_size=4 [01:29:35]MH_SAM_APDU [01:29:35]CAPDU: 80 0D 01 02 [01:29:35]Write to MH i2c: E2 08 00 04 01 80 0D 01 02 00 00 00 00 7E [01:29:35]Write i2c OK [01:29:35]MH_I2C_Read... [01:29:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:29:35]Read from MH i2c: E2 [01:29:35]MH_I2C_Read... [01:29:35]Read from MH i2c: E2 03 00 [01:29:35]MH_I2C_Read... [01:29:35]Read from MH i2c: E2 03 00 04 01 00 90 00 79 [01:29:35]RAPDU: 90 00 [01:29:35]wFMCommunicate OK [01:29:35]wFMCommunicate request_size=255 [01:29:35]MH_SAM_APDU [01:29:35]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 30 37 35 36 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 75 70 65 72 20 31 30 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 ConnectInit Can't take IP for lk.salyk.kg [01:29:35]03 CommunicateWithHost connect error [01:29:35]01 CommunicateWithHost err = -1 [01:29:35]00 OFD Sender: Server communicate error [01:29:35]01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 FE 41 A8 66 0E 04 04 00 AC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 [01:29:35]Write to MH i2c: E2 02 01 05 01 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 30 37 35 36 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 75 70 65 72 20 31 30 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 [01:29:38]Write i2c OK [01:29:38]MH_I2C_Read... [01:29:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:29:39]Read from MH i2c: E2 [01:29:39]MH_I2C_Read... [01:29:39]Read from MH i2c: E2 0E 00 [01:29:39]MH_I2C_Read... [01:29:39]Read from MH i2c: E2 0E 00 3D 01 00 09 00 01 6A 2F A8 66 00 00 00 00 90 00 6E [01:29:39]RAPDU: 09 00 01 6A 2F A8 66 00 00 00 00 90 00 [01:29:39]wFMCommunicate OK [01:29:39]SAM_PROTO_GetShiftState done [01:29:39]FM_GetShiftState done [01:29:39]req_shift_opened done [01:29:39]requested_item shift.open_date is exist - process it [01:29:39]req_shift_open_date [01:29:39]req_shift_open_date done [01:29:39]produce_requested_data done [01:29:39]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41986,"shift.num":428,"shift.opened":1,"shift.open_date":1722298218} [01:29:39]process_action_free close_receipt [01:29:39]json_value_free [01:29:39]json_value_free done [01:29:39]process_json_proto returns [01:29:39]Send response to host [01:29:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41986,"shift.num":428,"shift.opened":1,"shift.open_date":1722298218}}} [01:29:39]free response buf [01:29:39]execute_script done [01:29:39]execute_script returns [01:29:39]free content buf [01:29:39]Sock 8.Close socket [01:29:39]Sock 8.Thread stoped [01:29:40]accept exits with 12 [01:29:40]New connection [01:29:40]New thread 3067243876 created [01:29:40]Thread 3067100516 joined [01:29:40]Waiting for new connection... [01:29:40] Sock 12.Parse request [01:29:40]Sock 12.Check first char [01:29:40]Sock 12.First char is OK [01:29:40]request: POST /json_proto HTTP/1.0 [01:29:40]Method: POST [01:29:40]URL: /json_proto [01:29:40]Method is POST - this is cgi request [01:29:40]url: /json_proto [01:29:40]query_string will be loaded in cgi processing [01:29:40]execute_cgi json_proto POST (null) [01:29:40]execute_cgi path=json_proto method=POST [01:29:40]POST find Content-Length [01:29:40]Host: 172.17.43.132:8080 [01:29:40]Content-Length: 904 [01:29:40]Content-Type: application/json [01:29:40] [01:29:40]POST finish read [01:29:40]Found Content-Length = 904 [01:29:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184015", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 3.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "54491472", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,5\u043B", "price" : 75.00, "quantity" : 2.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 270.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:29:40]execute_script... [01:29: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 : (3)184015", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 3.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "54491472", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,5\u043B", "price" : 75.00, "quantity" : 2.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 270.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:29:40]POST & json_proto [01:29:40]process_json_proto [01:29:40]json parsed OK: [01:29:40]protocol is kg_v1.0 [01:29:40]action value=close_receipt [01:29:40]process_action close_receipt [01:29:40]cmd_close_receipt [01:29:40]MH_GetDate [01:29:40]Write to MH i2c: F0 00 00 3E 01 2E [01:29:40]Write i2c OK [01:29:40]MH_I2C_Read... [01:29:40]Read from MH i2c: F0 [01:29:40]MH_I2C_Read... [01:29:40]Read from MH i2c: F0 09 00 [01:29:40]MH_I2C_Read... [01:29:40]Read from MH i2c: F0 09 00 3E 01 00 05 42 A8 66 64 A3 A7 66 A0 [01:29:40]GetLastDocTimeStamp 1722302974 [01:29:40]current date 1722302981 [01:29:40]FM_GetShiftState [01:29:40]SAM_PROTO_GetShiftState [01:29:40]wFMCommunicate request_size=4 [01:29:40]MH_SAM_APDU [01:29:40]CAPDU: 80 13 01 00 [01:29:40]Write to MH i2c: E2 08 00 3F 01 80 13 01 00 00 00 00 00 BD [01:29:40]Write i2c OK [01:29:40]MH_I2C_Read... [01:29:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:29:40]Read from MH i2c: E2 [01:29:40]MH_I2C_Read... [01:29:40]Read from MH i2c: E2 0E 00 [01:29:40]MH_I2C_Read... [01:29:40]Read from MH i2c: E2 0E 00 3F 01 00 09 00 01 6A 2F A8 66 00 00 00 00 90 00 70 [01:29:40]RAPDU: 09 00 01 6A 2F A8 66 00 00 00 00 90 00 [01:29:40]wFMCommunicate OK [01:29:40]SAM_PROTO_GetShiftState done [01:29:40]FM_GetShiftState done [01:29:40]opened in 1722298218 [01:29:40]opened+sec_in_day 1722384618 [01:29:40]quantity*price = 12000 [01:29:40]sum+1 = 12001 [01:29:40]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 54491472 Напиток Кока-Кола 0,5л 2.000 * 75.00 = 150.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 270.00 НСП 1% : 2.39 НДС 12% : 28.67 Наличными: 270.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 8 30.07.2024 01:29 Смена: 428 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41987 ФПД: 217049317699065 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T012941&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41987&fm=217049317699065&tin=02508201610067®Number=0000000000092626&sum=27000 0 [01:29:42]StoreToDocumentArchive [01:29:42]shift 428 fd 41987 [01:29:42]save to /storage/0428/doc_00041987 [01:29:42]save last doc name /storage/0428/doc_00041987 to /storage/kkm_last_doc_name [01:29:42]save OK [01:29:42]Clear old archive folders... [01:29:42]ProcessDocumentItem done err = 0, tmpTLVsize=376 [01:29:42]tlvbuf is 00A90D20 [01:29:42]SAM_PROTO_ClearQueue [01:29:42]wFMCommunicate request_size=4 [01:29:42]MH_SAM_APDU [01:29:42]CAPDU: 80 09 00 00 [01:29:42]Write to MH i2c: E2 08 00 4C 01 80 09 00 00 00 00 00 00 BF [01:29:42]Write i2c OK [01:29:42]MH_I2C_Read... [01:29:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:29:42]Read from MH i2c: E2 [01:29:42]MH_I2C_Read... [01:29:42]Read from MH i2c: E2 03 00 [01:29:42]MH_I2C_Read... [01:29:42]Read from MH i2c: E2 03 00 4C 01 00 90 00 C1 [01:29:42]RAPDU: 90 00 [01:29:42]wFMCommunicate OK [01:29:42]SAM_PROTO_ClearQueue done [01:29:42]KKMCreateOFDPacket [01:29:42]OFDProtocolAddRootSTLVToBuf [01:29:42]FM_MakeSignedData [01:29:42]FM_MakeSignedData [01:29:42]SAM_PROTO_SignData [01:29:42]wFMCommunicate request_size=4 [01:29:42]MH_SAM_APDU [01:29:42]CAPDU: 80 0D 01 02 [01:29:42]Write to MH i2c: E2 08 00 4D 01 80 0D 01 02 00 00 00 00 C7 [01:29:42]Write i2c OK [01:29:42]MH_I2C_Read... [01:29:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:29:42]Read from MH i2c: E2 [01:29:42]MH_I2C_Read... [01:29:42]Read from MH i2c: E2 03 00 [01:29:42]MH_I2C_Read... [01:29:42]Read from MH i2c: E2 03 00 4D 01 00 90 00 C2 [01:29:42]RAPDU: 90 00 [01:29:42]wFMCommunicate OK [01:29:42]wFMCommunicate request_size=255 [01:29:42]MH_SAM_APDU [01:29:42]CAPDU: 80 0D 02 02 FA 03 00 78 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 [01:29:42]Write to MH i2c: E2 02 01 4E 01 80 0D 02 02 FA 00 03 00 78 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 00 00 A0 [01:29:42]Write i2c OK [01:29:42]MH_I2C_Read... [01:29:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:29:43]Read from MH i2c: E2 [01:29:43]MH_I2C_Read... [01:29:43]Read from MH i2c: E2 03 00 [01:29:43]MH_I2C_Read... [01:29:43]Read from MH i2c: E2 03 00 4E 01 00 90 00 C3 [01:29:43]RAPDU: 90 00 [01:29:43]wFMCommunicate OK [01:29:43]wFMCommunicate request_size=135 [01:29:43]MH_SAM_APDU [01:29:43]CAPDU: 80 0D 02 02 82 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 05 42 A8 66 0E 04 04 00 AC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 03 A4 00 00 35 04 06 00 C5 67 BB 7A ED F9 [01:29:43]Write to MH i2c: E2 8A 00 4F 01 80 0D 02 02 82 00 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 05 42 A8 66 0E 04 04 00 AC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 03 A4 00 00 35 04 06 00 C5 67 BB 7A ED F9 00 00 2A [01:29:43]Write i2c OK [01:29:43]MH_I2C_Read... [01:29:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:29:43]Read from MH i2c: E2 [01:29:43]MH_I2C_Read... [01:29:43]Read from MH i2c: E2 03 00 [01:29:43]MH_I2C_Read... [01:29:43]Read from MH i2c: E2 03 00 4F 01 00 90 00 C4 [01:29:43]RAPDU: 90 00 [01:29:43]wFMCommunicate OK [01:29:43]wFMCommunicate request_size=4 [01:29:43]MH_SAM_APDU [01:29:43]CAPDU: 80 0D 03 02 [01:29:43]Write to MH i2c: E2 08 00 50 01 80 0D 03 02 00 00 00 00 CC [01:29:43]Write i2c OK [01:29:43]MH_I2C_Read... [01:29:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:29:43]Read from MH i2c: E2 [01:29:43]MH_I2C_Read... [01:29:43]Read from MH i2c: E2 0B 00 [01:29:43]MH_I2C_Read... [01:29:43]Read from MH i2c: E2 0B 00 50 01 00 EE A5 B5 05 E2 A1 28 A3 90 00 68 [01:29:43]RAPDU: EE A5 B5 05 E2 A1 28 A3 90 00 [01:29:43]wFMCommunicate OK [01:29:43]SAM_PROTO_SignData done [01:29:43]FM_MakeSignedData done [01:29:43]CreateOFDProtocolMessage [01:29:43]wFMCommunicate request_size=4 [01:29:43]MH_SAM_APDU [01:29:43]CAPDU: 80 11 00 00 [01:29:43]Write to MH i2c: E2 08 00 51 01 80 11 00 00 00 00 00 00 CC [01:29:43]Write i2c OK [01:29:43]MH_I2C_Read... [01:29:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:29:43]Read from MH i2c: E2 [01:29:43]MH_I2C_Read... [01:29:43]Read from MH i2c: E2 17 00 [01:29:43]MH_I2C_Read... [01:29:43]Read from MH i2c: E2 17 00 51 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 28 [01:29:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [01:29:43]wFMCommunicate OK [01:29:43]CreateOFDProtocolMessage done [01:29:43]OFDSenderStorePacket 41987 [01:29:43]StoreOFDPacket docnum=41987 [01:29:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 8C 01 00 00 5E B8 84 01 0F 4B 5A 03 01 00 03 00 78 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 05 42 A8 66 0E 04 04 00 AC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 03 A4 00 00 35 04 06 00 C5 67 BB 7A ED F9 EE A5 B5 05 E2 A1 28 A3 [01:29:43]CheckFolder [01:29:43]dirname=/storage/ofd_packets [01:29:43]CheckFolder done [01:29:43]ProducePacketName [01:29:43]name=ofd_packets/00041987 [01:29:43]NVStorageSaveData ofd_packets/00041987 [01:29:43]File name is /storage/ofd_packets/00041987 [01:29:43]Write 426 bytes [01:29:43]NVStorageSaveData done [01:29:43]OFDSenderStorePacket done [01:29:43]KKMCreateOFDPacket done [01:29:43]NVStorageSaveData kkm_last_timestamp [01:29:43]File name is /storage/kkm_last_timestamp [01:29:43]Write 4 bytes [01:29:43]NVStorageSaveData done [01:29:43]ExternCall_PrintAddStr [01:29:43]wPrintStart [01:29:43]Write to MH i2c: 01 00 00 52 01 53 [01:29:43]Write i2c OK [01:29:43]MH_I2C_Read... [01:29:43]Read from MH i2c: 01 [01:29:43]MH_I2C_Read... [01:29:43]Read from MH i2c: 01 07 00 [01:29:43]MH_I2C_Read... [01:29:43]Read from MH i2c: 01 07 00 52 01 00 00 00 00 00 FF 0F 68 [01:29:43]RasterBufferAndPrint [01:29:43]line Счет N : (3)184015 [01:29:43]line ИНН: 02508201610067 [01:29:43]line Контрольно-Кассовый Чек [01:29:43]line ПРОДАЖА [01:29:43]line Товар: 4700000160211 [01:29:43]line Вода Легенда 0,5л [01:29:43]line 3.000 * 40.00 [01:29:43]line = 120.00 [01:29:43]line НДС 12% НСП 1% [01:29:43]line > о реализуемом товаре [01:29:43]line Товар: 54491472 [01:29:43]line Напиток Кока-Кола 0,5л [01:29:43]line 2.000 * 75.00 [01:29:43]line = 150.00 [01:29:43]line НДС 12% НСП 1% [01:29:43]line > о реализуемом товаре [01:29:43]line ИТОГО: 270.00 [01:29:43]line НСП 1% : 2.39 [01:29:43]line НДС 12% : 28.67 [01:29:43]line Наличными: 270.00 [01:29:43]line Безнал.: 0.00 [01:29:43]line Место: АЗС № 97 "Партнер Нефть" [01:29:43]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [01:29:43]line СНО: Общий режим [01:29:43]line Чек 8 30.07.2024 01:29 [01:29:43]line Смена: 428 ФФД: 1.0 [01:29:43]line ЗНМ: 0300000053 [01:29:43]line РНМ: 0000000000092626 [01:29:43]line Версия ККМ: 001 [01:29:43]line ФМ: 0000000000874958 [01:29:43]line ФД: 41987 [01:29:43]line ФПД: 217049317699065 [01:29:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T012941&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41987&fm=217049317699065&tin=02508201610067®Number=0000000000092626&sum=27000 [01:29:43]line 0 [01:29:43]written 0, free lines is 4095 [01:29:44]Write to MH i2c: 01 00 00 80 01 81 [01:29:44]Write i2c OK [01:29:44]MH_I2C_Read... [01:29:44]Read from MH i2c: 01 [01:29:44]MH_I2C_Read... [01:29:44]Read from MH i2c: 01 07 00 [01:29:44]MH_I2C_Read... [01:29:44]Read from MH i2c: 01 07 00 80 01 00 00 00 00 00 D0 0C 64 [01:29:44]RasterBufferAndPrint [01:29:44]line [01:29:44]line [01:29:44]line [01:29:44]line [01:29:44]line [01:29:44]written 0, free lines is 3322 [01:29:44]MH_Cut [01:29:44]Write to MH i2c: D1 01 00 87 01 01 5A [01:29:44]Write i2c OK [01:29:44]MH_I2C_Read... [01:29:44]Read from MH i2c: D1 [01:29:44]MH_I2C_Read... [01:29:44]Read from MH i2c: D1 01 00 [01:29:44]MH_I2C_Read... [01:29:44]Read from MH i2c: D1 01 00 87 01 00 59 [01:29:44]Write to MH i2c: 01 00 00 88 01 89 [01:29:44]Write i2c OK [01:29:44]MH_I2C_Read... [01:29:44]*** Cut start [01:29:44]*** Partial cut [01:29:44]*** CUTSNS_PIN = 1 [01:29:45]*** CUTSNS_PIN = 0 [01:29:45]*** Brake cut motor [01:29:45]Read from MH i2c: 01 [01:29:45]MH_I2C_Read... [01:29:45]*** Stop cut motor [01:29:45]*** Cut end [01:29:45]Read from MH i2c: 01 07 00 [01:29:45]MH_I2C_Read... [01:29:45]Read from MH i2c: 01 07 00 88 01 00 00 00 00 00 FF 0F 9E [01:29:45]process_action close_receipt done [01:29:45]requested_data is exist [01:29:45]produce_requested_data [01:29:45]requested_item fm.sn is exist - process it [01:29:45]wFMCommunicate request_size=4 [01:29:45]MH_SAM_APDU [01:29:45]CAPDU: 80 11 00 00 [01:29:45]Write to MH i2c: E2 08 00 89 01 80 11 00 00 00 00 00 00 04 [01:29:45]Write i2c OK [01:29:45]MH_I2C_Read... [01:29:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:29:45]Read from MH i2c: E2 [01:29:45]MH_I2C_Read... [01:29:45]Read from MH i2c: E2 17 00 [01:29:45]MH_I2C_Read... [01:29:45]Read from MH i2c: E2 17 00 89 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 60 [01:29:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [01:29:45]wFMCommunicate OK [01:29:45]requested_item fd.num is exist - process it [01:29:45]SAM_PROTO_GetFieldsCounters [01:29:45]wFMCommunicate request_size=4 [01:29:45]MH_SAM_APDU [01:29:45]CAPDU: 80 13 00 00 [01:29:45]Write to MH i2c: E2 08 00 8A 01 80 13 00 00 00 00 00 00 07 [01:29:45]Write i2c OK [01:29:45]MH_I2C_Read... [01:29:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:29:46]Read from MH i2c: E2 [01:29:46]MH_I2C_Read... [01:29:46]Read from MH i2c: E2 62 00 [01:29:46]MH_I2C_Read... [01:29:46]Read from MH i2c: E2 62 00 8A 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 03 A4 00 00 0E 04 04 00 AC 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 9D [01:29: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 03 A4 00 00 0E 04 04 00 AC 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 [01:29:46]wFMCommunicate OK [01:29:46]SAM_PROTO_GetFieldsCounters done [01:29:46]requested_item shift.num is exist - process it [01:29:46]requested_item shift.opened is exist - process it [01:29:46]req_shift_opened [01:29:46]FM_GetShiftState [01:29:46]SAM_PROTO_GetShiftState [01:29:46]wFMCommunicate request_size=4 [01:29:46]MH_SAM_APDU [01:29:46]CAPDU: 80 13 01 00 [01:29:46]Write to MH i2c: E2 08 00 8B 01 80 13 01 00 00 00 00 00 09 [01:29:46]Write i2c OK [01:29:46]MH_I2C_Read... [01:29:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:29:46]Read from MH i2c: E2 [01:29:46]MH_I2C_Read... [01:29:46]Read from MH i2c: E2 0E 00 [01:29:46]MH_I2C_Read... [01:29:46]Read from MH i2c: E2 0E 00 8B 01 00 09 00 01 6A 2F A8 66 00 00 00 00 90 00 BC [01:29:46]RAPDU: 09 00 01 6A 2F A8 66 00 00 00 00 90 00 [01:29:46]wFMCommunicate OK [01:29:46]SAM_PROTO_GetShiftState done [01:29:46]FM_GetShiftState done [01:29:46]req_shift_opened done [01:29:46]requested_item shift.open_date is exist - process it [01:29:46]req_shift_open_date [01:29:46]req_shift_open_date done [01:29:46]produce_requested_data done [01:29:46]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41987,"shift.num":428,"shift.opened":1,"shift.open_date":1722298218} [01:29:46]process_action_free close_receipt [01:29:46]json_value_free [01:29:46]json_value_free done [01:29:46]process_json_proto returns [01:29:46]Send response to host [01:29:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41987,"shift.num":428,"shift.opened":1,"shift.open_date":1722298218}}} [01:29:46]free response buf [01:29:46]execute_script done [01:29:46]execute_script returns [01:29:46]free content buf [01:29:46]Sock 12.Close socket [01:29:46]Sock 12.Thread stoped [01:29:46]Connected sock=10 [01:29: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 35 38 21 01 00 00 52 AB 19 01 0F 6D 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 F8 41 A8 66 0E 04 04 00 AC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 01 A4 00 00 35 04 06 00 E9 37 75 A1 60 6A F2 4C E9 ED B0 A1 ED B9 [01:29:47]accept exits with 8 [01:29:47]New connection [01:29:47]New thread 3067100516 created [01:29:47]Thread 3067243876 joined [01:29:47]Waiting for new connection... [01:29:47] Sock 8.Parse request [01:29:47]Sock 8.Check first char [01:29:47]Sock 8.First char is OK [01:29:47]request: POST /json_proto HTTP/1.0 [01:29:47]Method: POST [01:29:47]URL: /json_proto [01:29:47]Method is POST - this is cgi request [01:29:47]url: /json_proto [01:29:47]query_string will be loaded in cgi processing [01:29:47]execute_cgi json_proto POST (null) [01:29:47]execute_cgi path=json_proto method=POST [01:29:47]POST find Content-Length [01:29:47]Host: 172.17.43.132:8080 [01:29:47]Content-Length: 652 [01:29:47]Content-Type: application/json [01:29:47] [01:29:47]POST finish read [01:29:47]Found Content-Length = 652 [01:29:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184016", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:29:47]execute_script... [01:29: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 : (3)184016", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:29:47]POST & json_proto [01:29:47]process_json_proto [01:29:47]json parsed OK: [01:29:47]protocol is kg_v1.0 [01:29:47]action value=close_receipt [01:29:47]process_action close_receipt [01:29:47]cmd_close_receipt [01:29:47]MH_GetDate [01:29:47]Write to MH i2c: F0 00 00 8C 01 7C [01:29:47]Write i2c OK [01:29:47]MH_I2C_Read... [01:29:47]Read from MH i2c: F0 [01:29:47]MH_I2C_Read... [01:29:47]Read from MH i2c: F0 09 00 [01:29:47]MH_I2C_Read... [01:29:47]Read from MH i2c: F0 09 00 8C 01 00 0B 42 A8 66 64 A3 A7 66 F4 [01:29:47]GetLastDocTimeStamp 1722302981 [01:29:47]current date 1722302987 [01:29:47]FM_GetShiftState [01:29:47]SAM_PROTO_GetShiftState [01:29:47]wFMCommunicate request_size=4 [01:29:47]MH_SAM_APDU [01:29:47]CAPDU: 80 13 01 00 [01:29:47]Write to MH i2c: E2 08 00 8D 01 80 13 01 00 00 00 00 00 0B [01:29:47]Write i2c OK [01:29:47]MH_I2C_Read... [01:29:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:29:47]Read from MH i2c: E2 [01:29:47]MH_I2C_Read... [01:29:47]Read from MH i2c: E2 0E 00 [01:29:47]MH_I2C_Read... [01:29:47]Read from MH i2c: E2 0E 00 8D 01 00 09 00 01 6A 2F A8 66 00 00 00 00 90 00 BE [01:29:47]RAPDU: 09 00 01 6A 2F A8 66 00 00 00 00 90 00 [01:29:47]wFMCommunicate OK [01:29:47]SAM_PROTO_GetShiftState done [01:29:47]FM_GetShiftState done [01:29:47]opened in 1722298218 [01:29:47]opened+sec_in_day 1722384618 [01:29:47]quantity*price = 12500 [01:29:47]sum+1 = 12501 [01:29:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 9 30.07.2024 01:29 Смена: 428 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41988 ФПД: 187438881177307 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T012947&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41988&fm=187438881177307&tin=02508201610067®Number=0000000000092626&sum=12500 0 [01:29:49]StoreToDocumentArchive [01:29:49]shift 428 fd 41988 [01:29:49]save to /storage/0428/doc_00041988 [01:29:49]save last doc name /storage/0428/doc_00041988 to /storage/kkm_last_doc_name [01:29:49]save OK [01:29:49]Clear old archive folders... [01:29:49]ProcessDocumentItem done err = 0, tmpTLVsize=284 [01:29:49]tlvbuf is 009FD120 [01:29:49]SAM_PROTO_ClearQueue [01:29:49]wFMCommunicate request_size=4 [01:29:49]MH_SAM_APDU [01:29:49]CAPDU: 80 09 00 00 [01:29:49]Write to MH i2c: E2 08 00 9A 01 80 09 00 00 00 00 00 00 0D [01:29:49]Write i2c OK [01:29:49]MH_I2C_Read... [01:29:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:29:49]Read from MH i2c: E2 [01:29:49]MH_I2C_Read... [01:29:49]Read from MH i2c: E2 03 00 [01:29:49]MH_I2C_Read... [01:29:49]Read from MH i2c: E2 03 00 9A 01 00 90 00 0F [01:29:49]RAPDU: 90 00 [01:29:49]wFMCommunicate OK [01:29:49]SAM_PROTO_ClearQueue done [01:29:49]KKMCreateOFDPacket [01:29:49]OFDProtocolAddRootSTLVToBuf [01:29:49]FM_MakeSignedData [01:29:49]FM_MakeSignedData [01:29:49]SAM_PROTO_SignData [01:29:49]wFMCommunicate request_size=4 [01:29:49]MH_SAM_APDU [01:29:49]CAPDU: 80 0D 01 02 [01:29:49]Write to MH i2c: E2 08 00 9B 01 80 0D 01 02 00 00 00 00 15 [01:29:49]Write i2c OK [01:29:49]MH_I2C_Read... [01:29:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:29:49]Read from MH i2c: E2 [01:29:49]MH_I2C_Read... [01:29:49]Read from MH i2c: E2 03 00 [01:29:49]MH_I2C_Read... [01:29:49]Read from MH i2c: E2 03 00 9B 01 00 90 00 10 [01:29:49]RAPDU: 90 00 [01:29:49]wFMCommunicate OK [01:29:49]wFMCommunicate request_size=255 [01:29:49]MH_SAM_APDU [01:29:49]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 0B 42 A8 66 0E 04 04 00 AC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 [01:29:49]Write to MH i2c: E2 02 01 9C 01 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 0B 42 A8 66 0E 04 04 00 AC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 00 00 C8 [01:29:49]Write i2c OK [01:29:49]MH_I2C_Read... [01:29:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:29:50]Read from MH i2c: E2 [01:29:50]MH_I2C_Read... [01:29:50]Read from MH i2c: E2 03 00 [01:29:50]MH_I2C_Read... [01:29:50]Read from MH i2c: E2 03 00 9C 01 00 90 00 11 [01:29:50]RAPDU: 90 00 [01:29:50]wFMCommunicate OK [01:29:50]wFMCommunicate request_size=43 [01:29:50]MH_SAM_APDU [01:29:50]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 04 A4 00 00 35 04 06 00 AA 79 83 ED FE DB [01:29:50]Write to MH i2c: E2 2E 00 9D 01 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 04 A4 00 00 35 04 06 00 AA 79 83 ED FE DB 00 00 1D [01:29:50]Write i2c OK [01:29:50]MH_I2C_Read... [01:29:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:29:50]Read from MH i2c: E2 [01:29:50]MH_I2C_Read... [01:29:50]Read from MH i2c: E2 03 00 [01:29:50]MH_I2C_Read... [01:29:50]Read from MH i2c: E2 03 00 9D 01 00 90 00 12 [01:29:50]RAPDU: 90 00 [01:29:50]wFMCommunicate OK [01:29:50]wFMCommunicate request_size=4 [01:29:50]MH_SAM_APDU [01:29:50]CAPDU: 80 0D 03 02 [01:29:50]Write to MH i2c: E2 08 00 9E 01 80 0D 03 02 00 00 00 00 1A [01:29:50]Write i2c OK [01:29:50]MH_I2C_Read... [01:29:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:29:50]Read from MH i2c: E2 [01:29:50]MH_I2C_Read... [01:29:50]Read from MH i2c: E2 0B 00 [01:29:50]MH_I2C_Read... [01:29:50]Read from MH i2c: E2 0B 00 9E 01 00 2C 6F 3E CF 23 3F E8 FB 90 00 08 [01:29:50]RAPDU: 2C 6F 3E CF 23 3F E8 FB 90 00 [01:29:50]wFMCommunicate OK [01:29:50]SAM_PROTO_SignData done [01:29:50]FM_MakeSignedData done [01:29:50]CreateOFDProtocolMessage [01:29:50]wFMCommunicate request_size=4 [01:29:50]MH_SAM_APDU [01:29:50]CAPDU: 80 11 00 00 [01:29:50]Write to MH i2c: E2 08 00 9F 01 80 11 00 00 00 00 00 00 1A [01:29:50]Write i2c OK [01:29:50]MH_I2C_Read... [01:29:50]Read from MH i2c: E2 [01:29:50]MH_I2C_Read... [01:29:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:29:50]Read from MH i2c: E2 17 00 [01:29:50]MH_I2C_Read... [01:29:50]Read from MH i2c: E2 17 00 9F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 76 [01:29:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [01:29:50]wFMCommunicate OK [01:29:50]CreateOFDProtocolMessage done [01:29:50]OFDSenderStorePacket 41988 [01:29:50]StoreOFDPacket docnum=41988 [01:29:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 30 01 00 00 D7 39 28 01 49 69 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 0B 42 A8 66 0E 04 04 00 AC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 04 A4 00 00 35 04 06 00 AA 79 83 ED FE DB 2C 6F 3E CF 23 3F E8 FB [01:29:50]CheckFolder [01:29:50]dirname=/storage/ofd_packets [01:29:50]CheckFolder done [01:29:50]ProducePacketName [01:29:50]name=ofd_packets/00041988 [01:29:50]NVStorageSaveData ofd_packets/00041988 [01:29:50]File name is /storage/ofd_packets/00041988 [01:29:50]Write 334 bytes [01:29:50]NVStorageSaveData done [01:29:50]OFDSenderStorePacket done [01:29:50]KKMCreateOFDPacket done [01:29:50]NVStorageSaveData kkm_last_timestamp [01:29:50]File name is /storage/kkm_last_timestamp [01:29:50]Write 4 bytes [01:29:50]NVStorageSaveData done [01:29:50]ExternCall_PrintAddStr [01:29:50]wPrintStart [01:29:50]Write to MH i2c: 01 00 00 A0 01 A1 [01:29:50]Write i2c OK [01:29:50]MH_I2C_Read... [01:29:50]Read from MH i2c: 01 [01:29:50]MH_I2C_Read... [01:29:50]Read from MH i2c: 01 07 00 [01:29:50]MH_I2C_Read... [01:29:50]Read from MH i2c: 01 07 00 A0 01 00 00 00 00 00 FF 0F B6 [01:29:50]RasterBufferAndPrint [01:29:50]line Счет N : (3)184016 [01:29:50]line ИНН: 02508201610067 [01:29:50]line Контрольно-Кассовый Чек [01:29:50]line ПРОДАЖА [01:29:50]line Товар: 2000036190018 [01:29:50]line Кофе Американо XL(GABB TRADE) [01:29:50]line 1.000 * 125.00 [01:29:50]line = 125.00 [01:29:50]line НДС 12% НСП 1% [01:29:50]line > о реализуемом товаре [01:29:50]line ИТОГО: 125.00 [01:29:50]line НСП 1% : 1.11 [01:29:50]line НДС 12% : 13.27 [01:29:50]line Наличными: 125.00 [01:29:50]line Безнал.: 0.00 [01:29:50]line Место: АЗС № 97 "Партнер Нефть" [01:29:50]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [01:29:50]line СНО: Общий режим [01:29:50]line Чек 9 30.07.2024 01:29 [01:29:50]line Смена: 428 ФФД: 1.0 [01:29:50]line ЗНМ: 0300000053 [01:29:50]line РНМ: 0000000000092626 [01:29:50]line Версия ККМ: 001 [01:29:50]line ФМ: 0000000000874958 [01:29:50]line ФД: 41988 [01:29:50]line ФПД: 187438881177307 [01:29:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T012947&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41988&fm=187438881177307&tin=02508201610067®Number=0000000000092626&sum=12500 [01:29:50]line 0 [01:29:50]written 0, free lines is 4095 [01:29:51]Write to MH i2c: 01 00 00 C9 01 CA [01:29:51]Write i2c OK [01:29:51]MH_I2C_Read... [01:29:51]Read from MH i2c: 01 [01:29:51]MH_I2C_Read... [01:29:51]Read from MH i2c: 01 07 00 [01:29:51]MH_I2C_Read... [01:29:51]Read from MH i2c: 01 07 00 C9 01 00 00 00 00 00 09 0D E7 [01:29:51]RasterBufferAndPrint [01:29:51]line [01:29:51]line [01:29:51]line [01:29:51]line [01:29:51]line [01:29:51]written 0, free lines is 3385 [01:29:51]MH_Cut [01:29:51]Write to MH i2c: D1 01 00 D0 01 01 A3 [01:29:51]Write i2c OK [01:29:51]MH_I2C_Read... [01:29:51]Read from MH i2c: D1 [01:29:51]MH_I2C_Read... [01:29:51]Read from MH i2c: D1 01 00 [01:29:51]MH_I2C_Read... [01:29:51]Read from MH i2c: D1 01 00 D0 01 00 A2 [01:29:51]Write to MH i2c: 01 00 00 D1 01 D2 [01:29:51]Write i2c OK [01:29:51]MH_I2C_Read... [01:29:51]*** Cut start [01:29:51]*** Partial cut [01:29:51]*** CUTSNS_PIN = 1 [01:29:51]*** CUTSNS_PIN = 0 [01:29:52]*** Brake cut motor [01:29:52]Read from MH i2c: 01 [01:29:52]MH_I2C_Read... [01:29:52]*** Stop cut motor [01:29:52]*** Cut end [01:29:52]Read from MH i2c: 01 07 00 [01:29:52]MH_I2C_Read... [01:29:52]Read from MH i2c: 01 07 00 D1 01 00 00 00 00 00 FF 0F E7 [01:29:52]process_action close_receipt done [01:29:52]requested_data is exist [01:29:52]produce_requested_data [01:29:52]requested_item fm.sn is exist - process it [01:29:52]wFMCommunicate request_size=4 [01:29:52]MH_SAM_APDU [01:29:52]CAPDU: 80 11 00 00 [01:29:52]Write to MH i2c: E2 08 00 D2 01 80 11 00 00 00 00 00 00 4D [01:29:52]Write i2c OK [01:29:52]MH_I2C_Read... [01:29:52]Read from MH i2c: E2 [01:29:52]MH_I2C_Read... [01:29:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:29:52]Read from MH i2c: E2 17 00 [01:29:52]MH_I2C_Read... [01:29:52]Read from MH i2c: E2 17 00 D2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 A9 [01:29:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [01:29:52]wFMCommunicate OK [01:29:52]requested_item fd.num is exist - process it [01:29:52]SAM_PROTO_GetFieldsCounters [01:29:52]wFMCommunicate request_size=4 [01:29:52]MH_SAM_APDU [01:29:52]CAPDU: 80 13 00 00 [01:29:52]Write to MH i2c: E2 08 00 D3 01 80 13 00 00 00 00 00 00 50 [01:29:52]Write i2c OK [01:29:52]MH_I2C_Read... [01:29:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:29:52]Read from MH i2c: E2 [01:29:52]MH_I2C_Read... [01:29:52]Read from MH i2c: E2 62 00 [01:29:52]MH_I2C_Read... [01:29:52]Read from MH i2c: E2 62 00 D3 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 04 A4 00 00 0E 04 04 00 AC 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 EA [01:29:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 04 A4 00 00 0E 04 04 00 AC 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:29:52]wFMCommunicate OK [01:29:52]SAM_PROTO_GetFieldsCounters done [01:29:52]requested_item shift.num is exist - process it [01:29:52]requested_item shift.opened is exist - process it [01:29:52]req_shift_opened [01:29:52]FM_GetShiftState [01:29:52]SAM_PROTO_GetShiftState [01:29:52]wFMCommunicate request_size=4 [01:29:52]MH_SAM_APDU [01:29:52]CAPDU: 80 13 01 00 [01:29:52]Write to MH i2c: E2 08 00 D4 01 80 13 01 00 00 00 00 00 52 [01:29:52]Write i2c OK [01:29:52]MH_I2C_Read... [01:29:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:29:53]Read from MH i2c: E2 [01:29:53]MH_I2C_Read... [01:29:53]Read from MH i2c: E2 0E 00 [01:29:53]MH_I2C_Read... [01:29:53]Read from MH i2c: E2 0E 00 D4 01 00 09 00 01 6A 2F A8 66 00 00 00 00 90 00 05 [01:29:53]RAPDU: 09 00 01 6A 2F A8 66 00 00 00 00 90 00 [01:29:53]wFMCommunicate OK [01:29:53]SAM_PROTO_GetShiftState done [01:29:53]FM_GetShiftState done [01:29:53]req_shift_opened done [01:29:53]requested_item shift.open_date is exist - process it [01:29:53]req_shift_open_date [01:29:53]req_shift_open_date done [01:29:53]produce_requested_data done [01:29:53]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41988,"shift.num":428,"shift.opened":1,"shift.open_date":1722298218} [01:29:53]process_action_free close_receipt [01:29:53]json_value_free [01:29:53]json_value_free done [01:29:53]process_json_proto returns [01:29:53]Send response to host [01:29:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41988,"shift.num":428,"shift.opened":1,"shift.open_date":1722298218}}} [01:29:53]free response buf [01:29:53]execute_script done [01:29:53]execute_script returns [01:29:53]free content buf [01:29:53]Sock 8.Close socket [01:29:53]Sock 8.Thread stoped [01:29:53]recv_with_timeout no data received [01:29:53]ConnectInit Can't take IP for lk.salyk.kg [01:29:53]CommunicateWithHost connect error [01:29:53]CommunicateWithHost err = -1 [01:29:53]OFD Sender: Server communicate error [01:29:54]OFD Sender: Processing packet 41986 [packets to send 59, broken 56] [01:29:54]ProducePacketName [01:29:54]name=ofd_packets/00041986 [01:29:54]OFD Sender: To server: pG, [01:29:54]CommunicateWithHost lk.salyk.kg:30040 [01:29:54]ConnectInit lk.salyk.kg [01:29:57]Connected sock=8 [01:29:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 2C 01 00 00 FA 04 24 01 AA 69 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 30 37 35 36 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 75 70 65 72 20 31 30 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 FE 41 A8 66 0E 04 04 00 AC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 02 A4 00 00 35 04 06 00 27 99 5B D1 D6 37 5E 13 AD C0 4C 6D 2B 5B [01:30: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 35 38 4F 00 00 00 E5 3E 47 00 98 B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 02 A4 00 00 F4 03 04 00 2A EE A7 66 B6 04 01 00 00 85 B2 59 13 88 B2 AF 89 [01:30:00]CommunicateWithHost err = 0 [01:30:00]CheckOFDResponse [01:30:00]1017 (14) - 77093643461234 [01:30:00]1041 (16) - 0000000000874958 [01:30:00]1040 (4) - 41986 [01:30:00]1012 (4) - 29.07.2024 19:31 [01:30:00]1206 (1) - 0 [01:30:00]OFD Sender: Remove packet 41986 [01:30:00]ProducePacketName [01:30:00]name=ofd_packets/00041986 [01:30:00]NVStorageDeleteData [01:30:00]OFD Sender: Processing packet 41987 [packets to send 58, broken 56] [01:30:00]ProducePacketName [01:30:00]name=ofd_packets/00041987 [01:30:00]OFD Sender: To server: pG, [01:30:00]CommunicateWithHost lk.salyk.kg:30040 [01:30:00]ConnectInit lk.salyk.kg [01:30:05]recv_with_timeout no data received [01:30:05]ConnectInit Can't take IP for lk.salyk.kg [01:30:05]CommunicateWithHost connect error [01:30:05]CommunicateWithHost err = -1 [01:30:05]OFD Sender: Server communicate error [01:30:10]OFD Sender: Processing packet 41987 [packets to send 58, broken 56] [01:30:10]ProducePacketName [01:30:10]name=ofd_packets/00041987 [01:30:10]OFD Sender: To server: pG, [01:30:10]CommunicateWithHost lk.salyk.kg:30040 [01:30:10]ConnectInit lk.salyk.kg [01:30:17]Connected sock=9 [01: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 35 38 8C 01 00 00 5E B8 84 01 0F 4B 5A 03 01 00 03 00 78 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 05 42 A8 66 0E 04 04 00 AC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 03 A4 00 00 35 04 06 00 C5 67 BB 7A ED F9 EE A5 B5 05 E2 A1 28 A3 [01:30: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 35 38 4F 00 00 00 95 E7 47 00 62 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 35 38 10 04 04 00 03 A4 00 00 F4 03 04 00 3D EE A7 66 B6 04 01 00 00 56 C0 C3 10 FF 5A 2E AD [01:30:20]CommunicateWithHost err = 0 [01:30:20]CheckOFDResponse [01:30:20]1017 (14) - 77093643461234 [01:30:20]1041 (16) - 0000000000874958 [01:30:20]1040 (4) - 41987 [01:30:20]1012 (4) - 29.07.2024 19:32 [01:30:20]1206 (1) - 0 [01:30:20]OFD Sender: Remove packet 41987 [01:30:20]ProducePacketName [01:30:20]name=ofd_packets/00041987 [01:30:20]NVStorageDeleteData [01:30:21]OFD Sender: Processing packet 41988 [packets to send 57, broken 56] [01:30:21]ProducePacketName [01:30:21]name=ofd_packets/00041988 [01:30:21]OFD Sender: To server: pG, [01:30:21]CommunicateWithHost lk.salyk.kg:30040 [01:30:21]ConnectInit lk.salyk.kg [01:30:23]Connected sock=8 [01:30: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 35 38 30 01 00 00 D7 39 28 01 49 69 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 0B 42 A8 66 0E 04 04 00 AC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 04 A4 00 00 35 04 06 00 AA 79 83 ED FE DB 2C 6F 3E CF 23 3F E8 FB [01:30: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 35 38 4F 00 00 00 B8 F0 47 00 A6 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 35 38 10 04 04 00 04 A4 00 00 F4 03 04 00 43 EE A7 66 B6 04 01 00 00 72 0C C9 D2 9F 5B DC 35 [01:30:26]CommunicateWithHost err = 0 [01:30:26]CheckOFDResponse [01:30:26]1017 (14) - 77093643461234 [01:30:26]1041 (16) - 0000000000874958 [01:30:26]1040 (4) - 41988 [01:30:26]1012 (4) - 29.07.2024 19:32 [01:30:26]1206 (1) - 0 [01:30:26]OFD Sender: Remove packet 41988 [01:30:26]ProducePacketName [01:30:26]name=ofd_packets/00041988 [01:30:26]NVStorageDeleteData [01:30:26]OFD Sender: No OFD packet to send [01:30:31]OFD Sender: No OFD packet to send [01:30:36]OFD Sender: No OFD packet to send [01:30:41]OFD Sender: No OFD packet to send [01:30:46]OFD Sender: No OFD packet to send [01:30:51]OFD Sender: No OFD packet to send [01:30:54]recv_with_timeout no data received [01:30:56]OFD Sender: No OFD packet to send [01:31:01]OFD Sender: No OFD packet to send [01:31:06]OFD Sender: No OFD packet to send [01:31:11]OFD Sender: No OFD packet to send [01:31:13]recv_with_timeout no data received [01:31:16]OFD Sender: No OFD packet to send [01:31:21]OFD Sender: No OFD packet to send [01:31:26]OFD Sender: No OFD packet to send [01:31:31]OFD Sender: No OFD packet to send [01:31:36]OFD Sender: No OFD packet to send [01:31:41]OFD Sender: No OFD packet to send [01:31:46]OFD Sender: No OFD packet to send [01:31:51]OFD Sender: No OFD packet to send [01:31:53]recv_with_timeout no data received [01:31:56]OFD Sender: No OFD packet to send [01:32:01]OFD Sender: No OFD packet to send [01:32:06]OFD Sender: No OFD packet to send [01:32:11]OFD Sender: No OFD packet to send [01:32:16]OFD Sender: No OFD packet to send [01:32:21]OFD Sender: No OFD packet to send [01:32:26]OFD Sender: No OFD packet to send [01:32:29]recv_with_timeout no data received [01:32:31]OFD Sender: No OFD packet to send [01:32:36]OFD Sender: No OFD packet to send [01:32:41]OFD Sender: No OFD packet to send [01:32:46]OFD Sender: No OFD packet to send [01:32:51]OFD Sender: No OFD packet to send [01:32:56]OFD Sender: No OFD packet to send [01:33:01]OFD Sender: No OFD packet to send [01:33:06]OFD Sender: No OFD packet to send [01:33:11]OFD Sender: No OFD packet to send [01:33:16]OFD Sender: No OFD packet to send [01:33:21]OFD Sender: No OFD packet to send [01:33:26]OFD Sender: No OFD packet to send [01:33:31]OFD Sender: No OFD packet to send [01:33:36]OFD Sender: No OFD packet to send [01:33:41]OFD Sender: No OFD packet to send [01:33:46]OFD Sender: No OFD packet to send [01:33:51]OFD Sender: No OFD packet to send [01:33:56]OFD Sender: No OFD packet to send [01:34:01]OFD Sender: No OFD packet to send [01:34:06]OFD Sender: No OFD packet to send [01:34:11]OFD Sender: No OFD packet to send [01:34:16]OFD Sender: No OFD packet to send [01:34:22]OFD Sender: No OFD packet to send [01:34:27]OFD Sender: No OFD packet to send [01:34:32]OFD Sender: No OFD packet to send [01:34:37]OFD Sender: No OFD packet to send [01:34:42]OFD Sender: No OFD packet to send [01:34:47]OFD Sender: No OFD packet to send [01:34:52]OFD Sender: No OFD packet to send [01:34:57]OFD Sender: No OFD packet to send [01:35:02]OFD Sender: No OFD packet to send [01:35:05]recv_with_timeout no data received [01:35:07]OFD Sender: No OFD packet to send [01:35:12]OFD Sender: No OFD packet to send [01:35:17]OFD Sender: No OFD packet to send [01:35:22]OFD Sender: No OFD packet to send [01:35:27]OFD Sender: No OFD packet to send [01:35:32]OFD Sender: No OFD packet to send [01:35:37]OFD Sender: No OFD packet to send [01:35:42]OFD Sender: No OFD packet to send [01:35:47]OFD Sender: No OFD packet to send [01:35:52]OFD Sender: No OFD packet to send [01:35:57]OFD Sender: No OFD packet to send [01:36:02]OFD Sender: No OFD packet to send [01:36:07]OFD Sender: No OFD packet to send [01:36:12]OFD Sender: No OFD packet to send [01:36:17]OFD Sender: No OFD packet to send [01:36:22]OFD Sender: No OFD packet to send [01:36:27]OFD Sender: No OFD packet to send [01:36:32]OFD Sender: No OFD packet to send [01:36:37]OFD Sender: No OFD packet to send [01:36:42]OFD Sender: No OFD packet to send [01:36:47]OFD Sender: No OFD packet to send [01:36:52]OFD Sender: No OFD packet to send [01:36:57]OFD Sender: No OFD packet to send [01:37:02]OFD Sender: No OFD packet to send [01:37:07]OFD Sender: No OFD packet to send [01:37:12]OFD Sender: No OFD packet to send 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 FE 41 A8 66 0E 04 04 00 AC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 00 00 7A [01:29:36]Write i2c OK [01:29:36]MH_I2C_Read... [01:29:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:29:36]Read from MH i2c: E2 [01:29:36]MH_I2C_Read... [01:29:36]Read from MH i2c: E2 03 00 [01:29:36]MH_I2C_Read... [01:29:36]Read from MH i2c: E2 03 00 05 01 00 90 00 7A [01:29:36]RAPDU: 90 00 [01:29:36]wFMCommunicate OK [01:29:36]wFMCommunicate request_size=39 [01:29:36]MH_SAM_APDU [01:29:36]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 02 A4 00 00 35 04 06 00 27 99 5B D1 D6 37 [01:29:36]Write to MH i2c: E2 2A 00 06 01 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 02 A4 00 00 35 04 06 00 27 99 5B D1 D6 37 00 00 E4 [01:29:36]Write i2c OK [01:29:36]MH_I2C_Read... [01:29:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:29:36]Read from MH i2c: E2 [01:29:36]MH_I2C_Read... [01:29:36]Read from MH i2c: E2 03 00 [01:29:36]MH_I2C_Read... [01:29:36]Read from MH i2c: E2 03 00 06 01 00 90 00 7B [01:29:36]RAPDU: 90 00 [01:29:36]wFMCommunicate OK [01:29:36]wFMCommunicate request_size=4 [01:29:36]MH_SAM_APDU [01:29:36]CAPDU: 80 0D 03 02 [01:29:36]Write to MH i2c: E2 08 00 07 01 80 0D 03 02 00 00 00 00 83 [01:29:36]Write i2c OK [01:29:36]MH_I2C_Read... [01:29:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:29:36]Read from MH i2c: E2 [01:29:36]MH_I2C_Read... [01:29:36]Read from MH i2c: E2 0B 00 [01:29:36]MH_I2C_Read... [01:29:36]Read from MH i2c: E2 0B 00 07 01 00 5E 13 AD C0 4C 6D 2B 5B 90 00 A1 [01:29:36]RAPDU: 5E 13 AD C0 4C 6D 2B 5B 90 00 [01:29:36]wFMCommunicate OK [01:29:36]SAM_PROTO_SignData done [01:29:36]FM_MakeSignedData done [01:29:36]CreateOFDProtocolMessage [01:29:36]wFMCommunicate request_size=4 [01:29:36]MH_SAM_APDU [01:29:36]CAPDU: 80 11 00 00 [01:29:36]Write to MH i2c: E2 08 00 08 01 80 11 00 00 00 00 00 00 83 [01:29:36]Write i2c OK [01:29:36]MH_I2C_Read... [01:29:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:29:36]Read from MH i2c: E2 [01:29:36]MH_I2C_Read... [01:29:36]Read from MH i2c: E2 17 00 [01:29:36]MH_I2C_Read... [01:29:36]Read from MH i2c: E2 17 00 08 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 DF [01:29:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [01:29:36]wFMCommunicate OK [01:29:36]CreateOFDProtocolMessage done [01:29:36]OFDSenderStorePacket 41986 [01:29:36]StoreOFDPacket docnum=41986 [01:29:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 2C 01 00 00 FA 04 24 01 AA 69 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 30 37 35 36 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 75 70 65 72 20 31 30 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 FE 41 A8 66 0E 04 04 00 AC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 02 A4 00 00 35 04 06 00 27 99 5B D1 D6 37 5E 13 AD C0 4C 6D 2B 5B [01:29:36]CheckFolder [01:29:36]dirname=/storage/ofd_packets [01:29:36]CheckFolder done [01:29:36]ProducePacketName [01:29:36]name=ofd_packets/00041986 [01:29:36]NVStorageSaveData ofd_packets/00041986 [01:29:36]File name is /storage/ofd_packets/00041986 [01:29:36]Write 330 bytes [01:29:36]NVStorageSaveData done [01:29:36]OFDSenderStorePacket done [01:29:36]KKMCreateOFDPacket done [01:29:36]NVStorageSaveData kkm_last_timestamp [01:29:36]File name is /storage/kkm_last_timestamp [01:29:36]Write 4 bytes [01:29:36]NVStorageSaveData done [01:29:36]ExternCall_PrintAddStr [01:29:36]wPrintStart [01:29:36]Write to MH i2c: 01 00 00 09 01 0A [01:29:36]Write i2c OK [01:29:36]MH_I2C_Read... [01:29:36]Read from MH i2c: 01 [01:29:36]MH_I2C_Read... [01:29:36]Read from MH i2c: 01 07 00 [01:29:36]MH_I2C_Read... [01:29:36]Read from MH i2c: 01 07 00 09 01 00 00 00 00 00 FF 0F 1F [01:29:36]RasterBufferAndPrint [01:29:36]line Счет N : (3)184014 [01:29:36]line ИНН: 02508201610067 [01:29:36]line Контрольно-Кассовый Чек [01:29:36]line ПРОДАЖА [01:29:36]line Товар: 4650063110756 [01:29:36]line Масло Gazpromneft Super 10w40 1л [01:29:36]line 1.000 * 405.00 [01:29:36]line = 405.00 [01:29:36]line НДС 12% НСП 1% [01:29:36]line > о реализуемом товаре [01:29:36]line ИТОГО: 405.00 [01:29:36]line НСП 1% : 3.58 [01:29:36]line НДС 12% : 43.01 [01:29:36]line Наличными: 405.00 [01:29:3[01:37:17]OFD Sender: No OFD packet to send [01:37:22]OFD Sender: No OFD packet to send [01:37:27]OFD Sender: No OFD packet to send [01:37:32]OFD Sender: No OFD packet to send [01:37:37]OFD Sender: No OFD packet to send [01:37:42]OFD Sender: No OFD packet to send [01:37:47]OFD Sender: No OFD packet to send [01:37:52]OFD Sender: No OFD packet to send [01:37:57]OFD Sender: No OFD packet to send [01:38:02]OFD Sender: No OFD packet to send [01:38:07]OFD Sender: No OFD packet to send [01:38:10]accept exits with 11 [01:38:10]New connection [01:38:10]New thread 3067243876 created [01:38:10]Thread 3067100516 joined [01:38:10]Waiting for new connection... [01:38:10] Sock 11.Parse request [01:38:10]Sock 11.Check first char [01:38:10]Sock 11.First char is OK [01:38:10]request: POST /json_proto HTTP/1.0 [01:38:10]Method: POST [01:38:10]URL: /json_proto [01:38:10]Method is POST - this is cgi request [01:38:10]url: /json_proto [01:38:10]query_string will be loaded in cgi processing [01:38:10]execute_cgi json_proto POST (null) [01:38:10]execute_cgi path=json_proto method=POST [01:38:10]POST find Content-Length [01:38:10]Host: 172.17.43.132:8080 [01:38:10]Content-Length: 622 [01:38:10]Content-Type: application/json [01:38:10] [01:38:10]POST finish read [01:38:10]Found Content-Length = 622 [01:38:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184017", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 2.000, "sum" : 302.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 302.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:38:10]execute_script... [01:38:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184017", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 2.000, "sum" : 302.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 302.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:38:10]POST & json_proto [01:38:10]process_json_proto [01:38:10]json parsed OK: [01:38:10]protocol is kg_v1.0 [01:38:10]action value=close_receipt [01:38:10]process_action close_receipt [01:38:10]cmd_close_receipt [01:38:10]MH_GetDate [01:38:10]Write to MH i2c: F0 00 00 D5 01 C5 [01:38:10]Write i2c OK [01:38:10]MH_I2C_Read... [01:38:10]Read from MH i2c: F0 [01:38:10]MH_I2C_Read... [01:38:10]Read from MH i2c: F0 09 00 [01:38:10]MH_I2C_Read... [01:38:10]Read from MH i2c: F0 09 00 D5 01 00 02 44 A8 66 64 A3 A7 66 36 [01:38:10]GetLastDocTimeStamp 1722302987 [01:38:10]current date 1722303490 [01:38:10]FM_GetShiftState [01:38:10]SAM_PROTO_GetShiftState [01:38:10]wFMCommunicate request_size=4 [01:38:10]MH_SAM_APDU [01:38:10]CAPDU: 80 13 01 00 [01:38:10]Write to MH i2c: E2 08 00 D6 01 80 13 01 00 00 00 00 00 54 [01:38:10]Write i2c OK [01:38:10]MH_I2C_Read... [01:38:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:38:10]Read from MH i2c: E2 [01:38:10]MH_I2C_Read... [01:38:10]Read from MH i2c: E2 0E 00 [01:38:10]MH_I2C_Read... [01:38:10]Read from MH i2c: E2 0E 00 D6 01 00 09 00 01 6A 2F A8 66 00 00 00 00 90 00 07 [01:38:10]RAPDU: 09 00 01 6A 2F A8 66 00 00 00 00 90 00 [01:38:10]wFMCommunicate OK [01:38:10]SAM_PROTO_GetShiftState done [01:38:10]FM_GetShiftState done [01:38:10]opened in 1722298218 [01:38:10]opened+sec_in_day 1722384618 [01:38:10]quantity*price = 30200 [01:38:10]sum+1 = 30201 [01:38:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 302.00 НСП 1% : 2.67 НДС 12% : 32.07 Наличными: 302.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 10 30.07.2024 01:38 Смена: 428 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41989 ФПД: 201500007631668 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T013810&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41989&fm=201500007631668&tin=02508201610067®Number=0000000000092626&sum=30200 0 [01:38:11]StoreToDocumentArchive [01:38:11]shift 428 fd 41989 [01:38:11]save to /storage/0428/doc_00041989 [01:38:11]save last doc name /storage/0428/doc_00041989 to /storage/kkm_last_doc_name [01:38:11]save OK [01:38:11]Clear old archive folders... [01:38:11]ProcessDocumentItem done err = 0, tmpTLVsize=274 [01:38:11]tlvbuf is 00A51700 [01:38:11]SAM_PROTO_ClearQueue [01:38:11]wFMCommunicate request_size=4 [01:38:11]MH_SAM_APDU [01:38:11]CAPDU: 80 09 00 00 [01:38:11]Write to MH i2c: E2 08 00 E3 01 80 09 00 00 00 00 00 00 56 [01:38:11]Write i2c OK [01:38:11]MH_I2C_Read... [01:38:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:38:11]Read from MH i2c: E2 [01:38:11]MH_I2C_Read... [01:38:11]Read from MH i2c: E2 03 00 [01:38:11]MH_I2C_Read... [01:38:11]Read from MH i2c: E2 03 00 E3 01 00 90 00 58 [01:38:11]RAPDU: 90 00 [01:38:11]wFMCommunicate OK [01:38:11]SAM_PROTO_ClearQueue done [01:38:11]KKMCreateOFDPacket [01:38:11]OFDProtocolAddRootSTLVToBuf [01:38:11]FM_MakeSignedData [01:38:11]FM_MakeSignedData [01:38:11]SAM_PROTO_SignData [01:38:11]wFMCommunicate request_size=4 [01:38:11]MH_SAM_APDU [01:38:11]CAPDU: 80 0D 01 02 [01:38:11]Write to MH i2c: E2 08 00 E4 01 80 0D 01 02 00 00 00 00 5E [01:38:11]Write i2c OK [01:38:11]MH_I2C_Read... [01:38:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:38:11]Read from MH i2c: E2 [01:38:11]MH_I2C_Read... [01:38:11]Read from MH i2c: E2 03 00 [01:38:11]MH_I2C_Read... [01:38:11]Read from MH i2c: E2 03 00 E4 01 00 90 00 59 [01:38:11]RAPDU: 90 00 [01:38:11]wFMCommunicate OK [01:38:11]wFMCommunicate request_size=255 [01:38:11]MH_SAM_APDU [01:38:11]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 F8 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 0C 00 00 00 00 07 04 06 00 F8 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 0A 00 00 00 F4 03 04 00 02 44 A8 66 0E 04 04 00 AC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 [01:38:11]Write to MH i2c: E2 02 01 E5 01 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 F8 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 0C 00 00 00 00 07 04 06 00 F8 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 0A 00 00 00 F4 03 04 00 02 44 A8 66 0E 04 04 00 AC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 00 00 93 [01:38:11]Write i2c OK [01:38:11]MH_I2C_Read... [01:38:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:38:11]Read from MH i2c: E2 [01:38:11]MH_I2C_Read... [01:38:11]Read from MH i2c: E2 03 00 [01:38:11]MH_I2C_Read... [01:38:11]Read from MH i2c: E2 03 00 E5 01 00 90 00 5A [01:38:11]RAPDU: 90 00 [01:38:11]wFMCommunicate OK [01:38:11]wFMCommunicate request_size=33 [01:38:11]MH_SAM_APDU [01:38:11]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 39 35 38 10 04 04 00 05 A4 00 00 35 04 06 00 B7 43 60 60 8B 34 [01:38:11]Write to MH i2c: E2 24 00 E6 01 80 0D 02 02 1C 00 30 30 30 30 38 37 34 39 35 38 10 04 04 00 05 A4 00 00 35 04 06 00 B7 43 60 60 8B 34 00 00 1B [01:38:11]Write i2c OK [01:38:11]MH_I2C_Read... [01:38:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:38:11]Read from MH i2c: E2 [01:38:11]MH_I2C_Read... [01:38:11]Read from MH i2c: E2 03 00 [01:38:11]MH_I2C_Read... [01:38:11]Read from MH i2c: E2 03 00 E6 01 00 90 00 5B [01:38:11]RAPDU: 90 00 [01:38:11]wFMCommunicate OK [01:38:11]wFMCommunicate request_size=4 [01:38:11]MH_SAM_APDU [01:38:11]CAPDU: 80 0D 03 02 [01:38:11]Write to MH i2c: E2 08 00 E7 01 80 0D 03 02 00 00 00 00 63 [01:38:11]Write i2c OK [01:38:11]MH_I2C_Read... [01:38:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:38:11]Read from MH i2c: E2 [01:38:11]MH_I2C_Read... [01:38:11]Read from MH i2c: E2 0B 00 [01:38:11]MH_I2C_Read... [01:38:11]Read from MH i2c: E2 0B 00 E7 01 00 6D 1D 4F 06 69 EA FD 65 90 00 F8 [01:38:11]RAPDU: 6D 1D 4F 06 69 EA FD 65 90 00 [01:38:11]wFMCommunicate OK [01:38:11]SAM_PROTO_SignData done [01:38:11]FM_MakeSignedData done [01:38:11]CreateOFDProtocolMessage [01:38:11]wFMCommunicate request_size=4 [01:38:11]MH_SAM_APDU [01:38:11]CAPDU: 80 11 00 00 [01:38:11]Write to MH i2c: E2 08 00 E8 01 80 11 00 00 00 00 00 00 63 [01:38:11]Write i2c OK [01:38:11]MH_I2C_Read... [01:38:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:38:11]Read from MH i2c: E2 [01:38:11]MH_I2C_Read... [01:38:11]Read from MH i2c: E2 17 00 [01:38:11]MH_I2C_Read... [01:38:11]Read from MH i2c: E2 17 00 E8 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 BF [01:38:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [01:38:11]wFMCommunicate OK [01:38:11]CreateOFDProtocolMessage done [01:38:11]OFDSenderStorePacket 41989 [01:38:11]StoreOFDPacket docnum=41989 [01:38:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 26 01 00 00 35 6D 1E 01 58 C6 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 F8 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 0C 00 00 00 00 07 04 06 00 F8 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 0A 00 00 00 F4 03 04 00 02 44 A8 66 0E 04 04 00 AC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 05 A4 00 00 35 04 06 00 B7 43 60 60 8B 34 6D 1D 4F 06 69 EA FD 65 [01:38:11]CheckFolder [01:38:11]dirname=/storage/ofd_packets [01:38:11]CheckFolder done [01:38:11]ProducePacketName [01:38:11]name=ofd_packets/00041989 [01:38:11]NVStorageSaveData ofd_packets/00041989 [01:38:11]File name is /storage/ofd_packets/00041989 [01:38:11]Write 324 bytes [01:38:11]NVStorageSaveData done [01:38:11]OFDSenderStorePacket done [01:38:11]KKMCreateOFDPacket done [01:38:11]NVStorageSaveData kkm_last_timestamp [01:38:11]File name is /storage/kkm_last_timestamp [01:38:11]Write 4 bytes [01:38:11]NVStorageSaveData done [01:38:11]ExternCall_PrintAddStr [01:38:11]wPrintStart [01:38:11]Write to MH i2c: 01 00 00 E9 01 EA [01:38:11]Write i2c OK [01:38:11]MH_I2C_Read... [01:38:11]Read from MH i2c: 01 [01:38:11]MH_I2C_Read... [01:38:11]Read from MH i2c: 01 07 00 [01:38:11]MH_I2C_Read... [01:38:11]Read from MH i2c: 01 07 00 E9 01 00 00 00 00 00 FF 0F FF [01:38:11]RasterBufferAndPrint [01:38:11]line Счет N : (3)184017 [01:38:11]line ИНН: 02508201610067 [01:38:11]line Контрольно-Кассовый Чек [01:38:11]line ПРОДАЖА [01:38:11]line Товар: 48741958 [01:38:11]line Сигареты Parliament Aqua Blue [01:38:11]line 2.000 * 151.00 [01:38:11]line = 302.00 [01:38:11]line НДС 12% НСП 1% [01:38:11]line > о реализуемом товаре [01:38:11]line ИТОГО: 302.00 [01:38:11]line НСП 1% : 2.67 [01:38:11]line НДС 12% : 32.07 [01:38:11]line Наличными: 302.00 [01:38:11]line Безнал.: 0.00 [01:38:11]line Место: АЗС № 97 "Партнер Нефть" [01:38:11]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [01:38:11]line СНО: Общий режим [01:38:11]line Чек 10 30.07.2024 01:38 [01:38:11]line Смена: 428 ФФД: 1.0 [01:38:11]line ЗНМ: 0300000053 [01:38:11]line РНМ: 0000000000092626 [01:38:11]line Версия ККМ: 001 [01:38:11]line ФМ: 0000000000874958 [01:38:11]line ФД: 41989 [01:38:11]line ФПД: 201500007631668 [01:38:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T013810&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41989&fm=201500007631668&tin=02508201610067®Number=0000000000092626&sum=30200 [01:38:12]line 0 [01:38:12]OFD Sender: Processing packet 41989 [packets to send 57, broken 56] [01:38:12]ProducePacketName [01:38:12]name=ofd_packets/00041989 [01:38:12]OFD Sender: To server: pG, [01:38:12]CommunicateWithHost lk.salyk.kg:30040 [01:38:12]ConnectInit lk.salyk.kg [01:38:12]written 0, free lines is 4095 [01:38:12]Write to MH i2c: 01 00 00 12 02 14 [01:38:12]Write i2c OK [01:38:12]MH_I2C_Read... [01:38:12]Read from MH i2c: 01 [01:38:12]MH_I2C_Read... [01:38:12]Read from MH i2c: 01 07 00 [01:38:12]MH_I2C_Read... [01:38:12]Read from MH i2c: 01 07 00 12 02 00 00 00 00 00 F1 0C 18 [01:38:12]RasterBufferAndPrint [01:38:12]line [01:38:12]line [01:38:12]line [01:38:12]line [01:38:12]line [01:38:12]written 0, free lines is 3319 [01:38:12]MH_Cut [01:38:12]Write to MH i2c: D1 01 00 19 02 01 ED [01:38:12]Write i2c OK [01:38:12]MH_I2C_Read... [01:38:12]Read from MH i2c: D1 [01:38:12]MH_I2C_Read... [01:38:12]Read from MH i2c: D1 01 00 [01:38:12]MH_I2C_Read... [01:38:12]Read from MH i2c: D1 01 00 19 02 00 EC [01:38:12]Write to MH i2c: 01 00 00 1A 02 1C [01:38:12]Write i2c OK [01:38:12]MH_I2C_Read... [01:38:13]*** Cut start [01:38:13]*** Partial cut [01:38:13]*** CUTSNS_PIN = 1 [01:38:13]*** CUTSNS_PIN = 0 [01:38:13]*** Brake cut motor [01:38:14]Read from MH i2c: 01 [01:38:14]MH_I2C_Read... [01:38:14]*** Stop cut motor [01:38:14]*** Cut end [01:38:14]Read from MH i2c: 01 07 00 [01:38:14]MH_I2C_Read... [01:38:14]Read from MH i2c: 01 07 00 1A 02 00 00 00 00 00 FF 0F 31 [01:38:14]process_action close_receipt done [01:38:14]requested_data is exist [01:38:14]produce_requested_data [01:38:14]requested_item fm.sn is exist - process it [01:38:14]wFMCommunicate request_size=4 [01:38:14]MH_SAM_APDU [01:38:14]CAPDU: 80 11 00 00 [01:38:14]Write to MH i2c: E2 08 00 1B 02 80 11 00 00 00 00 00 00 97 [01:38:14]Write i2c OK [01:38:14]MH_I2C_Read... [01:38:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:38:14]Read from MH i2c: E2 [01:38:14]MH_I2C_Read... [01:38:14]Read from MH i2c: E2 17 00 [01:38:14]MH_I2C_Read... [01:38:14]Read from MH i2c: E2 17 00 1B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 F3 [01:38:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [01:38:14]wFMCommunicate OK [01:38:14]requested_item fd.num is exist - process it [01:38:14]SAM_PROTO_GetFieldsCounters [01:38:14]wFMCommunicate request_size=4 [01:38:14]MH_SAM_APDU [01:38:14]CAPDU: 80 13 00 00 [01:38:14]Write to MH i2c: E2 08 00 1C 02 80 13 00 00 00 00 00 00 9A [01:38:14]Write i2c OK [01:38:14]MH_I2C_Read... [01:38:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:38:14]Read from MH i2c: E2 [01:38:14]MH_I2C_Read... [01:38:14]Read from MH i2c: E2 62 00 [01:38:14]MH_I2C_Read... [01:38:14]Read from MH i2c: E2 62 00 1C 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 05 A4 00 00 0E 04 04 00 AC 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 38 [01:38: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 05 A4 00 00 0E 04 04 00 AC 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:38:14]wFMCommunicate OK [01:38:14]SAM_PROTO_GetFieldsCounters done [01:38:14]requested_item shift.num is exist - process it [01:38:14]requested_item shift.opened is exist - process it [01:38:14]req_shift_opened [01:38:14]FM_GetShiftState [01:38:14]SAM_PROTO_GetShiftState [01:38:14]wFMCommunicate request_size=4 [01:38:14]MH_SAM_APDU [01:38:14]CAPDU: 80 13 01 00 [01:38:14]Write to MH i2c: E2 08 00 1D 02 80 13 01 00 00 00 00 00 9C [01:38:14]Write i2c OK [01:38:14]MH_I2C_Read... [01:38:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:38:14]Read from MH i2c: E2 [01:38:14]MH_I2C_Read... [01:38:14]Read from MH i2c: E2 0E 00 [01:38:14]MH_I2C_Read... [01:38:14]Read from MH i2c: E2 0E 00 1D 02 00 09 00 01 6A 2F A8 66 00 00 00 00 90 00 4F [01:38:14]RAPDU: 09 00 01 6A 2F A8 66 00 00 00 00 90 00 [01:38:14]wFMCommunicate OK [01:38:14]SAM_PROTO_GetShiftState done [01:38:14]FM_GetShiftState done [01:38:14]req_shift_opened done [01:38:14]requested_item shift.open_date is exist - process it [01:38:14]req_shift_open_date [01:38:14]req_shift_open_date done [01:38:14]produce_requested_data done [01:38:14]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41989,"shift.num":428,"shift.opened":1,"shift.open_date":1722298218} [01:38:14]process_action_free close_receipt [01:38:14]json_value_free [01:38:14]json_value_free done [01:38:14]process_json_proto returns [01:38:14]Send response to host [01:38:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41989,"shift.num":428,"shift.opened":1,"shift.open_date":1722298218}}} [01:38:14]free response buf [01:38:14]execute_script done [01:38:14]execute_script returns [01:38:14]free content buf [01:38:14]Sock 11.Close socket [01:38:14]Sock 11.Thread stoped [01:38:17]ConnectInit Can't take IP for lk.salyk.kg [01:38:17]CommunicateWithHost connect error [01:38:17]CommunicateWithHost err = -1 [01:38:17]OFD Sender: Server communicate error [01:38:22]OFD Sender: Processing packet 41989 [packets to send 57, broken 56] [01:38:22]ProducePacketName [01:38:22]name=ofd_packets/00041989 [01:38:22]OFD Sender: To server: pG, [01:38:22]CommunicateWithHost lk.salyk.kg:30040 [01:38:22]ConnectInit lk.salyk.kg [01:38:26]Connected sock=10 [01:38: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 35 38 26 01 00 00 35 6D 1E 01 58 C6 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 F8 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 0C 00 00 00 00 07 04 06 00 F8 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 0A 00 00 00 F4 03 04 00 02 44 A8 66 0E 04 04 00 AC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 05 A4 00 00 35 04 06 00 B7 43 60 60 8B 34 6D 1D 4F 06 69 EA FD 65 [01:38: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 35 38 4F 00 00 00 83 E0 47 00 20 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 35 38 10 04 04 00 05 A4 00 00 F4 03 04 00 26 F0 A7 66 B6 04 01 00 00 D9 2D E5 98 89 82 4D AB [01:38:27]CommunicateWithHost err = 0 [01:38:27]CheckOFDResponse [01:38:27]1017 (14) - 77093643461234 [01:38:27]1041 (16) - 0000000000874958 [01:38:27]1040 (4) - 41989 [01:38:27]1012 (4) - 29.07.2024 19:40 [01:38:27]1206 (1) - 0 [01:38:27]OFD Sender: Remove packet 41989 [01:38:27]ProducePacketName [01:38:27]name=ofd_packets/00041989 [01:38:27]NVStorageDeleteData [01:38:27]OFD Sender: No OFD packet to send [01:38:32]OFD Sender: No OFD packet to send [01:38:37]OFD Sender: No OFD packet to send [01:38:42]OFD Sender: No OFD packet to send [01:38:47]OFD Sender: No OFD packet to send [01:38:52]OFD Sender: No OFD packet to send [01:38:57]OFD Sender: No OFD packet to send [01:39:02]OFD Sender: No OFD packet to send [01:39:07]OFD Sender: No OFD packet to send [01:39:12]OFD Sender: No OFD packet to send [01:39:17]OFD Sender: No OFD packet to send [01:39:22]OFD Sender: No OFD packet to send [01:39:27]OFD Sender: No OFD packet to send [01:39:32]OFD Sender: No OFD packet to send [01:39:37]OFD Sender: No OFD packet to send [01:39:42]OFD Sender: No OFD packet to send [01:39:47]OFD Sender: No OFD packet to send [01:39:52]OFD Sender: No OFD packet to send [01:39:57]OFD Sender: No OFD packet to send [01:40:02]OFD Sender: No OFD packet to send [01:40:07]OFD Sender: No OFD packet to send [01:40:12]OFD Sender: No OFD packet to send [01:40:17]OFD Sender: No OFD packet to send [01:40:22]OFD Sender: No OFD packet to send [01:40:27]OFD Sender: No OFD packet to send [01:40:32]OFD Sender: No OFD packet to send [01:40:37]OFD Sender: No OFD packet to send [01:40:42]OFD Sender: No OFD packet to send [01:40:47]OFD Sender: No OFD packet to send [01:40:52]OFD Sender: No OFD packet to send [01:40:57]OFD Sender: No OFD packet to send [01:41:02]OFD Sender: No OFD packet to send [01:41:07]OFD Sender: No OFD packet to send [01:41:12]OFD Sender: No OFD packet to send [01:41:17]OFD Sender: No OFD packet to send [01:41:22]OFD Sender: No OFD packet to send [01:41:27]OFD Sender: No OFD packet to send [01:41:32]OFD Sender: No OFD packet to send [01:41:37]OFD Sender: No OFD packet to send [01:41:42]OFD Sender: No OFD packet to send [01:41:47]OFD Sender: No OFD packet to send [01:41:52]OFD Sender: No OFD packet to send [01:41:57]OFD Sender: No OFD packet to send [01:42:02]OFD Sender: No OFD packet to send [01:42:07]OFD Sender: No OFD packet to send [01:42:12]OFD Sender: No OFD packet to send [01:42:17]OFD Sender: No OFD packet to send [01:42:22]OFD Sender: No OFD packet to send [01:42:28]OFD Sender: No OFD packet to send [01:42:33]OFD Sender: No OFD packet to send [01:42:38]OFD Sender: No OFD packet to send [01:42:43]OFD Sender: No OFD packet to send [01:42:48]OFD Sender: No OFD packet to send [01:42:53]OFD Sender: No OFD packet to send [01:42:58]OFD Sender: No OFD packet to send [01:43:03]OFD Sender: No OFD packet to send [01:43:08]OFD Sender: No OFD packet to send [01:43:13]OFD Sender: No OFD packet to send [01:43:18]OFD Sender: No OFD packet to send [01:43:23]OFD Sender: No OFD packet to send [01:43:28]OFD Sender: No OFD packet to send [01:43:28]recv_with_timeout no data received [01:43:33]OFD Sender: No OFD packet to send [01:43:38]OFD Sender: No OFD packet to send [01:43:43]OFD Sender: No OFD packet to send [01:43:48]OFD Sender: No OFD packet to send [01:43:53]OFD Sender: No OFD packet to send [01:43:58]OFD Sender: No OFD packet to send [01:44:03]OFD Sender: No OFD packet to send [01:44:08]OFD Sender: No OFD packet to send [01:44:13]OFD Sender: No OFD packet to send [01:44:18]OFD Sender: No OFD packet to send [01:44:23]OFD Sender: No OFD packet to send [01:44:28]OFD Sender: No OFD packet to send [01:44:33]OFD Sender: No OFD packet to send [01:44:34]recv_with_timeout no data received [01:44:38]OFD Sender: No OFD packet to send [01:44:43]OFD Sender: No OFD packet to send [01:44:48]OFD Sender: No OFD packet to send [01:44:53]OFD Sender: No OFD packet to send [01:44:58]OFD Sender: No OFD packet to send [01:45:03]OFD Sender: No OFD packet to send [01:45:08]OFD Sender: No OFD packet to send [01:45:13]OFD Sender: No OFD packet to send [01:45:18]OFD Sender: No OFD packet to send [01:45:23]OFD Sender: No OFD packet to send [01:45:28]OFD Sender: No OFD packet to send [01:45:33]OFD Sender: No OFD packet to send [01:45:38]OFD Sender: No OFD packet to send [01:45:43]OFD Sender: No OFD packet to send [01:45:48]OFD Sender: No OFD packet to send [01:45:53]OFD Sender: No OFD packet to send [01:45:58]OFD Sender: No OFD packet to send [01:46:03]OFD Sender: No OFD packet to send [01:46:08]OFD Sender: No OFD packet to send [01:46:13]OFD Sender: No OFD packet to send [01:46:18]OFD Sender: No OFD packet to send [01:46:23]OFD Sender: No OFD packet to send [01:46:28]OFD Sender: No OFD packet to send [01:46:33]OFD Sender: No OFD packet to send [01:46:38]OFD Sender: No OFD packet to send [01:46:43]OFD Sender: No OFD packet to send [01:46:48]OFD Sender: No OFD packet to send [01:46:48]recv_with_timeout no data received [01:46:53]OFD Sender: No OFD packet to send [01:46:58]OFD Sender: No OFD packet to send [01:47:03]OFD Sender: No OFD packet to send [01:47:08]OFD Sender: No OFD packet to send [01:47:08]recv_with_timeout no data received [01:47:13]OFD Sender: No OFD packet to send [01:47:18]OFD Sender: No OFD packet to send [01:47:23]OFD Sender: No OFD packet to send [01:47:28]OFD Sender: No OFD packet to send [01:47:33]OFD Sender: No OFD packet to send [01:47:38]OFD Sender: No OFD packet to send [01:47:43]OFD Sender: No OFD packet to send [01:47:47]recv_with_timeout no data received [01:47:48]OFD Sender: No OFD packet to send [01:47:53]OFD Sender: No OFD packet to send [01:47:58]OFD Sender: No OFD packet to send [01:47:58]recv_with_timeout no data received [01:48:03]OFD Sender: No OFD packet to send [01:48:08]OFD Sender: No OFD packet to send [01:48:13]OFD Sender: No OFD packet to send [01:48:18]OFD Sender: No OFD packet to send [01:48:23]OFD Sender: No OFD packet to send [01:48:28]OFD Sender: No OFD packet to send [01:48:33]OFD Sender: No OFD packet to send [01:48:38]OFD Sender: No OFD packet to send [01:48:43]OFD Sender: No OFD packet to send [01:48:48]OFD Sender: No OFD packet to send [01:48:53]OFD Sender: No OFD packet to send [01:48:58]OFD Sender: No OFD packet to send [01:49:03]OFD Sender: No OFD packet to send [01:49:08]OFD Sender: No OFD packet to send [01:49:10]recv_with_timeout no data received [01:49:13]OFD Sender: No OFD packet to send [01:49:18]OFD Sender: No OFD packet to send [01:49:23]OFD Sender: No OFD packet to send [01:49:28]OFD Sender: No OFD packet to send [01:49:33]OFD Sender: No OFD packet to send [01:49:38]OFD Sender: No OFD packet to send [01:49:43]OFD Sender: No OFD packet to send [01:49:48]OFD Sender: No OFD packet to send [01:49:48]recv_with_timeout no data received [01:49:53]OFD Sender: No OFD packet to send [01:49:58]OFD Sender: No OFD packet to send [01:50:03]OFD Sender: No OFD packet to send [01:50:08]OFD Sender: No OFD packet to send [01:50:13]OFD Sender: No OFD packet to send [01:50:18]OFD Sender: No OFD packet to send [01:50:20]recv_with_timeout no data received [01:50:23]OFD Sender: No OFD packet to send [01:50:28]OFD Sender: No OFD packet to send [01:50:33]OFD Sender: No OFD packet to send [01:50:38]OFD Sender: No OFD packet to send [01:50:43]OFD Sender: No OFD packet to send [01:50:48]OFD Sender: No OFD packet to send [01:50:53]OFD Sender: No OFD packet to send [01:50:58]OFD Sender: No OFD packet to send [01:51:00]recv_with_timeout no data received [01:51:03]OFD Sender: No OFD packet to send [01:51:08]OFD Sender: No OFD packet to send [01:51:13]OFD Sender: No OFD packet to send [01:51:18]OFD Sender: No OFD packet to send [01:51:21]recv_with_timeout no data received [01:51:23]OFD Sender: No OFD packet to send [01:51:28]OFD Sender: No OFD packet to send [01:51:33]OFD Sender: No OFD packet to send [01:51:34]recv_with_timeout no data received [01:51:38]OFD Sender: No OFD packet to send [01:52:35]ConnectInit Can't connect to host [01:52:38]OFD Sender: No OFD packet to send [01:52:43]OFD Sender: No OFD packet to send [01:52:48]OFD Sender: No OFD packet to send [01:52:53]OFD Sender: No OFD packet to send [01:52:58]OFD Sender: No OFD packet to send [01:53:03]OFD Sender: No OFD packet to send [01:53:08]OFD Sender: No OFD packet to send [01:53:13]OFD Sender: No OFD packet to send [01:53:18]OFD Sender: No OFD packet to send [01:53:23]OFD Sender: No OFD packet to send [01:53:28]OFD Sender: No OFD packet to send [01:53:33]OFD Sender: No OFD packet to send [01:53:38]OFD Sender: No OFD packet to send [01:53:43]OFD Sender: No OFD packet to send [01:53:48]OFD Sender: No OFD packet to send [01:53:49]accept exits with 9 [01:53:49]New connection [01:53:49]New thread 3067100516 created [01:53:49]Thread 3067243876 joined [01:53:49]Waiting for new connection... [01:53:49] Sock 9.Parse request [01:53:49]Sock 9.Check first char [01:53:49]Sock 9.First char is OK [01:53:49]request: POST /json_proto HTTP/1.0 [01:53:49]Method: POST [01:53:49]URL: /json_proto [01:53:49]Method is POST - this is cgi request [01:53:49]url: /json_proto [01:53:49]query_string will be loaded in cgi processing [01:53:49]execute_cgi json_proto POST (null) [01:53:49]execute_cgi path=json_proto method=POST [01:53:49]POST find Content-Length [01:53:49]Host: 172.17.43.132:8080 [01:53:49]Content-Length: 624 [01:53:49]Content-Type: application/json [01:53:49] [01:53:49]POST finish read [01:53:49]Found Content-Length = 624 [01:53:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184018", "tax_sys" : 0, "items" : [ { "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:53:49]execute_script... [01:53:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184018", "tax_sys" : 0, "items" : [ { "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:53:49]POST & json_proto [01:53:49]process_json_proto [01:53:49]json parsed OK: [01:53:49]protocol is kg_v1.0 [01:53:49]action value=close_receipt [01:53:49]process_action close_receipt [01:53:49]cmd_close_receipt [01:53:49]MH_GetDate [01:53:49]Write to MH i2c: F0 00 00 1E 02 0F [01:53:49]Write i2c OK [01:53:49]MH_I2C_Read... [01:53:49]Read from MH i2c: F0 [01:53:49]MH_I2C_Read... [01:53:49]Read from MH i2c: F0 09 00 [01:53:49]MH_I2C_Read... [01:53:49]Read from MH i2c: F0 09 00 1E 02 00 AE 47 A8 66 64 A3 A7 66 2F [01:53:49]GetLastDocTimeStamp 1722303490 [01:53:49]current date 1722304430 [01:53:49]FM_GetShiftState [01:53:49]SAM_PROTO_GetShiftState [01:53:49]wFMCommunicate request_size=4 [01:53:49]MH_SAM_APDU [01:53:49]CAPDU: 80 13 01 00 [01:53:49]Write to MH i2c: E2 08 00 1F 02 80 13 01 00 00 00 00 00 9E [01:53:49]Write i2c OK [01:53:49]MH_I2C_Read... [01:53:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:53:50]Read from MH i2c: E2 [01:53:50]MH_I2C_Read... [01:53:50]Read from MH i2c: E2 0E 00 [01:53:50]MH_I2C_Read... [01:53:50]Read from MH i2c: E2 0E 00 1F 02 00 09 00 01 6A 2F A8 66 00 00 00 00 90 00 51 [01:53:50]RAPDU: 09 00 01 6A 2F A8 66 00 00 00 00 90 00 [01:53:50]wFMCommunicate OK [01:53:50]SAM_PROTO_GetShiftState done [01:53:50]FM_GetShiftState done [01:53:50]opened in 1722298218 [01:53:50]opened+sec_in_day 1722384618 [01:53:50]quantity*price = 15100 [01:53:50]sum+1 = 15101 [01:53:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 151.00 НСП 1% : 1.34 НДС 12% : 16.03 Наличными: 151.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 11 30.07.2024 01:53 Смена: 428 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41990 ФПД: 17951740143851 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T015350&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41990&fm=17951740143851&tin=02508201610067®Number=0000000000092626&sum=15100 0 [01:53:51]StoreToDocumentArchive [01:53:51]shift 428 fd 41990 [01:53:51]save to /storage/0428/doc_00041990 [01:53:51]save last doc name /storage/0428/doc_00041990 to /storage/kkm_last_doc_name [01:53:51]save OK [01:53:51]Clear old archive folders... [01:53:51]ProcessDocumentItem done err = 0, tmpTLVsize=276 [01:53:51]tlvbuf is 00A75210 [01:53:51]SAM_PROTO_ClearQueue [01:53:51]wFMCommunicate request_size=4 [01:53:51]MH_SAM_APDU [01:53:51]CAPDU: 80 09 00 00 [01:53:51]Write to MH i2c: E2 08 00 2C 02 80 09 00 00 00 00 00 00 A0 [01:53:51]Write i2c OK [01:53:51]MH_I2C_Read... [01:53:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:53:51]Read from MH i2c: E2 [01:53:51]MH_I2C_Read... [01:53:51]Read from MH i2c: E2 03 00 [01:53:51]MH_I2C_Read... [01:53:51]Read from MH i2c: E2 03 00 2C 02 00 90 00 A2 [01:53:51]RAPDU: 90 00 [01:53:51]wFMCommunicate OK [01:53:51]SAM_PROTO_ClearQueue done [01:53:51]KKMCreateOFDPacket [01:53:51]OFDProtocolAddRootSTLVToBuf [01:53:51]FM_MakeSignedData [01:53:51]FM_MakeSignedData [01:53:51]SAM_PROTO_SignData [01:53:51]wFMCommunicate request_size=4 [01:53:51]MH_SAM_APDU [01:53:51]CAPDU: 80 0D 01 02 [01:53:51]Write to MH i2c: E2 08 00 2D 02 80 0D 01 02 00 00 00 00 A8 [01:53:51]Write i2c OK [01:53:51]MH_I2C_Read... [01:53:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:53:51]Read from MH i2c: E2 [01:53:51]MH_I2C_Read... [01:53:51]Read from MH i2c: E2 03 00 [01:53:51]MH_I2C_Read... [01:53:51]Read from MH i2c: E2 03 00 2D 02 00 90 00 A3 [01:53:51]RAPDU: 90 00 [01:53:51]wFMCommunicate OK [01:53:51]wFMCommunicate request_size=255 [01:53:51]MH_SAM_APDU [01:53:51]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 AE 47 A8 66 0E 04 04 00 AC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 [01:53:51]Write to MH i2c: E2 02 01 2E 02 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 AE 47 A8 66 0E 04 04 00 AC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 00 00 B5 [01:53:51]Write i2c OK [01:53:51]MH_I2C_Read... [01:53:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:53:51]Read from MH i2c: E2 [01:53:51]MH_I2C_Read... [01:53:51]Read from MH i2c: E2 03 00 [01:53:51]MH_I2C_Read... [01:53:51]Read from MH i2c: E2 03 00 2E 02 00 90 00 A4 [01:53:51]RAPDU: 90 00 [01:53:51]wFMCommunicate OK [01:53:51]wFMCommunicate request_size=35 [01:53:51]MH_SAM_APDU [01:53:51]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 06 A4 00 00 35 04 06 00 10 53 B7 18 28 EB [01:53:51]Write to MH i2c: E2 26 00 2F 02 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 06 A4 00 00 35 04 06 00 10 53 B7 18 28 EB 00 00 96 [01:53:51]Write i2c OK [01:53:51]MH_I2C_Read... [01:53:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:53:51]Read from MH i2c: E2 [01:53:51]MH_I2C_Read... [01:53:51]Read from MH i2c: E2 03 00 [01:53:51]MH_I2C_Read... [01:53:51]Read from MH i2c: E2 03 00 2F 02 00 90 00 A5 [01:53:51]RAPDU: 90 00 [01:53:51]wFMCommunicate OK [01:53:51]wFMCommunicate request_size=4 [01:53:51]MH_SAM_APDU [01:53:51]CAPDU: 80 0D 03 02 [01:53:51]Write to MH i2c: E2 08 00 30 02 80 0D 03 02 00 00 00 00 AD [01:53:51]Write i2c OK [01:53:51]MH_I2C_Read... [01:53:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:53:51]Read from MH i2c: E2 [01:53:51]MH_I2C_Read... [01:53:51]Read from MH i2c: E2 0B 00 [01:53:51]MH_I2C_Read... [01:53:51]Read from MH i2c: E2 0B 00 30 02 00 19 EA 56 05 58 AC 22 E5 90 00 17 [01:53:51]RAPDU: 19 EA 56 05 58 AC 22 E5 90 00 [01:53:51]wFMCommunicate OK [01:53:51]SAM_PROTO_SignData done [01:53:51]FM_MakeSignedData done [01:53:51]CreateOFDProtocolMessage [01:53:51]wFMCommunicate request_size=4 [01:53:51]MH_SAM_APDU [01:53:51]CAPDU: 80 11 00 00 [01:53:51]Write to MH i2c: E2 08 00 31 02 80 11 00 00 00 00 00 00 AD [01:53:51]Write i2c OK [01:53:51]MH_I2C_Read... [01:53:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:53:51]Read from MH i2c: E2 [01:53:51]MH_I2C_Read... [01:53:51]Read from MH i2c: E2 17 00 [01:53:51]MH_I2C_Read... [01:53:51]Read from MH i2c: E2 17 00 31 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 09 [01:53:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [01:53:51]wFMCommunicate OK [01:53:51]CreateOFDProtocolMessage done [01:53:51]OFDSenderStorePacket 41990 [01:53:51]StoreOFDPacket docnum=41990 [01:53:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 28 01 00 00 26 1A 20 01 1D DB 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 AE 47 A8 66 0E 04 04 00 AC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 06 A4 00 00 35 04 06 00 10 53 B7 18 28 EB 19 EA 56 05 58 AC 22 E5 [01:53:51]CheckFolder [01:53:51]dirname=/storage/ofd_packets [01:53:51]CheckFolder done [01:53:51]ProducePacketName [01:53:51]name=ofd_packets/00041990 [01:53:51]NVStorageSaveData ofd_packets/00041990 [01:53:51]File name is /storage/ofd_packets/00041990 [01:53:51]Write 326 bytes [01:53:51]NVStorageSaveData done [01:53:51]OFDSenderStorePacket done [01:53:51]KKMCreateOFDPacket done [01:53:51]NVStorageSaveData kkm_last_timestamp [01:53:51]File name is /storage/kkm_last_timestamp [01:53:51]Write 4 bytes [01:53:51]NVStorageSaveData done [01:53:51]ExternCall_PrintAddStr [01:53:51]wPrintStart [01:53:51]Write to MH i2c: 01 00 00 32 02 34 [01:53:51]Write i2c OK [01:53:51]MH_I2C_Read... [01:53:51]Read from MH i2c: 01 [01:53:51]MH_I2C_Read... [01:53:51]Read from MH i2c: 01 07 00 [01:53:51]MH_I2C_Read... [01:53:51]Read from MH i2c: 01 07 00 32 02 00 00 00 00 00 FF 0F 49 [01:53:51]RasterBufferAndPrint [01:53:51]line Счет N : (3)184018 [01:53:51]line ИНН: 02508201610067 [01:53:51]line Контрольно-Кассовый Чек [01:53:51]line ПРОДАЖА [01:53:51]line Товар: 48742245 [01:53:51]line Сигареты Parliament Silver Blue [01:53:51]line 1.000 * 151.00 [01:53:51]line = 151.00 [01:53:51]line НДС 12% НСП 1% [01:53:51]line > о реализуемом товаре [01:53:51]line ИТОГО: 151.00 [01:53:51]line НСП 1% : 1.34 [01:53:51]line НДС 12% : 16.03 [01:53:51]line Наличными: 151.00 [01:53:51]line Безнал.: 0.00 [01:53:51]line Место: АЗС № 97 "Партнер Нефть" [01:53:51]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [01:53:51]line СНО: Общий режим [01:53:51]line Чек 11 30.07.2024 01:53 [01:53:51]line Смена: 428 ФФД: 1.0 [01:53:51]line ЗНМ: 0300000053 [01:53:51]line РНМ: 0000000000092626 [01:53:51]line Версия ККМ: 001 [01:53:51]line ФМ: 0000000000874958 [01:53:51]line ФД: 41990 [01:53:51]line ФПД: 17951740143851 [01:53:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T015350&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41990&fm=17951740143851&tin=02508201610067®Number=0000000000092626&sum=15100 [01:53:52]OFD Sender: Processing packet 41990 [packets to send 57, broken 56] [01:53:52]ProducePacketName [01:53:52]name=ofd_packets/00041990 [01:53:52]OFD Sender: To server: pG, [01:53:52]CommunicateWithHost lk.salyk.kg:30040 [01:53:52]ConnectInit lk.salyk.kg [01:53:52]line 0 [01:53:52]written 0, free lines is 4095 [01:53:52]Write to MH i2c: 01 00 00 5B 02 5D [01:53:52]Write i2c OK [01:53:52]MH_I2C_Read... [01:53:52]Read from MH i2c: 01 [01:53:52]MH_I2C_Read... [01:53:52]Read from MH i2c: 01 07 00 [01:53:52]MH_I2C_Read... [01:53:52]Read from MH i2c: 01 07 00 5B 02 00 00 00 00 00 E7 0C 57 [01:53:52]RasterBufferAndPrint [01:53:52]line [01:53:52]line [01:53:52]line [01:53:52]line [01:53:52]line [01:53:52]written 0, free lines is 3309 [01:53:52]MH_Cut [01:53:52]Write to MH i2c: D1 01 00 62 02 01 36 [01:53:52]Write i2c OK [01:53:52]MH_I2C_Read... [01:53:52]Read from MH i2c: D1 [01:53:52]MH_I2C_Read... [01:53:52]Read from MH i2c: D1 01 00 [01:53:52]MH_I2C_Read... [01:53:52]Read from MH i2c: D1 01 00 62 02 00 35 [01:53:52]Write to MH i2c: 01 00 00 63 02 65 [01:53:52]Write i2c OK [01:53:52]MH_I2C_Read... [01:53:53]*** Cut start [01:53:53]*** Partial cut [01:53:53]*** CUTSNS_PIN = 1 [01:53:53]*** CUTSNS_PIN = 0 [01:53:53]recv_with_timeout no data received [01:53:53]*** Brake cut motor [01:53:53]Read from MH i2c: 01 [01:53:53]MH_I2C_Read... [01:53:53]*** Stop cut motor [01:53:53]*** Cut end [01:53:53]Read from MH i2c: 01 07 00 [01:53:53]MH_I2C_Read... [01:53:53]Read from MH i2c: 01 07 00 63 02 00 00 00 00 00 FF 0F 7A [01:53:53]process_action close_receipt done [01:53:53]requested_data is exist [01:53:53]produce_requested_data [01:53:53]requested_item fm.sn is exist - process it [01:53:53]wFMCommunicate request_size=4 [01:53:53]MH_SAM_APDU [01:53:53]CAPDU: 80 11 00 00 [01:53:53]Write to MH i2c: E2 08 00 64 02 80 11 00 00 00 00 00 00 E0 [01:53:53]Write i2c OK [01:53:53]MH_I2C_Read... [01:53:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:53:53]Read from MH i2c: E2 [01:53:53]MH_I2C_Read... [01:53:53]Read from MH i2c: E2 17 00 [01:53:53]MH_I2C_Read... [01:53:53]Read from MH i2c: E2 17 00 64 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 3C [01:53:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [01:53:53]wFMCommunicate OK [01:53:53]requested_item fd.num is exist - process it [01:53:53]SAM_PROTO_GetFieldsCounters [01:53:53]wFMCommunicate request_size=4 [01:53:53]MH_SAM_APDU [01:53:53]CAPDU: 80 13 00 00 [01:53:53]Write to MH i2c: E2 08 00 65 02 80 13 00 00 00 00 00 00 E3 [01:53:53]Write i2c OK [01:53:53]MH_I2C_Read... [01:53:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:53:54]Read from MH i2c: E2 [01:53:54]MH_I2C_Read... [01:53:54]Read from MH i2c: E2 62 00 [01:53:54]MH_I2C_Read... [01:53:54]Read from MH i2c: E2 62 00 65 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 06 A4 00 00 0E 04 04 00 AC 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 85 [01:53:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 06 A4 00 00 0E 04 04 00 AC 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:53:54]wFMCommunicate OK [01:53:54]SAM_PROTO_GetFieldsCounters done [01:53:54]requested_item shift.num is exist - process it [01:53:54]requested_item shift.opened is exist - process it [01:53:54]req_shift_opened [01:53:54]FM_GetShiftState [01:53:54]SAM_PROTO_GetShiftState [01:53:54]wFMCommunicate request_size=4 [01:53:54]MH_SAM_APDU [01:53:54]CAPDU: 80 13 01 00 [01:53:54]Write to MH i2c: E2 08 00 66 02 80 13 01 00 00 00 00 00 E5 [01:53:54]Write i2c OK [01:53:54]MH_I2C_Read... [01:53:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:53:54]Read from MH i2c: E2 [01:53:54]MH_I2C_Read... [01:53:54]Read from MH i2c: E2 0E 00 [01:53:54]MH_I2C_Read... [01:53:54]Read from MH i2c: E2 0E 00 66 02 00 09 00 01 6A 2F A8 66 00 00 00 00 90 00 98 [01:53:54]RAPDU: 09 00 01 6A 2F A8 66 00 00 00 00 90 00 [01:53:54]wFMCommunicate OK [01:53:54]SAM_PROTO_GetShiftState done [01:53:54]FM_GetShiftState done [01:53:54]req_shift_opened done [01:53:54]requested_item shift.open_date is exist - process it [01:53:54]req_shift_open_date [01:53:54]req_shift_open_date done [01:53:54]produce_requested_data done [01:53:54]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41990,"shift.num":428,"shift.opened":1,"shift.open_date":1722298218} [01:53:54]process_action_free close_receipt [01:53:54]json_value_free [01:53:54]json_value_free done [01:53:54]process_json_proto returns [01:53:54]Send response to host [01:53:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41990,"shift.num":428,"shift.opened":1,"shift.open_date":1722298218}}} [01:53:54]free response buf [01:53:54]execute_script done [01:53:54]execute_script returns [01:53:54]free content buf [01:53:54]Sock 9.Close socket [01:53:54]Sock 9.Thread stoped [01:53:57]ConnectInit Can't take IP for lk.salyk.kg [01:53:57]CommunicateWithHost connect error [01:53:57]CommunicateWithHost err = -1 [01:53:57]OFD Sender: Server communicate error [01:54:02]OFD Sender: Processing packet 41990 [packets to send 57, broken 56] [01:54:02]ProducePacketName [01:54:02]name=ofd_packets/00041990 [01:54:02]OFD Sender: To server: pG, [01:54:02]CommunicateWithHost lk.salyk.kg:30040 [01:54:02]ConnectInit lk.salyk.kg [01:54:05]Connected sock=9 [01:54:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 28 01 00 00 26 1A 20 01 1D DB 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 AE 47 A8 66 0E 04 04 00 AC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 06 A4 00 00 35 04 06 00 10 53 B7 18 28 EB 19 EA 56 05 58 AC 22 E5 [01:54:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 4F 00 00 00 33 E4 47 00 5E 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 35 38 10 04 04 00 06 A4 00 00 F4 03 04 00 D0 F3 A7 66 B6 04 01 00 00 0F 6F 9B 24 10 EA C5 9C [01:54:05]CommunicateWithHost err = 0 [01:54:05]CheckOFDResponse [01:54:05]1017 (14) - 77093643461234 [01:54:05]1041 (16) - 0000000000874958 [01:54:05]1040 (4) - 41990 [01:54:05]1012 (4) - 29.07.2024 19:56 [01:54:05]1206 (1) - 0 [01:54:05]OFD Sender: Remove packet 41990 [01:54:05]ProducePacketName [01:54:05]name=ofd_packets/00041990 [01:54:05]NVStorageDeleteData [01:54:06]OFD Sender: No OFD packet to send [01:54:11]OFD Sender: No OFD packet to send [01:54:16]OFD Sender: No OFD packet to send [01:54:21]OFD Sender: No OFD packet to send [01:54:26]OFD Sender: No OFD packet to send [01:54:31]OFD Sender: No OFD packet to send [01:54:36]OFD Sender: No OFD packet to send [01:54:41]OFD Sender: No OFD packet to send [01:54:46]OFD Sender: No OFD packet to send [01:54:51]OFD Sender: No OFD packet to send [01:54:56]OFD Sender: No OFD packet to send [01:55:01]OFD Sender: No OFD packet to send [01:55:06]OFD Sender: No OFD packet to send [01:55:09]recv_with_timeout no data received [01:55:11]OFD Sender: No OFD packet to send [01:55:16]OFD Sender: No OFD packet to send [01:55:21]OFD Sender: No OFD packet to send [01:55:26]OFD Sender: No OFD packet to send [01:55:31]OFD Sender: No OFD packet to send [01:55:36]OFD Sender: No OFD packet to send [01:55:41]OFD Sender: No OFD packet to send [01:55:43]recv_with_timeout no data received [01:55:46]OFD Sender: No OFD packet to send [01:55:51]OFD Sender: No OFD packet to send [01:55:54]recv_with_timeout no data received [01:55:56]OFD Sender: No OFD packet to send [01:56:01]OFD Sender: No OFD packet to send [01:56:06]OFD Sender: No OFD packet to send [01:56:11]OFD Sender: No OFD packet to send [01:56:16]OFD Sender: No OFD packet to send [01:56:17]recv_with_timeout no data received [01:56:21]OFD Sender: No OFD packet to send [01:56:26]OFD Sender: No OFD packet to send [01:56:30]recv_with_timeout no data received [01:56:31]OFD Sender: No OFD packet to send [01:56:36]OFD Sender: No OFD packet to send [01:56:41]OFD Sender: No OFD packet to send [01:56:46]OFD Sender: No OFD packet to send [01:56:51]OFD Sender: No OFD packet to send [01:56:56]OFD Sender: No OFD packet to send [01:57:01]OFD Sender: No OFD packet to send [01:57:06]OFD Sender: No OFD packet to send [01:57:11]OFD Sender: No OFD packet to send [01:57:13]recv_with_timeout no data received [01:57:16]OFD Sender: No OFD packet to send [01:57:21]OFD Sender: No OFD packet to send [01:57:26]OFD Sender: No OFD packet to send [01:57:31]OFD Sender: No OFD packet to send [01:57:36]OFD Sender: No OFD packet to send [01:57:41]OFD Sender: No OFD packet to send [01:57:46]OFD Sender: No OFD packet to send [01:57:48]recv_with_timeout no data received [01:57:51]OFD Sender: No OFD packet to send [01:57:56]OFD Sender: No OFD packet to send [01:58:01]OFD Sender: No OFD packet to send [01:58:01]recv_with_timeout no data received [01:58:06]OFD Sender: No OFD packet to send [01:58:11]OFD Sender: No OFD packet to send [01:58:16]OFD Sender: No OFD packet to send [01:58:21]recv_with_timeout no data received [01:58:21]OFD Sender: No OFD packet to send [01:58:26]OFD Sender: No OFD packet to send [01:58:31]OFD Sender: No OFD packet to send [01:58:36]OFD Sender: No OFD packet to send [01:58:41]OFD Sender: No OFD packet to send [01:58:46]OFD Sender: No OFD packet to send [01:58:51]OFD Sender: No OFD packet to send [01:58:56]OFD Sender: No OFD packet to send [01:59:01]OFD Sender: No OFD packet to send [01:59:06]OFD Sender: No OFD packet to send [01:59:11]OFD Sender: No OFD packet to send [01:59:16]OFD Sender: No OFD packet to send [01:59:18]recv_with_timeout no data received [01:59:21]OFD Sender: No OFD packet to send [01:59:26]OFD Sender: No OFD packet to send [01:59:31]OFD Sender: No OFD packet to send [01:59:36]OFD Sender: No OFD packet to send [01:59:41]OFD Sender: No OFD packet to send [01:59:46]OFD Sender: No OFD packet to send [01:59:51]OFD Sender: No OFD packet to send [01:59:56]OFD Sender: No OFD packet to send [01:59:59]recv_with_timeout no data received [02:00:01]OFD Sender: No OFD packet to send [02:00:06]OFD Sender: No OFD packet to send [02:00:11]OFD Sender: No OFD packet to send [02:00:16]OFD Sender: No OFD packet to send [02:00:17]recv_with_timeout no data received [02:00:21]OFD Sender: No OFD packet to send [02:00:26]OFD Sender: No OFD packet to send [02:00:31]OFD Sender: No OFD packet to send [02:00:36]OFD Sender: No OFD packet to send [02:00:41]OFD Sender: No OFD packet to send [02:00:46]OFD Sender: No OFD packet to send [02:00:51]OFD Sender: No OFD packet to send [02:00:56]recv_with_timeout no data received [02:00:56]OFD Sender: No OFD packet to send [02:01:01]OFD Sender: No OFD packet to send [02:01:06]OFD Sender: No OFD packet to send [02:01:11]OFD Sender: No OFD packet to send [02:01:16]OFD Sender: No OFD packet to send [02:01:21]OFD Sender: No OFD packet to send [02:01:26]OFD Sender: No OFD packet to send [02:01:31]OFD Sender: No OFD packet to send [02:01:36]OFD Sender: No OFD packet to send [02:01:41]OFD Sender: No OFD packet to send [02:01:46]OFD Sender: No OFD packet to send [02:01:51]OFD Sender: No OFD packet to send [02:01:56]OFD Sender: No OFD packet to send [02:02:01]OFD Sender: No OFD packet to send [02:02:06]OFD Sender: No OFD packet to send [02:02:11]OFD Sender: No OFD packet to send [02:02:16]OFD Sender: No OFD packet to send [02:02:21]OFD Sender: No OFD packet to send [02:02:26]OFD Sender: No OFD packet to send [02:02:31]OFD Sender: No OFD packet to send [02:02:36]OFD Sender: No OFD packet to send [02:02:41]OFD Sender: No OFD packet to send [02:02:46]OFD Sender: No OFD packet to send [02:02:48]recv_with_timeout no data received [02:02:51]OFD Sender: No OFD packet to send [02:02:56]OFD Sender: No OFD packet to send [02:03:00]recv_with_timeout no data received [02:03:01]OFD Sender: No OFD packet to send [02:03:06]OFD Sender: No OFD packet to send [02:03:11]recv_with_timeout no data received [02:03:11]OFD Sender: No OFD packet to send [02:03:16]OFD Sender: No OFD packet to send [02:03:21]OFD Sender: No OFD packet to send [02:03:26]recv_with_timeout no data received [02:03:26]OFD Sender: No OFD packet to send [02:03:31]OFD Sender: No OFD packet to send [02:03:36]OFD Sender: No OFD packet to send [02:03:41]OFD Sender: No OFD packet to send [02:03:46]OFD Sender: No OFD packet to send [02:03:51]OFD Sender: No OFD packet to send [02:03:56]OFD Sender: No OFD packet to send [02:03:59]recv_with_timeout no data received [02:04:01]OFD Sender: No OFD packet to send [02:04:06]OFD Sender: No OFD packet to send [02:04:11]OFD Sender: No OFD packet to send [02:04:16]OFD Sender: No OFD packet to send [02:04:21]OFD Sender: No OFD packet to send [02:04:26]OFD Sender: No OFD packet to send [02:04:31]OFD Sender: No OFD packet to send [02:04:36]OFD Sender: No OFD packet to send [02:04:41]OFD Sender: No OFD packet to send [02:04:46]OFD Sender: No OFD packet to send [02:04:51]OFD Sender: No OFD packet to send [02:04:56]OFD Sender: No OFD packet to send [02:05:01]OFD Sender: No OFD packet to send [02:05:06]OFD Sender: No OFD packet to send [02:05:26]OFD Sender: No OFD packet to send [02:05:31]OFD Sender: No OFD packet to send [02:05:36]OFD Sender: No OFD packet to send [02:05:41]OFD Sender: No OFD packet to send [02:05:42]recv_with_timeout no data received [02:05:46]OFD Sender: No OFD packet to send [02:05:51]OFD Sender: No OFD packet to send [02:05:56]OFD Sender: No OFD packet to send [02:06:01]OFD Sender: No OFD packet to send [02:06:06]OFD Sender: No OFD packet to send [02:06:09]recv_with_timeout no data received [02:06:11]OFD Sender: No OFD packet to send [02:06:16]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:28]recv_with_timeout no data received [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:06:59]recv_with_timeout no data received [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:32]OFD Sender: No OFD packet to send [02:08:33]recv_with_timeout no data received [02:08:37]OFD Sender: No OFD packet to send [02:08:42]OFD Sender: No OFD packet to send [02:08:47]OFD Sender: No OFD packet to send [02:08:52]OFD Sender: No OFD packet to send [02:08:57]OFD Sender: No OFD packet to send [02:09:02]OFD Sender: No OFD packet to send [02:09:07]OFD Sender: No OFD packet to send [02:09:12]OFD Sender: No OFD packet to send [02:09:17]OFD Sender: No OFD packet to send [02:09:20]recv_with_timeout no data received [02:09:22]OFD Sender: No OFD packet to send [02:09:27]OFD Sender: No OFD packet to send [02:09:32]OFD Sender: No OFD packet to send [02:09:37]OFD Sender: No OFD packet to send [02:09:42]OFD Sender: No OFD packet to send [02:09:47]OFD Sender: No OFD packet to send [02:09:52]OFD Sender: No OFD packet to send [02:09:57]OFD Sender: No OFD packet to send [02:10:02]OFD Sender: No OFD packet to send [02:10:07]OFD Sender: No OFD packet to send [02:10:12]OFD Sender: No OFD packet to send [02:10:17]OFD Sender: No OFD packet to send [02:10:22]OFD Sender: No OFD packet to send [02:10:27]OFD Sender: No OFD packet to send [02:10:32]OFD Sender: No OFD packet to send [02:10:37]OFD Sender: No OFD packet to send [02:10:42]OFD Sender: No OFD packet to send [02:10:47]OFD Sender: No OFD packet to send [02:10:52]OFD Sender: No OFD packet to send [02:10:57]OFD Sender: No OFD packet to send [02:11:01]recv_with_timeout no data received [02:11:02]OFD Sender: No OFD packet to send [02:11:07]OFD Sender: No OFD packet to send [02:11:12]OFD Sender: No OFD packet to send [02:11:17]OFD Sender: No OFD packet to send [02:11:22]OFD Sender: No OFD packet to send [02:11:27]OFD Sender: No OFD packet to send [02:11:32]OFD Sender: No OFD packet to send [02:11:37]OFD Sender: No OFD packet to send [02:11:42]OFD Sender: No OFD packet to send [02:11:47]OFD Sender: No OFD packet to send [02:11:52]OFD Sender: No OFD packet to send [02:11:57]OFD Sender: No OFD packet to send [02:11:59]recv_with_timeout no data received [02:12:02]OFD Sender: No OFD packet to send [02:12:07]OFD Sender: No OFD packet to send [02:12:12]OFD Sender: No OFD packet to send [02:12:17]OFD Sender: No OFD packet to send [02:12:22]OFD Sender: No OFD packet to send [02:12:27]OFD Sender: No OFD packet to send [02:12:32]OFD Sender: No OFD packet to send [02:12:37]OFD Sender: No OFD packet to send [02:12:42]OFD Sender: No OFD packet to send [02:12:47]OFD Sender: No OFD packet to send [02:12:52]OFD Sender: No OFD packet to send [02:12:57]OFD Sender: No OFD packet to send [02:13:02]OFD Sender: No OFD packet to send [02:13:07]OFD Sender: No OFD packet to send [02:13:12]OFD Sender: No OFD packet to send [02:13:17]OFD Sender: No OFD packet to send [02:13:22]OFD Sender: No OFD packet to send [02:13:27]OFD Sender: No OFD packet to send [02:13:32]OFD Sender: No OFD packet to send [02:13:37]OFD Sender: No OFD packet to send [02:13:42]OFD Sender: No OFD packet to send [02:13:47]OFD Sender: No OFD packet to send [02:13:52]OFD Sender: No OFD packet to send [02:13:57]OFD Sender: No OFD packet to send [02:14:02]OFD Sender: No OFD packet to send [02:14:07]OFD Sender: No OFD packet to send [02:14:12]OFD Sender: No OFD packet to send [02:14:17]OFD Sender: No OFD packet to send [02:14:22]OFD Sender: No OFD packet to send [02:14:27]OFD Sender: No OFD packet to send [02:14:32]OFD Sender: No OFD packet to send [02:14:37]OFD Sender: No OFD packet to send [02:14:42]OFD Sender: No OFD packet to send [02:14:47]OFD Sender: No OFD packet to send [02:14:52]OFD Sender: No OFD packet to send [02:14:57]OFD Sender: No OFD packet to send [02:15:02]OFD Sender: No OFD packet to send [02:15:07]OFD Sender: No OFD packet to send [02:15:12]OFD Sender: No OFD packet to send [02:15:17]OFD Sender: No OFD packet to send [02:15:22]OFD Sender: No OFD packet to send [02:15:27]OFD Sender: No OFD packet to send [02:15:32]OFD Sender: No OFD packet to send [02:15:37]OFD Sender: No OFD packet to send [02:15:42]OFD Sender: No OFD packet to send [02:15:47]OFD Sender: No OFD packet to send [02:15:52]OFD Sender: No OFD packet to send [02:15:57]OFD Sender: No OFD packet to send [02:16:02]OFD Sender: No OFD packet to send [02:16:07]OFD Sender: No OFD packet to send [02:16:12]OFD Sender: No OFD packet to send [02:16:17]OFD Sender: No OFD packet to send [02:16:22]OFD Sender: No OFD packet to send [02:16:27]OFD Sender: No OFD packet to send [02:16:32]OFD Sender: No OFD packet to send [02:16:37]OFD Sender: No OFD packet to send [02:16:42]OFD Sender: No OFD packet to send [02:16:47]OFD Sender: No OFD packet to send [02:16:52]OFD Sender: No OFD packet to send [02:16:57]OFD Sender: No OFD packet to send [02:17:02]OFD Sender: No OFD packet to send [02:17:07]OFD Sender: No OFD packet to send [02:17:12]OFD Sender: No OFD packet to send [02:17:17]OFD Sender: No OFD packet to send [02:17:22]OFD Sender: No OFD packet to send [02:17:27]OFD Sender: No OFD packet to send [02:17:32]OFD Sender: No OFD packet to send [02:17:37]OFD Sender: No OFD packet to send [02:17:42]OFD Sender: No OFD packet to send [02:17:47]OFD Sender: No OFD packet to send [02:17:52]OFD Sender: No OFD packet to send [02:17:57]OFD Sender: No OFD packet to send [02:18:02]OFD Sender: No OFD packet to send [02:18:07]OFD Sender: No OFD packet to send [02:18:12]OFD Sender: No OFD packet to send [02:18:17]OFD Sender: No OFD packet to send [02:18:22]OFD Sender: No OFD packet to send [02:18:27]OFD Sender: No OFD packet to send [02:18:32]OFD Sender: No OFD packet to send [02:18:37]OFD Sender: No OFD packet to send [02:18:42]OFD Sender: No OFD packet to send [02:18:47]OFD Sender: No OFD packet to send [02:18:52]OFD Sender: No OFD packet to send [02:18:57]OFD Sender: No OFD packet to send [02:19:02]OFD Sender: No OFD packet to send [02:19:03]recv_with_timeout no data received [02:19:07]OFD Sender: No OFD packet to send [02:19:12]OFD Sender: No OFD packet to send [02:19:17]recv_with_timeout no data received [02:19:17]OFD Sender: No OFD packet to send [02:19:22]OFD Sender: No OFD packet to send [02:19:27]OFD Sender: No OFD packet to send [02:19:32]OFD Sender: No OFD packet to send [02:19:37]OFD Sender: No OFD packet to send [02:19:42]recv_with_timeout no data received [02:19:42]OFD Sender: No OFD packet to send [02:19:47]OFD Sender: No OFD packet to send [02:19:52]OFD Sender: No OFD packet to send [02:19:57]OFD Sender: No OFD packet to send [02:20:02]OFD Sender: No OFD packet to send [02:20:07]OFD Sender: No OFD packet to send [02:20:12]OFD Sender: No OFD packet to send [02:20:15]recv_with_timeout no data received [02:20:17]OFD Sender: No OFD packet to send [02:20:22]OFD Sender: No OFD packet to send [02:20:27]OFD Sender: No OFD packet to send [02:20:32]OFD Sender: No OFD packet to send [02:20:33]recv_with_timeout no data received [02:20:37]OFD Sender: No OFD packet to send [02:20:42]OFD Sender: No OFD packet to send [02:20:47]OFD Sender: No OFD packet to send [02:20:52]OFD Sender: No OFD packet to send [02:20:57]OFD Sender: No OFD packet to send [02:21:02]OFD Sender: No OFD packet to send [02:21:07]OFD Sender: No OFD packet to send [02:21:12]OFD Sender: No OFD packet to send [02:21:17]OFD Sender: No OFD packet to send [02:21:22]OFD Sender: No OFD packet to send [02:21:25]recv_with_timeout no data received [02:21:27]OFD Sender: No OFD packet to send [02:21:57]OFD Sender: No OFD packet to send [02:22:02]OFD Sender: No OFD packet to send [02:22:07]OFD Sender: No OFD packet to send [02:22:12]OFD Sender: No OFD packet to send [02:22:17]OFD Sender: No OFD packet to send [02:22:22]OFD Sender: No OFD packet to send [02:22:25]recv_with_timeout no data received [02:22:27]OFD Sender: No OFD packet to send [02:22:32]OFD Sender: No OFD packet to send [02:22:37]OFD Sender: No OFD packet to send [02:22:42]OFD Sender: No OFD packet to send [02:22:47]OFD Sender: No OFD packet to send [02:22:48]recv_with_timeout no data received [02:22:52]OFD Sender: No OFD packet to send [02:22:57]OFD Sender: No OFD packet to send [02:23:02]OFD Sender: No OFD packet to send [02:23:07]OFD Sender: No OFD packet to send [02:23:12]OFD Sender: No OFD packet to send [02:23:17]OFD Sender: No OFD packet to send [02:23:19]recv_with_timeout no data received [02:23:22]OFD Sender: No OFD packet to send [02:23:27]OFD Sender: No OFD packet to send [02:23:32]OFD Sender: No OFD packet to send [02:23:37]OFD Sender: No OFD packet to send [02:23:42]OFD Sender: No OFD packet to send [02:23:47]OFD Sender: No OFD packet to send [02:23:49]recv_with_timeout no data received [02:23:52]OFD Sender: No OFD packet to send [02:23:57]OFD Sender: No OFD packet to send [02:24:02]OFD Sender: No OFD packet to send [02:24:07]OFD Sender: No OFD packet to send [02:24:10]recv_with_timeout no data received [02:24:13]OFD Sender: No OFD packet to send [02:24:18]OFD Sender: No OFD packet to send [02:24:23]OFD Sender: No OFD packet to send [02:24:28]OFD Sender: No OFD packet to send [02:24:33]OFD Sender: No OFD packet to send [02:24:37]recv_with_timeout no data received [02:24:38]OFD Sender: No OFD packet to send [02:24:43]OFD Sender: No OFD packet to send [02:24:48]OFD Sender: No OFD packet to send [02:24:53]OFD Sender: No OFD packet to send [02:24:58]OFD Sender: No OFD packet to send [02:25:03]OFD Sender: No OFD packet to send [02:25:08]OFD Sender: No OFD packet to send [02:25:13]OFD Sender: No OFD packet to send [02:25:18]OFD Sender: No OFD packet to send [02:25:23]OFD Sender: No OFD packet to send [02:25:28]OFD Sender: No OFD packet to send [02:25:29]recv_with_timeout no data received [02:25:33]OFD Sender: No OFD packet to send [02:25:38]OFD Sender: No OFD packet to send [02:25:43]OFD Sender: No OFD packet to send [02:25:48]OFD Sender: No OFD packet to send [02:25:53]OFD Sender: No OFD packet to send [02:25:58]recv_with_timeout no data received [02:25:58]OFD Sender: No OFD packet to send [02:26:03]OFD Sender: No OFD packet to send [02:26:08]OFD Sender: No OFD packet to send [02:26:13]OFD Sender: No OFD packet to send [02:26:18]OFD Sender: No OFD packet to send [02:26:23]OFD Sender: No OFD packet to send [02:26:28]OFD Sender: No OFD packet to send [02:26:33]OFD Sender: No OFD packet to send [02:26:38]OFD Sender: No OFD packet to send [02:26:43]OFD Sender: No OFD packet to send [02:26:48]OFD Sender: No OFD packet to send [02:26:53]OFD Sender: No OFD packet to send [02:26:58]OFD Sender: No OFD packet to send [02:27:03]OFD Sender: No OFD packet to send [02:27:08]OFD Sender: No OFD packet to send [02:27:13]OFD Sender: No OFD packet to send [02:27:18]OFD Sender: No OFD packet to send [02:27:20]recv_with_timeout no data received [02:27:23]OFD Sender: No OFD packet to send [02:27:28]OFD Sender: No OFD packet to send [02:27:31]recv_with_timeout no data received [02:27:33]OFD Sender: No OFD packet to send [02:27:38]OFD Sender: No OFD packet to send [02:27:43]OFD Sender: No OFD packet to send [02:27:48]OFD Sender: No OFD packet to send [02:27:53]OFD Sender: No OFD packet to send [02:27:58]OFD Sender: No OFD packet to send [02:28:03]OFD Sender: No OFD packet to send [02:28:08]OFD Sender: No OFD packet to send [02:28:13]OFD Sender: No OFD packet to send [02:28:18]OFD Sender: No OFD packet to send [02:28:23]OFD Sender: No OFD packet to send [02:28:28]OFD Sender: No OFD packet to send [02:28:33]OFD Sender: No OFD packet to send [02:28:35]recv_with_timeout no data received [02:28:38]OFD Sender: No OFD packet to send [02:28:43]OFD Sender: No OFD packet to send [02:28:58]OFD Sender: No OFD packet to send [02:29:03]OFD Sender: No OFD packet to send [02:29:08]OFD Sender: No OFD packet to send [02:29:13]OFD Sender: No OFD packet to send [02:29:18]OFD Sender: No OFD packet to send [02:29:23]OFD Sender: No OFD packet to send [02:29:28]OFD Sender: No OFD packet to send [02:29:33]OFD Sender: No OFD packet to send [02:29:38]OFD Sender: No OFD packet to send [02:29:39]recv_with_timeout no data received [02:29:43]OFD Sender: No OFD packet to send [02:29:48]OFD Sender: No OFD packet to send [02:29:53]OFD Sender: No OFD packet to send [02:29:58]OFD Sender: No OFD packet to send [02:30:03]OFD Sender: No OFD packet to send [02:30:08]OFD Sender: No OFD packet to send [02:30:08]recv_with_timeout no data received [02:30:13]OFD Sender: No OFD packet to send [02:30:18]OFD Sender: No OFD packet to send [02:30:23]OFD Sender: No OFD packet to send [02:30:28]OFD Sender: No OFD packet to send [02:30:33]OFD Sender: No OFD packet to send [02:30:38]OFD Sender: No OFD packet to send [02:30:43]OFD Sender: No OFD packet to send [02:30:48]OFD Sender: No OFD packet to send [02:30:53]OFD Sender: No OFD packet to send [02:30:58]OFD Sender: No OFD packet to send [02:31:03]OFD Sender: No OFD packet to send [02:31:08]OFD Sender: No OFD packet to send [02:31:12]recv_with_timeout no data received [02:31:13]OFD Sender: No OFD packet to send [02:31:28]OFD Sender: No OFD packet to send [02:31:33]OFD Sender: No OFD packet to send [02:31:38]OFD Sender: No OFD packet to send [02:31:43]OFD Sender: No OFD packet to send [02:31:48]OFD Sender: No OFD packet to send [02:31:53]OFD Sender: No OFD packet to send [02:31:55]recv_with_timeout no data received [02:31:58]OFD Sender: No OFD packet to send [02:32:03]OFD Sender: No OFD packet to send [02:32:08]OFD Sender: No OFD packet to send [02:32:13]OFD Sender: No OFD packet to send [02:32:18]OFD Sender: No OFD packet to send [02:32:23]OFD Sender: No OFD packet to send [02:32:28]OFD Sender: No OFD packet to send [02:32:33]OFD Sender: No OFD packet to send [02:32:48]OFD Sender: No OFD packet to send [02:32:53]OFD Sender: No OFD packet to send [02:32:58]OFD Sender: No OFD packet to send [02:33:03]OFD Sender: No OFD packet to send [02:33:08]OFD Sender: No OFD packet to send [02:33:13]OFD Sender: No OFD packet to send [02:33:16]recv_with_timeout no data received [02:33:18]OFD Sender: No OFD packet to send [02:33:23]OFD Sender: No OFD packet to send [02:33:28]OFD Sender: No OFD packet to send [02:33:33]OFD Sender: No OFD packet to send [02:33:38]OFD Sender: No OFD packet to send [02:33:43]OFD Sender: No OFD packet to send [02:33:48]OFD Sender: No OFD packet to send [02:33:53]OFD Sender: No OFD packet to send [02:33:58]OFD Sender: No OFD packet to send [02:34:03]OFD Sender: No OFD packet to send [02:34:08]OFD Sender: No OFD packet to send [02:34:13]OFD Sender: No OFD packet to send [02:34:18]OFD Sender: No OFD packet to send [02:34:23]OFD Sender: No OFD packet to send [02:34:38]OFD Sender: No OFD packet to send [02:34:43]OFD Sender: No OFD packet to send [02:34:48]OFD Sender: No OFD packet to send [02:34:53]OFD Sender: No OFD packet to send [02:34:58]OFD Sender: No OFD packet to send [02:35:03]OFD Sender: No OFD packet to send [02:35:06]recv_with_timeout no data received [02:35:08]OFD Sender: No OFD packet to send [02:35:13]OFD Sender: No OFD packet to send [02:35:18]OFD Sender: No OFD packet to send [02:35:23]OFD Sender: No OFD packet to send [02:35:28]OFD Sender: No OFD packet to send [02:35:33]OFD Sender: No OFD packet to send [02:35:38]OFD Sender: No OFD packet to send [02:35:43]OFD Sender: No OFD packet to send [02:35:48]OFD Sender: No OFD packet to send [02:35:53]OFD Sender: No OFD packet to send [02:35:58]OFD Sender: No OFD packet to send [02:36:03]OFD Sender: No OFD packet to send [02:36:08]OFD Sender: No OFD packet to send [02:36:38]OFD Sender: No OFD packet to send [02:36:43]OFD Sender: No OFD packet to send [02:36:48]OFD Sender: No OFD packet to send [02:36:53]OFD Sender: No OFD packet to send [02:36:55]recv_with_timeout no data received [02:36:58]OFD Sender: No OFD packet to send [02:37:03]OFD Sender: No OFD packet to send [02:37:08]OFD Sender: No OFD packet to send [02:37:13]OFD Sender: No OFD packet to send [02:37:18]OFD Sender: No OFD packet to send [02:37:23]OFD Sender: No OFD packet to send [02:37:28]OFD Sender: No OFD packet to send [02:37:33]OFD Sender: No OFD packet to send [02:37:38]OFD Sender: No OFD packet to send [02:37:43]OFD Sender: No OFD packet to send [02:37:48]OFD Sender: No OFD packet to send [02:37:53]OFD Sender: No OFD packet to send [02:37:58]OFD Sender: No OFD packet to send [02:38:03]OFD Sender: No OFD packet to send [02:38:08]OFD Sender: No OFD packet to send [02:38:13]OFD Sender: No OFD packet to send [02:38:18]OFD Sender: No OFD packet to send [02:38:23]OFD Sender: No OFD packet to send [02:38:28]OFD Sender: No OFD packet to send [02:38:33]OFD Sender: No OFD packet to send [02:38:38]OFD Sender: No OFD packet to send [02:38:40]recv_with_timeout no data received [02:38:43]OFD Sender: No OFD packet to send [02:38:48]OFD Sender: No OFD packet to send [02:38:53]OFD Sender: No OFD packet to send [02:38:58]OFD Sender: No OFD packet to send [02:39:03]OFD Sender: No OFD packet to send [02:39:08]OFD Sender: No OFD packet to send [02:39:13]OFD Sender: No OFD packet to send [02:39:18]OFD Sender: No OFD packet to send [02:39:23]OFD Sender: No OFD packet to send [02:39:28]OFD Sender: No OFD packet to send [02:39:33]OFD Sender: No OFD packet to send [02:39:38]OFD Sender: No OFD packet to send [02:39:43]OFD Sender: No OFD packet to send [02:39:48]OFD Sender: No OFD packet to send [02:39:53]OFD Sender: No OFD packet to send [02:39:58]OFD Sender: No OFD packet to send [02:40:03]OFD Sender: No OFD packet to send [02:40:08]OFD Sender: No OFD packet to send [02:40:13]OFD Sender: No OFD packet to send [02:40:18]OFD Sender: No OFD packet to send [02:40:23]OFD Sender: No OFD packet to send [02:40:28]OFD Sender: No OFD packet to send [02:40:33]OFD Sender: No OFD packet to send [02:40:38]OFD Sender: No OFD packet to send [02:40:43]OFD Sender: No OFD packet to send [02:40:46]recv_with_timeout no data received [02:40:48]OFD Sender: No OFD packet to send [02:40:53]OFD Sender: No OFD packet to send [02:40:58]OFD Sender: No OFD packet to send [02:41:03]OFD Sender: No OFD packet to send [02:41:08]OFD Sender: No OFD packet to send [02:41:13]OFD Sender: No OFD packet to send [02:41:15]recv_with_timeout no data received [02:41:18]OFD Sender: No OFD packet to send [02:41:23]OFD Sender: No OFD packet to send [02:41:28]OFD Sender: No OFD packet to send [02:41:33]OFD Sender: No OFD packet to send [02:41:38]OFD Sender: No OFD packet to send [02:41:43]OFD Sender: No OFD packet to send [02:41:53]OFD Sender: No OFD packet to send [02:41:58]OFD Sender: No OFD packet to send [02:42:04]OFD Sender: No OFD packet to send [02:42:09]OFD Sender: No OFD packet to send [02:42:14]OFD Sender: No OFD packet to send [02:42:19]OFD Sender: No OFD packet to send [02:42:23]recv_with_timeout no data received [02:42:24]OFD Sender: No OFD packet to send [02:42:29]OFD Sender: No OFD packet to send [02:42:34]OFD Sender: No OFD packet to send [02:42:39]OFD Sender: No OFD packet to send [02:42:44]OFD Sender: No OFD packet to send [02:42:49]OFD Sender: No OFD packet to send [02:42:54]OFD Sender: No OFD packet to send [02:42:59]OFD Sender: No OFD packet to send [02:43:04]OFD Sender: No OFD packet to send [02:43:09]OFD Sender: No OFD packet to send [02:43:14]OFD Sender: No OFD packet to send [02:43:19]OFD Sender: No OFD packet to send [02:43:24]OFD Sender: No OFD packet to send [02:43:29]OFD Sender: No OFD packet to send [02:43:34]OFD Sender: No OFD packet to send [02:43:39]OFD Sender: No OFD packet to send [02:43:40]recv_with_timeout no data received [02:43:44]OFD Sender: No OFD packet to send [02:43:49]OFD Sender: No OFD packet to send [02:43:54]OFD Sender: No OFD packet to send [02:43:59]OFD Sender: No OFD packet to send [02:44:04]OFD Sender: No OFD packet to send [02:44:09]OFD Sender: No OFD packet to send [02:44:12]recv_with_timeout no data received [02:44:14]OFD Sender: No OFD packet to send [02:44:19]OFD Sender: No OFD packet to send [02:44:24]OFD Sender: No OFD packet to send [02:44:29]OFD Sender: No OFD packet to send [02:44:34]OFD Sender: No OFD packet to send [02:44:39]OFD Sender: No OFD packet to send [02:44:44]OFD Sender: No OFD packet to send [02:44:49]OFD Sender: No OFD packet to send [02:44:54]OFD Sender: No OFD packet to send [02:45:26]ConnectInit Can't connect to host [02:45:29]OFD Sender: No OFD packet to send [02:45:34]OFD Sender: No OFD packet to send [02:45:39]OFD Sender: No OFD packet to send [02:45:44]OFD Sender: No OFD packet to send [02:45:49]OFD Sender: No OFD packet to send [02:45:54]OFD Sender: No OFD packet to send [02:45:59]OFD Sender: No OFD packet to send [02:46:04]OFD Sender: No OFD packet to send [02:46:09]OFD Sender: No OFD packet to send [02:46:14]OFD Sender: No OFD packet to send [02:46:19]OFD Sender: No OFD packet to send [02:46:24]OFD Sender: No OFD packet to send [02:46:29]OFD Sender: No OFD packet to send [02:46:34]OFD Sender: No OFD packet to send [02:46:39]OFD Sender: No OFD packet to send [02:46:44]OFD Sender: No OFD packet to send [02:46:49]OFD Sender: No OFD packet to send [02:46:54]OFD Sender: No OFD packet to send [02:46:59]OFD Sender: No OFD packet to send [02:47:04]OFD Sender: No OFD packet to send [02:47:09]OFD Sender: No OFD packet to send [02:47:14]OFD Sender: No OFD packet to send [02:47:19]OFD Sender: No OFD packet to send [02:47:24]OFD Sender: No OFD packet to send [02:47:29]OFD Sender: No OFD packet to send [02:47:34]OFD Sender: No OFD packet to send [02:47:39]OFD Sender: No OFD packet to send [02:47:44]OFD Sender: No OFD packet to send [02:47:49]OFD Sender: No OFD packet to send [02:47:54]OFD Sender: No OFD packet to send [02:47:59]OFD Sender: No OFD packet to send [02:48:04]OFD Sender: No OFD packet to send [02:48:09]OFD Sender: No OFD packet to send [02:48:14]OFD Sender: No OFD packet to send [02:48:19]OFD Sender: No OFD packet to send [02:48:24]OFD Sender: No OFD packet to send [02:48:29]OFD Sender: No OFD packet to send [02:48:34]OFD Sender: No OFD packet to send [02:48:39]OFD Sender: No OFD packet to send [02:48:44]OFD Sender: No OFD packet to send [02:48:49]OFD Sender: No OFD packet to send [02:48:54]OFD Sender: No OFD packet to send [02:48:59]OFD Sender: No OFD packet to send [02:49:04]OFD Sender: No OFD packet to send [02:49:09]OFD Sender: No OFD packet to send [02:49:14]OFD Sender: No OFD packet to send [02:49:19]OFD Sender: No OFD packet to send [02:49:24]OFD Sender: No OFD packet to send [02:49:29]OFD Sender: No OFD packet to send [02:49:34]OFD Sender: No OFD packet to send [02:49:39]OFD Sender: No OFD packet to send [02:49:44]OFD Sender: No OFD packet to send [02:49:49]OFD Sender: No OFD packet to send [02:49:54]OFD Sender: No OFD packet to send [02:49:59]OFD Sender: No OFD packet to send [02:50:04]OFD Sender: No OFD packet to send [02:50:09]OFD Sender: No OFD packet to send [02:50:14]OFD Sender: No OFD packet to send [02:50:19]OFD Sender: No OFD packet to send [02:50:21]recv_with_timeout no data received [02:50:24]OFD Sender: No OFD packet to send [02:50:29]OFD Sender: No OFD packet to send [02:50:34]OFD Sender: No OFD packet to send [02:50:39]OFD Sender: No OFD packet to send [02:50:44]OFD Sender: No OFD packet to send [02:50:49]OFD Sender: No OFD packet to send [02:50:54]OFD Sender: No OFD packet to send [02:50:59]OFD Sender: No OFD packet to send [02:51:04]OFD Sender: No OFD packet to send [02:51:09]OFD Sender: No OFD packet to send [02:51:14]OFD Sender: No OFD packet to send [02:51:19]OFD Sender: No OFD packet to send [02:51:24]OFD Sender: No OFD packet to send [02:51:29]OFD Sender: No OFD packet to send [02:51:34]OFD Sender: No OFD packet to send [02:51:39]OFD Sender: No OFD packet to send [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:52]accept exits with 10 [02:52:52]New connection [02:52:52]New thread 3067243876 created [02:52:52]Thread 3067100516 joined [02:52:52]Waiting for new connection... [02:52:52] Sock 10.Parse request [02:52:52]Sock 10.Check first char [02:52:52]Sock 10.First char is OK [02:52:52]request: POST /json_proto HTTP/1.0 [02:52:52]Method: POST [02:52:52]URL: /json_proto [02:52:52]Method is POST - this is cgi request [02:52:52]url: /json_proto [02:52:52]query_string will be loaded in cgi processing [02:52:52]execute_cgi json_proto POST (null) [02:52:52]execute_cgi path=json_proto method=POST [02:52:52]POST find Content-Length [02:52:52]Host: 172.17.43.132:8080 [02:52:52]Content-Length: 718 [02:52:52]Content-Type: application/json [02:52:52] [02:52:52]POST finish read [02:52:52]Found Content-Length = 718 [02:52:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184019", "tax_sys" : 0, "items" : [ { "code": "4606532000189", "name": "\u0422\u043E\u0440\u043C\u043E\u0437\u043D\u0430\u044F \u0436\u0438\u0434\u043A\u043E\u0441\u0442\u044C \u0420\u043E\u0441\u0414\u043E\u0442-4 0,455\u043A\u0433", "price" : 250.00, "quantity" : 1.000, "sum" : 250.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 250.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:52:52]execute_script... [02:52:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184019", "tax_sys" : 0, "items" : [ { "code": "4606532000189", "name": "\u0422\u043E\u0440\u043C\u043E\u0437\u043D\u0430\u044F \u0436\u0438\u0434\u043A\u043E\u0441\u0442\u044C \u0420\u043E\u0441\u0414\u043E\u0442-4 0,455\u043A\u0433", "price" : 250.00, "quantity" : 1.000, "sum" : 250.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 250.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:52:52]POST & json_proto [02:52:52]process_json_proto [02:52:52]json parsed OK: [02:52:52]protocol is kg_v1.0 [02:52:52]action value=close_receipt [02:52:52]process_action close_receipt [02:52:52]cmd_close_receipt [02:52:52]MH_GetDate [02:52:52]Write to MH i2c: F0 00 00 67 02 58 [02:52:52]Write i2c OK [02:52:52]MH_I2C_Read... [02:52:52]Read from MH i2c: F0 [02:52:52]MH_I2C_Read... [02:52:52]Read from MH i2c: F0 09 00 [02:52:52]MH_I2C_Read... [02:52:52]Read from MH i2c: F0 09 00 67 02 00 85 55 A8 66 64 A3 A7 66 5D [02:52:52]GetLastDocTimeStamp 1722304430 [02:52:52]current date 1722307973 [02:52:52]FM_GetShiftState [02:52:52]SAM_PROTO_GetShiftState [02:52:52]wFMCommunicate request_size=4 [02:52:52]MH_SAM_APDU [02:52:52]CAPDU: 80 13 01 00 [02:52:52]Write to MH i2c: E2 08 00 68 02 80 13 01 00 00 00 00 00 E7 [02:52:52]Write i2c OK [02:52:52]MH_I2C_Read... [02:52:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:52:52]Read from MH i2c: E2 [02:52:52]MH_I2C_Read... [02:52:52]Read from MH i2c: E2 0E 00 [02:52:52]MH_I2C_Read... [02:52:52]Read from MH i2c: E2 0E 00 68 02 00 09 00 01 6A 2F A8 66 00 00 00 00 90 00 9A [02:52:52]RAPDU: 09 00 01 6A 2F A8 66 00 00 00 00 90 00 [02:52:52]wFMCommunicate OK [02:52:52]SAM_PROTO_GetShiftState done [02:52:52]FM_GetShiftState done [02:52:52]opened in 1722298218 [02:52:52]opened+sec_in_day 1722384618 [02:52:52]quantity*price = 25000 [02:52:52]sum+1 = 25001 [02:52:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 250.00 НСП 1% : 2.21 НДС 12% : 26.55 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 97 "Партнер Нефть" Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 СНО: Общий режим Чек 12 30.07.2024 02:52 Смена: 428 ФФД: 1.0 ЗНМ: 0300000053 РНМ: 0000000000092626 Версия ККМ: 001 ФМ: 0000000000874958 ФД: 41991 ФПД: 251259420615045 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T025253&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41991&fm=251259420615045&tin=02508201610067®Number=0000000000092626&sum=25000 0 [02:52:54]StoreToDocumentArchive [02:52:54]shift 428 fd 41991 [02:52:54]save to /storage/0428/doc_00041991 [02:52:54]save last doc name /storage/0428/doc_00041991 to /storage/kkm_last_doc_name [02:52:54]save OK [02:52:54]Clear old archive folders... [02:52:54]ProcessDocumentItem done err = 0, tmpTLVsize=302 [02:52:54]tlvbuf is 00A55260 [02:52:54]SAM_PROTO_ClearQueue [02:52:54]wFMCommunicate request_size=4 [02:52:54]MH_SAM_APDU [02:52:54]CAPDU: 80 09 00 00 [02:52:54]Write to MH i2c: E2 08 00 75 02 80 09 00 00 00 00 00 00 E9 [02:52:54]Write i2c OK [02:52:54]MH_I2C_Read... [02:52:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:52:54]Read from MH i2c: E2 [02:52:54]MH_I2C_Read... [02:52:54]Read from MH i2c: E2 03 00 [02:52:54]MH_I2C_Read... [02:52:54]Read from MH i2c: E2 03 00 75 02 00 90 00 EB [02:52:54]RAPDU: 90 00 [02:52:54]wFMCommunicate OK [02:52:54]SAM_PROTO_ClearQueue done [02:52:54]KKMCreateOFDPacket [02:52:54]OFDProtocolAddRootSTLVToBuf [02:52:54]FM_MakeSignedData [02:52:54]FM_MakeSignedData [02:52:54]SAM_PROTO_SignData [02:52:54]wFMCommunicate request_size=4 [02:52:54]MH_SAM_APDU [02:52:54]CAPDU: 80 0D 01 02 [02:52:54]Write to MH i2c: E2 08 00 76 02 80 0D 01 02 00 00 00 00 F1 [02:52:54]Write i2c OK [02:52:54]MH_I2C_Read... [02:52:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:52:54]Read from MH i2c: E2 [02:52:54]MH_I2C_Read... [02:52:54]Read from MH i2c: E2 03 00 [02:52:54]MH_I2C_Read... [02:52:54]Read from MH i2c: E2 03 00 76 02 00 90 00 EC [02:52:54]RAPDU: 90 00 [02:52:54]wFMCommunicate OK [02:52:54]wFMCommunicate request_size=255 [02:52:54]MH_SAM_APDU [02:52:54]CAPDU: 80 0D 02 02 FA 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 30 36 35 33 32 30 30 30 31 38 39 06 04 3C 00 D0 A2 D0 BE D1 80 D0 BC D0 BE D0 B7 D0 BD D0 B0 D1 8F 20 D0 B6 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D0 A0 D0 BE D1 81 D0 94 D0 BE D1 82 2D 34 20 30 2C 34 35 35 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A8 61 00 00 00 00 13 04 06 00 A8 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 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 85 55 A8 66 0E 04 04 00 AC 01 00 00 B9 04 01 00 01 0D 04 [02:52:54]Write to MH i2c: E2 02 01 77 02 80 0D 02 02 FA 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 30 36 35 33 32 30 30 30 31 38 39 06 04 3C 00 D0 A2 D0 BE D1 80 D0 BC D0 BE D0 B7 D0 BD D0 B0 D1 8F 20 D0 B6 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D0 A0 D0 BE D1 81 D0 94 D0 BE D1 82 2D 34 20 30 2C 34 35 35 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A8 61 00 00 00 00 13 04 06 00 A8 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 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 85 55 A8 66 0E 04 04 00 AC 01 00 00 B9 04 01 00 01 0D 04 00 00 5C [02:52:54]Write i2c OK [02:52:54]MH_I2C_Read... [02:52:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:52:54]Read from MH i2c: E2 [02:52:54]MH_I2C_Read... [02:52:54]Read from MH i2c: E2 03 00 [02:52:54]MH_I2C_Read... [02:52:54]Read from MH i2c: E2 03 00 77 02 00 90 00 ED [02:52:54]RAPDU: 90 00 [02:52:54]wFMCommunicate OK [02:52:54]wFMCommunicate request_size=61 [02:52:54]MH_SAM_APDU [02:52:54]CAPDU: 80 0D 02 02 38 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 07 A4 00 00 35 04 06 00 E4 84 E4 83 21 85 [02:52:54]Write to MH i2c: E2 40 00 78 02 80 0D 02 02 38 00 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 07 A4 00 00 35 04 06 00 E4 84 E4 83 21 85 00 00 52 [02:52:54]Write i2c OK [02:52:54]MH_I2C_Read... [02:52:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:52:54]Read from MH i2c: E2 [02:52:54]MH_I2C_Read... [02:52:54]Read from MH i2c: E2 03 00 [02:52:54]MH_I2C_Read... [02:52:54]Read from MH i2c: E2 03 00 78 02 00 90 00 EE [02:52:54]RAPDU: 90 00 [02:52:54]wFMCommunicate OK [02:52:54]wFMCommunicate request_size=4 [02:52:54]MH_SAM_APDU [02:52:54]CAPDU: 80 0D 03 02 [02:52:54]Write to MH i2c: E2 08 00 79 02 80 0D 03 02 00 00 00 00 F6 [02:52:54]Write i2c OK [02:52:54]MH_I2C_Read... [02:52:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:52:54]Read from MH i2c: E2 [02:52:54]MH_I2C_Read... [02:52:54]Read from MH i2c: E2 0B 00 [02:52:54]MH_I2C_Read... [02:52:54]Read from MH i2c: E2 0B 00 79 02 00 99 B2 00 42 72 75 4C 25 90 00 DC [02:52:54]RAPDU: 99 B2 00 42 72 75 4C 25 90 00 [02:52:54]wFMCommunicate OK [02:52:54]SAM_PROTO_SignData done [02:52:54]FM_MakeSignedData done [02:52:54]CreateOFDProtocolMessage [02:52:54]wFMCommunicate request_size=4 [02:52:54]MH_SAM_APDU [02:52:54]CAPDU: 80 11 00 00 [02:52:54]Write to MH i2c: E2 08 00 7A 02 80 11 00 00 00 00 00 00 F6 [02:52:54]Write i2c OK [02:52:54]MH_I2C_Read... [02:52:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:52:54]Read from MH i2c: E2 [02:52:54]MH_I2C_Read... [02:52:54]Read from MH i2c: E2 17 00 [02:52:54]MH_I2C_Read... [02:52:54]Read from MH i2c: E2 17 00 7A 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 52 [02:52:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [02:52:54]wFMCommunicate OK [02:52:54]CreateOFDProtocolMessage done [02:52:54]OFDSenderStorePacket 41991 [02:52:54]StoreOFDPacket docnum=41991 [02:52:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 42 01 00 00 A0 95 3A 01 04 8D 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 30 36 35 33 32 30 30 30 31 38 39 06 04 3C 00 D0 A2 D0 BE D1 80 D0 BC D0 BE D0 B7 D0 BD D0 B0 D1 8F 20 D0 B6 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D0 A0 D0 BE D1 81 D0 94 D0 BE D1 82 2D 34 20 30 2C 34 35 35 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A8 61 00 00 00 00 13 04 06 00 A8 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 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 85 55 A8 66 0E 04 04 00 AC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 07 A4 00 00 35 04 06 00 E4 84 E4 83 21 85 99 B2 00 42 72 75 4C 25 [02:52:54]CheckFolder [02:52:54]dirname=/storage/ofd_packets [02:52:54]CheckFolder done [02:52:54]ProducePacketName [02:52:54]name=ofd_packets/00041991 [02:52:54]NVStorageSaveData ofd_packets/00041991 [02:52:54]File name is /storage/ofd_packets/00041991 [02:52:54]Write 352 bytes [02:52:54]NVStorageSaveData done [02:52:54]OFDSenderStorePacket done [02:52:54]KKMCreateOFDPacket done [02:52:54]NVStorageSaveData kkm_last_timestamp [02:52:54]File name is /storage/kkm_last_timestamp [02:52:54]Write 4 bytes [02:52:54]NVStorageSaveData done [02:52:54]ExternCall_PrintAddStr [02:52:54]wPrintStart [02:52:54]Write to MH i2c: 01 00 00 7B 02 7D [02:52:54]Write i2c OK [02:52:54]MH_I2C_Read... [02:52:54]Read from MH i2c: 01 [02:52:54]MH_I2C_Read... [02:52:54]Read from MH i2c: 01 07 00 [02:52:54]MH_I2C_Read... [02:52:54]Read from MH i2c: 01 07 00 7B 02 00 00 00 00 00 FF 0F 92 [02:52:54]RasterBufferAndPrint [02:52:54]line Счет N : (3)184019 [02:52:54]line ИНН: 02508201610067 [02:52:54]line Контрольно-Кассовый Чек [02:52:54]line ПРОДАЖА [02:52:54]line Товар: 4606532000189 [02:52:54]line Тормозная жидкость РосДот-4 0,455кг [02:52:54]line 1.000 * 250.00 [02:52:54]line = 250.00 [02:52:54]line НДС 12% НСП 1% [02:52:54]line > о реализуемом товаре [02:52:54]line ИТОГО: 250.00 [02:52:54]line НСП 1% : 2.21 [02:52:54]line НДС 12% : 26.55 [02:52:54]line Наличными: 250.00 [02:52:54]line Безнал.: 0.00 [02:52:54]line Место: АЗС № 97 "Партнер Нефть" [02:52:54]line Адрес: 720001, г. Кызыл Кия, ул. Кулатова 147 А, 40.273370, 72.134152 [02:52:54]line СНО: Общий режим [02:52:54]line Чек 12 30.07.2024 02:52 [02:52:54]line Смена: 428 ФФД: 1.0 [02:52:54]line ЗНМ: 0300000053 [02:52:54]line РНМ: 0000000000092626 [02:52:54]line Версия ККМ: 001 [02:52:54]line ФМ: 0000000000874958 [02:52:54]line ФД: 41991 [02:52:54]line ФПД: 251259420615045 [02:52:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T025253&type=1&operation_type=1&fn_number=0000000000874958&fd_number=41991&fm=251259420615045&tin=02508201610067®Number=0000000000092626&sum=25000 [02:52:54]line 0 [02:52:54]OFD Sender: Processing packet 41991 [packets to send 57, broken 56] [02:52:54]ProducePacketName [02:52:54]name=ofd_packets/00041991 [02:52:54]OFD Sender: To server: pG, [02:52:54]CommunicateWithHost lk.salyk.kg:30040 [02:52:54]ConnectInit lk.salyk.kg [02:52:54]written 0, free lines is 4095 [02:52:55]Write to MH i2c: 01 00 00 A4 02 A6 [02:52:55]Write i2c OK [02:52:55]MH_I2C_Read... [02:52:55]Read from MH i2c: 01 [02:52:55]MH_I2C_Read... [02:52:55]Read from MH i2c: 01 07 00 [02:52:55]MH_I2C_Read... [02:52:55]Read from MH i2c: 01 07 00 A4 02 00 00 00 00 00 FD 0C B6 [02:52:55]RasterBufferAndPrint [02:52:55]line [02:52:55]line [02:52:55]line [02:52:55]line [02:52:55]line [02:52:55]written 0, free lines is 3331 [02:52:55]MH_Cut [02:52:55]Write to MH i2c: D1 01 00 AB 02 01 7F [02:52:55]Write i2c OK [02:52:55]MH_I2C_Read... [02:52:55]Read from MH i2c: D1 [02:52:55]MH_I2C_Read... [02:52:55]Read from MH i2c: D1 01 00 [02:52:55]MH_I2C_Read... [02:52:55]Read from MH i2c: D1 01 00 AB 02 00 7E [02:52:55]Write to MH i2c: 01 00 00 AC 02 AE [02:52:55]Write i2c OK [02:52:55]MH_I2C_Read... [02:52:56]*** Cut start [02:52:56]*** Partial cut [02:52:56]*** CUTSNS_PIN = 1 [02:52:56]*** CUTSNS_PIN = 0 [02:52:56]*** Brake cut motor [02:52:56]Read from MH i2c: 01 [02:52:56]MH_I2C_Read... [02:52:56]*** Stop cut motor [02:52:56]*** Cut end [02:52:56]Read from MH i2c: 01 07 00 [02:52:56]MH_I2C_Read... [02:52:56]Read from MH i2c: 01 07 00 AC 02 00 00 00 00 00 FF 0F C3 [02:52:56]process_action close_receipt done [02:52:56]requested_data is exist [02:52:56]produce_requested_data [02:52:56]requested_item fm.sn is exist - process it [02:52:56]wFMCommunicate request_size=4 [02:52:56]MH_SAM_APDU [02:52:56]CAPDU: 80 11 00 00 [02:52:56]Write to MH i2c: E2 08 00 AD 02 80 11 00 00 00 00 00 00 29 [02:52:56]Write i2c OK [02:52:56]MH_I2C_Read... [02:52:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:52:56]Read from MH i2c: E2 [02:52:56]MH_I2C_Read... [02:52:56]Read from MH i2c: E2 17 00 [02:52:56]MH_I2C_Read... [02:52:56]Read from MH i2c: E2 17 00 AD 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 85 [02:52:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 90 00 [02:52:56]wFMCommunicate OK [02:52:56]requested_item fd.num is exist - process it [02:52:56]SAM_PROTO_GetFieldsCounters [02:52:56]wFMCommunicate request_size=4 [02:52:56]MH_SAM_APDU [02:52:56]CAPDU: 80 13 00 00 [02:52:56]Write to MH i2c: E2 08 00 AE 02 80 13 00 00 00 00 00 00 2C [02:52:56]Write i2c OK [02:52:56]MH_I2C_Read... [02:52:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:52:56]Read from MH i2c: E2 [02:52:56]MH_I2C_Read... [02:52:56]Read from MH i2c: E2 62 00 [02:52:56]MH_I2C_Read... [02:52:56]Read from MH i2c: E2 62 00 AE 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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 07 A4 00 00 0E 04 04 00 AC 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 D2 [02:52: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 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 10 04 04 00 07 A4 00 00 0E 04 04 00 AC 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:52:56]wFMCommunicate OK [02:52:56]SAM_PROTO_GetFieldsCounters done [02:52:56]requested_item shift.num is exist - process it [02:52:56]requested_item shift.opened is exist - process it [02:52:56]req_shift_opened [02:52:56]FM_GetShiftState [02:52:56]SAM_PROTO_GetShiftState [02:52:56]wFMCommunicate request_size=4 [02:52:56]MH_SAM_APDU [02:52:56]CAPDU: 80 13 01 00 [02:52:56]Write to MH i2c: E2 08 00 AF 02 80 13 01 00 00 00 00 00 2E [02:52:56]Write i2c OK [02:52:56]MH_I2C_Read... [02:52:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:52:57]Read from MH i2c: E2 [02:52:57]MH_I2C_Read... [02:52:57]Read from MH i2c: E2 0E 00 [02:52:57]MH_I2C_Read... [02:52:57]Read from MH i2c: E2 0E 00 AF 02 00 09 00 01 6A 2F A8 66 00 00 00 00 90 00 E1 [02:52:57]RAPDU: 09 00 01 6A 2F A8 66 00 00 00 00 90 00 [02:52:57]wFMCommunicate OK [02:52:57]SAM_PROTO_GetShiftState done [02:52:57]FM_GetShiftState done [02:52:57]req_shift_opened done [02:52:57]requested_item shift.open_date is exist - process it [02:52:57]req_shift_open_date [02:52:57]req_shift_open_date done [02:52:57]produce_requested_data done [02:52:57]produce_requested_data return {"fm.sn":"0000000000874958","fd.num":41991,"shift.num":428,"shift.opened":1,"shift.open_date":1722298218} [02:52:57]process_action_free close_receipt [02:52:57]json_value_free [02:52:57]json_value_free done [02:52:57]process_json_proto returns [02:52:57]Send response to host [02:52:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874958","fd.num":41991,"shift.num":428,"shift.opened":1,"shift.open_date":1722298218}}} [02:52:57]free response buf [02:52:57]execute_script done [02:52:57]execute_script returns [02:52:57]free content buf [02:52:57]Sock 10.Close socket [02:52:57]Sock 10.Thread stoped [02:52:59]Connected sock=11 [02:52: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 35 38 42 01 00 00 A0 95 3A 01 04 8D 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 30 36 35 33 32 30 30 30 31 38 39 06 04 3C 00 D0 A2 D0 BE D1 80 D0 BC D0 BE D0 B7 D0 BD D0 B0 D1 8F 20 D0 B6 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D0 A0 D0 BE D1 81 D0 94 D0 BE D1 82 2D 34 20 30 2C 34 35 35 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A8 61 00 00 00 00 13 04 06 00 A8 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 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 85 55 A8 66 0E 04 04 00 AC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 32 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 35 38 10 04 04 00 07 A4 00 00 35 04 06 00 E4 84 E4 83 21 85 99 B2 00 42 72 75 4C 25 [02:53: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 35 38 4F 00 00 00 CB 01 47 00 C7 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 35 38 10 04 04 00 07 A4 00 00 F4 03 04 00 A0 01 A8 66 B6 04 01 00 00 15 41 6A 93 86 E9 6B 04 [02:53:01]CommunicateWithHost err = 0 [02:53:01]CheckOFDResponse [02:53:01]1017 (14) - 77093643461234 [02:53:01]1041 (16) - 0000000000874958 [02:53:01]1040 (4) - 41991 [02:53:01]1012 (4) - 29.07.2024 20:54 [02:53:01]1206 (1) - 0 [02:53:01]OFD Sender: Remove packet 41991 [02:53:01]ProducePacketName [02:53:01]name=ofd_packets/00041991 [02:53:01]NVStorageDeleteData [02:53:01]OFD Sender: No OFD packet to send [02:53:06]OFD Sender: No OFD packet to send [02:53:08]recv_with_timeout no data received [02:53:11]OFD Sender: No OFD packet to send [02:53:16]OFD Sender: No OFD packet to send [02:53:21]OFD Sender: No OFD packet to send [02:53:26]OFD Sender: No OFD packet to send [02:53:31]OFD Sender: No OFD packet to send [02:53:36]OFD Sender: No OFD packet to send [02:53:41]OFD Sender: No OFD packet to send [02:53:46]OFD Sender: No OFD packet to send [02:53:51]OFD Sender: No OFD packet to send [02:53:56]OFD Sender: No OFD packet to send [02:54:01]OFD Sender: No OFD packet to send [02:54:06]OFD Sender: No OFD packet to send [02:54:11]OFD Sender: No OFD packet to send [02:54:16]OFD Sender: No OFD packet to send [02:54:21]OFD Sender: No OFD packet to send [02:54:26]OFD Sender: No OFD packet to send [02:54:31]OFD Sender: No OFD packet to send [02:54:36]OFD Sender: No OFD packet to send [02:54:41]OFD Sender: No OFD packet to send [02:54:46]OFD Sender: No OFD packet to send [02:54:51]OFD Sender: No OFD packet to send [02:54:56]OFD Sender: No OFD packet to send [02:55:01]OFD Sender: No OFD packet to send [02:55:06]OFD Sender: No OFD packet to send [02:55:11]OFD Sender: No OFD packet to send [02:55:16]OFD Sender: No OFD packet to send [02:55:21]OFD Sender: No OFD packet to send [02:55:26]OFD Sender: No OFD packet to send [02:55:31]OFD Sender: No OFD packet to send [02:55:36]OFD Sender: No OFD packet to send [02:55:41]OFD Sender: No OFD packet to send [02:55:46]OFD Sender: No OFD packet to send [02:55:51]OFD Sender: No OFD packet to send [02:55:56]OFD Sender: No OFD packet to send [02:56:01]OFD Sender: No OFD packet to send [02:56:06]OFD Sender: No OFD packet to send [02:56:11]OFD Sender: No OFD packet to send [02:56:16]OFD Sender: No OFD packet to send [02:56:21]OFD Sender: No OFD packet to send [02:56:26]OFD Sender: No OFD packet to send [02:56:31]OFD Sender: No OFD packet to send [02:56:36]OFD Sender: No OFD packet to send [02:56:41]OFD Sender: No OFD packet to send [02:56:46]OFD Sender: No OFD packet to send [02:56:51]OFD Sender: No OFD packet to send [02:56:56]OFD Sender: No OFD packet to send [02:57:01]OFD Sender: No OFD packet to send [02:57:06]OFD Sender: No OFD packet to send [02:57:11]OFD Sender: No OFD packet to send [02:57:16]OFD Sender: No OFD packet to send [02:57:21]OFD Sender: No OFD packet to send [02:57:26]OFD Sender: No OFD packet to send [02:57:31]OFD Sender: No OFD packet to send [02:57:36]OFD Sender: No OFD packet to send [02:57:41]OFD Sender: No OFD packet to send [02:57:47]OFD Sender: No OFD packet to send [02:57:52]OFD Sender: No OFD packet to send [02:57:57]OFD Sender: No OFD packet to send [02:58:02]OFD Sender: No OFD packet to send